﻿@font-face { font-family: Garamond; src: url('/assets/fonts/garamond-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Acumin; src: url('/assets/fonts/acumin-variable.woff2') format('woff2'); font-style: normal; font-weight: 100 900; font-stretch: 50% 115%; font-display: swap; }

/* Misure ricavate dalle tavole PDF (artboard 1600 x 900): 1vw = 16px di tavola. */
:root {
  --ink: #262626;
  --text: #4a4a4a;
  --paper: #f6f4f0;
  --stone: #cec9c4;
  --mist: #f6f4f0;
  --brown: #655c55;
  --accent: #a0604b;
  --gutter: clamp(20px, 5vw, 96px);
  --inset: clamp(16px, 5.75vw, 110px);
  --header: clamp(62px, 5.625vw, 104px);
  --body-size: clamp(13px, 1.02vw, 19px);
  --text-weight: 340;
  /* Testi lunghi in Adobe Garamond Pro; titoli, menu ed etichette in Acumin. */
  --serif: Garamond, 'Adobe Garamond Pro', Georgia, serif;
  --serif-size: clamp(15px, 1.15vw, 21px);
  --duration-fast: 180ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  /* Texture bianco sporco marmorizzata a puntini: venature, nuvole e puntini su fondo trasparente, da sovrapporre al colore di base. */
  /* Sfondo chiaro principale: bianco caldo con grana leggerissima (la texture marmorizzata resta solo sul grigio). */
  --paper-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .33 0 0 0 0 .3 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --marble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='640'%3E%3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .62 0 0 0 0 .59 0 0 0 0 .54 0 0 0 .35 -.13'/%3E%3C/filter%3E%3Cfilter id='v' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='turbulence' baseFrequency='.004 .007' numOctaves='5' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .42 0 0 0 0 .38 -4 0 0 0 .2'/%3E%3C/filter%3E%3Cfilter id='d' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='1' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .28 0 0 0 0 .25 0 0 0 12 -8.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23v)'/%3E%3Crect width='100%25' height='100%25' filter='url(%23d)' opacity='.45'/%3E%3C/svg%3E");
  --reveal-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 1350' preserveAspectRatio='none'%3E%3Cpath d='M0 176A144 144 0 0 1 172.5 35.1L1484.7 302.1A144 144 0 0 1 1600 443.3V1350H0Z'/%3E%3C/svg%3E");
  --reveal-mask-mobile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 1300' preserveAspectRatio='none'%3E%3Cpath d='M0 85.7A70 70 0 0 1 84 17.4L343.9 69.8A70 70 0 0 1 400 138.6V1300H0Z'/%3E%3C/svg%3E");
  /* Forme diagonali tracciate dalle tavole 06, 07, 08 e 09: pendenza 29,4 gradi, raccordi da 270 e 120 px. */
  --shape-vision: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .62 0 0 0 0 .59 0 0 0 0 .54 0 0 0 .35 -.13'/%3E%3C/filter%3E%3Cfilter id='v' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='turbulence' baseFrequency='.004 .007' numOctaves='5' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .42 0 0 0 0 .38 -4 0 0 0 .2'/%3E%3C/filter%3E%3Cfilter id='d' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='1' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .28 0 0 0 0 .25 0 0 0 12 -8.3'/%3E%3C/filter%3E%3CclipPath id='k'%3E%3Cpath d='M700 900L1462.4 471.3A270 270 0 0 0 1600 235.7V900Z'/%3E%3C/clipPath%3E%3C/defs%3E%3Cpath fill='%23cec9c3' d='M700 900L1462.4 471.3A270 270 0 0 0 1600 235.7V900Z'/%3E%3Cg clip-path='url(%23k)'%3E%3Crect width='1600' height='900' filter='url(%23c)'/%3E%3Crect width='1600' height='900' filter='url(%23v)'/%3E%3Crect width='1600' height='900' filter='url(%23d)' opacity='.45'/%3E%3C/g%3E%3C/svg%3E");
  --shape-sketch-dark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23262626'/%3E%3Cstop offset='1' stop-color='%23453f3b'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M0 0H700L197.8 282.6A120 120 0 0 1 34.4 236.8L0 175.7Z'/%3E%3C/svg%3E");
  --shape-sketch: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='none'%3E%3Cpath fill='%23f6f4f0' d='M894 900L1440.4 592.5A120 120 0 0 1 1603.8 638.3L1751 900Z'/%3E%3C/svg%3E");
  --shape-categories: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012' numOctaves='3' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .62 0 0 0 0 .59 0 0 0 0 .54 0 0 0 .35 -.13'/%3E%3C/filter%3E%3Cfilter id='v' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='turbulence' baseFrequency='.004 .007' numOctaves='5' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .45 0 0 0 0 .42 0 0 0 0 .38 -4 0 0 0 .2'/%3E%3C/filter%3E%3Cfilter id='d' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='1' seed='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .28 0 0 0 0 .25 0 0 0 12 -8.3'/%3E%3C/filter%3E%3CclipPath id='k'%3E%3Cpath d='M0 0H894L137.6 425.4A270 270 0 0 0 0 661Z'/%3E%3C/clipPath%3E%3C/defs%3E%3Cpath fill='%23cec9c3' d='M0 0H894L137.6 425.4A270 270 0 0 0 0 661Z'/%3E%3Cg clip-path='url(%23k)'%3E%3Crect width='1600' height='900' filter='url(%23c)'/%3E%3Crect width='1600' height='900' filter='url(%23v)'/%3E%3Crect width='1600' height='900' filter='url(%23d)' opacity='.45'/%3E%3C/g%3E%3C/svg%3E");
  --shape-contact: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 900' preserveAspectRatio='none'%3E%3Cpath fill='%23f6f4f0' d='M0 0H1600V132L853 485.2A124 124 0 0 1 747 485.2L0 132Z'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; color: var(--ink); background: var(--paper); font: var(--text-weight) 16px/1.5 Acumin, sans-serif; font-stretch: 115%; text-align: center; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; background: var(--paper); padding: .7rem 1rem; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.display { font: 900 clamp(26px, 3vw, 60px)/1.04 Acumin, sans-serif; font-stretch: 115%; letter-spacing: .005em; color: var(--text); }
.overline { font: 600 11px/1.4 Acumin, sans-serif; font-stretch: 115%; text-transform: uppercase; letter-spacing: .13em; }
.text-link { display: inline-block; margin-top: 28px; padding-bottom: 5px; border-bottom: 1px solid currentColor; font: 400 13px Acumin, sans-serif; font-stretch: 115%; text-transform: uppercase; letter-spacing: .06em; }

/* Comparsa "a scrittura" dei testi (write.js): lettere o parole compaiono una dopo l'altra. */
.write-word { white-space: nowrap; }
.write .write-unit { opacity: 0; }
.write.is-written .write-unit { opacity: 1; transition: opacity .55s var(--ease-out) calc(var(--write-offset, 0ms) + var(--i) * var(--write-step, 30ms)); }

/* Titoli animati al passaggio del cursore: le lettere (gia separate da write.js) si sollevano in sequenza. */
.display .write-unit, .project-caption h3 .write-unit, .filter-bar .write-unit { display: inline-block; }
@media (hover: hover) {
  .display:hover .write-unit, .category-card:hover .display .write-unit, .project-card:hover .project-caption h3 .write-unit, .filter-bar button:hover .write-unit, .filter-bar a:hover .write-unit { animation: letter-wave .7s var(--ease-out) calc(var(--i) * 28ms) both; }
}
@keyframes letter-wave { 0%, 100% { transform: translateY(0); } 40% { transform: translateY(-.16em); } }

/* Header: testo centrato a y 52, linea a y 90 */
.site-header { position: fixed; z-index: 50; top: 0; left: 0; width: 100%; height: var(--header); padding: clamp(4px, .875vw, 16px) var(--gutter) 0; display: flex; align-items: center; justify-content: space-between; color: #fff; background: linear-gradient(to bottom, rgba(20,20,20,.32), rgba(20,20,20,0)); transition: color var(--duration-fast), background var(--duration-fast); }
.site-header::after { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: currentColor; opacity: .75; }
.site-header.on-light, .site-header.menu-open { color: var(--ink); background: linear-gradient(to bottom, rgba(246,244,240,.6), rgba(246,244,240,0)); }
.site-header.on-light::after { opacity: .45; }
.site-header.on-split { color: var(--ink); background: none; }
.site-header.on-split .brand { color: #fff; }
.site-header.on-split::after { opacity: .45; }
.brand, .nav { font: 300 clamp(12px, 1.19vw, 22px)/1 Acumin, sans-serif; font-stretch: 115%; letter-spacing: .02em; text-transform: uppercase; }
.brand { display: flex; align-items: center; gap: .3em; white-space: nowrap; transition: color var(--duration-fast); }
.brand-logo { height: 1.25em; width: auto; margin-right: .45em; fill: currentColor; flex: none; }
.brand strong { font-weight: 900; }
.nav { display: flex; gap: clamp(14px, 2.25vw, 44px); align-items: center; }
.nav a { padding: 10px 0; }
.nav a:hover { opacity: .65; }
.nav a[aria-current], .nav a.is-active { font-weight: 900; }
.menu-toggle { display: none; }

/* Hero */
.hero { width: 100%; height: 100vh; height: 100svh; min-height: 560px; position: relative; overflow: hidden; background: #5e665b; color: white; }
.hero-poster, .hero-canvas, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-poster { object-fit: cover; }
.hero-canvas { opacity: 0; transition: opacity .2s; }
.hero-canvas.is-ready { opacity: 1; }
.hero-shade { background: linear-gradient(90deg, rgba(17,26,22,.5), rgba(17,26,22,.05) 65%), linear-gradient(0deg, rgba(17,26,22,.38), transparent 25%); pointer-events: none; }
.hero-content { position: absolute; left: var(--gutter); bottom: clamp(72px, 11vh, 130px); max-width: min(850px, 88%); text-align: left; }
.hero-content h1 { font: 900 clamp(32px, 3.4vw, 60px)/1.02 Acumin, sans-serif; font-stretch: 115%; margin: 0; max-width: 17ch; }
/* "Interior & Product Design" e "Scorri per esplorare" sulla stessa riga, stesso corpo. */
.hero-bottom { position: absolute; bottom: 36px; left: var(--gutter); right: var(--gutter); display: flex; justify-content: space-between; align-items: baseline; gap: 20px; font: 300 clamp(11px, .9vw, 15px)/1 Acumin, sans-serif; font-stretch: 115%; letter-spacing: .06em; text-transform: uppercase; }

/* About (tavole 02-03): pannello con bordo superiore inclinato e raccordato */
.hero-reveal { position: absolute; z-index: 5; left: 0; right: 0; bottom: 0; height: 150%; color: #333; visibility: hidden; background: url('/assets/panels/about-background.webp') center / cover no-repeat, #cfccc7; -webkit-mask: var(--reveal-mask) 0 0 / 100% 100% no-repeat; mask: var(--reveal-mask) 0 0 / 100% 100% no-repeat; }
.about-panel { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 66.667%; text-align: left; }
.about-portrait { position: absolute; left: -3vw; bottom: 0; height: 86%; width: auto; max-width: 45vw; object-fit: contain; object-position: left bottom; }
.about-copy { position: absolute; top: var(--header); bottom: 0; left: 42.6vw; right: 7.5vw; display: flex; flex-direction: column; justify-content: center; }
.about-copy .display { color: var(--text); }
.about-title { position: relative; padding-bottom: clamp(28px, 4.6vw, 90px); }
.about-title .display { position: relative; z-index: 2; }
.about-signature { position: absolute; z-index: 1; left: -.6vw; top: -1.7vw; width: 40vw; max-width: none; opacity: .8; pointer-events: none; }
.about-copy p { font: 400 clamp(15px, 1.15vw, 21px)/1.42 var(--serif); color: #333; max-width: 50vw; }
.about-copy p:first-of-type { margin-top: clamp(16px, 2.6vw, 50px); }
.about-copy p + p { margin-top: 1.2em; }
.about-page { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; background: url('/assets/panels/about-background.webp') center / cover no-repeat, #cfccc7; }
.about-page .about-panel { height: 100%; }

/* Services (tavole 04-05) */
/* Un solo fondo per le due pagine Services: il gradiente resta fermo mentre le due pagine scorrono al suo interno. */
.services { position: relative; color: #fff; background: #262626; }
.services-backdrop { position: sticky; top: 0; height: 100vh; height: 100svh; margin-bottom: -100vh; margin-bottom: -100svh; background: linear-gradient(180deg, #655c55 0%, #2e2c2a 50%, #262626 100%); }
.services-stage { position: relative; padding: clamp(100px, 10.8vw, 200px) var(--inset) clamp(40px, 4vw, 80px); }
@media (min-width: 768px) {
  /* Pagina Services unica: due versioni sovrapposte nello stage fisso; allo scorrimento testi e foto passano alla seconda. */
  .services-track { position: relative; }
  .services-track::after { content: ''; display: block; height: 100vh; height: 100svh; }
  .services-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: grid; clip-path: inset(var(--header) 0 0 0); }
  .services-pin > .services-stage { grid-area: 1 / 1; }
  .services-step { position: absolute; left: 0; top: 0; width: 1px; height: 100vh; height: 100svh; pointer-events: none; }
  .services-step + .services-step { top: 100vh; top: 100svh; }
  /* Lo stage riempie sempre lo schermo: le schede si allungano fino in fondo e la foto occupa lo spazio libero. */
  /* --u: unita di impaginazione = 1vw fino al 16:9, poi legata all'altezza; cosi sugli schermi ultra wide
     testi e schede si ridimensionano sull'altezza disponibile e la griglia resta centrata invece di uscire dallo schermo. */
  .services-pin { --u: min(1vw, 1.7778vh); }
  .services-pin > .services-stage { display: flex; flex-direction: column; min-height: 0; padding: calc(var(--header) + min(5 * var(--u), 7vh)) var(--inset) min(2.4 * var(--u), 4vh); }
  .services-pin .stage-heading .display { font-size: clamp(26px, 3 * var(--u), 60px); }
  .services-pin .stage-heading p { max-width: calc(52 * var(--u)); margin-top: clamp(10px, 1.3 * var(--u), 24px); font-size: clamp(15px, 1.15 * var(--u), 21px); }
  .services-pin .process-cards { flex: 1; min-height: 0; width: min(100%, 88.6 * var(--u)); margin: min(3.9 * var(--u), 5.5vh) auto 0; gap: calc(1.375 * var(--u)); }
  .services-pin .process-card { padding: calc(.875 * var(--u)) calc(.875 * var(--u)) min(1.6 * var(--u), 2.6vh); border-radius: clamp(12px, 1.25 * var(--u), 24px); }
  .services-pin .process-card-media { flex: 1; min-height: calc(6 * var(--u)); aspect-ratio: auto; border-radius: clamp(8px, .7 * var(--u), 14px); }
  .services-pin .process-card h3 { margin-top: min(1.85 * var(--u), 3vh); font-size: clamp(10px, .85 * var(--u), 16px); }
  .services-pin .process-card-text { flex: none; min-height: 0; padding-top: min(1 * var(--u), 1.6vh); }
  .services-pin .process-card-text p { font-size: clamp(11px, .9 * var(--u), 17px); }
  /* Passaggio Interior -> Product guidato dallo scroll (variabili impostate da site.js): il testo sfuma,
     le schede salgono con tutto il contenuto e da sotto arrivano quelle successive, poi compare il nuovo testo. */
  .services-stage:first-child .stage-heading { opacity: var(--text-out, 1); }
  .services-stage--next .stage-heading { opacity: var(--text-in, 0); }
  /* Le schede in uscita e in entrata si seguono a distanza costante (altezza della fila + 33vh) e spariscono sotto la linea dell'header. */
  .services-stage:first-child .process-cards { transform: translateY(calc(var(--slide, 0) * (-100% - 33vh))); }
  .services-stage--next .process-cards { transform: translateY(calc((1 - var(--slide, 0)) * (100% + 33vh))); }
  .services:not(.is-next) .services-stage--next, .services.is-next .services-stage:first-child { pointer-events: none; }
}
.services-step { display: none; }
@media (min-width: 768px) { .services-step { display: block; } }
.stage-heading .display { color: #fff; }
.stage-heading p { max-width: 52vw; margin: clamp(10px, 1.3vw, 24px) auto 0; font: 400 var(--serif-size)/1.2 var(--serif); }
.process-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.375vw; margin-top: clamp(32px, 3.9vw, 76px); }
.process-card { min-width: 0; display: flex; flex-direction: column; padding: .875vw .875vw clamp(18px, 2.6vw, 50px); border-radius: clamp(12px, 1.25vw, 24px); background: #f2f2f2; color: var(--ink); }
.process-card-media { aspect-ratio: 191 / 246; overflow: hidden; border-radius: clamp(8px, .7vw, 14px); background: #e6e5e0; }
.process-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease-out), filter .6s var(--ease-out); }
.process-card { transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out); }
@media (hover: hover) {
  .process-card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.28); }
  .process-card:hover .process-card-media img { transform: scale(1.07); filter: saturate(1.08) contrast(1.04); }
}
.process-card h3 { min-height: 3.45em; margin-top: clamp(14px, 1.85vw, 36px); font: 600 clamp(10px, .85vw, 16px)/1.15 Acumin, sans-serif; font-stretch: 115%; letter-spacing: .07em; text-transform: uppercase; }
.process-card-text { flex: 1; min-height: clamp(110px, 11.5vw, 220px); display: flex; align-items: center; justify-content: center; }
.process-card-text p { font: 400 clamp(12px, .9vw, 17px)/1.18 var(--serif); color: #4a4a4a; padding-inline: .2vw; }

/* Vision (tavola 06) */
.vision { --u: min(1vw, 1.7778vh); position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding: max(100px, 7.4 * var(--u)) var(--inset) max(16px, 2 * var(--u)); color: #fff; background: var(--shape-vision) 0 0 / 100% 100% no-repeat; }
.vision .display { color: #fff; font-size: clamp(26px, 3 * var(--u), 60px); }
.vision-copy { max-width: calc(54 * var(--u)); margin: clamp(18px, 2 * var(--u), 40px) auto 0; }
.vision-copy p { font: 400 clamp(15px, 1.15 * var(--u), 21px)/1.22 var(--serif); }
.vision-copy p + p { margin-top: 1.08em; }
/* Sedie dimensionate sull'altezza del riquadro: la seduta occupa il 96% dell'altezza e non viene mai tagliata. */
.seida-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(1.7 * var(--u)); width: min(100%, 92 * var(--u)); margin: auto auto 0; padding-top: clamp(20px, 2.5 * var(--u), 50px); }
.seida { position: relative; height: calc(17.5 * var(--u)); }
.seida img { position: absolute; left: 50%; top: 50%; height: 230%; width: auto; max-width: none; transform: translate(-47.5%, -58%); }

/* Sketch (tavola 07) */
.sketches { position: relative; height: 100vh; height: 100svh; min-height: 520px; overflow: hidden; display: grid; place-items: center; background: var(--shape-sketch-dark) 0 0 / 100% 100% no-repeat, var(--shape-sketch) 0 0 / 100% 100% no-repeat, var(--marble), #cec9c3; }
.sketches-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.sketches .display { position: relative; z-index: 1; font-size: clamp(32px, 3.8vw, 76px); }
.sketches .display .sketches-light { font-weight: 300; }

/* Categorie (tavola 08) */
/* --u: 1vw fino al 16:9, poi legata all'altezza (schermi ultra wide); contenuto centrato in verticale. */
.categories { --u: min(1vw, 1.7778vh); position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header) + 3vh) var(--inset) 5vh; background: var(--shape-categories) 0 0 / 100% 100% no-repeat, var(--paper-grain), var(--paper); }
.category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(1.94 * var(--u)); width: min(100%, 88.6 * var(--u)); margin-inline: auto; }
.category-frame { aspect-ratio: 450 / 364; border: 1px solid var(--ink); border-radius: clamp(18px, 1.9 * var(--u), 36px) clamp(18px, 1.9 * var(--u), 36px) 0 0; transition: background .5s var(--ease-out), transform .7s var(--ease-out); }
.category-card:hover .category-frame { background: rgba(255,255,255,.55); transform: translateY(-6px); }
.category-card .display { margin-top: clamp(18px, 2.5 * var(--u), 48px); font-size: clamp(26px, 3 * var(--u), 60px); }
.category-card p { max-width: calc(25 * var(--u)); margin: clamp(16px, 2.6 * var(--u), 50px) auto 0; font: 400 clamp(13px, .95 * var(--u), 18px)/1.2 var(--serif); color: #4a4a4a; }

/* Contact (tavola 09) */
.calling-stage { --u: min(1vw, 1.7778vh); height: 100vh; height: 100svh; min-height: 560px; position: relative; overflow: hidden; color: var(--ink); background: var(--shape-contact) 0 0 / 100% 100% no-repeat, var(--marble), var(--stone); }
/* Biglietto centrato sotto la punta della V; misure su --u, cosi resta proporzionato anche sugli schermi ultra wide. */
.calling-stage > img, .calling-stage > canvas { position: absolute; left: calc(50% - 36.75 * var(--u)); top: calc(74% - 20.67 * var(--u)); width: calc(73.5 * var(--u)); height: calc(41.34 * var(--u)); object-fit: contain; }
.calling-stage > canvas { opacity: 0; }
.calling-stage > img, .calling-stage > canvas { transform-origin: 50% 50%; transform: scale(var(--card-scale, 1)); }
.calling-stage > canvas.is-ready { opacity: 1; }
.calling-stage.sequence-ready > .calling-poster { visibility: hidden; }
.calling-stage::after { content: ''; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 1.7vw; height: 1px; background: var(--ink); opacity: .5; }
.calling-caption { position: relative; z-index: 2; padding: max(96px, 11 * var(--u, 1vw)) var(--gutter) 0; }
.calling-caption .display { font-size: clamp(26px, 3 * var(--u, 1vw), 60px); }
.calling-caption p { margin-top: clamp(14px, 1.6 * var(--u, 1vw), 30px); font-size: clamp(13px, 1.02 * var(--u, 1vw), 19px); font: var(--text-weight) var(--body-size)/1.2 Acumin, sans-serif; font-stretch: 115%; color: #3a3a3a; }

/* Griglia progetti (tavole 10-11) */
.project-outro, .archive, .project-detail { --u: min(1vw, 1.7778vh); min-height: 100vh; min-height: 100svh; padding: calc(var(--header) + 3.5vh) var(--inset) clamp(60px, 6 * var(--u), 120px); background: var(--paper-grain), var(--paper); }
.project-outro > *, .archive > *, .project-detail > * { width: min(100%, 88.6 * var(--u)); margin-inline: auto; }
.filter-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(1.94 * var(--u)); margin-bottom: clamp(36px, 6 * var(--u), 120px); }
.filter-bar button, .filter-bar a { justify-self: center; padding: 6px 0; background: none; border: 0; cursor: pointer; color: var(--text); font: 200 clamp(13px, 1.54 * var(--u, 1vw), 30px)/1 Acumin, sans-serif; font-stretch: 115%; letter-spacing: .04em; text-transform: uppercase; }
.filter-bar button:hover, .filter-bar a:hover { opacity: .8; }
.filter-bar button[aria-pressed="true"], .filter-bar a[aria-current] { font-weight: 900; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: calc(3.6 * var(--u, 1vw)) calc(1.94 * var(--u, 1vw)); }
.project-card, .project-slot { position: relative; display: block; aspect-ratio: 450 / 352; overflow: hidden; border: 1px solid var(--ink); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.project-card:hover img { transform: scale(1.04); }
.project-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; text-align: left; color: #fff; background: linear-gradient(to top, rgba(20,20,20,.62), rgba(20,20,20,0)); }
.project-caption h3 { font: 900 clamp(15px, 1.25 * var(--u, 1vw), 24px)/1.1 Acumin, sans-serif; font-stretch: 115%; }
.project-caption > span { display: block; margin-top: 6px; font: 300 11px/1 Acumin, sans-serif; font-stretch: 115%; letter-spacing: .12em; text-transform: uppercase; }
.empty-state { margin-top: 30px; font-size: var(--body-size); color: var(--text); }
.project-lead { max-width: calc(52 * var(--u, 1vw)); margin: clamp(10px, 1.2vw, 22px) auto 0; font: 400 var(--serif-size)/1.25 var(--serif); color: #3a3a3a; }
.project-meta { margin-top: 12px; font: 300 12px/1 Acumin, sans-serif; font-stretch: 115%; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.project-frame { width: 100%; border: 1px solid var(--ink); aspect-ratio: 1415 / 800; object-fit: cover; }
.project-cover { margin-top: clamp(36px, 5 * var(--u, 1vw), 100px); }
.project-detail > .display { font-size: clamp(26px, 3 * var(--u), 60px); }
.project-media { display: grid; gap: calc(3.6 * var(--u, 1vw)); margin-top: calc(3.6 * var(--u, 1vw)); }
.project-figure { margin: 0; }
.project-figure figcaption { margin-top: 12px; font-size: 13px; color: var(--text); }
.project-split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.94vw; align-items: center; }
.project-split .project-frame { aspect-ratio: 450 / 352; }
.project-split p, .project-statement { max-width: 32ch; margin: auto; font: 900 clamp(20px, 2vw, 38px)/1.15 Acumin, sans-serif; font-stretch: 115%; color: var(--text); }
.next-project { display: inline-block; margin-top: clamp(50px, 6vw, 110px); padding-bottom: 5px; border-bottom: 1px solid currentColor; font: 300 clamp(13px, 1.1vw, 20px)/1 Acumin, sans-serif; font-stretch: 115%; letter-spacing: .04em; text-transform: uppercase; }
.next-project strong { font-weight: 900; }

/* Pagina Contact statica */
.contact-page { position: relative; overflow: hidden; min-height: 100vh; min-height: 100svh; padding-bottom: clamp(50px, 5vw, 90px); background: var(--shape-contact) 0 0 / 100% clamp(560px, 56.25vw, 1080px) no-repeat, var(--marble), var(--stone); }
.contact-card { width: 73.5vw; margin: clamp(0px, 1vw, 20px) auto 0; }
.contact-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 40px; margin-top: -10vw; position: relative; font: 300 clamp(13px, 1.1vw, 20px)/1.4 Acumin, sans-serif; font-stretch: 115%; letter-spacing: .03em; }
.contact-links a { border-bottom: 1px solid currentColor; }

.page-heading { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: var(--header) var(--gutter) 0; background: var(--paper-grain), var(--paper); }

/* Footer */
.footer { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: clamp(50px, 5vw, 90px) var(--gutter) 28px; color: var(--text); text-align: left; background: var(--paper-grain), var(--paper); }
.footer::before { content: ''; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--ink); opacity: .45; }
.footer-name { display: flex; gap: .3em; font: 300 clamp(14px, 1.19vw, 22px)/1 Acumin, sans-serif; font-stretch: 115%; letter-spacing: .02em; }
.footer-name strong { font-weight: 900; }
.footer p { margin-top: 14px; font-size: 15px; }
.footer > div:nth-child(2) { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; font-size: 15px; }
.footer-bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 35px; padding-top: 22px; border-top: 1px solid rgba(38,38,38,.2); font: 300 11px/1.4 Acumin, sans-serif; font-stretch: 115%; letter-spacing: .12em; text-transform: uppercase; }

@media (max-width: 767px) {
  .site-header { padding-top: 0; }
  .brand { font-size: 13px; }
  .brand-logo { height: 1.4em; margin-right: .35em; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 42px; height: 42px; margin-right: -8px; padding: 8px; background: none; border: 0; color: inherit; cursor: pointer; }
  .menu-toggle span { width: 26px; height: 1px; background: currentColor; }
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--paper); color: var(--ink); padding: 10px var(--gutter) 30px; flex-direction: column; align-items: stretch; gap: 0; border-bottom: 1px solid rgba(38,38,38,.2); }
  .menu-open .nav { display: flex; }
  .menu-open.on-split .brand { color: var(--ink); }
  .nav a { padding: 15px 0; font-size: 16px; text-align: left; }
  .hero { min-height: 530px; }
  .hero-content { bottom: 80px; max-width: calc(100% - 2 * var(--gutter)); }
  .hero-content h1 { font-size: clamp(32px, 9vw, 54px); }
  .hero-bottom { bottom: 27px; }

  .about-panel { display: flex; flex-direction: column; justify-content: flex-end; }
  .hero-reveal { -webkit-mask-image: var(--reveal-mask-mobile); mask-image: var(--reveal-mask-mobile); }
  .about-copy { position: static; order: -1; flex: 1; justify-content: flex-start; padding: calc(var(--header) + 18px) var(--gutter) 12px; }
  .about-copy p { max-width: none; font-size: 16px; line-height: 1.4; }
  .about-copy p:first-of-type { margin-top: 18px; }
  .about-copy p + p { margin-top: .8em; }
  .about-signature { width: min(86vw, 420px); left: -6px; top: 4px; }
  .about-title { padding-bottom: 34px; }
  .about-portrait { position: static; height: min(30vh, 260px); max-width: 80vw; margin-left: -4vw; }

  .services-stage { padding: 100px var(--gutter) 60px; }
  .stage-heading p, .vision-copy, .project-lead { max-width: none; }
  .stage-heading p, .vision-copy p { font-size: 16px; line-height: 1.35; }
  .process-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
  .process-card { padding: 8px 8px 22px; }
  .process-card h3 { min-height: 0; margin: 14px 0 10px; font-size: 11px; }
  .process-card-text { min-height: 0; }
  .process-card-text p { font-size: 14px; line-height: 1.3; }

  .vision { padding: 100px var(--gutter) 30px; background-position: left bottom; background-size: 100% 110vw; }
  .seida { height: 34vw; }
  .sketches { height: 70svh; min-height: 420px; }
  .categories { padding: 110px var(--gutter) 70px; justify-content: flex-start; }
  .category-card .display { font-size: 30px; }
  .category-card p { max-width: 34ch; }
  .category-grid { grid-template-columns: 1fr; gap: 50px; }
  .category-card p { max-width: 34ch; font-size: 15px; }

  .calling-stage { min-height: 620px; }
  .calling-stage > img, .calling-stage > canvas { left: -52.5vw; width: 205vw; height: 115.3vw; top: calc(72% - 57.7vw); }
  .calling-caption { padding-top: 100px; }
  .calling-caption .display br { display: none; }

  .project-outro, .archive, .project-detail { padding: 96px var(--gutter) 70px; }
  .project-grid { grid-template-columns: 1fr; gap: 24px; }
  .project-split { grid-template-columns: 1fr; gap: 24px; }

  .contact-card { width: 205vw; max-width: none; margin-left: -52.5vw; margin-top: -10vw; }
  .contact-links { flex-direction: column; align-items: center; margin-top: -30vw; }
  .about-page { height: auto; min-height: 0; }
  .about-page .about-panel { position: relative; height: auto; }

  .footer { grid-template-columns: 1fr; gap: 24px; }
  .footer > div:nth-child(2) { align-items: flex-start; }
}

@media (max-width: 540px) {
  .hero-reveal .about-copy p:not(:first-of-type) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .hero { display: flow-root; height: auto; min-height: 100svh; overflow: visible; }
  .hero-poster, .hero-canvas, .hero-shade { height: 100svh; }
  .hero-reveal { position: relative; height: 100svh; margin-top: 100svh; visibility: visible; transform: none; -webkit-mask: none; mask: none; }
  .about-panel { height: 100%; }
}
