/* ============================================================
   AM LIVING — Restyling 2026
   Sistema editoriale B/N · Off-canvas navigation
   ============================================================ */

:root {
  --ink: #0A0A0A;
  --ink-2: #1A1A1A;
  --ink-soft: #2C2C2C;
  --ink-mute: rgba(10,10,10,0.55);
  --paper: #F4F2EC;
  --paper-2: #EDEAE2;
  --paper-3: #E4E0D6;
  --rule: #0A0A0A;
  --rule-soft: rgba(10, 10, 10, 0.12);
  --rule-softer: rgba(10, 10, 10, 0.06);

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;

  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(80px, 12vw, 80px);
  --max-w: 1480px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; font-size: inherit; color: inherit; background: transparent; border: 0; padding: 0; cursor: pointer; }
::selection { background: var(--ink); color: var(--paper); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow, .label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
}
.lede {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.35;
  letter-spacing: -0.005em;
}
.body {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.display, .display em { font-family: var(--serif); font-weight: 400; }
.display { font-size: clamp(32px, 4.5vw, 72px); line-height: 1.05; letter-spacing: -0.015em; }
.display em, .lede em { font-style: italic; }

/* ============================================================
   LAYOUT
   ============================================================ */
.shell {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding: var(--section-y) 0; position: relative; }

/* ============================================================
   HEADER · Off-canvas
   ============================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(244, 242, 236, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--rule-soft);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.site-header.over-dark {
  background: rgba(10, 10, 10, 0.55);
  color: var(--paper);
  border-bottom-color: rgba(244, 242, 236, 0.15);
}
.site-header.over-dark .menu-btn .bars span { background: var(--paper); }
.site-header.over-dark .brand-mark { filter: invert(1) brightness(1.4); }
.site-header.over-dark .quick { color: rgba(244,242,236,0.75); }
.site-header.over-dark .cta-pill { border-color: var(--paper); color: var(--paper); }
.site-header.over-dark .cta-pill:hover { background: var(--paper); color: var(--ink); }

.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  padding: 18px var(--gutter);
}

.menu-btn {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  padding: 8px 4px 8px 0;
}
.menu-btn .bars {
  width: 28px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.menu-btn .bars span {
  display: block;
  height: 1.5px;
  background: var(--ink);
  transition: width 0.35s var(--ease), transform 0.35s var(--ease), background 0.4s var(--ease);
}
.menu-btn .bars span:nth-child(1) { width: 100%; }
.menu-btn .bars span:nth-child(2) { width: 70%; align-self: flex-end; }
.menu-btn .bars span:nth-child(3) { width: 85%; }
.menu-btn:hover .bars span:nth-child(2),
.menu-btn:hover .bars span:nth-child(3) { width: 100%; }
.menu-btn .menu-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.brand {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  height: 69px;
  width: auto;
  display: block;
  transition: filter 0.4s var(--ease);
}

.header-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-right .quick {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 0;
  transition: color 0.3s var(--ease);
}
.header-right .quick:hover { color: var(--ink); }
.header-right .cta-pill {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 12px 20px;
  border: 1px solid currentColor;
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.header-right .cta-pill:hover { background: var(--ink); color: var(--paper); }

/* spacer so content doesn't go under fixed header */
.header-spacer { height: 82px; }

/* ============================================================
   OFF-CANVAS MENU
   ============================================================ */
.offcanvas-menu {
  position: fixed;
  inset: 0;
  background: var(--ink);
  color: var(--paper);
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
  overflow-y: auto;
}
.offcanvas-menu.is-open { opacity: 1; pointer-events: auto; }

.offcanvas-inner {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: 28px var(--gutter) 48px;
}

.offcanvas-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(244,242,236,0.15);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,242,236,0.6);
}
.offcanvas-top .ocb-mark img {
  height: 36px;
  filter: invert(1) brightness(1.4);
}
.offcanvas-close {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  color: var(--paper);
  transition: opacity 0.2s var(--ease);
}
.offcanvas-close:hover { opacity: 0.7; }
.offcanvas-close .x { font-size: 22px; line-height: 1; font-family: var(--sans); font-weight: 300; }

.offcanvas-body {
  flex: 1;
  display: grid;
  grid-template-columns: 2.2fr 1fr;
  gap: 80px;
  padding: clamp(40px, 8vh, 80px) 0;
  align-items: start;
}

.offcanvas-list {
  display: flex;
  flex-direction: column;
}

/* shared big serif link (top-level entries + group parents) */
.offcanvas-list > a,
.oc-parent-link {
  font-family: var(--serif);
  font-size: clamp(34px, 6.2vw, 84px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--paper);
  padding: 14px 0;
  display: flex;
  align-items: baseline;
  gap: 26px;
  transition: padding 0.4s var(--ease), color 0.3s var(--ease);
}
.offcanvas-list > a { border-bottom: 1px solid rgba(244,242,236,0.12); }
.offcanvas-list > a:hover,
.oc-parent-link:hover { padding-left: 26px; }
.offcanvas-list > a .n,
.oc-parent-link .n {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(244,242,236,0.4);
  width: 32px;
  flex-shrink: 0;
}
.offcanvas-list > a:hover .n,
.oc-parent-link:hover .n { color: var(--paper); }
.offcanvas-list > a em,
.oc-parent-link em { font-style: italic; }
.offcanvas-list > a.is-active .n::before,
.oc-group.is-active .oc-parent-link .n::before {
  content: "→ "; color: var(--paper);
}

/* entrance stagger — direct children (links + groups) */
.offcanvas-list > a,
.offcanvas-list > .oc-group {
  opacity: 0;
  transform: translateY(20px);
}
.offcanvas-menu.is-open .offcanvas-list > a,
.offcanvas-menu.is-open .offcanvas-list > .oc-group {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.offcanvas-menu.is-open .offcanvas-list > *:nth-child(1) { transition-delay: 0.05s; }
.offcanvas-menu.is-open .offcanvas-list > *:nth-child(2) { transition-delay: 0.10s; }
.offcanvas-menu.is-open .offcanvas-list > *:nth-child(3) { transition-delay: 0.15s; }
.offcanvas-menu.is-open .offcanvas-list > *:nth-child(4) { transition-delay: 0.20s; }
.offcanvas-menu.is-open .offcanvas-list > *:nth-child(5) { transition-delay: 0.25s; }
.offcanvas-menu.is-open .offcanvas-list > *:nth-child(6) { transition-delay: 0.30s; }

/* group with submenu */
.oc-group { border-bottom: 1px solid rgba(244,242,236,0.12); }
.oc-parent-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.oc-parent-link { flex: 1; }
.oc-toggle {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border: 1px solid rgba(244,242,236,0.25);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  cursor: pointer;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
  position: relative;
}
.oc-toggle:hover { border-color: var(--paper); }
.oc-toggle::before,
.oc-toggle::after {
  content: "";
  position: absolute;
  background: currentColor;
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}
.oc-toggle::before { width: 14px; height: 1.5px; }   /* horizontal */
.oc-toggle::after  { width: 1.5px; height: 14px; }   /* vertical */
.oc-group.is-expanded .oc-toggle {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.oc-group.is-expanded .oc-toggle::after { transform: scaleY(0); opacity: 0; }

/* submenu panel */
.oc-sub {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.oc-group.is-expanded .oc-sub { grid-template-rows: 1fr; }
.oc-sub-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.oc-sub-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 40px;
  padding: 8px 0 24px 58px;
}
.oc-sub-list.single { grid-template-columns: 1fr; }
.oc-sub-list a {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid rgba(244,242,236,0.08);
  font-family: var(--sans);
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: rgba(244,242,236,0.8);
  transition: padding 0.3s var(--ease), color 0.25s var(--ease);
}
.oc-sub-list a:hover { color: var(--paper); padding-left: 10px; }
.oc-sub-list a .sn {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(244,242,236,0.35);
  width: 22px;
  flex-shrink: 0;
}
.oc-sub-list a:hover .sn { color: rgba(244,242,236,0.7); }
.oc-sub-list a em { font-style: italic; font-family: var(--serif); font-size: 1.15em; }

.offcanvas-side {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding-top: 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease) 0.4s, transform 0.6s var(--ease) 0.4s;
}
.offcanvas-menu.is-open .offcanvas-side { opacity: 1; transform: translateY(0); }
.offcanvas-side h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244,242,236,0.5);
  margin: 0 0 12px;
  font-weight: 500;
}
.offcanvas-side p, .offcanvas-side a {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: rgba(244,242,236,0.85);
}
.offcanvas-side a { display: block; }
.offcanvas-side a:hover { color: var(--paper); }
.offcanvas-side .social-row { display: flex; gap: 16px; }
.offcanvas-side .social-row a { display: inline; }

.offcanvas-foot {
  display: flex;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(244,242,236,0.15);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,242,236,0.4);
}

body.menu-open { overflow: hidden; }

/* ============================================================
   HERO · Slider (video + 2 images)
   ============================================================ */
.hero-slider {
  position: relative;
  height: 100vh;
  min-height: 620px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  margin-top: -82px; /* sit under fixed header */
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  pointer-events: none;
}
.hero-slide.is-active { opacity: 1; pointer-events: auto; }

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.hero-media img,
.hero-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--focus, 50% 50%);
  transform-origin: var(--focus, 50% 50%);   /* il ken burns zooma sul soggetto */
  transform: scale(1.05);
  animation: kenburns 18s var(--ease-soft) infinite alternate;
}
.hero-slide:not(.is-active) .hero-media img,
.hero-slide:not(.is-active) .hero-media video { animation: none; }
@keyframes kenburns {
  0%   { transform: scale(1.05) translate(0, 0); }
  100% { transform: scale(1.14) translate(-2%, -1.5%); }
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10,10,10,0.4) 0%, rgba(10,10,10,0.15) 35%, rgba(10,10,10,0.65) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 0 var(--gutter);
  padding-top: 120px;
  padding-bottom: 100px;
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-content .eyebrow {
  color: rgba(244,242,236,0.7);
  margin-bottom: 28px;
}
.hero-content h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 9vw, 140px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  font-weight: 400;
  max-width: 14ch;
}
.hero-content h1 em { font-style: italic; }
.hero-content .hero-sub {
  margin-top: 26px;
  max-width: 480px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.5vw, 22px);
  line-height: 1.4;
  color: rgba(244,242,236,0.85);
}


.hero-meta {
  position: absolute;
  top: 100px;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 3;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,242,236,0.6);
  pointer-events: none;
}

.hero-controls {
  position: absolute;
  bottom: 32px;
  left: var(--gutter);
  right: var(--gutter);
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  pointer-events: none;
}
.hero-dots {
  display: flex;
  gap: 18px;
  pointer-events: auto;
}
.hero-dot {
  position: relative;
  width: 56px;
  height: 30px;
  cursor: pointer;
  background: transparent;
  border: 0;
  padding: 0;
}
.hero-dot::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 50%;
  height: 1px;
  background: rgba(244,242,236,0.3);
  transform: translateY(-50%);
}
.hero-dot::after {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 0;
  height: 1px;
  background: var(--paper);
  transform: translateY(-50%);
  transition: width 0.5s var(--ease);
}
.hero-dot.is-active::after { width: 100%; transition: width 5.5s linear; }
.hero-dot .dot-num {
  position: absolute;
  bottom: -16px;
  left: 0;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(244,242,236,0.5);
}
.hero-dot.is-active .dot-num { color: var(--paper); }

.hero-scroll {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,242,236,0.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
}
.hero-scroll .line {
  width: 1px;
  height: 36px;
  background: rgba(244,242,236,0.3);
  position: relative;
  overflow: hidden;
}
.hero-scroll .line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--paper);
  animation: scroll-cue 2.4s var(--ease) infinite;
}
@keyframes scroll-cue {
  0% { top: -100%; }
  60% { top: 100%; }
  100% { top: 100%; }
}

/* ============================================================
   INTRO STRIP / MANIFESTO
   ============================================================ */
.intro-strip {
  padding: clamp(80px, 12vw, 80px) 0;
  border-bottom: 1px solid var(--rule-soft);
}
.intro-strip .top-meta {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 40px;
}
.intro-strip .top-meta .body { max-width: 380px; }
.intro-strip .display { max-width: 18ch; }

/* ============================================================
   SECTION HEAD
   ============================================================ */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px;
  align-items: end;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 56px;
}
.section-head .left {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 88px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.section-head h2 em { font-style: italic; }
.section-head .right .body, .section-head .right .lede { max-width: 56ch; }
.section-head .index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ============================================================
   SERVIZI · griglia asimmetrica
   ============================================================ */
.servizi-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.5vw, 36px) clamp(20px, 2vw, 28px);
}

.serv-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  cursor: pointer;
}
.serv-card .frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-3);
  width: 100%;
}
.serv-card .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-soft);
}
.serv-card:hover .frame img { transform: scale(1.05); }
.serv-card .frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,10,10,0.25));
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.serv-card:hover .frame::after { opacity: 1; }

.serv-card .meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.serv-card .arrow {
  transition: transform 0.35s var(--ease);
}
.serv-card:hover .arrow { transform: translateX(6px); }
.serv-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(22px, 1.9vw, 30px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.serv-card h3 em { font-style: italic; }
.serv-card p { margin: 0; max-width: 42ch; }

.serv-card.big   { grid-column: span 7; }
.serv-card.med   { grid-column: span 5; }
.serv-card.small { grid-column: span 4; }
.serv-card.wide  { grid-column: span 8; }

.serv-card.big   .frame { aspect-ratio: 4/3; }
.serv-card.med   .frame { aspect-ratio: 4/5; margin-top: 60px; }
.serv-card.small .frame { aspect-ratio: 4/5; }
.serv-card.wide  .frame { aspect-ratio: 16/9; }

/* ============================================================
   BEFORE / AFTER · slider variant only
   ============================================================ */
.ba-section {
  background: var(--ink);
  color: var(--paper);
  padding: var(--section-y) 0;
}
.ba-section .section-head { border-bottom-color: rgba(244,242,236,0.18); }
.ba-section .section-head .body,
.ba-section .section-head .lede { color: rgba(244,242,236,0.85); }

.ba-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 56px);
}

.ba-frame {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: #1a1a1a;
  user-select: none;
  cursor: ew-resize;
  touch-action: none;
}
.ba-frame .layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ba-frame .layer img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-frame .layer.after {
  clip-path: inset(0 calc(100% - var(--ba-pos, 50%)) 0 0);
}
.ba-frame .ba-label {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 6;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(10,10,10,0.75);
  color: var(--paper);
  padding: 8px 12px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ba-frame .ba-label.is-after {
  left: auto;
  right: 18px;
  background: rgba(244,242,236,0.9);
  color: var(--ink);
}

.ba-frame .handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--ba-pos, 50%);
  width: 1px;
  background: var(--paper);
  z-index: 7;
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-frame .handle::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--paper);
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}
.ba-frame .handle::after {
  content: "‹    ›";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.ba-frame .ba-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: rgba(244,242,236,0.85);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s var(--ease);
}
.ba-frame.has-moved .ba-hint { opacity: 0; }

.ba-cap {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244,242,236,0.7);
}

/* ============================================================
   BEFORE/AFTER — multi-variant stack
   ============================================================ */
.ba-row {
  padding: clamp(40px, 6vw, 80px) 0;
  border-top: 1px solid rgba(244,242,236,0.15);
}
.ba-row:first-of-type { border-top: 1px solid rgba(244,242,236,0.18); margin-top: 20px; }
.ba-row-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.ba-row-head .left {
  display: flex; flex-direction: column; gap: 14px;
}
.ba-row-head .row-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,242,236,0.55);
}
.ba-row-head .row-num strong {
  color: var(--paper);
  font-weight: 500;
  margin-left: 12px;
}
.ba-row-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3.4vw, 48px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  font-weight: 400;
}
.ba-row-head h3 em { font-style: italic; }
.ba-row-head .row-desc {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  color: rgba(244,242,236,0.75);
  max-width: 56ch;
  margin: 0;
}
.ba-row-head .row-desc strong {
  color: var(--paper);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.ba-frame-wide {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1a1a1a;
  user-select: none;
}
.ba-frame-wide .layer {
  position: absolute; inset: 0;
}
.ba-frame-wide .layer img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.ba-frame-wide .ba-label {
  position: absolute;
  top: 18px; left: 18px;
  z-index: 6;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: rgba(10,10,10,0.75);
  color: var(--paper);
  padding: 9px 14px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.ba-frame-wide .ba-label.is-after {
  left: auto; right: 18px;
  background: rgba(244,242,236,0.9);
  color: var(--ink);
}

/* Variant 01 — HOLD */
.ba-frame-wide.var-hold { cursor: pointer; }
.ba-frame-wide.var-hold .after {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.55s var(--ease);
}
.ba-frame-wide.var-hold.is-revealed .after {
  clip-path: inset(0 0 0 0);
}
.ba-frame-wide.var-hold .hold-hint {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: rgba(244,242,236,0.92);
  color: var(--ink);
  padding: 11px 22px;
  border-radius: 999px;
  display: flex; align-items: center; gap: 10px;
  pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.ba-frame-wide.var-hold.is-revealed .hold-hint {
  opacity: 0;
  transform: translateX(-50%) translateY(10px);
}
.hold-hint .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
  animation: pulse-hold 1.5s var(--ease) infinite;
}
@keyframes pulse-hold {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.4; }
}

/* Variant 02 — FADE */
.ba-frame-wide.var-fade .after {
  opacity: 0;
  transition: opacity 1.4s var(--ease);
}
.ba-frame-wide.var-fade.is-after .after { opacity: 1; }
.ba-frame-wide.var-fade .progress-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: var(--paper);
  z-index: 6;
  width: 0;
  animation: progress-bar 4s linear infinite;
}
@keyframes progress-bar {
  0%   { width: 0; }
  50%  { width: 100%; }
  50.01% { width: 0; }
  100% { width: 100%; }
}

/* Variant 03 — SCROLL */
.ba-frame-wide.var-scroll .after {
  clip-path: inset(var(--scroll-mask, 100%) 0 0 0);
}
.ba-frame-wide.var-scroll .scroll-marker {
  position: absolute;
  left: 0; right: 0;
  height: 1px;
  background: var(--paper);
  top: var(--scroll-marker, 100%);
  z-index: 6;
  pointer-events: none;
  mix-blend-mode: difference;
}
.ba-frame-wide.var-scroll .scroll-marker::after {
  content: "";
  position: absolute;
  right: 18px; top: -4px;
  width: 9px; height: 9px;
  background: var(--paper);
  border-radius: 50%;
}
.ba-frame-wide.var-scroll .scroll-tag {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: rgba(244,242,236,0.92);
  color: var(--ink);
  padding: 11px 22px;
  border-radius: 999px;
  pointer-events: none;
}

/* Variant 04 — SLIDER (wide layout) */
.ba-frame-wide.var-slider { cursor: ew-resize; touch-action: none; }
.ba-frame-wide.var-slider .after {
  clip-path: inset(0 calc(100% - var(--ba-pos, 50%)) 0 0);
}
.ba-frame-wide.var-slider .handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--ba-pos, 50%);
  width: 1px;
  background: var(--paper);
  z-index: 7;
  transform: translateX(-50%);
  pointer-events: none;
}
.ba-frame-wide.var-slider .handle::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--paper);
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 40px rgba(0,0,0,0.55);
}
.ba-frame-wide.var-slider .handle::after {
  content: "‹    ›";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.ba-frame-wide.var-slider .slider-hint {
  position: absolute;
  bottom: 22px; left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: rgba(244,242,236,0.92);
  color: var(--ink);
  padding: 11px 22px;
  border-radius: 999px;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.4s var(--ease);
}
.ba-frame-wide.var-slider.has-moved .slider-hint { opacity: 0; }

@media (max-width: 980px) {
  .ba-row-head { grid-template-columns: 1fr; gap: 16px; }
  .ba-frame-wide { aspect-ratio: 4/3; }
}

/* ============================================================
   OPERE PREVIEW
   ============================================================ */
.opere-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2vw, 36px);
}
.opera-card { cursor: pointer; }
.opera-card .frame {
  aspect-ratio: 3/4;
  background: var(--paper-3);
  overflow: hidden;
}
.opera-card .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-soft);
}
.opera-card:hover .frame img { transform: scale(1.05); }
.opera-card .info {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 20px;
  border-top: 1px solid var(--rule-soft);
  margin-top: 18px;
  gap: 16px;
}
.opera-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 1.9vw, 30px);
  line-height: 1.05;
  font-weight: 400;
}
.opera-card .specs {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: right;
  white-space: nowrap;
}

/* ============================================================
   LIGHTBOX
   ============================================================ */
.opera-card .frame { cursor: zoom-in; }
.opera-museum .gallery > div { cursor: zoom-in; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.lightbox.is-open { opacity: 1; pointer-events: auto; }
.lb-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 8, 8, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  cursor: zoom-out;
}
.lb-figure {
  position: relative;
  z-index: 2;
  margin: 0;
  width: min(92vw, 1200px);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
}
.lb-img-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  min-height: 0;
}
.lb-img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #1a1a1a;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
  opacity: 0;
  transform: scale(0.985);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.lb-img.is-loaded { opacity: 1; transform: scale(1); }

.lb-caption {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  padding-top: 18px;
  border-top: 1px solid rgba(244,242,236,0.2);
  color: var(--paper);
}
.lb-cap-left { display: flex; flex-direction: column; gap: 8px; }
.lb-counter {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244,242,236,0.6);
}
.lb-title {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1;
  font-weight: 400;
}
.lb-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244,242,236,0.75);
  text-align: right;
  max-width: 40ch;
  line-height: 1.6;
}

.lb-close {
  position: absolute;
  top: 28px; right: 32px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.25s var(--ease);
}
.lb-close:hover { opacity: 0.65; }
.lb-close .lb-x { font-size: 26px; line-height: 1; font-family: var(--sans); font-weight: 300; }

.lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 60px; height: 60px;
  border: 1px solid rgba(244,242,236,0.25);
  border-radius: 50%;
  color: var(--paper);
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.lb-nav:hover { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.lb-prev { left: 28px; }
.lb-next { right: 28px; }

@media (max-width: 640px) {
  .lb-close { top: 18px; right: 20px; }
  .lb-close span:not(.lb-x) { display: none; }
  .lb-nav { width: 46px; height: 46px; font-size: 24px; }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
  .lb-caption { flex-direction: column; align-items: flex-start; gap: 10px; }
  .lb-meta { text-align: left; }
  .lb-img { max-height: 64vh; }
}

/* ============================================================
   LINKS / SOCIAL
   ============================================================ */
.links-strip {
  background: var(--paper-2);
  padding: var(--section-y) 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.links-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--rule);
}
.link-row {
  border-bottom: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
  cursor: pointer;
}
.link-row:nth-child(5n) { border-right: 0; }
.link-row:hover { background: var(--ink); color: var(--paper); }
.link-row .label-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.65;
}
.link-row .channel {
  font-family: var(--serif);
  font-size: clamp(28px, 2.6vw, 40px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.link-row .channel em { font-style: italic; }
.link-row .handle {
  font-family: var(--sans);
  font-size: 13px;
  margin-top: 8px;
  opacity: 0.75;
}

/* ============================================================
   FOOTER / CONTATTI
   ============================================================ */
.contatti {
  background: var(--ink);
  color: var(--paper);
  padding: clamp(80px, 12vw, 160px) 0 60px;
}
.contatti .top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  border-bottom: 1px solid rgba(244,242,236,0.18);
  padding-bottom: 80px;
}
.contatti h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 6.5vw, 110px);
  line-height: 0.94;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.contatti h2 em { font-style: italic; }
.contatti .col h4 {
  margin: 0 0 16px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244,242,236,0.5);
  font-weight: 500;
}
.contatti .col p, .contatti .col a {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.65;
  color: rgba(244,242,236,0.85);
  display: block;
  margin: 0;
}
.contatti .col a:hover { color: var(--paper); text-decoration: underline; }
.contatti .bottom {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(244,242,236,0.5);
}
.contatti-mark {
  height: 60px;
  filter: invert(1) brightness(1.4);
  margin-bottom: 36px;
}

/* ============================================================
   PAGE HERO (interior pages)
   ============================================================ */
.page-hero {
  padding-top: 140px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--rule);
}
.page-hero .breadcrumb {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 60px;
}
.page-hero .breadcrumb a:hover { color: var(--ink); }
.page-hero .breadcrumb .sep { margin: 0 12px; opacity: 0.5; }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: end;
}
.page-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(56px, 9vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  font-weight: 400;
}
.page-hero h1 em { font-style: italic; }

.page-hero h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 9vw, 84px);
  line-height: 0.92;
  letter-spacing: -0.025em;
  font-weight: 400;
}
.page-hero h2 em { font-style: italic; }

.page-hero .meta-stack { display: flex; flex-direction: column; gap: 32px; }
.page-hero .lede { max-width: 56ch; }
.page-hero .meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--rule-soft);
}
.page-hero .meta-grid .label {
  color: var(--ink-soft);
  margin-bottom: 6px;
  display: block;
}
.page-hero .meta-grid strong {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  font-weight: 400;
}
.page-hero-image {
  width: 100%;
  aspect-ratio: 21/9;
  overflow: hidden;
  position: relative;
}
.page-hero-image img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  animation: kenburns 18s var(--ease-soft) infinite alternate;
}

/* ============================================================
   PROJECT GRID (portfolio page)
   ============================================================ */
.proj-grid { padding: var(--section-y) 0; }
.proj-row {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 2.5vw, 36px) clamp(20px, 2vw, 28px);
  margin-bottom: clamp(60px, 9vw, 140px);
}
.proj-row.layout-a .proj-frame:nth-child(1) { grid-column: span 8; aspect-ratio: 4/3; }
.proj-row.layout-a .proj-frame:nth-child(2) { grid-column: span 4; aspect-ratio: 3/4; align-self: end; }
.proj-row.layout-b .proj-frame:nth-child(1) { grid-column: span 5; aspect-ratio: 3/4; }
.proj-row.layout-b .proj-frame:nth-child(2) { grid-column: span 7; aspect-ratio: 4/3; align-self: end; }
.proj-row.layout-c .proj-frame:nth-child(1) { grid-column: 2 / span 9; aspect-ratio: 16/9; }
.proj-frame {
  position: relative;
  overflow: hidden;
  background: var(--paper-3);
}
.proj-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease-soft);
}
.proj-frame:hover img { transform: scale(1.05); }
.proj-frame .frame-cap {
  position: absolute;
  bottom: 18px; left: 18px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: rgba(244,242,236,0.9);
  color: var(--ink);
  padding: 8px 12px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.proj-frame:hover .frame-cap { opacity: 1; transform: translateY(0); }

.proj-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  padding-top: clamp(40px, 5vw, 80px);
  align-items: start;
}
.proj-detail h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  font-weight: 400;
}
.proj-detail h3 em { font-style: italic; }
.proj-detail .num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  display: block;
  margin-bottom: 14px;
}

/* ============================================================
   OPERA · museum card
   ============================================================ */
.opera-museum {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 6vw, 100px);
  padding: clamp(60px, 8vw, 120px) 0;
  border-top: 1px solid var(--rule);
}
.opera-museum:last-of-type { border-bottom: 1px solid var(--rule); }
.opera-museum .info {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: start;
}
.opera-museum .index {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.opera-museum h3 {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(36px, 4vw, 64px);
  line-height: 1;
  font-weight: 400;
}
.opera-museum .specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.opera-museum .specs strong {
  display: block;
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  margin-top: 6px;
  color: var(--ink);
}
.opera-museum .body { max-width: 56ch; }
.opera-museum .gallery {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.opera-museum .gallery .main { grid-column: span 6; aspect-ratio: 4/3; overflow: hidden; }
.opera-museum .gallery .sub { grid-column: span 3; aspect-ratio: 1/1; overflow: hidden; }
.opera-museum .gallery > div { background: var(--paper-3); position: relative; }
.opera-museum .gallery > div img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-soft);
}
.opera-museum .gallery > div:hover img { transform: scale(1.05); }
.opera-museum .actions { display: flex; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.opera-museum .btn-info {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  padding: 14px 22px;
  border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.opera-museum .btn-info:hover { background: var(--ink); color: var(--paper); }
.opera-museum .btn-info.ghost {
  border-color: var(--rule-soft);
  color: var(--ink-soft);
}
.opera-museum .btn-info.ghost:hover {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}

/* ============================================================
   ABOUT page
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  padding: var(--section-y) 0;
}
.about-portrait {
  aspect-ratio: 4/5;
  overflow: hidden;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-text { display: flex; flex-direction: column; gap: 28px; }
.about-text h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 5.5vw, 84px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-weight: 400;
}
.about-text h2 em { font-style: italic; }
.about-text p {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 56ch;
}
.about-text .pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.35;
  color: var(--ink);
  border-left: 1px solid var(--ink);
  padding-left: 24px;
  margin: 18px 0;
  max-width: 30ch;
}

/* ============================================================
   CONTATTI page form
   ============================================================ */
.form-section {
  background: var(--paper);
  padding: var(--section-y) 0;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.form-grid .form-aside h3 {
  margin: 0 0 24px;
  font-family: var(--serif);
  font-size: clamp(32px, 3.5vw, 52px);
  line-height: 1;
  letter-spacing: -0.015em;
  font-weight: 400;
}
.form-grid .form-aside h3 em { font-style: italic; }
.form-grid .form-aside .body { max-width: 38ch; }
.form-grid .form-aside .label-block {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--rule-soft);
  display: flex; flex-direction: column; gap: 22px;
}
.form-grid .form-aside .label-block h5 {
  margin: 0 0 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.form-grid .form-aside .label-block p, .form-grid .form-aside .label-block a {
  margin: 0;
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.55;
}

.contact-form { display: flex; flex-direction: column; gap: 26px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.contact-form .field { display: flex; flex-direction: column; gap: 8px; }
.contact-form label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.contact-form input, .contact-form select, .contact-form textarea {
  font-family: var(--sans);
  font-size: 16px;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color 0.25s var(--ease);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-bottom-color: var(--ink);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form .submit-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
}
.contact-form .privacy {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-soft);
  max-width: 36ch;
  line-height: 1.5;
}
.contact-form button[type="submit"] {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 18px 36px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.25s var(--ease);
  white-space: nowrap;
}
.contact-form button[type="submit"]:hover { background: #2A2A2A; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .header-inner { grid-template-columns: auto 1fr auto; }
  .brand { justify-self: center; }
  .header-right .quick { display: none; }
  .menu-btn .menu-label { display: none; }
  .offcanvas-body { grid-template-columns: 1fr; gap: 40px; padding: 30px 0; }
  .oc-sub-list { grid-template-columns: 1fr; }
  .offcanvas-side { padding-top: 20px; border-top: 1px solid rgba(244,242,236,0.15); }
  .hero-content h1 { font-size: clamp(40px, 12vw, 80px); }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .servizi-grid { grid-template-columns: repeat(6, 1fr); }
  .serv-card.big, .serv-card.med, .serv-card.small, .serv-card.wide { grid-column: span 6; }
  .serv-card.med .frame { margin-top: 0; }
  .ba-stage { grid-template-columns: 1fr; gap: 40px; }
  .opere-strip { grid-template-columns: 1fr 1fr; }
  .links-list { grid-template-columns: 1fr 1fr; }
  .link-row:nth-child(2n) { border-right: 0; }
  .link-row:nth-child(odd) { border-right: 1px solid var(--rule); }
  .contatti .top { grid-template-columns: 1fr; gap: 40px; }
  .page-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .proj-row { grid-template-columns: 1fr; }
  .proj-row .proj-frame { grid-column: 1 / -1 !important; }
  .opera-museum { grid-template-columns: 1fr; }
  .opera-museum .info { position: static; }
  .proj-detail { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-form .row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .header-inner { padding: 14px var(--gutter); }
  .brand-mark { height: 34px; }
  .header-right .cta-pill { padding: 10px 16px; font-size: 9px; }
  .header-spacer { height: 70px; }
  .hero-slider { margin-top: -70px; }
  .hero-content { padding-top: 100px; padding-bottom: 90px; }
  .hero-meta { top: 88px; }
  .opere-strip { grid-template-columns: 1fr; }
  .links-list { grid-template-columns: 1fr; }
  .link-row, .link-row:nth-child(odd) { border-right: 0; }
  .offcanvas-list > a, .oc-parent-link { font-size: 10vw; padding: 10px 0; }
  .oc-sub-list { grid-template-columns: 1fr; padding-left: 44px; }
  .oc-sub-list a { font-size: 16px; }
  .offcanvas-inner { padding-top: 24px; }
}

@media (max-width: 640px) {
  .hero-media img,
  .hero-media video {
    object-position: var(--focus-m, var(--focus, 50% 50%));
    transform-origin: var(--focus-m, var(--focus, 50% 50%));
    animation-name: kenburns-m;   /* niente translate: il soggetto non "scivola" fuori */
  }
}

@keyframes kenburns-m {
  0%   { transform: scale(1.04); }
  100% { transform: scale(1.10); }
}
