/* ==========================================================
   UMBOSKY — Prestigiatore close-up
   ========================================================== */

:root {
  --ink: #0c0b0a;
  --ink-2: #14120f;
  --ink-3: #1d1a16;
  --ivory: #ece4d4;
  --ivory-dim: #b9b0a0;
  --muted: #7f776a;
  --gold: #b8975a;
  --gold-soft: rgba(184, 151, 90, .35);
  --line: rgba(236, 228, 212, .12);

  --serif: "Cormorant Garamond", "Garamond", "Times New Roman", serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--serif);
  font-size: clamp(18px, 1.15vw + 12px, 21px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
::selection { background: var(--gold); color: var(--ink); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipografia ---------- */

.eyebrow {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1.4em;
}

h1, h2, h3 { font-weight: 300; line-height: 1.1; margin: 0; }

h2 {
  font-size: clamp(36px, 4.5vw, 64px);
  letter-spacing: .01em;
}
h2 em, h1 em { font-style: italic; color: var(--gold); }

h3 {
  font-size: clamp(26px, 2.4vw, 34px);
  font-weight: 400;
}

p { margin: 0 0 1.1em; color: var(--ivory-dim); }
p.lead { font-size: 1.25em; line-height: 1.5; color: var(--ivory); font-weight: 300; }

.ornament {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  color: var(--gold); font-size: 14px; letter-spacing: .6em; margin: 0 auto;
}
.ornament::before, .ornament::after {
  content: ""; width: 56px; height: 1px; background: var(--gold-soft);
}

/* ---------- Header / navigazione ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .5s ease, border-color .5s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(12, 11, 10, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.brand {
  font-family: var(--sans);
  font-size: 15px; font-weight: 400;
  letter-spacing: .5em; text-transform: uppercase;
  text-decoration: none;
  margin-right: -.5em;
}
.brand span { color: var(--gold); }

.menu { display: flex; gap: 42px; list-style: none; margin: 0; padding: 0; }
.menu a {
  font-family: var(--sans); font-size: 12px; font-weight: 400;
  letter-spacing: .28em; text-transform: uppercase;
  text-decoration: none; color: var(--ivory-dim);
  padding: 8px 0; position: relative; transition: color .3s;
}
.menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .4s ease;
}
.menu a:hover, .menu a[aria-current="page"] { color: var(--ivory); }
.menu a:hover::after, .menu a[aria-current="page"]::after { transform: scaleX(1); }

.menu .lang a { color: var(--muted); }
.menu .lang a::after { display: none; }
.menu .lang a:hover { color: var(--gold); }

.menu-toggle {
  display: none; background: none; border: 0; padding: 10px; margin-right: -10px;
  cursor: pointer; color: var(--ivory);
}
.menu-toggle span {
  display: block; width: 26px; height: 1px; background: currentColor;
  margin: 7px 0; transition: transform .35s ease, opacity .35s;
}

@media (max-width: 820px) {
  .menu-toggle { display: block; }
  .menu {
    position: fixed; inset: 0; z-index: -1;
    flex-direction: column; align-items: center; justify-content: center; gap: 34px;
    background: var(--ink);
    opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s;
  }
  .menu a { font-size: 15px; }
  .nav-open .menu { opacity: 1; visibility: visible; }
  .nav-open .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-open .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
}

/* ---------- Foto (con segnaposto) ---------- */

.ph {
  position: relative; margin: 0; overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(184,151,90,.10), transparent 60%),
    linear-gradient(160deg, var(--ink-3), var(--ink-2));
}
.ph img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(.2) contrast(1.05);
  transition: transform 1.6s cubic-bezier(.2,.7,.2,1), filter 1s;
}
.ph:hover img { transform: scale(1.03); filter: grayscale(0) contrast(1.05); }
.ph.missing::after {
  content: attr(data-label);
  position: absolute; inset: 0; display: grid; place-items: center; padding: 20px;
  text-align: center;
  font-family: var(--sans); font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted);
  border: 1px dashed rgba(236,228,212,.12); margin: 14px;
}
.ratio-portrait { aspect-ratio: 4 / 5; }
.ratio-land { aspect-ratio: 3 / 2; }
.ratio-wide { aspect-ratio: 21 / 9; }

/* ---------- Hero ---------- */

.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  overflow: hidden;
}
.hero .ph { position: absolute; inset: 0; }
.hero .ph img { filter: grayscale(.5) brightness(.55); animation: slowzoom 18s ease-out forwards; }
.hero .ph:hover img { transform: none; }
.hero .ph.missing::after { place-items: end center; padding-bottom: 110px; border: 0; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(12,11,10,.75) 100%),
    linear-gradient(to bottom, rgba(12,11,10,.55), transparent 30%, transparent 65%, var(--ink));
}
.hero-content { position: relative; z-index: 2; padding: 120px var(--gutter) 80px; }
.hero h1 {
  font-size: clamp(64px, 13vw, 180px);
  font-weight: 300; letter-spacing: .14em; margin-right: -.14em;
  text-transform: uppercase; line-height: 1;
}
.hero .tagline {
  font-style: italic; font-weight: 300;
  font-size: clamp(20px, 2.2vw, 28px);
  color: var(--ivory); max-width: 30ch; margin: 34px auto 0;
}
.hero-quote { margin: 40px auto 0; max-width: 46ch; }
.hero-quote p {
  font-style: italic; font-weight: 300;
  font-size: clamp(18px, 1.6vw, 23px); line-height: 1.6;
  color: var(--ivory); margin: 0;
}
.hero-quote cite {
  display: block; margin-top: 22px; font-style: normal;
  font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
}
.hero-quote cite::before { content: "— "; }

.scroll-cue {
  position: absolute; z-index: 2; left: 50%; bottom: 34px; transform: translateX(-50%);
  width: 1px; height: 64px; background: linear-gradient(var(--gold), transparent);
  animation: cue 2.6s ease-in-out infinite;
}
.hero.page-hero { min-height: 72vh; min-height: 72svh; }
.page-hero .ph img { filter: grayscale(.4) brightness(.4); }
.page-hero h1 { font-size: clamp(48px, 8vw, 110px); letter-spacing: .04em; margin: 0; text-transform: none; }

@keyframes slowzoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes cue { 0%,100% { opacity: .2; transform: translateX(-50%) scaleY(.6); transform-origin: top; } 50% { opacity: 1; transform: translateX(-50%) scaleY(1); } }

/* ---------- Sezioni ---------- */

section { padding: clamp(90px, 13vw, 170px) 0; }
.section-tight { padding: clamp(60px, 8vw, 110px) 0; }

.statement { text-align: center; }
.statement blockquote {
  margin: 0 auto; max-width: 22ch;
  font-size: clamp(32px, 4.6vw, 62px); font-weight: 300; line-height: 1.2;
  font-style: italic;
}
.statement blockquote.long { max-width: 30ch; font-size: clamp(26px, 3.2vw, 44px); line-height: 1.3; }
.statement cite {
  display: block; margin-top: 30px; font-style: normal;
  font-family: var(--sans); font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted);
}

.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center;
}
.split.reverse > :first-child { order: 2; }
.split .text { max-width: 520px; }
.split h2 { margin-bottom: 34px; }

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

/* Le tre arti */
.arts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 44px); margin-top: 80px; }
.art .ph { margin-bottom: 30px; }
/* tono uniforme per le tre foto affiancate */
.arts .ph img,
.arts .ph:hover img,
.gallery .ph img,
.gallery .ph:hover img { filter: grayscale(.65) sepia(.3) brightness(.82) contrast(1.12); }
.art .num {
  font-family: var(--sans); font-size: 11px; letter-spacing: .3em; color: var(--gold); display: block; margin-bottom: 12px;
}
.art h3 { margin-bottom: 14px; }
.art p { font-size: .95em; }
@media (max-width: 820px) { .arts { grid-template-columns: 1fr; gap: 64px; } }

.center-head { text-align: center; max-width: 720px; margin: 0 auto; }
.center-head p { margin-top: 26px; }

/* Banda scura col seme */
.band {
  background: var(--ink-2);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.band .suit-bg {
  position: absolute; right: -4%; top: 50%; transform: translateY(-50%);
  font-size: clamp(300px, 45vw, 640px); line-height: 1; color: rgba(184,151,90,.045);
  pointer-events: none; user-select: none;
}

/* Lista occasioni */
.occasions {
  list-style: none; padding: 0; margin: 50px 0 0;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 50px;
}
.occasions li {
  padding: 18px 0; border-bottom: 1px solid var(--line);
  font-size: 1.1em; color: var(--ivory);
  display: flex; align-items: baseline; gap: 16px;
}
.occasions li::before { content: "◆"; font-size: 8px; color: var(--gold); transform: translateY(-3px); }
@media (max-width: 560px) { .occasions { grid-template-columns: 1fr; } }

/* Galleria */
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.4vw, 20px);
  margin-top: 70px;
}
.gallery .ph:nth-child(1) { grid-column: span 7; aspect-ratio: 4/3; }
.gallery .ph:nth-child(2) { grid-column: span 5; aspect-ratio: auto; }
.gallery .ph:nth-child(3) { grid-column: span 4; aspect-ratio: 4/5; }
.gallery .ph:nth-child(4) { grid-column: span 4; aspect-ratio: 4/5; }
.gallery .ph:nth-child(5) { grid-column: span 4; aspect-ratio: 4/5; }
@media (max-width: 700px) {
  .gallery .ph:nth-child(n) { grid-column: span 12; aspect-ratio: 4/3; }
}

/* Storia: timeline */
.chapters { max-width: 760px; margin: 0 auto; }
.chapter { display: grid; grid-template-columns: 120px 1fr; gap: 30px; padding: 46px 0; border-top: 1px solid var(--line); }
.chapter:last-child { border-bottom: 1px solid var(--line); }
.chapter .mark {
  font-family: var(--sans); font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold);
  padding-top: 10px;
}
.chapter h3 { margin-bottom: 16px; }
@media (max-width: 600px) { .chapter { grid-template-columns: 1fr; gap: 8px; } }

.masters {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 24px;
  text-align: center; max-width: 640px; margin: 50px auto 0;
  font-size: clamp(20px, 2vw, 26px); line-height: 1.9; color: var(--ivory-dim); font-style: italic;
}
.masters span { white-space: nowrap; }
@media (max-width: 640px) { .masters { grid-template-columns: repeat(2, 1fr); } }

/* Bottoni */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--sans); font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  text-decoration: none; color: var(--ivory);
  padding: 18px 34px; border: 1px solid var(--gold-soft);
  transition: background .4s, color .4s, border-color .4s;
}
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.link-arrow {
  font-family: var(--sans); font-size: 12px; letter-spacing: .3em; text-transform: uppercase;
  text-decoration: none; color: var(--gold);
  border-bottom: 1px solid var(--gold-soft); padding-bottom: 6px;
  transition: border-color .3s;
}
.link-arrow:hover { border-color: var(--gold); }

/* CTA finale */
.cta { text-align: center; }
.cta h2 { margin-bottom: 30px; }
.cta p { max-width: 46ch; margin: 0 auto 46px; }

/* Contatti */
.contact-mail {
  display: inline-block;
  font-size: clamp(28px, 5vw, 64px); font-weight: 300; font-style: italic;
  text-decoration: none; color: var(--ivory);
  border-bottom: 1px solid var(--gold-soft); padding-bottom: 6px;
  transition: color .3s, border-color .3s;
  word-break: break-word;
}
.contact-mail:hover { color: var(--gold); border-color: var(--gold); }
.contact-notes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  margin-top: 100px; text-align: left;
}
.contact-notes h3 { font-size: 24px; margin-bottom: 12px; }
.contact-notes p { font-size: .95em; }
@media (max-width: 820px) { .contact-notes { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 60px 0 50px; text-align: center;
}
.site-footer .suits { color: var(--gold); letter-spacing: 1em; margin-right: -1em; font-size: 14px; }
.site-footer p {
  font-family: var(--sans); font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
  color: var(--muted); margin: 22px 0 0;
}
.site-footer a { text-decoration: none; color: var(--ivory-dim); }
.site-footer a:hover { color: var(--gold); }

/* ---------- Animazioni d'ingresso ---------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1.2s ease, transform 1.2s cubic-bezier(.2,.7,.2,1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .15s; }
.js .reveal.d2 { transition-delay: .3s; }
.js .reveal.d3 { transition-delay: .45s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
