@font-face { font-family: "Bebas Neue"; src: url("../fonts/bebas-neue.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

.sc-photo-portfolio {
  --cream: #f5efe6; --sand: #e9ddcb; --ink: #1b1714; --muted: #75685d; --red: #e63a2e; --red-d: #c42a20; --line: rgba(27,23,20,.14); --focus: #e63a2e;
  --ease: cubic-bezier(.7, 0, .2, 1); --out: cubic-bezier(.2, .8, .2, 1);
  color: var(--ink); background: var(--cream); font-family: "DM Sans", system-ui, sans-serif;
}
.sc-photo-portfolio h1, .sc-photo-portfolio h2, .sc-photo-portfolio h3, .brand, .foot-big, .num, .facts b, .marquee { font-family: "Bebas Neue", "Arial Narrow", sans-serif; font-weight: 400; }
.sc-photo-portfolio em { font-family: "Fraunces", Georgia, serif; font-style: italic; font-weight: 400; }

/* Intro (da video: logo che si compone, poi la pagina sale) */
.intro { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: var(--ink); color: var(--cream); animation: introOut .8s var(--ease) 1.15s forwards; pointer-events: none; }
.intro-word { font: 400 clamp(48px, 9vw, 130px)/1 "Bebas Neue"; letter-spacing: .04em; overflow: hidden; }
.intro-word span { display: inline-block; transform: translateY(110%); animation: letterUp .7s var(--out) forwards; }
.intro-word span:nth-child(2) { animation-delay: .05s; } .intro-word span:nth-child(3) { animation-delay: .1s; } .intro-word span:nth-child(4) { animation-delay: .15s; } .intro-word span:nth-child(5) { animation-delay: .2s; }
.intro-word span:nth-child(6) { animation-delay: .3s; color: var(--red); } .intro-word span:nth-child(7) { animation-delay: .35s; color: var(--red); } .intro-word span:nth-child(8) { animation-delay: .4s; color: var(--red); } .intro-word span:nth-child(9) { animation-delay: .45s; color: var(--red); }
@keyframes letterUp { to { transform: none; } }
@keyframes introOut { to { clip-path: inset(0 0 100% 0); visibility: hidden; } }
.intro.is-skip { display: none; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 12px max(12px, calc((100vw - 1340px) / 2)) 0; padding: 12px 14px 12px 20px; border-radius: 22px; background: rgba(245,239,230,.8); backdrop-filter: blur(14px); box-shadow: 0 10px 30px rgba(27,23,20,.06); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 26px; letter-spacing: .03em; }
.brand svg { width: 30px; height: 30px; }
.menu { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.menu a:not(.red-pill) { color: var(--ink); text-decoration: none; position: relative; }
.menu a:not(.red-pill)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.menu a:not(.red-pill):hover::after { transform: scaleX(1); transform-origin: left; }
.red-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border: 0; border-radius: 99px; background: var(--red); color: #fff; font: 700 14px "DM Sans"; letter-spacing: .03em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .25s, transform .25s; }
.red-pill:hover { background: var(--red-d); transform: translateY(-2px); }
.circle { display: inline-grid; place-items: center; width: 48px; height: 48px; border: 1.5px solid var(--red); border-radius: 50%; background: transparent; color: var(--red); font-size: 18px; text-decoration: none; transition: background .25s, color .25s, transform .4s var(--out); }
.circle:hover { background: var(--red); color: #fff; transform: rotate(45deg); }
.nav-toggle { display: none; }

/* Hero */
.hero { position: relative; padding: 70px 0 30px; text-align: center; overflow: hidden; }
.kicker { margin: 0; color: var(--red); font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.hero h1 { margin: 14px auto 14px; font-size: clamp(64px, 10.5vw, 168px); line-height: .86; letter-spacing: .005em; }
.hero h1 span { display: block; }
.lead { max-width: 520px; margin: 0 auto; color: var(--muted); font-size: 17px; line-height: 1.55; padding: 0 20px; }
.hero-cta { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 26px; }
.arc-wrap { position: relative; height: clamp(320px, 38vw, 520px); margin-top: 20px; touch-action: pan-y; cursor: grab; user-select: none; }
.arc-wrap.is-drag { cursor: grabbing; }
.arc-labels { position: absolute; left: 0; right: 0; bottom: 2%; width: 100%; height: 50%; overflow: visible; pointer-events: none; }
.arc-labels text { fill: var(--ink); font: 700 15px "DM Sans"; letter-spacing: .18em; }
.arc { position: absolute; inset: 0; perspective: 1400px; }
.arc-card { position: absolute; left: 50%; top: 8%; width: clamp(150px, 15vw, 230px); aspect-ratio: 3 / 4; margin: 0 0 0 calc(clamp(150px, 15vw, 230px) / -2); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 40px rgba(27,23,20,.16); transform-origin: 50% 120%; will-change: transform; transition: box-shadow .3s; animation: cardIn 1.2s var(--out) both; animation-delay: calc(1.2s + var(--k, 0) * 80ms); }
@keyframes cardIn { from { opacity: 0; translate: 0 120px; } }
.arc-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.drag-hint { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; color: var(--muted); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }

/* Marquee legato allo scroll */
.marquee { overflow: hidden; padding: 16px 0; border-block: 1.5px solid var(--ink); background: var(--cream); }
.marquee-track { display: flex; width: max-content; font-size: clamp(48px, 7vw, 110px); line-height: 1; will-change: transform; }
.marquee-track span { padding-right: .3em; white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--red); font-size: .6em; vertical-align: middle; }
.marquee-track em { font-size: .9em; }

/* Sezioni */
.portfolio, .services, .book, .picks { padding: 110px max(20px, calc((100vw - 1340px) / 2)); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; margin-bottom: 30px; }
.sec-head h2, .picks h2, .about h2 { margin: 0; font-size: clamp(60px, 9vw, 140px); line-height: .85; }
.sec-head p { max-width: 380px; margin: 0; color: var(--muted); line-height: 1.55; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.filters button { min-height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: 99px; background: transparent; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; transition: background .25s, color .25s; }
.filters button sup { margin-left: 3px; color: var(--red); font-size: 10px; }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.filters button[aria-pressed="true"] sup { color: #ff9a92; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 12px; margin: 0; padding: 0; list-style: none; }
.shot--wide { grid-column: span 2; } .shot--tall { grid-row: span 2; } .shot--sq { grid-row: span 2; }
.shot-btn { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 14px; overflow: hidden; background: var(--sand); cursor: zoom-in; }
.shot-btn img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--out), filter .6s; }
.shot-btn:hover img, .shot-btn:focus-visible img { transform: scale(1.06); }
.shot-meta { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; border-radius: 99px; background: rgba(245,239,230,.92); color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transform: translateY(140%); transition: transform .5s var(--out); }
.shot-meta i { color: var(--red); font-style: normal; }
.shot-btn:hover .shot-meta, .shot-btn:focus-visible .shot-meta { transform: none; }
.shot { clip-path: inset(0 0 0 0 round 14px); }
.sc-js .shot.pre { clip-path: inset(100% 0 0 0 round 14px); }
.shot.in { transition: clip-path 1s var(--ease); transition-delay: calc(var(--d, 0) * 60ms); }
.fine { margin: 20px 0 0; color: var(--muted); font-size: 12px; }

/* Scatti del mese (carosello squircle manuale) */
.picks { background: var(--ink); color: var(--cream); text-align: center; overflow: hidden; }
.picks h2 em { color: var(--red); }
.picks-stage { position: relative; height: clamp(300px, 34vw, 440px); margin-top: 40px; touch-action: pan-y; cursor: grab; }
.pick { position: absolute; left: 50%; top: 50%; width: clamp(160px, 20vw, 300px); aspect-ratio: 4 / 5; margin: 0; border-radius: 38% 38% 30% 30% / 26% 26% 22% 22%; overflow: hidden; transition: transform .8s var(--out), opacity .6s, outline-color .4s; outline: 3px solid transparent; outline-offset: 6px; }
.pick.is-center { outline-color: var(--red); }
.pick img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.picks-ctrl { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 30px; }
.picks-bar { width: 140px; height: 2px; background: rgba(245,239,230,.2); }
.picks-bar i { display: block; height: 100%; background: var(--cream); transition: width .6s var(--out); }
.picks-n { font: 400 18px "Bebas Neue"; letter-spacing: .1em; }
.picks .circle { border-color: var(--cream); color: var(--cream); }

/* Servizi */
.serv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.serv { position: relative; padding: 30px; border: 1.5px solid var(--ink); border-radius: 160px 160px 24px 24px; min-height: 360px; display: flex; flex-direction: column; text-align: center; transition: background .4s, color .4s, border-radius .6s var(--out); }
.serv:hover { background: var(--red); color: #fff; border-color: var(--red); border-radius: 24px; }
.serv .num { margin-top: 20px; color: var(--red); font-size: 30px; }
.serv:hover .num { color: #fff; }
.serv h3 { margin: 14px 0 10px; font-size: 52px; line-height: .9; }
.serv p { margin: 0 0 20px; color: var(--muted); line-height: 1.5; }
.serv:hover p { color: #ffe5e2; }
.serv b { margin-top: auto; font-size: 18px; }

/* Chi sono */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; padding: 40px max(20px, calc((100vw - 1340px) / 2)) 110px; }
.about-img { margin: 0; border-radius: 200px 200px 24px 24px; overflow: hidden; aspect-ratio: 4 / 5; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about h2 em { color: var(--red); }
.about-copy > p { max-width: 520px; color: var(--muted); font-size: 18px; line-height: 1.6; }
.facts { display: flex; gap: 30px; margin: 30px 0 0; padding: 0; list-style: none; }
.facts b { display: block; font-size: 64px; line-height: 1; color: var(--ink); }
.facts span { color: var(--muted); font-size: 13px; }

/* Stepper */
.book { background: var(--sand); }
.stepper { max-width: 860px; padding: 30px; border-radius: 28px; background: var(--cream); }
.steps-nav { display: flex; gap: 6px; margin: 0 0 26px; padding: 0; list-style: none; counter-reset: s; }
.steps-nav li { flex: 1; padding-top: 12px; border-top: 3px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; counter-increment: s; transition: border-color .4s, color .4s; }
.steps-nav li::before { content: "0" counter(s) " "; color: var(--red); }
.steps-nav li.done, .steps-nav li[aria-current="step"] { border-color: var(--ink); color: var(--ink); }
.step { margin: 0; padding: 0; border: 0; animation: stepIn .6s var(--out); }
@keyframes stepIn { from { opacity: 0; transform: translateX(30px); filter: blur(6px); } }
.step legend { margin-bottom: 16px; font: 400 40px/1 "Bebas Neue"; }
.choice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: grid; gap: 4px; padding: 18px; border: 1.5px solid var(--line); border-radius: 18px; cursor: pointer; transition: border-color .2s, background .2s; }
.choice small { color: var(--muted); }
.choice input:checked + span { border-color: var(--red); background: #fff; box-shadow: inset 0 0 0 1px var(--red); }
.choice input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.step label > span { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 700; }
.step input, .step textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; }
.step input:focus, .step textarea:focus { outline: 0; border-color: var(--ink); }
.step input.err { border-color: var(--red); }
.step-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; }
.ghost-btn { min-height: 48px; padding: 0 20px; border: 1.5px solid var(--ink); border-radius: 99px; background: transparent; font-weight: 700; }
.step-actions .red-pill { margin-left: auto; }
.summary { margin-top: 20px; padding: 20px; border-radius: 18px; background: var(--ink); color: var(--cream); line-height: 1.55; animation: stepIn .6s var(--out); }
.summary b { color: #ff9a92; }

.foot { padding: 80px max(20px, calc((100vw - 1340px) / 2)) 30px; }
.foot-big { margin: 0; font-size: clamp(80px, 16vw, 260px); line-height: .8; }
.foot-big span { display: block; font-family: "Fraunces"; font-style: italic; color: var(--red); font-size: .35em; line-height: 1.2; }
.foot-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 30px; color: var(--muted); font-size: 13px; }
.foot-row a { color: var(--ink); font-weight: 700; }

/* Lightbox con maschera che si apre dalla miniatura */
.lightbox { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; background: rgba(20,17,15,0); transition: background .5s; }
.lightbox.is-open { background: rgba(20,17,15,.94); }
.lb-fig { margin: 0; max-width: min(1200px, 92vw); }
.lb-fig img { max-width: 100%; max-height: 80vh; width: auto; height: auto; margin: 0 auto; border-radius: 10px; clip-path: var(--from, inset(0)); transition: clip-path .7s var(--ease); }
.lightbox.is-open .lb-fig img { clip-path: inset(0 0 0 0 round 10px); }
.lb-fig figcaption { margin-top: 14px; color: #d9cfc4; text-align: center; font-size: 14px; }
.lb-fig figcaption b { color: #ff9a92; text-transform: uppercase; letter-spacing: .1em; font-size: 12px; margin-right: 8px; }
.lb-btn { position: fixed; width: 54px; height: 54px; border: 1.5px solid rgba(245,239,230,.4); border-radius: 50%; background: rgba(20,17,15,.4); color: var(--cream); font-size: 22px; transition: background .2s; }
.lb-btn:hover { background: var(--red); border-color: var(--red); }
.lb-close { top: 20px; right: 20px; } .lb-prev { left: 20px; top: 50%; translate: 0 -50%; } .lb-next { right: 20px; top: 50%; translate: 0 -50%; }
.lb-count { position: fixed; top: 34px; left: 24px; color: var(--cream); font: 400 20px "Bebas Neue"; letter-spacing: .1em; }
.lb-fig.swap img { animation: lbSwap .5s var(--out); }
@keyframes lbSwap { from { opacity: 0; transform: translateX(var(--dir, 40px)) scale(.98); } }

@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .serv-grid { grid-template-columns: 1fr; } .serv { min-height: 0; border-radius: 120px 120px 24px 24px; } }
@media (max-width: 899px) {
  .nav-toggle { display: inline-grid; place-content: center; gap: 6px; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--ink); }
  .nav-toggle i { display: block; width: 18px; height: 2px; background: var(--cream); transition: transform .3s; }
  .nav-toggle[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
  .menu { position: absolute; left: 0; right: 0; top: calc(100% + 8px); flex-direction: column; align-items: stretch; gap: 0; padding: 14px; border-radius: 22px; background: var(--cream); box-shadow: 0 20px 40px rgba(27,23,20,.15); clip-path: inset(0 0 100% 0 round 22px); visibility: hidden; transition: clip-path .5s var(--ease), visibility 0s .5s; }
  .menu.is-open { clip-path: inset(0 0 0 0 round 22px); visibility: visible; transition: clip-path .5s var(--ease); }
  .menu a:not(.red-pill) { padding: 14px 6px; font-size: 18px; }
  .menu .red-pill { margin-top: 10px; }
  .about { grid-template-columns: 1fr; }
  .portfolio, .services, .book, .picks { padding-top: 80px; padding-bottom: 80px; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .shot--wide { grid-column: span 2; }
  .choice, .row { grid-template-columns: 1fr; }
  .facts { gap: 18px; } .facts b { font-size: 46px; }
  .lb-prev, .lb-next { top: auto; bottom: 20px; translate: none; }
  .stepper { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { .intro { display: none; } .sc-js .shot.pre { clip-path: none; } }

/* fx · ondata 5-6 */

.pf-sheet { padding: 120px max(24px, calc((100vw - 1240px) / 2)); background: #161412; color: #f5efe6; }
.pf-k { margin: 0 0 12px; font: 600 12px monospace; letter-spacing: .24em; text-transform: uppercase; color: #ff7a59; }
.pf-sheet h2 { margin: 0 0 40px; font-size: clamp(48px, 6vw, 100px); line-height: .92; } .pf-sheet h2 em { font-style: italic; color: #ff7a59; }
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 26px; border-radius: 6px; background: #0b0a09; }
.pf-fr { position: relative; aspect-ratio: 3 / 2; border: 6px solid #0b0a09; outline: 1px solid #3a342e; }
.pf-fr img { filter: grayscale(1) contrast(1.15); transition: filter .5s; } .pf-fr:hover img { filter: grayscale(0); }
.pf-fr figcaption { position: absolute; left: 6px; bottom: -22px; color: #ff9a3d; font: 700 11px monospace; }
.pf-fr::after { content: ""; position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.fx-on .pf-fr.fx-in::after { animation: pf-flash .7s ease-out both; animation-delay: var(--fx-delay, 0ms); }
@keyframes pf-flash { 0% { opacity: .95; } 100% { opacity: 0; } }
.pf-fr:hover { outline-color: #ff3b30; } .pf-fr:hover::before { content: ""; position: absolute; inset: -14px; z-index: 2; border: 3px solid #ff3b30; border-radius: 50%; pointer-events: none; }
@media (max-width: 760px) { .pf-grid { grid-template-columns: 1fr 1fr; padding: 12px; } }
@media (prefers-reduced-motion: reduce) { .fx-on .pf-fr.fx-in::after { animation: none; } }
