/* ═══════════════════════════════════════════════════════
   SAGRA DI TREVENZUOLO 2026 — pagina autoportante
   Design system musicorio v3: void · avorio · oro
   Nessun filtro CSS sulle foto: si vedono come le ha
   consegnate Alessandro.
   ═══════════════════════════════════════════════════════ */

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

:root {
  --void:      #0b0a08;
  --carbon:    #14110c;
  --carbon-2:  #1e1a13;
  --dark-ink:  #f3ece0;
  --dark-soft: rgba(243,236,224,0.60);
  --dark-dim:  rgba(243,236,224,0.34);
  --dark-line: rgba(243,236,224,0.12);

  --paper:     #faf6f0;
  --paper-2:   #f1e8db;
  --paper-3:   #ebe0cf;
  --ink:       #1c1815;
  --ink-soft:  #6f665b;
  --ink-dim:   #a89e90;
  --line:      rgba(28,24,21,0.12);

  --gold-1:    #f7e7b0;
  --gold-2:    #e3c46a;
  --gold-3:    #c99b3f;
  --gold-4:    #a8781f;
  --gold-grad: linear-gradient(105deg, #a8781f 0%, #cf9f43 22%, #f2d488 46%, #fbe6b4 54%, #d9ad4e 74%, #b98a2c 100%);
  --gold-soft: rgba(201,155,63,0.14);
  --gold-line: linear-gradient(90deg, transparent, rgba(201,155,63,0.65), transparent);

  --display: 'Fraunces', Georgia, serif;
  --sans:    'Hanken Grotesk', system-ui, sans-serif;
  --label:   'Bricolage Grotesque', system-ui, sans-serif;
  --ease:    cubic-bezier(0.16, 1, 0.3, 1);
  --dur:     0.8s;
  --pad-x:   clamp(1.5rem, 5vw, 5.5rem);
  --navh:    72px;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--navh) + 58px); }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--paper-2); }
::-webkit-scrollbar-thumb { background: var(--gold-4); border-radius: 6px; border: 3px solid var(--paper-2); }
::selection { background: var(--gold-3); color: var(--void); }

:focus-visible { outline: 2px solid var(--gold-3); outline-offset: 3px; }

/* ─── Oro ─── */
.gold {
  background: var(--gold-grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  color: var(--gold-3); -webkit-text-fill-color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .gold { color: var(--gold-3); -webkit-text-fill-color: currentColor; }
}
.gold-shimmer { animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }

/* ─── Tipografia ─── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--label); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-4); margin-bottom: 1.5rem;
}
.eyebrow::before { content: ''; width: 1.8rem; height: 1px; background: var(--gold-3); }
.section--dark .eyebrow { color: var(--gold-2); }
.section--dark .eyebrow::before { background: var(--gold-2); }

.section-heading {
  font-family: var(--display);
  font-size: clamp(2.1rem, 4.8vw, 3.8rem);
  font-weight: 500; line-height: 1.04; letter-spacing: -0.02em;
  color: var(--ink);
}
.section-heading em { font-style: italic; font-weight: 400; }
.section--dark .section-heading { color: var(--dark-ink); }
.lead { font-size: 1.08rem; color: var(--ink-soft); line-height: 1.72; }
.section--dark .lead { color: var(--dark-soft); }

.prose p { font-size: 1.05rem; line-height: 1.8; color: var(--ink-soft); }
.prose p + p { margin-top: 1.3rem; }
.section--dark .prose p { color: var(--dark-soft); }

/* ─── Sezioni ─── */
.section { padding: clamp(4.5rem, 9vw, 8.5rem) var(--pad-x); position: relative; }
.section--light { background: var(--paper); color: var(--ink); }
.section--alt   { background: var(--paper-2); color: var(--ink); }
.section--dark  { background: var(--void); color: var(--dark-ink); }
.wrap { max-width: 1260px; margin: 0 auto; }
.wrap-narrow { max-width: 820px; margin: 0 auto; }
.section-head { max-width: 740px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.seam-dark { background: var(--void); height: 0; border: none; }
.seam-dark::after { content: ''; display: block; height: 1px; background: var(--gold-line); }

/* ─── Nav ─── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.5rem var(--pad-x);
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
.site-nav.scrolled {
  background: rgba(11,10,8,0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 var(--dark-line);
  padding-top: 1rem; padding-bottom: 1rem;
}
.nav-logo { font-family: var(--display); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; color: var(--dark-ink); }
.nav-logo span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold-3); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: 0.82rem; font-weight: 500; color: var(--dark-soft); transition: color 0.2s; position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: ''; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1.5px;
  background: var(--gold-grad); transform: scaleX(0); transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:not(.nav-cta):hover::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--dark-ink); }
.nav-cta {
  background: var(--gold-grad); color: var(--void) !important; font-weight: 700 !important;
  padding: 0.58rem 1.3rem; border-radius: 100px; transition: transform 0.25s, box-shadow 0.25s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(201,155,63,0.6); }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; padding: 6px; position: relative; z-index: 110; }
.nav-hamburger span { display: block; width: 24px; height: 2px; background: var(--dark-ink); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.25s; }
.nav-hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay {
  position: fixed; inset: 0; background: var(--void); z-index: 105;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  gap: 0.3rem; padding: 0 var(--pad-x); opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease);
}
.nav-overlay.open { opacity: 1; pointer-events: auto; }
.nav-overlay a {
  font-family: var(--display); font-size: clamp(2rem, 9vw, 3.4rem);
  font-weight: 500; letter-spacing: -0.02em; color: var(--dark-ink); transition: color 0.2s, padding 0.2s;
}
.nav-overlay a:hover { padding-left: 0.6rem; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold-3); }
@media (max-width: 900px) { .nav-links { display: none; } .nav-hamburger { display: flex; } }

/* ─── Bottoni ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  padding: 0.95rem 1.9rem; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600;
  transition: background 0.25s, color 0.25s, transform 0.25s, border-color 0.25s, box-shadow 0.25s;
  white-space: nowrap; border: 1.5px solid transparent;
}
.btn-gold { background: var(--gold-grad); background-size: 200% auto; color: var(--void); font-weight: 700; box-shadow: 0 10px 30px -12px rgba(201,155,63,0.55); }
.btn-gold:hover { transform: translateY(-2px); background-position: right center; box-shadow: 0 16px 40px -12px rgba(201,155,63,0.7); }
.btn-outline-gold { border-color: var(--gold-3); color: var(--gold-2); }
.btn-outline-gold:hover { background: var(--gold-soft); color: var(--gold-1); transform: translateY(-2px); }
.btn-lg { padding: 1.1rem 2.3rem; font-size: 0.92rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.arrow-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.88rem; }
.arrow-link span { transition: transform 0.25s; }
.arrow-link:hover span { transform: translateX(5px); }

/* ─── Reveal ─── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; } .reveal-d2 { transition-delay: 0.2s; } .reveal-d3 { transition-delay: 0.3s; }

/* ═══════════ HERO ═══════════ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--void); }
.hero-bg { position: absolute; inset: 0; z-index: 0; will-change: transform; }
.hero-bg img { width: 100%; height: 118%; object-fit: cover; object-position: center 42%; }
.hero-veil {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(11,10,8,0.94) 4%, rgba(11,10,8,0.38) 46%, rgba(11,10,8,0.58) 100%),
    radial-gradient(120% 80% at 20% 90%, rgba(11,10,8,0.72), transparent 60%);
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: 1260px; margin: 0 auto; padding: 0 var(--pad-x) clamp(3.5rem, 8vw, 6rem); }
.hero h1 {
  font-family: var(--display); font-size: clamp(2.7rem, 8vw, 6.4rem);
  font-weight: 500; line-height: 0.99; letter-spacing: -0.03em;
  color: var(--dark-ink); max-width: 16ch;
}
.hero h1 em { font-style: italic; font-weight: 400; }
.hero-sub { margin-top: 1.8rem; max-width: 46ch; font-size: clamp(1rem, 1.4vw, 1.18rem); color: var(--dark-soft); line-height: 1.62; }
.hero-ctas { margin-top: 2.4rem; display: flex; gap: 0.9rem; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--label); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold-2); border: 1px solid rgba(201,155,63,0.4);
  padding: 0.42rem 1rem; border-radius: 100px;
}
.hero-scroll {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); z-index: 2;
  font-size: 0.66rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--dark-dim);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
}
.hero-scroll::after { content: ''; width: 1px; height: 34px; background: linear-gradient(var(--gold-3), transparent); animation: scrolldrop 2s var(--ease) infinite; }
@keyframes scrolldrop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ═══════════ VIDEO ═══════════ */
.video-split { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.video-frame { position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--dark-line); background: #000; }
.video-frame video { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #000; }
.video-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.video-play {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1rem;
  background: linear-gradient(to top, rgba(11,10,8,0.75), rgba(11,10,8,0.15));
  transition: opacity 0.4s;
}
.video-play:hover .play-ring { transform: scale(1.07); box-shadow: 0 16px 44px -12px rgba(201,155,63,0.8); }
.play-ring {
  width: 78px; height: 78px; border-radius: 50%; background: var(--gold-grad);
  display: grid; place-items: center; box-shadow: 0 12px 34px -12px rgba(201,155,63,0.7);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.play-ring svg { margin-left: 5px; }
.video-play span { font-family: var(--label); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dark-ink); }
.video-frame.playing .video-play { opacity: 0; pointer-events: none; }
.video-aside figure { border-radius: 16px; overflow: hidden; border: 1px solid var(--dark-line); }
.video-aside figcaption { margin-top: 0.9rem; font-size: 0.82rem; color: var(--dark-dim); font-style: italic; }
@media (max-width: 900px) { .video-split { grid-template-columns: 1fr; } }

/* ═══════════ GALLERIA ═══════════ */
.gal-bar {
  position: sticky; top: var(--navh); z-index: 40;
  background: rgba(250,246,240,0.94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  margin: 0 calc(-1 * var(--pad-x)) clamp(2rem, 4vw, 3rem);
  padding: 0.7rem var(--pad-x);
  display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none;
}
.gal-bar::-webkit-scrollbar { display: none; }
.gal-pill {
  flex: 0 0 auto; padding: 0.5rem 1.1rem; border-radius: 100px;
  font-size: 0.82rem; font-weight: 600; color: var(--ink-soft);
  border: 1px solid var(--line); transition: all 0.25s;
}
.gal-pill:hover { border-color: var(--gold-3); color: var(--ink); }
.gal-pill.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.giorno { margin-bottom: clamp(3rem, 7vw, 5.5rem); scroll-margin-top: calc(var(--navh) + 70px); }
.giorno-head { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.giorno-head h3 { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 500; letter-spacing: -0.02em; }
.giorno-head .sott { font-family: var(--display); font-style: italic; font-size: 1.1rem; color: var(--gold-4); }
.giorno-head .cnt { margin-left: auto; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-dim); }

.masonry { columns: 4; column-gap: 12px; }
@media (max-width: 1100px) { .masonry { columns: 3; } }
@media (max-width: 760px)  { .masonry { columns: 2; column-gap: 8px; } }

.ph {
  position: relative; break-inside: avoid; margin-bottom: 12px;
  border-radius: 10px; overflow: hidden; background: var(--paper-3); line-height: 0;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
@media (max-width: 760px) { .ph { margin-bottom: 8px; } }
.ph-sel { display: block; width: 100%; padding: 0; }
.ph img { width: 100%; height: auto; display: block; }
.ph::after {
  content: ''; position: absolute; inset: 0; border-radius: 10px;
  box-shadow: inset 0 0 0 0 var(--gold-3); transition: box-shadow 0.2s; pointer-events: none;
}
.ph:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -14px rgba(28,24,21,0.5); }
.ph .tick {
  position: absolute; top: 9px; right: 9px; z-index: 2; pointer-events: none;
  width: 26px; height: 26px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.85);
  background: rgba(11,10,8,0.42); backdrop-filter: blur(4px);
  display: grid; place-items: center; transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.ph .tick svg { opacity: 0; transition: opacity 0.2s; }
.ph.is-sel::after { box-shadow: inset 0 0 0 3px var(--gold-3); }
.ph.is-sel .tick { background: var(--gold-3); border-color: var(--gold-1); transform: scale(1.06); }
.ph.is-sel .tick svg { opacity: 1; }
.ph-zoom {
  position: absolute; bottom: 8px; right: 8px; z-index: 3;
  width: 30px; height: 30px; border-radius: 8px;
  background: rgba(11,10,8,0.5); backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,0.28); color: #fff;
  display: grid; place-items: center;
  opacity: 0; transition: opacity 0.2s, background 0.2s;
}
.ph:hover .ph-zoom, .ph-zoom:focus-visible { opacity: 1; }
.ph-zoom:hover { background: rgba(11,10,8,0.78); }
@media (hover: none) { .ph-zoom { opacity: 1; } }

.gal-more { text-align: center; padding: 1rem 0 0; }
.sentinel { height: 1px; }

/* ─── Barra selezione ─── */
.selbar {
  position: fixed; left: 50%; bottom: 1.2rem; z-index: 90;
  transform: translate(-50%, 160%); transition: transform 0.45s var(--ease);
  display: flex; align-items: center; gap: 0.85rem;
  background: rgba(11,10,8,0.95); backdrop-filter: blur(14px);
  border: 1px solid var(--dark-line); border-radius: 100px;
  padding: 0.6rem 0.7rem 0.6rem 1.4rem;
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.8);
  max-width: calc(100vw - 2rem);
}
.selbar.up { transform: translate(-50%, 0); }
.selbar .n { font-size: 0.88rem; color: var(--dark-ink); white-space: nowrap; }
.selbar .n b { color: var(--gold-2); }
.selbar .clr { font-size: 0.8rem; color: var(--dark-dim); padding: 0.4rem 0.3rem; }
.selbar .clr:hover { color: var(--dark-ink); }
.selbar .btn { padding: 0.72rem 1.4rem; font-size: 0.82rem; }
@media (max-width: 560px) {
  .selbar { flex-wrap: wrap; justify-content: center; border-radius: 20px; padding: 0.8rem; gap: 0.6rem; width: calc(100vw - 2rem); }
  .selbar .n { width: 100%; text-align: center; }
}

/* ─── Lightbox ─── */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(11,10,8,0.97); display: none; }
.lb.open { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 1rem clamp(1rem, 3vw, 2rem); color: var(--dark-soft); font-size: 0.82rem; }
/* L'immagine è posizionata in assoluto e centrata con margin:auto: è l'unico modo
   in cui max-height:100% si risolve davvero contro l'altezza disponibile. Dentro
   una griglia le percentuali non venivano applicate e i verticali finivano
   tagliati sotto. */
.lb-stage { position: relative; overflow: hidden; min-height: 0; }
.lb-stage img {
  position: absolute; inset: 0; margin: auto;
  max-width: calc(100% - clamp(1rem, 7vw, 5rem));
  max-height: 100%;
  width: auto; height: auto;
  object-fit: contain; border-radius: 4px;
}
.lb-load { top: 50%; left: 50%; transform: translate(-50%, -50%); }
.lb-bot { display: flex; justify-content: center; gap: 0.7rem; padding: 1rem clamp(1rem, 3vw, 2rem) 1.4rem; flex-wrap: wrap; }
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(243,236,224,0.1); border: 1px solid var(--dark-line);
  display: grid; place-items: center; color: var(--dark-ink); transition: background 0.2s;
}
.lb-nav:hover { background: rgba(243,236,224,0.2); }
.lb-prev { left: clamp(0.4rem, 2vw, 1.6rem); }
.lb-next { right: clamp(0.4rem, 2vw, 1.6rem); }
.lb-x { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--dark-ink); background: rgba(243,236,224,0.1); }
.lb-x:hover { background: rgba(243,236,224,0.22); }
.lb-load { position: absolute; font-size: 0.8rem; color: var(--dark-dim); letter-spacing: 0.14em; text-transform: uppercase; }

/* ─── Servizi ─── */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.svc-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  padding: 2rem 1.8rem; display: flex; flex-direction: column; gap: 0.85rem;
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.svc-card:hover { transform: translateY(-4px); border-color: rgba(201,155,63,0.5); box-shadow: 0 20px 40px -24px rgba(28,24,21,0.45); }
.svc-num { font-family: var(--display); font-style: italic; font-size: 1.5rem; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold-3); }
.svc-card h3 { font-family: var(--display); font-size: 1.45rem; font-weight: 500; letter-spacing: -0.01em; line-height: 1.15; }
.svc-card p { font-size: 0.93rem; color: var(--ink-soft); line-height: 1.7; }
@media (max-width: 980px) { .svc-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }

.svc-foot { margin-top: 2.4rem; display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: center; }
.svc-foot .arrow-link { color: var(--gold-4); }

/* ─── CTA finali ─── */
.cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.cta-card {
  border: 1px solid var(--dark-line); border-radius: 16px; padding: 2.1rem 1.8rem;
  display: flex; flex-direction: column; gap: 0.8rem; transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.cta-card:hover { border-color: rgba(201,155,63,0.55); background: var(--carbon); transform: translateY(-3px); }
.cta-card h3 { font-family: var(--display); font-size: 1.4rem; font-weight: 500; color: var(--dark-ink); }
.cta-card p { font-size: 0.92rem; color: var(--dark-soft); line-height: 1.7; flex: 1; }
.cta-card .arrow-link { color: var(--gold-2); margin-top: 0.4rem; }
@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }

/* ─── Footer ─── */
.site-footer { background: var(--void); color: var(--dark-ink); padding: clamp(3.5rem, 7vw, 5rem) var(--pad-x) 2.5rem; border-top: 1px solid var(--dark-line); }
.footer-grid { max-width: 1260px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
.footer-brand { display: flex; flex-direction: column; gap: 1.1rem; max-width: 360px; }
.footer-logo { font-family: var(--display); font-size: 1.6rem; font-weight: 600; letter-spacing: -0.01em; }
.footer-logo span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--gold-3); }
.footer-brand p { font-size: 0.9rem; color: var(--dark-soft); line-height: 1.7; }
.footer-col h4 { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 1.2rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-col a { font-size: 0.92rem; color: var(--dark-soft); transition: color 0.2s, padding 0.2s; }
.footer-col a:hover { color: var(--dark-ink); padding-left: 0.3rem; }
.footer-bottom {
  max-width: 1260px; margin: 3rem auto 0; padding-top: 1.6rem; border-top: 1px solid var(--dark-line);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.78rem; color: var(--dark-dim);
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 2.4rem; } }

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

/* ═══════════ CARD DEI GIORNI (landing) ═══════════ */
.giorni-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
}
@media (max-width: 980px) { .giorni-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .giorni-grid { grid-template-columns: 1fr; } }

.gcard {
  position: relative; display: flex; flex-direction: column;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); background: var(--paper);
  transition: transform 0.35s var(--ease), box-shadow 0.35s, border-color 0.35s;
}
.gcard-on:hover { transform: translateY(-4px); border-color: rgba(201,155,63,0.55); box-shadow: 0 22px 44px -26px rgba(28,24,21,0.55); }
.gcard-cover { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-3); }
.gcard-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.gcard-on:hover .gcard-cover img { transform: scale(1.05); }
.gcard-body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.gcard-giorno { font-family: var(--display); font-size: 1.55rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.gcard-sott { font-family: var(--display); font-style: italic; font-size: 0.98rem; color: var(--gold-4); }
.gcard-meta {
  margin-top: auto; padding-top: 0.9rem; display: flex; align-items: center; justify-content: space-between;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-dim);
}
.gcard-meta .frecc { color: var(--gold-4); font-size: 1.1rem; transition: transform 0.25s; }
.gcard-on:hover .gcard-meta .frecc { transform: translateX(5px); }

/* giorno non ancora fotografato */
.gcard-off { border-style: dashed; background: transparent; }
.gcard-off .gcard-cover {
  display: grid; place-items: center; background: var(--paper-2);
  font-family: var(--label); font-size: 0.68rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--ink-dim);
}
.gcard-off .gcard-giorno { color: var(--ink-dim); }
.gcard-off .gcard-meta { color: var(--ink-dim); }

/* ═══════════ PAGINA DEL SINGOLO GIORNO ═══════════ */
.giorno-testata { background: var(--void); padding: calc(var(--navh) + clamp(2.5rem, 6vw, 4.5rem)) var(--pad-x) clamp(2.5rem, 5vw, 4rem); }
.giorno-testata .wrap { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.giorno-testata h1 {
  font-family: var(--display); font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 500; line-height: 1; letter-spacing: -0.03em; color: var(--dark-ink);
}
.giorno-testata h1 em { font-style: italic; font-weight: 400; }
.giorno-testata .conta { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dark-dim); }
.torna { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--gold-2); margin-bottom: 1.2rem; }
.torna span { transition: transform 0.25s; }
.torna:hover span { transform: translateX(-4px); }
.giorno-vuoto { padding: clamp(3rem, 8vw, 6rem) 0; text-align: center; }
.giorno-vuoto p { font-size: 1.05rem; color: var(--ink-soft); max-width: 46ch; margin: 0 auto; line-height: 1.7; }

.salti { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 1.8rem; margin-top: clamp(2rem, 5vw, 3.5rem); }
.salti a { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 600; font-size: 0.9rem; color: var(--ink); }
.salti a:hover { color: var(--gold-4); }
.salti .vuoto { visibility: hidden; }
