/*
  Cinzia Latorre — Site Stylesheet
  Structure based on Lumen Eighty template (TemplateMo 628)
  Adapted: DM Sans only, rounded corners, yellow/teal palette
*/

/* ============ TOKENS ============ */
:root {
  --bg: #FFFFFF;
  --surface: #FAF8F2;
  --surface-dim: #1c2729;
  --ink: #1c2729;
  --muted: #5a6863;
  --primary: #ffb300;
  --teal: #00555a;
  --on-primary: #1c2729;
  --on-dark: #e0ddd6;
  --on-dark-dim: #a8a49c;
  --border: rgba(28,39,41,0.12);
  --border-light: rgba(28,39,41,0.07);
  --primary-tint: rgba(255,201,75,0.12);
  --teal-tint: rgba(0,85,90,0.06);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'DM Sans', system-ui, sans-serif;
  --header-h: 68px;
  --radius: 12px;
  --radius-lg: 20px;
  --pad: clamp(20px,5vw,64px);
  --wrap: 1240px;
}

/* ============ RESET ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration: none; transition: color 0.4s var(--ease); }
a:hover { color: var(--ink); }
button { font-family: var(--font); cursor: pointer; }
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 4px; }

.container { width: min(var(--wrap), 92%); margin: 0 auto; }

/* ============ TYPOGRAPHY ============ */
.editorial-title {
  font-family: var(--font);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  line-height: 0.9;
}
.editorial-accent { font-weight: 900; font-style: italic; }
.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--primary); border-radius: 1px; }
.lede { font-size: 18px; font-weight: 400; color: var(--muted); max-width: 56ch; }
ul li { font-size: 18px; font-weight: 400; color: var(--muted); margin-left: 18px; max-width: 58ch; }


/* ============ HEADER ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: box-shadow 0.3s var(--ease);
}
.site-header.scrolled { box-shadow: 0 6px 20px rgba(28,39,41,0.06); }
.header-inner {
  width: min(var(--wrap), 92%);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  text-decoration: none;
}
.brand:hover { color: var(--teal); }

.main-nav { display: flex; align-items: center; }
.nav-list { display: flex; list-style: none; gap: 4px; align-items: center; }
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  background: transparent;
  border: none;
  border-radius: var(--radius);
  transition: color 0.3s var(--ease), background 0.3s var(--ease);
  text-decoration: none;
}
.nav-link:hover { color: var(--teal); background: var(--teal-tint); }
.nav-link.is-active { color: var(--teal); }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}
.nav-item { position: relative; }

.nav-cta {
  margin-left: 18px;
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-primary);
  background: var(--primary);
  border: 2px solid var(--primary);
  border-radius: 999px;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), color 0.4s var(--ease);
  text-decoration: none;
}
.nav-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--primary); }

@media(max-width:920px) { .main-nav { display: none; } }

/* ============ MOBILE NAV ============ */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 10px;
}
.menu-toggle .bar { height: 2px; width: 100%; background: var(--ink); border-radius: 1px; transition: transform 0.5s var(--ease), opacity 0.3s; }
.menu-toggle.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open .bar:nth-child(2) { opacity: 0; }
.menu-toggle.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media(max-width:920px) { .menu-toggle { display: flex; } }

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 190;
  background: var(--bg);
  overflow-y: auto;
  padding: 60px 8%;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.6s var(--ease), visibility 0s linear 0.6s;
}
.mobile-nav.open { transform: translateX(0); visibility: visible; transition: transform 0.6s var(--ease), visibility 0s; }
.mobile-nav ul { list-style: none; }
.m-link {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 0;
  font-size: 28px;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--ink);
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.m-link.is-active { color: var(--teal); }
.mobile-nav .nav-cta {
  display: inline-block;
  margin: 40px 0 0;
  font-size: 15px;
  padding: 14px 28px;
}

/* ============ SPA PAGES ============ */
.page { display: none; }
.page.active { display: block; animation: pageIn 0.6s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
main { min-height: 70vh; }

/* ============ REVEAL ============ */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }

/* ============ FRAMES ============ */
.frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.frame:hover img { transform: scale(1.03); }

/* ============ DIAGONAL BANDS ============ */
.band { position: relative; }
.band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--primary-tint);
  transform: skewY(-6deg);
  z-index: -1;
  border-radius: 0;
}
.band-primary::before { background: var(--primary); }
.band-teal::before { background: var(--teal-tint); }
.band-surface::before { background: var(--surface); }

/* ============ HERO ============ */
.hero { position: relative; padding: 100px 0 140px; overflow: visible; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero-title { font-size: clamp(48px, 7vw, 100px); }
.hero-title .accent { color: var(--primary); }
.hero-copy { margin-top: 28px; }
.hero-actions { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 14px 30px;
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid var(--ink);
  color: var(--ink);
  background: transparent;
  border-radius: 999px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
  text-decoration: none;
}
.btn:hover { background: var(--ink); color: var(--bg); }
.btn-solid { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); color: var(--primary); }

.hero-visual { position: relative; padding: 30px 0 30px 20px; }
.hero-visual::before {
  content: '';
  position: absolute;
  top: 6%;
  right: -14vw;
  width: 130%;
  height: 88%;
  background: var(--primary-tint);
  transform: skewY(-6deg);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.hero-img-main { aspect-ratio: 4 / 5; }
.hero-img-detail {
  position: absolute;
  width: 46%;
  aspect-ratio: 1;
  bottom: -20px;
  left: -20px;
  box-shadow: 0 20px 44px rgba(28,39,41,0.10);
}
.hero-meta {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}

/* ============ SECTIONS ============ */
.section { padding: 110px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 60px; flex-wrap: wrap; }
.section-title { font-size: clamp(34px, 4.4vw, 56px); margin-top: 14px; }

/* ============ PRODUCT / CARD GRID ============ */
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.product-card .frame { aspect-ratio: 4 / 4; border-radius: var(--radius-lg); }
.product-info { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-top: 16px; }
.product-name { font-size: 22px; font-weight: 700; }
.product-cat { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.product-price { font-size: 14px; font-weight: 700; color: var(--teal); white-space: nowrap; }
.product-card a.card-link { color: inherit; display: block; text-decoration: none; }

/* ============ QUOTE BAND ============ */
.band-quote { padding: 140px 0; margin: 50px 0 30px; text-align: center; }
.quote-mark { font-size: 80px; font-weight: 900; font-style: italic; line-height: 0.4; color: var(--primary); display: block; margin-bottom: 28px; }
.big-quote { font-size: clamp(26px, 3.4vw, 44px); max-width: 22ch; margin: 0 auto; font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: -0.03em; line-height: 0.95; }
.big-quote .accent { color: var(--teal); }
.quote-attr { margin-top: 30px; font-size: 12px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.project-info { margin-top: 24px; font-size: 10px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--muted); font-weight: 500; }

/* ============ MATERIALS / FEATURES GRID ============ */
.materials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.material-cell { padding: 40px 32px; border-right: 1px solid var(--border); transition: background 0.5s var(--ease); }
.material-cell:last-child { border-right: none; }
.material-cell:hover { background: var(--primary-tint); }
.material-num { font-weight: 900; font-style: italic; font-size: 20px; color: var(--primary); }
.material-num-big { font-weight: 900; font-style: italic; font-size: 40px; color: var(--primary); }
.material-cell h3 { font-size: 16px; font-weight: 700; margin: 12px 0 8px; letter-spacing: 0.01em; }
.material-cell p { font-size: 14px; color: var(--muted); }

/* ============ SPLIT FEATURE ============ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split .frame { aspect-ratio: 4 / 5; }
.split-content h2 { font-size: clamp(32px, 4vw, 50px); margin: 14px 0 22px; }
.text-link {
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
}
.text-link::after { content: '\2192'; transition: transform 0.4s var(--ease); }
.text-link:hover::after { transform: translateX(6px); }

.back-link {
  font-size: 13px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
}
.back-link::before { content: '\2190'; transition: transform 0.4s var(--ease); }
.back-link:hover::before { transform: translateX(6px); }

.link {
  font-size: 13px;
  font-weight: 700;
  text-decoration:underline;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--teal);
  background-color: #fff0cb;
}
.link:hover { background-color: var(--primary); }

/* ============ CATALOGUE ============ */
.page-hero { padding: 80px 0 60px; border-bottom: 1px solid var(--border); }
.page-hero-title { font-size: clamp(42px, 6vw, 80px); margin-top: 16px; }
.page-hero-title .accent { color: var(--primary); }
.catalogue-section { padding: 80px 0 30px; }
.catalogue-section:last-of-type { padding-bottom: 100px; }
.cat-head { display: flex; align-items: baseline; gap: 20px; margin-bottom: 40px; }
.cat-head h2 { font-size: clamp(28px, 3.4vw, 42px); }
.cat-count { font-weight: 700; font-style: italic; font-size: 18px; color: var(--primary); }
.band-slice { padding: 120px 0 110px; margin: 24px 0; }

/* ============ ATELIER ============ */
.atelier-block { padding: 90px 0; border-bottom: 1px solid var(--border); }
.atelier-block:last-of-type { border-bottom: none; }
.provenance-list { list-style: none; margin-top: 28px; }
.provenance-list li { display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.provenance-list li strong { min-width: 140px; font-weight: 700; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 2px; }
.provenance-list li span { color: var(--muted); }
.awards-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; margin-top: 44px; }
.award-cell { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px 32px; transition: background 0.5s var(--ease); }
.award-cell:hover { background: var(--primary-tint); }
.award-year { font-weight: 900; font-style: italic; font-size: 22px; color: var(--primary); }
.award-cell h3 { font-size: 17px; font-weight: 700; margin: 10px 0 6px; }
.award-cell p { font-size: 14px; color: var(--muted); }

/* ============ INQUIRE ============ */
.inquire-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; padding: 90px 0 110px; }
.inquire-details { font-size: 15px; color: var(--muted); }
.inquire-details h3 { font-size: 13px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink); margin: 32px 0 8px; }
.inquire-details h3:first-of-type { margin-top: 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font);
  font-size: 15px;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.4s var(--ease);
  appearance: none;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); }
.form-note { display: none; margin-top: 22px; padding: 16px 20px; border: 1px solid var(--teal); border-radius: var(--radius); color: var(--teal); font-size: 14px; font-weight: 500; }
.form-note.show { display: block; }

/* ============ FOOTER ============ */
.site-footer { border-top: 1px solid var(--border); padding: 60px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { font-size: 14px; color: var(--muted); max-width: 34ch; margin-top: 14px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col a { display: inline-block; padding: 4px 0; font-size: 14px; color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--teal); }
.footer-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.footer-base a { color: var(--muted); text-decoration: underline; }
.footer-base a:hover { color: var(--teal); }

/* ============ MOTION SAFETY ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .materials-grid { grid-template-columns: repeat(2, 1fr); }
  .material-cell:nth-child(2n) { border-right: none; }
  .material-cell:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 920px) {
  .hero { padding: 60px 0 100px; }
  .hero-grid { grid-template-columns: 1fr; gap: 60px; }
  .split, .inquire-grid { grid-template-columns: 1fr; gap: 44px; }
  .awards-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .product-grid { grid-template-columns: 1fr; }
  .materials-grid { grid-template-columns: 1fr; border-radius: var(--radius); }
  .material-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .material-cell:last-child { border-bottom: none; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-img-detail { left: 0; }
  .band-featured, .band-quote, .band-slice { padding: 90px 0 80px; }
  .lede { font-size: 14px; }
  ul li { font-size: 14px; }
  .hero-title { font-size: 36px; }
  .page-hero-title { font-size: 32px; }
  .section-title { font-size: 28px; }
  .big-quote { font-size: 22px; }
  .eyebrow { font-size: 10px; }
}

/* ============ CINZIA-SPECIFIC SECTIONS ============ */

/* Band with solid primary bg */
.band-solid-primary { background: var(--primary); color: var(--on-primary); padding: 100px 0; }
.band-solid-primary::before { display: none; }
.band-solid-primary h2 { color: var(--on-primary); }

/* Section dark */
.section-dark { background: var(--surface-dim); color: var(--on-dark); padding: 100px 0; position: relative; overflow: hidden; }
.section-dark h2 { color: var(--on-dark); }
.section-dark .muted { color: var(--on-dark-dim); }

/* Stagger items (Lavoro principles) */
.stagger-list { display: flex; flex-direction: column; gap: 0; }
.stagger-item { padding: 28px 0; border-top: 1px solid rgba(255,255,255,0.15); }
.stagger-item:last-child { border-bottom: 1px solid rgba(255,255,255,0.15); }
.stagger-item h3 { font-size: 22px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.stagger-item p { color: rgba(255,255,255,0.6); font-weight: 500; }

/* Lavoro grid */
.lavoro-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.lavoro-grid h2 { font-size: clamp(42px, 5.5vw, 64px); line-height: 0.9; letter-spacing: -0.04em; }
@media (max-width: 920px) { .lavoro-grid { grid-template-columns: 1fr; gap: 40px; } }

/* Cosa faccio grid */
.cosa-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--border-light); border-radius: var(--radius-lg); overflow: hidden; }
.cosa-cell { padding: 52px 40px; border-right: 1px solid var(--border-light); background: var(--surface); transition: background 0.5s var(--ease); }
.cosa-cell:last-child { border-right: none; }
.cosa-cell:hover { background: var(--bg); }
.cosa-cell h3 { font-size: 26px; font-weight: 700; margin-bottom: 16px; letter-spacing: -0.02em; }
.cosa-cell p { font-size: 16px; color: var(--muted); line-height: 1.6; }
@media (max-width: 920px) { .cosa-grid { grid-template-columns: 1fr; } .cosa-cell { border-right: none; border-bottom: 1px solid var(--border-light); } .cosa-cell:last-child { border-bottom: none; } }

/* AI poster */
.ai-poster { padding: 100px 0; }
.ai-poster h2 { font-size: clamp(38px, 5vw, 62px); line-height: 0.95; letter-spacing: -0.04em; max-width: 20ch; margin-bottom: 32px; }
.ai-poster p { color: rgba(255,255,255,0.6); font-size: 18px; font-weight: 500; max-width: 48ch; margin-bottom: 6px; }
.ai-poster .eyebrow { color: rgba(255,255,255,0.5); }
.ai-poster .eyebrow::before { background: rgba(255,255,255,0.3); }

/* Project cards grid */
.progetti-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.project-card {
  display: block;
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.4s var(--ease);
}
.project-card:hover { border-color: rgba(255,201,75,0.5); }
.project-card-text { padding: 40px 40px 0; }
.project-card-text h3 { font-size: 26px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.project-card-text h3 .arrow { color: var(--primary); transition: transform 0.5s var(--ease); }
.project-card:hover .project-card-text h3 .arrow { transform: translateX(6px); }
.project-card-text p { color: var(--muted); margin-top: 12px; font-size: 17px; }
.project-card-img { padding: 40px 40px 0; }
.project-card-img img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  object-position: top;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
  filter: grayscale(100%);
  transition: filter 0.7s var(--ease);
}
.project-card:hover .project-card-img img { filter: grayscale(0%); }
.project-offset { margin-top: 80px; }
@media (max-width: 920px) { .progetti-grid { grid-template-columns: 1fr; } .project-offset { margin-top: 0; } }

/* 5-column grid (books, music) */
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1080px) { .grid-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .grid-5 { grid-template-columns: repeat(2, 1fr); } }

/* Book cards */
.book-card { border-radius: var(--radius-lg); overflow: hidden; }
.book-card-info {
  background: var(--bg);
  padding: 28px;
  border-top: 1px solid var(--border-light);
  border-left: 1px solid var(--border-light);
  border-right: 1px solid var(--border-light);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  min-height: 130px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.book-card-info h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.book-card-info p { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; margin-top: 4px; }
.book-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* Music cards */
.music-card { border-radius: var(--radius-lg); overflow: hidden; }
.music-card-info {
  background: var(--surface);
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
  transition: border-color 0.4s var(--ease);
}
.music-card:hover .music-card-info { border-color: rgba(255,201,75,0.3); }
.music-card-info h4 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.music-card-info p { font-size: 11px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; margin-top: 4px; }
.play-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  text-decoration: none;
}
.play-link .arrow { transition: transform 0.4s var(--ease); }
.play-link:hover .arrow { transform: translateX(4px); }
.music-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

/* CTA section */
.cta-section { padding: 100px 0; text-align: center; }
.cta-section h2 { font-size: clamp(44px, 7vw, 80px); margin-bottom: 44px; }
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease);
}
.cta-btn .arrow { transition: transform 0.4s var(--ease); }
.cta-btn:hover .arrow { transform: translateX(4px); }
.cta-btn-dark { background: var(--ink); color: var(--primary); border: 2px solid var(--ink); }
.cta-btn-dark:hover { background: var(--teal); border-color: var(--teal); color: var(--bg); }
.cta-btn-lime { background: var(--primary); color: var(--on-primary); border: 2px solid var(--primary); }
.cta-btn-lime:hover { background: var(--ink); border-color: var(--ink); color: var(--primary); }
.cta-btn-outline { background: transparent; color: var(--on-dark); border: 2px solid rgba(255,255,255,0.3); }
.cta-btn-outline:hover { border-color: var(--primary); color: var(--primary); }

/* Contact section dark */
.contact-glow {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, transparent 40%, rgba(255,201,75,0.06) 100%);
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
  pointer-events: none;
}
.contact-content { position: relative; z-index: 2; max-width: 860px; }
.contact-content h2 {
  font-size: clamp(48px, 10vw, 110px);
  line-height: 0.85;
  margin-bottom: 28px;
}
.contact-content .subtitle { font-size: 22px; color: var(--on-dark-dim); font-weight: 500; margin-bottom: 48px; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 20px; }

/* Section titles for lighter sections */
.section-surface { background: var(--surface); padding: 100px 0; }
.section-label { font-size: 12px; font-weight: 700; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.section-intro { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 48px; }
.section-intro h2 { font-size: clamp(32px, 4vw, 42px); font-weight: 900; letter-spacing: -0.03em; }
.section-intro h2 .accent { color: var(--primary); font-weight: 900; font-style: italic; }
.section-intro p { color: var(--muted); margin-top: 6px; font-weight: 500; }

/* ============ VINTED CASE STUDY ============ */

/* product-grid variant: 2 items in a single row */
.product-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .product-grid.cols-2 { grid-template-columns: 1fr; } }

/* product-grid variant: 5 items (books, music) */
.product-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1080px) { .product-grid.cols-5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .product-grid.cols-5 { grid-template-columns: 1fr; } }

/* materials-grid variant: 2 items in a single row */
.materials-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 620px) { .materials-grid.cols-2 { grid-template-columns: 1fr; } }

/* materials-grid variant: 4 items, 2x2, needs its own divider logic */
.materials-grid.grid-2x2 { grid-template-columns: repeat(2, 1fr); }
.materials-grid.grid-2x2 .material-cell:nth-child(2n) { border-right: none; }
.materials-grid.grid-2x2 .material-cell:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
@media (max-width: 620px) {
  .materials-grid.grid-2x2 { grid-template-columns: 1fr; }
  .materials-grid.grid-2x2 .material-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .materials-grid.grid-2x2 .material-cell:last-child { border-bottom: none; }
}

/* materials-grid variant: default 3-col grid with more than 3 items (wraps to 2+ rows) */
.materials-grid.wrap-rows .material-cell:nth-child(n+4) { border-top: 1px solid var(--border); padding-top: 40px; }
@media (max-width: 1080px) {
  .materials-grid.wrap-rows .material-cell:nth-child(n+4) { border-top: none; }
  .materials-grid.wrap-rows .material-cell:nth-child(n+3) { border-top: 1px solid var(--border); padding-top: 40px; }
}
@media (max-width: 620px) {
  .materials-grid.wrap-rows .material-cell:nth-child(n+3) { border-top: none; }
}

/* text + list side by side, wraps to stacked on narrow viewports */
.split-flex { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.split-flex > * { flex: 1 1 280px; margin: 0; }

/* pull-quote used to break up long-form text */
.pull-quote {
  font-family: var(--font);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-size: clamp(22px, 3vw, 32px);
  border-left: 3px solid var(--primary);
  padding-left: 24px;
  max-width: 20ch;
  margin: 40px 0;
}

/* two-column bibliography list */
.source-list { columns: 280px 2; column-gap: 40px; }
.source-list p { break-inside: avoid; margin-top: 16px; }

/* sub-section label inside long-form blocks, extra breathing room */
.block-label { margin-top: 72px; display: block; }

/* small byline line under the hero title */
.byline-line { margin-top: 16px; font-size: 0.85rem; }

/* centered wrapper for inline diagrams */
.diagram-block { margin: 44px 0; text-align: center; }
.diagram-block svg { width: 100%; max-width: 520px; height: auto; margin: 0 auto; display: block; color: inherit; }
.diagram-caption { font-size: 0.8rem; opacity: 0.65; margin-top: 12px; }

