/* ==========================================================================
   Music BonusMalus — Demo 09 "Atelier" · COUTURE WEDDING build
   Fine-art / bridal · warm ivory · soft gold foil · arched video window
   Cormorant Garamond (display) · Marcellus (incised caps) · Jost (UI)
   ========================================================================== */

/* ── FONT SERVITI DAL SITO (SIL OFL, vedi assets/fonts/LICENSE.txt): niente richieste a Google ── */
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('fonts/cormorant-garamond-latin-var.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url('fonts/cormorant-garamond-italic-500-latin.woff2') format('woff2'); }
@font-face { font-family: 'Jost'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('fonts/jost-latin-var.woff2') format('woff2'); }
@font-face { font-family: 'Marcellus'; font-style: normal; font-weight: 400; font-display: swap; src: url('fonts/marcellus-400-latin.woff2') format('woff2'); }

:root {
  /* luminosità delle foto di sfondo (1 = originale) */
  --bg-bright: 1.35;
  /* velo avorio sopra le foto di sfondo (0 = foto piena, 1 = tutto avorio) */
  --bg-veil: .84;
  /* bande chiare orizzontali, a tutta larghezza, dietro i blocchi di testo */
  --band: rgba(251,247,238,.82);
  --band-pad: clamp(22px, 3.2vw, 44px);
  --ivory:   #f5efe4;
  --ivory-2: #fbf7ee;
  --cream:   #ece2d1;
  --cream-3: #e4d8c3;
  --ink:     #1a1610;
  --ink-2:   #2b241c;
  --muted:   #4f4538;
  --line:    rgba(42,36,25,0.14);
  --line-2:  rgba(42,36,25,0.26);
  --gold:    #ab8a4f;
  --gold-2:  #8c6f3a;
  --gold-soft: rgba(171,138,79,0.12);
  --foot-bg: #4e3b1d; /* bruno dorato scuro del tema (contrasto avorio ~10:1) */

  --maxw: 1320px;
  --gut: clamp(22px, 5vw, 84px);
  --serif:  'Cormorant Garamond', Georgia, serif;
  --incise: 'Marcellus', 'Cormorant Garamond', serif;
  --sans:   'Jost', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.65;
  font-size: 19px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip; /* clip (non hidden): hidden renderebbe body un contenitore di scroll e romperebbe position: sticky */
}
::selection { background: var(--gold); color: var(--ivory-2); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* warm paper grain */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: 0.035; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); }

/* ---------- shared elements ---------- */
.eyebrow {
  font-family: var(--incise);
  font-size: 0.82rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold-2);
  font-weight: 400;
}
.lead { font-size: clamp(1.15rem, 1.5vw, 1.4rem); color: var(--ink-2); line-height: 1.6; font-weight: 500; }

/* ornament divider: hairline — diamond — hairline */
.orn { display: inline-flex; align-items: center; gap: 16px; color: var(--gold); }
.orn::before, .orn::after { content: ""; height: 1px; width: clamp(40px, 7vw, 84px); background: linear-gradient(90deg, transparent, var(--gold) 70%); }
.orn::after { background: linear-gradient(270deg, transparent, var(--gold) 70%); }
.orn i { font-style: normal; font-size: 0.7rem; transform: rotate(45deg); display: inline-block; width: 7px; height: 7px; border: 1px solid var(--gold); }

/* buttons — stationery / couture, squared */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--incise); font-size: 0.78rem; letter-spacing: 0.26em; text-transform: uppercase;
  font-weight: 400;
  padding: 1.15em 2.3em;
  border: 1px solid var(--ink);
  background: transparent; color: var(--ink);
  cursor: pointer;
  transition: background .55s var(--ease), color .55s var(--ease), border-color .55s var(--ease);
}
.listino { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; margin-bottom: clamp(32px,5vh,56px); }
.listino[hidden] { display: none; }
.listino__sub { font-family: var(--serif); font-size: clamp(0.92rem, 3.9vw, 1.15rem); color: var(--ink-2, var(--ink)); text-wrap: balance; margin-bottom: 8px; }
.btn:hover { background: var(--gold); border-color: var(--gold); color: var(--ivory-2); }
.btn--solid { background: var(--ink); color: var(--ivory-2); }
.btn--solid:hover { background: var(--gold); border-color: var(--gold); }

/* understated text link */
.tlink {
  font-family: var(--incise); font-size: 0.82rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-2);
  display: inline-block; padding-bottom: 4px; position: relative;
}
.tlink::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.tlink:hover { color: var(--ink); }
.tlink:hover::after { transform: scaleX(1); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .6s var(--ease), border-color .6s, backdrop-filter .6s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: color-mix(in oklab, var(--ivory) 80%, transparent); backdrop-filter: blur(12px) saturate(1.05); border-bottom-color: var(--line); }
.nav__in { max-width: var(--maxw); margin: 0 auto; padding: clamp(8px,1vw,12px) var(--gut);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 13px; }
.brand img { height: clamp(46px, 4vw, 56px); width: auto; }

.nav__links { display: flex; align-items: center; gap: clamp(20px,2.4vw,42px); }
.nav__links a { font-family: var(--incise); font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); position: relative; padding: 4px 0; transition: color .4s; }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 1px; width: 100%; background: var(--gold); transform: scaleX(0); transition: transform .4s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__right { display: flex; align-items: center; gap: 20px; }
.lang { display: inline-flex; gap: 1px; }
.lang button { font-family: var(--incise); font-size: 0.78rem; letter-spacing: 0.1em; background: none; border: none; cursor: pointer; color: var(--muted); padding: 5px 7px; transition: color .3s; }
.lang button.is-active { color: var(--gold-2); }
.lang button:hover { color: var(--ink); }
.lang span { color: var(--line-2); align-self: center; }
.nav .btn { padding: 0.7em 1.5em; font-size: 0.7rem; }

.burger { display: none; width: 40px; height: 40px; position: relative; z-index: 101; background: none; border: none; cursor: pointer; }
.burger span { position: absolute; left: 9px; right: 9px; height: 1px; background: var(--ink); transition: transform .4s var(--ease), opacity .3s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 24px; }
.burger.is-open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger.is-open span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding-top: clamp(120px, 17vh, 200px); padding-bottom: clamp(40px, 6vh, 70px); }
.hero__grid { display: grid; grid-template-columns: 1.04fr 0.96fr; gap: clamp(34px, 6vw, 96px); align-items: center; }
.hero__lead { position: relative; }
.hero__kicker { display: flex; align-items: center; gap: 18px; margin-bottom: clamp(24px,3vw,36px); }
.hero__kicker .ln { height: 1px; width: 56px; background: linear-gradient(90deg, var(--gold), transparent); }

.hero h1 { font-family: var(--serif); font-weight: 500; line-height: 0.96; letter-spacing: -0.005em; font-size: clamp(2.4rem, 5.6vw, 4.5rem); }
.hero h1 .ln { display: block; overflow: hidden; white-space: nowrap; }
.hero h1 .ln > span { display: block; }
@media (prefers-reduced-motion: no-preference) {
  body.is-ready .hero h1 .ln > span { animation: lnRise 1.15s var(--ease) backwards; }
  body.is-ready .hero h1 .ln:nth-child(1) > span { animation-delay: .12s; }
  body.is-ready .hero h1 .ln:nth-child(2) > span { animation-delay: .24s; }
  body.is-ready .hero h1 .ln:nth-child(3) > span { animation-delay: .36s; }
}
@keyframes lnRise { from { transform: translateY(105%); } to { transform: translateY(0); } }
/* failsafe: pin hero to visible end-state even where the compositor never advances the animation */
body.is-loaded .hero h1 .ln > span,
body.is-loaded .hero__sub,
body.is-loaded .hero__actions,
body.is-loaded .archframe { animation: none !important; opacity: 1 !important; transform: none !important; }

.hero__sub { max-width: 42ch; margin-top: clamp(24px,3vw,36px); color: var(--ink-2); font-size: clamp(1.12rem,1.4vw,1.4rem); line-height: 1.55; font-weight: 500; }
body.is-ready .hero__sub { }
.hero__actions { display: flex; align-items: center; gap: 26px; margin-top: clamp(30px,3.6vw,46px); flex-wrap: wrap; }
@media (prefers-reduced-motion: no-preference) {
  body.is-ready .hero__sub { animation: fadeUp 1s ease .6s backwards; }
  body.is-ready .hero__actions { animation: fadeUp 1s ease .76s backwards; }
}
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* arched video window */
.hero__media { display: flex; justify-content: center; }
.archframe {
  position: relative; width: 100%; max-width: 440px;
  padding: 12px; background: var(--ivory-2);
  border: 1px solid var(--gold); border-radius: 999px 999px 8px 8px;
  box-shadow: 0 46px 90px -52px rgba(42,36,25,0.6);
}
@media (prefers-reduced-motion: no-preference) {
  body.is-ready .archframe { animation: fadeUp 1.2s var(--ease) .3s backwards; }
}
.archframe::before { content: ""; position: absolute; inset: 5px; border: 1px solid var(--gold-soft); border-radius: 999px 999px 5px 5px; pointer-events: none; z-index: 4; }
.portrait { position: relative; aspect-ratio: 3 / 4.1; width: 100%; overflow: hidden; border-radius: 999px 999px 4px 4px; background: var(--cream); }
.portrait video { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); animation: kenburns 24s ease-in-out infinite alternate; }
/* in pausa lo zoom si ferma (classe messa dal JS) */
.portrait video.is-paused { animation-play-state: paused; }
@keyframes kenburns { 0% { transform: scale(1.06) translate(0,0); } 100% { transform: scale(1.17) translate(-1.5%, -2.5%); } }
.portrait::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(42,36,25,0) 60%, rgba(42,36,25,0.4) 100%); }
.portrait__cap { position: absolute; bottom: 16px; left: 0; right: 0; z-index: 3; text-align: center; color: var(--ivory-2); }
.portrait__cap .t { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1; }
.portrait__cap .s { font-family: var(--incise); font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.85; margin-top: 6px; }
.archframe__monogram { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); z-index: 6; background: var(--ivory); padding: 0 12px; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--gold-2); }


/* ==========================================================================
   SECTION scaffolding — centered, generous
   ========================================================================== */
.section { padding-block: clamp(90px, 13vh, 180px); position: relative; }
.section--cream { background: var(--ivory-2); }
.shead { text-align: center; max-width: 740px; margin: 0 auto clamp(50px,7vh,90px); display: flex; flex-direction: column; align-items: center; gap: 22px; position: relative; }
.shead h2 { font-family: var(--serif); font-weight: 500; line-height: 1.0; letter-spacing: -0.005em; font-size: clamp(2rem, 3.6vw, 3.2rem); }
.shead h2 em { font-style: normal; }
.shead .lead { max-width: 54ch; }

/* reveal util */
[data-reveal] { opacity: 0; transform: translateY(28px); }
[data-reveal].is-in { opacity: 1; transform: none; transition: opacity 1.1s ease, transform 1.2s var(--ease); }
[data-reveal][data-d="1"].is-in { transition-delay: .1s; }
[data-reveal][data-d="2"].is-in { transition-delay: .2s; }
[data-reveal][data-d="3"].is-in { transition-delay: .3s; }

/* ==========================================================================
   ABOUT — team gallery (masonry)
   ========================================================================== */
/* video a tutta larghezza, appoggiato al blocco chiaro sopra (titolo) e a quello sotto (servizi);
   resta fisso mentre si scorre e le 3 scritte (acap) passano a sinistra e a destra */
#about { padding-bottom: 0; }
#about .shead { margin-bottom: 0; }
#services { padding-top: 0; }
.astage { --h: 100vh; --h: 100svh; --scroll: 210vh; --scroll: 210svh; height: calc(var(--h) + var(--scroll)); position: relative; }
.astage__sticky { position: sticky; top: 0; height: var(--h); overflow: hidden; background: var(--ink); }
.astage video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* sfumatura scura ai bordi: fa risaltare le scritte bianche */
.astage__shade { position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(14,11,8,.66) 0%, rgba(14,11,8,.34) 26%, rgba(14,11,8,0) 50%, rgba(14,11,8,.34) 74%, rgba(14,11,8,.66) 100%),
    linear-gradient(180deg, rgba(14,11,8,.3) 0%, rgba(14,11,8,0) 22%, rgba(14,11,8,0) 78%, rgba(14,11,8,.3) 100%); }
.acap { position: absolute; top: 50%; z-index: 3; max-width: min(30ch, 62vw); margin: 0; color: #fff; opacity: 0; will-change: opacity, transform;
  transform: translate3d(0, -50%, 0); text-shadow: 0 2px 26px rgba(0,0,0,.5); pointer-events: none; }
.acap--l { left: clamp(22px, 6vw, 120px); text-align: left; }
.acap--r { right: clamp(34px, 6vw, 120px); text-align: right; }
.acap__t { display: block; font-family: var(--serif); font-weight: 500; font-size: clamp(2.1rem, 5vw, 4.4rem); line-height: 1; letter-spacing: -0.005em; }
.acap__s { display: block; margin-top: 14px; font-family: var(--sans); font-weight: 400; font-size: clamp(.95rem, 1.25vw, 1.15rem); line-height: 1.5; opacity: .92; }
/* riferimento per lo scorrimento: barra di avanzamento a destra e invito "Scorri" in basso */
.astage__prog { position: absolute; z-index: 4; right: clamp(12px, 2vw, 28px); top: 50%; width: 2px; height: min(34vh, 260px); transform: translateY(-50%); background: rgba(255,255,255,.3); border-radius: 2px; pointer-events: none; }
.astage__fill { position: absolute; inset: 0; background: #fff; border-radius: 2px; transform-origin: top; transform: scaleY(var(--p, 0)); }
.astage__cue { position: absolute; z-index: 4; left: 50%; bottom: clamp(18px, 4vh, 36px); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font-family: var(--sans); font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; text-shadow: 0 2px 16px rgba(0,0,0,.55); pointer-events: none; transition: opacity .5s; }
.astage__chev { width: 11px; height: 11px; border-right: 1.5px solid #fff; border-bottom: 1.5px solid #fff; transform: rotate(45deg); animation: acue 1.6s ease-in-out infinite; }
@keyframes acue { 0%, 100% { transform: translateY(0) rotate(45deg); opacity: .5; } 50% { transform: translateY(6px) rotate(45deg); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .astage__chev { animation: none; } }
@media (max-width: 760px) {
  .astage { --scroll: 180vh; --scroll: 180svh; }
  .astage__shade { background-color: rgba(14,11,8,.2); }
}
@media (prefers-reduced-motion: reduce) { .acap { will-change: auto; } }

/* ==========================================================================
   SERVICES
   ========================================================================== */
.serv__block { margin-top: clamp(70px,10vh,130px); scroll-margin-top: 90px; }
.serv__block:first-of-type { margin-top: 0; }
.serv__head { text-align: center; max-width: 720px; margin: 0 auto clamp(34px,5vh,56px); }
.serv__head h2, .serv__head h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3.6vw, 3.2rem); line-height: 1.05; }
.serv__eyebrow { display: block; margin-bottom: 18px; }
.serv__head .c-orn { margin: 18px 0 22px; }
.serv__intro { font-size: clamp(1.1rem,1.4vw,1.3rem); color: var(--ink-2); line-height: 1.6; font-weight: 500; }

/* ==========================================================================
   LUCI — galleria filtrabile + lightbox (porting vanilla di un gallery grid)
   ========================================================================== */
.lgal__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(26px,4vh,40px); }
.lgal__f { font-family: var(--incise); font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 11px 20px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--ivory-2); color: var(--ink-2); cursor: pointer; transition: background .35s, color .35s, border-color .35s; }
.lgal__f:hover { border-color: var(--gold); color: var(--gold-2); }
.lgal__f.is-on { background: var(--ink); border-color: var(--ink); color: var(--ivory-2); }
.lgal__f:focus-visible, .lgal__btn:focus-visible, .lbox button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* Mobile: filtri in griglia a 2 colonne, pulsanti tutti uguali; l'ultimo, se dispari, centrato e della stessa larghezza */
@media (max-width: 600px) {
  .lgal__filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lgal__f { padding: 12px 6px; letter-spacing: 0.1em; text-align: center; white-space: nowrap; }
  .lgal__f:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc((100% - 8px) / 2); }
}
.lgal__grid { --lg-gap: clamp(12px,1.4vw,20px); list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--lg-gap); }
.lgal__grid--2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin-inline: auto; }
.lgal__grid--2 .lgal__btn { aspect-ratio: 4 / 5; }
.lgal__item { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.lgal__item.is-hidden { display: none; }
/* riquadro rimasto solo nell'ultima riga: al centro, della stessa larghezza degli altri (--lg-cols lo imposta il JS) */
.lgal__item--solo { grid-column: 1 / -1; justify-self: center; width: calc((100% - (var(--lg-cols, 3) - 1) * var(--lg-gap)) / var(--lg-cols, 3)); }
.lgal__item.is-entering { opacity: 0; transform: scale(.96); }
.lgal__btn { position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--cream); cursor: zoom-in; }
.lgal__btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--ease); }
.lgal__btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,22,16,0) 50%, rgba(26,22,16,.62)); opacity: 0; transition: opacity .45s; }
.lgal__cap { position: absolute; left: 0; right: 0; bottom: 16px; z-index: 2; text-align: center; font-family: var(--incise); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-2); opacity: 0; transform: translateY(6px); transition: opacity .45s, transform .45s var(--ease); }
.lgal__btn:hover img { transform: scale(1.06); }
.lgal__btn:hover::after, .lgal__btn:focus-visible::after { opacity: 1; }
.lgal__btn:hover .lgal__cap, .lgal__btn:focus-visible .lgal__cap { opacity: 1; transform: none; }
@media (hover: none) { .lgal__btn::after, .lgal__cap { opacity: 1; transform: none; } }

.lbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: clamp(16px,4vw,60px); background: rgba(26,22,16,.93); opacity: 0; transition: opacity .35s ease; }
.lbox[hidden] { display: none; }
.lbox.is-open { opacity: 1; }
.lbox__fig { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: min(1200px, 100%); }
.lbox__fig img { max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: 4px; display: block; }
.lbox__cap { margin-top: 16px; font-family: var(--incise); font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory-2); }
.lbox button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(251,247,238,.35); background: rgba(26,22,16,.4); color: var(--ivory-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: background .3s, border-color .3s; }
.lbox button:hover { background: rgba(251,247,238,.12); border-color: var(--gold); }
.lbox svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lbox__x { top: clamp(14px,2.5vw,28px); right: clamp(14px,2.5vw,28px); }
/* lightbox: contatore e pallini */
.lbox__nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 12px; }
.lbox__nav[hidden] { display: none; }
.lbox__dots { display: inline-flex; align-items: center; gap: 8px; }
.lbox__dots i { width: 8px; height: 8px; border-radius: 50%; border: 1px solid rgba(251,247,238,.75); transition: background .3s, transform .3s; }
.lbox__dots i.is-on { background: #fff; border-color: #fff; transform: scale(1.3); }
.lbox__count { font-family: var(--sans); font-size: .74rem; letter-spacing: .2em; color: var(--ivory-2); }
.lbox__arr[hidden] { display: none; }
.lbox__arr--prev { left: clamp(10px,2.5vw,32px); top: 50%; transform: translateY(-50%); }
.lbox__arr--next { right: clamp(10px,2.5vw,32px); top: 50%; transform: translateY(-50%); }
body.lbox-open { overflow: hidden; }

/* ==========================================================================
   ARTISTI — galleria a ventaglio (card fan)
   Le posizioni/rotazioni sono calcolate in JS: qui solo forma e stile.
   --fan-h governa tutta la scala (card + apertura del ventaglio).
   ========================================================================== */
.fan { --fan-h: 38rem; --fan-cw: 0.385; --fan-ch: 0.63; display: flex; flex-direction: column; align-items: center; width: 100%; position: relative; }
.fan__stage { position: relative; width: 100%; height: var(--fan-h); }

.fan-card {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--fan-h) * var(--fan-cw));
  height: calc(var(--fan-h) * var(--fan-ch));
  margin-left: calc(var(--fan-h) * var(--fan-cw) * -0.5);
  margin-top: calc(var(--fan-h) * var(--fan-ch) * -0.5);
  display: flex; flex-direction: column;
  padding: 0.5rem 0.5rem 0;
  background: var(--ivory-2);
  border: 1px solid var(--line);
  border-radius: 3px;
  box-shadow: 0 30px 58px -36px rgba(42,36,25,0.8);
  opacity: 0;                       /* JS porta le card in scena */
  will-change: transform, opacity;
  backface-visibility: hidden;
  cursor: pointer;
}
.fan-card::after {
  content: ""; position: absolute; inset: 4px; border: 1px solid var(--gold-soft);
  border-radius: 2px; pointer-events: none;
}
.fan-card__ph { position: relative; flex: 1; overflow: hidden; background: var(--cream); border-radius: 2px; }
.fan-card[data-media] { cursor: pointer; }
.fan-card__ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); transition: filter .5s var(--ease); }
.fan-card:hover .fan-card__ph img, .fan-card:active .fan-card__ph img { filter: none; }
.fan-card__ph::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 58%, rgba(42,36,25,0.24));
}
.fan-card__cap { padding: 0.72rem 0.3rem 0.8rem; text-align: center; }
.fan-card__cap .n { font-family: var(--serif); font-weight: 500; font-size: 1.28rem; line-height: 1.05; }
.fan-card__cap .r { font-family: var(--incise); font-size: 0.56rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }

/* controlli */
/* indicatori: badge "▶ N video" sulle schede che hanno contenuti + invito sotto il ventaglio */
.fan-card__badge { position: absolute; right: 8px; bottom: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px 4px 8px; border-radius: 999px; background: rgba(26,22,16,.66); color: #fff; font-family: var(--incise); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; pointer-events: none; transition: background .3s; }
.fan-card__badge svg { width: 9px; height: 9px; fill: #fff; flex: none; }
.fan-card__badge b { font-weight: 500; }
.fan-card:hover .fan-card__badge { background: rgba(26,22,16,.85); }
.fan__hint { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; font-family: var(--incise); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); text-align: center; text-wrap: balance; padding-inline: 16px; }
.fan__hint svg { width: 10px; height: 10px; fill: var(--gold-2); flex: none; }
.fan__nav { display: flex; align-items: center; gap: clamp(16px, 2.5vw, 26px); margin-top: clamp(22px, 3.4vh, 40px); }
.fan__arrow {
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .45s var(--ease), color .45s, border-color .45s, transform .45s var(--ease);
}
.fan__arrow:hover { background: var(--ink); color: var(--ivory-2); border-color: var(--ink); }
.fan__arrow:active { transform: scale(0.94); }
.fan__arrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.fan__dots { display: flex; align-items: center; gap: 9px; }
.fan__dot {
  width: 6px; height: 6px; padding: 0; border: none; border-radius: 50%;
  background: var(--line-2); cursor: pointer;
  transition: transform .45s var(--ease), background .45s;
}
.fan__dot:hover { background: var(--gold-2); }
.fan__dot.is-active { background: var(--gold); transform: scale(1.55); }

/* meno card in scena (gestito in JS) ⇒ card più grandi rispetto allo stage */
@media (max-width: 1023px) { .fan { --fan-h: 32rem; } }
@media (max-width: 899px)  { .fan { --fan-cw: 0.44; --fan-ch: 0.70; } }
@media (max-width: 767px)  { .fan { --fan-h: 27rem; } .fan-card__cap .n { font-size: 1.12rem; } }
@media (max-width: 559px)  { .fan { --fan-cw: 0.50; --fan-ch: 0.74; } }
@media (max-width: 479px)  { .fan { --fan-h: 23rem; } .fan-card { padding: 0.4rem 0.4rem 0; } .fan-card__cap .n { font-size: 1rem; } .fan-card__cap .r { font-size: 0.5rem; } }
@media (max-height: 720px) and (min-width: 1024px) { .fan { --fan-h: 32rem; } }

@media (prefers-reduced-motion: reduce) { .fan-card { transition: none !important; } }

/* ==========================================================================
   PORTFOLIO
   ========================================================================== */

/* ==========================================================================
   REVIEWS
   ========================================================================== */
.rev__quotes { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(34px,6vw,88px); }
.quote { text-align: center; position: relative; padding-top: 56px; }
.quote::before { content: "\201C"; position: absolute; top: 0; left: 50%; transform: translateX(-50%); font-family: var(--serif); font-size: 6rem; line-height: 1; color: var(--gold); opacity: .4; }
.quote p { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.5rem,2.4vw,2.1rem); line-height: 1.32; color: var(--ink); }
.quote .by { margin-top: 26px; display: flex; flex-direction: column; gap: 5px; }
.quote .by b { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; }
.quote .by span { font-family: var(--incise); font-size: 0.66rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

.rev__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px,3vw,46px); margin-top: clamp(54px,8vh,100px); border-top: 1px solid var(--line); padding-top: clamp(40px,6vh,64px); text-align: center; }
.stat .num { font-family: var(--serif); font-weight: 500; font-size: clamp(3.4rem,6.5vw,5.6rem); line-height: 1; letter-spacing: -0.01em; color: var(--gold-2); }
.stat .lab { font-family: var(--incise); font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }
.rev__foot { margin-top: clamp(40px,5vh,60px); display: flex; align-items: center; justify-content: center; gap: clamp(20px,4vw,50px); flex-wrap: wrap; text-align: center; }
.rev__links { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.rev__badge { display: inline-flex; align-items: center; gap: 0.8em; font-family: var(--incise); font-size: 0.74rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.rev__badge .star { color: var(--gold); letter-spacing: 0.12em; font-size: 0.9rem; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.ct__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(40px,6vw,100px); align-items: start; }
.field { position: relative; margin-bottom: 32px; }
.field label { font-family: var(--incise); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line-2);
  padding: 11px 2px; font-family: var(--serif); font-size: 1.25rem; color: var(--ink); outline: none; transition: border-color .4s;
}
.field textarea { resize: vertical; min-height: 86px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.field select { appearance: none; cursor: pointer; }
.ct__row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.ct__submit { margin-top: 8px; }
.form-success { font-family: var(--incise); font-size: 0.8rem; letter-spacing: 0.08em; color: var(--gold-2); margin-top: 20px; opacity: 0; height: 0; overflow: hidden; transition: opacity .5s; }
.form-success.is-visible { opacity: 1; height: auto; }
.form-error { font-family: var(--incise); font-size: 0.8rem; letter-spacing: 0.08em; color: #9b2c1f; margin-top: 20px; display: none; }
.form-error.is-visible { display: block; }
.ct__submit[disabled] { opacity: .6; cursor: progress; }
/* Turnstile "execute": il contenitore non occupa spazio finché non compare una sfida vera (iframe) */
[data-turnstile]:not(:has(iframe)) { height: 0; min-height: 0; overflow: hidden; margin: 0; }
[data-turnstile]:has(iframe) { margin: 14px 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ct__block { padding: 24px 0; border-bottom: 1px solid var(--line); }
.ct__block:first-child { padding-top: 0; }
.ct__block .l { font-family: var(--incise); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); margin-bottom: 9px; }
.ct__block .v { font-family: var(--serif); font-size: clamp(1.4rem,2vw,1.8rem); font-weight: 500; }
.ct__block a.v:hover { color: var(--gold-2); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { background: var(--foot-bg); color: var(--ivory-2); padding-block: clamp(70px,11vh,130px); text-align: center; }
.foot__row { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-top: clamp(46px,7vh,80px); padding-top: 32px; border-top: 1px solid rgba(245,239,228,0.16); text-align: left; }
.foot__brand { display: flex; align-items: center; gap: 16px; }
.foot__brand img { height: 38px; width: auto; }
.foot__legal { font-family: var(--sans); font-weight: 400; font-size: 0.74rem; letter-spacing: 0.03em; color: rgba(251,247,238,0.9); line-height: 1.9; }
.foot__sub { display: flex; align-items: center; justify-content: space-between; gap: 14px 30px; flex-wrap: wrap; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(245,239,228,0.16); font-family: var(--sans); font-size: 0.7rem; letter-spacing: 0.03em; text-align: left; }
.foot__links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot__links a, .foot__dev { color: rgba(251,247,238,0.78); text-decoration: none; transition: color .3s; }
.foot__dev:hover { color: var(--cream); }
.foot__vid { padding: 0; border: 0; background: none; font: inherit; letter-spacing: inherit; color: rgba(251,247,238,0.78); cursor: pointer; text-align: left; transition: color .3s; }
.foot__vid:hover { color: var(--cream); }
.foot__vid:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.foot__links a.is-soon { opacity: .6; cursor: default; }
.foot__socials { display: flex; gap: 26px; }
.foot__socials a { color: var(--ivory-2); transition: color .3s, transform .3s; }
.foot__socials a:hover { color: var(--cream); transform: translateY(-2px); }
.foot__socials svg { width: 28px; height: 28px; fill: currentColor; }

/* ==========================================================================
   FLOATING
   ========================================================================== */
.fab-wa { position: fixed; right: clamp(16px,2.5vw,32px); bottom: clamp(16px,2.5vw,32px); z-index: 120; width: 56px; height: 56px; border-radius: 50%; background: #25d366; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 16px 34px -12px rgba(37,211,102,0.7); transition: transform .35s var(--ease), opacity .3s var(--ease); }
.fab-wa.is-hidden { opacity: 0; pointer-events: none; transform: translateY(16px) scale(.9); }
.fab-wa:hover { transform: scale(1.08) translateY(-2px); }
.fab-wa svg { width: 28px; height: 28px; fill: #fff; }
.fab-wa::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid #25d366; animation: ring 2.6s ease-out infinite; }
@keyframes ring { 0%{ transform: scale(1); opacity: .7; } 100%{ transform: scale(1.7); opacity: 0; } }
.totop { position: fixed; left: clamp(16px,2.5vw,32px); bottom: clamp(16px,2.5vw,32px); z-index: 110; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--ivory); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .4s, transform .4s var(--ease), background .3s, color .3s; color: var(--ink); font-size: 1rem; }
.totop.is-visible { opacity: 1; pointer-events: auto; transform: none; }
.totop:hover { background: var(--ink); color: var(--ivory-2); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1000px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; justify-items: center; }
  .hero__lead { text-align: center; width: 100%; }
  .hero h1 { font-size: clamp(2rem, 11vw, 5.2rem); }
  .hero__kicker { justify-content: center; }
  .hero__kicker .ln { display: none; }
  .hero h1 .ln { text-align: center; }
  .hero__sub { margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .archframe { margin-inline: auto; }
  .rev__quotes, .ct__grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 1000px) {
  .hero__kicker .eyebrow { text-align: center; }
}
@media (max-width: 900px) {
  .nav__links, .nav .btn { display: none; }
  .burger { display: block; }
  .nav__menu { position: fixed; inset: 0; height: 100dvh; background: var(--ivory); z-index: 99; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 4px; padding: var(--gut); transform: translateY(-100%); opacity: 0; visibility: hidden; overscroll-behavior: contain; transition: transform .6s var(--ease), opacity .4s var(--ease), visibility 0s linear .6s; }
  .nav__menu.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .6s var(--ease), opacity .4s var(--ease), visibility 0s; }
  .nav__menu a { font-family: var(--serif); font-size: clamp(1.5rem, 6vw, 1.9rem); padding: 9px 0; text-align: center; }
  .nav__menu a::after { display: none; }
}
@media (max-width: 760px) {
  .lgal__grid { grid-template-columns: repeat(2, 1fr); }
  .lgal__grid--2 { --lg-gap: 10px; }
  .lbox__arr--prev, .lbox__arr--next { top: auto; bottom: 18px; transform: none; }
  body { font-size: 18px; }
  .about__members, .rev__stats, .ct__row { grid-template-columns: 1fr; }
  }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero h1 .ln > span { transform: none; }
  .archframe, .hero__sub, .hero__actions { opacity: 1; transform: none; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ── BACKGROUND FISSO ── */
.bg-slide {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.bg-slide__img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(var(--bg-bright));
}
.bg-slide__overlay {
  position: absolute;
  inset: 0;
  background: rgba(245,239,228,var(--bg-veil));
}


/* ==========================================================================
   BANDE ORIZZONTALI dietro i blocchi di testo
   Striscia chiara a tutta larghezza della pagina, alta quanto il blocco
   (padding-block dà il respiro, così strisce vicine non si sovrappongono): pseudo-elemento con
   box-shadow esteso ai lati e clip-path che lo taglia solo in verticale
   (nessuno scroll orizzontale, funziona anche da una colonna della griglia).
   ========================================================================== */
.shead, .serv__head,
.rev__quotes, .rev__stats, .rev__foot, .ct__grid,
.band-group { position: relative; padding-block: var(--band-pad); }
.shead::before, .serv__head::before,
.rev__quotes::before, .rev__stats::before, .rev__foot::before, .ct__grid::before,
.band-group::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--band);
  box-shadow: 0 0 0 100vmax var(--band);
  clip-path: inset(0 -100vmax);
  z-index: -1;
  pointer-events: none;
}

/* gruppi: più blocchi sotto un'unica banda (le bande dei figli si spengono) */
.band-group > *::before { display: none; }
.band-group > .rev__quotes, .band-group > .rev__foot, .band-group > .ct__grid { padding-block: 0; }
.band-group > .rev__stats { margin-top: 0; padding-block: 0 clamp(30px,4vh,48px); }
.band-group > .shead:last-child { margin-bottom: 0; }

.foot { padding-block: clamp(34px,5vh,56px); }
.foot .foot__row { margin-top: 0; padding-top: 0; border-top: 0; }

/* ==========================================================================
   EVENTI — card verticali 9:16 (video con anteprima in movimento + foto)
   ========================================================================== */
/* Villa Aura — galleria espandibile a 4 video: al passaggio il video si allarga, gli altri si restringono;
   click = lightbox con il video completo (stessa meccanica di .evg) */
.xgal { display: flex; gap: 8px; width: 100%; max-width: 1100px; height: clamp(380px, 66vh, 580px); margin: 0 auto; }
.xgal__item { position: relative; flex: 1 1 0; min-width: 0; padding: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--ink); cursor: pointer; transition: flex-grow .5s ease-in-out; }
.xgal__item video, .xgal__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Service Audio: foto quasi quadrate, riquadri meno alti per non tagliarle troppo */
.xgal--audio { height: clamp(300px, 52vh, 440px); }
.xgal__item::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(26,22,16,0) 55%, rgba(26,22,16,.6)); pointer-events: none; }
.xgal__item::after { content: ""; position: absolute; inset: 0; background: rgb(26,22,16); opacity: .28; transition: opacity .3s ease; pointer-events: none; }
.xgal:hover .xgal__item, .xgal:focus-within .xgal__item { flex-grow: .5; }
.xgal .xgal__item:hover, .xgal .xgal__item:focus-visible { flex-grow: 2; }
.xgal .xgal__item:hover::after, .xgal .xgal__item:focus-visible::after { opacity: 0; }
.xgal__item:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.xgal__item .evg__cap { left: 6px; right: 6px; font-size: .62rem; letter-spacing: .12em; line-height: 1.35; }
.xgal__item .evg__play { z-index: 2; }
@media (hover: none) { .xgal__item::after { opacity: 0; } }
@media (max-width: 760px) {
  .xgal { display: grid; grid-template-columns: 1fr 1fr; height: auto; gap: 8px; }
  .xgal__item { aspect-ratio: 9 / 14; }
}

.evg { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(14px,1.6vw,24px); }
.evg__item { position: relative; width: clamp(220px, 30%, 330px); aspect-ratio: 9 / 16; padding: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--ink); cursor: pointer; }
.evg__item img, .evg__item video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--ease); }
.evg__item:hover img, .evg__item:hover video { transform: scale(1.04); }
.evg__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,22,16,0) 55%, rgba(26,22,16,.6)); pointer-events: none; }
.evg__cap { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; text-align: center; font-family: var(--incise); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory-2); }
.evg__play { position: absolute; top: 50%; left: 50%; z-index: 2; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; border: 1px solid rgba(251,247,238,.7); background: rgba(26,22,16,.35); display: flex; align-items: center; justify-content: center; transition: transform .4s var(--ease), background .3s; }
.evg__play svg { width: 16px; height: 16px; fill: var(--ivory-2); margin-left: 2px; }
.evg__item:hover .evg__play, .lgal__btn:hover .evg__play { transform: scale(1.08); background: rgba(26,22,16,.55); }
.evg__item:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
/* [hidden] deve vincere su display:block, altrimenti resta un player/immagine vuoti */
.lbox__fig img[hidden], .lbox__fig video[hidden] { display: none; }
.lbox__fig video { max-width: 100%; max-height: 80vh; width: auto; height: auto; border-radius: 4px; display: block; background: #000; }
@media (max-width: 760px) { .evg__item { width: calc(50% - 8px); } }
/* footer attaccato alla banda del form: nessuna striscia di sfondo in mezzo */
#contact { padding-bottom: 0; }

/* ==========================================================================
   COOKIE BANNER — card centrata in basso, scelta Rifiuta / Accetta
   ========================================================================== */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; padding: 16px; display: flex; justify-content: center; animation: cookie-rise .4s var(--ease); }
.cookie-banner[hidden] { display: none; }
.cookie-banner:focus:not(:focus-visible) { outline: none; }
.cookie-banner:focus-visible { outline: 2px solid var(--gold-2); outline-offset: -4px; }
@keyframes cookie-rise { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.cookie-inner { width: 100%; max-width: 760px; background: var(--ivory-2); border: 1px solid var(--line-2); border-radius: 3px; box-shadow: 0 18px 50px -12px rgba(42,36,25,0.45); padding: 20px 22px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.cookie-text { flex: 1 1 320px; }
.cookie-text p { color: var(--muted); font-family: var(--sans); font-size: 14px; line-height: 1.55; }
.cookie-text p.cookie-title { font-family: var(--incise); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: #6f5629; margin-bottom: 6px; }
.cookie-actions { display: flex; gap: 10px; flex: 0 0 auto; }
.cookie-btn { font-family: var(--sans); font-size: 14px; font-weight: 500; padding: 11px 22px; border-radius: 2px; border: 1px solid var(--line-2); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.cookie-reject { background: transparent; color: var(--muted); }
.cookie-reject:hover { border-color: var(--ink); color: var(--ink); }
.cookie-accept { background: #6f5629; color: var(--ivory-2); border-color: #6f5629; }
.cookie-accept:hover { background: var(--ink-2); border-color: var(--ink-2); }
@media (max-width: 540px) { .cookie-actions { width: 100%; } .cookie-btn { flex: 1; } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }

/* Posizionamenti e sfondi spostati dagli attributi style="" (CSP senza 'unsafe-inline') */
.bg-slide__img { background-image: url('../media/13987853645_33465dd247_o.jpg'); }
.ct__block--last { border-bottom: none; }
.op-c18 { object-position: center 18%; }
.op-c35 { object-position: center 35%; }
.op-ct { object-position: center top; }
.op-62c { object-position: 62% center; }
.op-45c { object-position: 45% center; }
.op-42c { object-position: 42% center; }

/* Contrasto maggiore su richiesta del sistema operativo */
@media (prefers-contrast: more) {
  :root {
    --muted: #1a1610;
    --line: rgba(26,22,16,0.55);
    --line-2: rgba(26,22,16,0.8);
    --gold-2: #5e4a22;
    --band: rgba(251,247,238,.96);
    --bg-veil: .95;
  }
}

/* ---- Accessibilità e dettagli di interazione (review web-design-guidelines 19/10) ---- */
.skip { position: fixed; top: 8px; left: 8px; z-index: 300; padding: 10px 18px; background: var(--ink); color: var(--ivory-2); font-family: var(--incise); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; transform: translateY(-200%); }
.skip--vid { top: 54px; border: 0; cursor: pointer; transform: translateY(calc(-100% - 70px)); } /* top 54px: -200% non basta a nasconderlo del tutto */
.skip:focus-visible { transform: none; outline: 2px solid var(--gold); outline-offset: 2px; }
main:focus { outline: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, [tabindex]:focus-visible,
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }
section[id] { scroll-margin-top: 84px; }
a, button, input, select, textarea, summary { touch-action: manipulation; }
h1, h2, h3 { text-wrap: balance; }
.archframe__monogram { color: #6f5629; }

/* P.IVA: numero generato da CSS (non nel testo della pagina): non indicizzabile né copiabile */
.piva::before { content: attr(data-a) attr(data-b); user-select: none; -webkit-user-select: none; pointer-events: none; }

/* avviso lingua (solo su / per browser non italiani) */
.lang-hint { position: fixed; top: 92px; left: 0; right: 0; margin-inline: auto; width: max-content; z-index: 90; display: flex; align-items: center; gap: 14px; max-width: calc(100% - 24px); padding: 9px 12px 9px 18px; background: var(--ivory-2); border: 1px solid var(--line-2); border-radius: 3px; box-shadow: 0 10px 30px -12px rgba(42,36,25,0.4); font-family: var(--sans); font-size: 13.5px; color: var(--muted); animation: cookie-rise .4s var(--ease); }
.lang-hint p { margin: 0; }
.lang-hint__go { font: inherit; font-weight: 500; color: var(--ink); background: none; border: 0; border-bottom: 1px solid var(--gold-2); padding: 2px 0; cursor: pointer; text-decoration: none; white-space: nowrap; }
.lang-hint__x { font-size: 20px; line-height: 1; width: 32px; height: 32px; background: none; border: 0; color: var(--muted); cursor: pointer; }
.lang-hint__go:focus-visible, .lang-hint__x:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
@media (max-width: 720px) { .lang-hint { top: 72px; font-size: 13px; gap: 10px; padding-left: 14px; } }

/* ---- MOMENTI SPECIALI: mini album con effetto "hover reveal" (porting CSS del componente HoverRevealCards) ---- */
.malb-head { text-align: center; max-width: 640px; margin: clamp(96px,14vh,160px) auto clamp(4px,.8vh,8px); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.malb-head h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.1; }
.malb-head p { color: var(--ivory-2); max-width: 50ch; }
.malb-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; width: 100%; max-width: 1100px; margin: 0 auto; }
.malb { position: relative; display: block; padding: 0; height: clamp(340px, 56vh, 520px); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--ink); color: var(--ivory-2); text-align: left; cursor: pointer; box-shadow: 0 12px 32px rgba(0,0,0,.28); transition: transform .5s ease-in-out, opacity .5s ease-in-out, filter .5s ease-in-out; }
.malb__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.malb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(26,22,16,0) 35%, rgba(26,22,16,.88)); pointer-events: none; }
.malb__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; gap: 6px; padding: clamp(18px,3vw,28px); }
.malb__kicker { font-family: var(--incise); font-size: .68rem; letter-spacing: .28em; text-transform: uppercase; color: var(--gold); }
.malb__title { font-family: var(--serif); font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.15; color: #fff; }
.malb__sub { font-size: .9rem; opacity: .85; }
.malb__count { margin-top: 4px; font-family: var(--incise); font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; opacity: .7; }
.malb:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .malb-grid:hover .malb:not(.malb--soon) { transform: scale(.97); opacity: .6; filter: blur(2px); }
  .malb-grid .malb:not(.malb--soon):hover, .malb-grid .malb:not(.malb--soon):focus-visible { transform: scale(1.03); opacity: 1; filter: none; }
}
.malb-head::before { content: ""; width: 48px; height: 1px; background: var(--gold); opacity: .7; margin-bottom: 6px; }
.malb--soon { cursor: default; background: transparent; border: 1px dashed var(--line); box-shadow: none; }
.malb--soon::after { display: none; }
.malb--soon .malb__body { top: 0; justify-content: center; align-items: center; text-align: center; }
.malb--soon .malb__title { color: var(--ivory-2); opacity: .8; }
@media (max-width: 1000px) { .malb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .malb-grid { gap: 10px; }
  .malb { height: auto; aspect-ratio: 3 / 4.4; border-radius: 10px; }
  .malb__body { padding: 12px; gap: 3px; }
  .malb__kicker { font-size: .58rem; letter-spacing: .2em; }
  .malb__title { font-size: .98rem; }
  .malb__sub { font-size: .74rem; }
  .malb__count { font-size: .58rem; margin-top: 2px; }
  .malb::after { background: linear-gradient(180deg, rgba(26,22,16,0) 22%, rgba(26,22,16,.93)); }
}
/* Mobile (senza hover): nessun effetto legato al tocco (su iOS :active restava acceso a metà scroll e le card "impazzivano").
   Niente animazione di comparsa mentre si scorre; al tocco si apre direttamente l'album. */
@media (hover: none) {
  .malb { -webkit-tap-highlight-color: transparent; touch-action: manipulation; transition: none; }
  .malb-head[data-reveal], .malb-grid[data-reveal] { opacity: 1; transform: none; transition: none; }
}
