/* Pietro Sax Experience - sito, stile chiaro.
   Colori, font e ornamenti vengono dal sistema PSE (Notion: Tipografia Pietro Sax Experience, Giallo PSE). */

@font-face { font-family: "Playfair Display"; src: url("assets/fonts/Playfair.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Mulish"; src: url("assets/fonts/Mulish.woff2") format("woff2"); font-weight: 200 1000; font-display: swap; }
@font-face { font-family: "Cormorant Garamond"; src: url("assets/fonts/Cormorant.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Jost"; src: url("assets/fonts/Jost.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: only light;
  --nero: #1C1711;
  --handle: #524332;
  --testo-soft: #2B241C;
  --base: #F4EEE2;
  --avorio: #F4EEE2;
  --crema: #F7EEDD;
  --giallo: linear-gradient(105deg, #EF8A00 0%, #FFAD08 34%, #FFD43B 61%, #F39A00 100%);
  --oro-bordo: rgba(206, 184, 142, .55);
  --oro-bordo-soft: rgba(206, 184, 142, .38);
  --card: rgba(252, 248, 239, .62);
  --campo: rgba(252, 248, 240, .80);
  --ombra-testo: 0 3px 5px rgba(18, 14, 11, .17);
  --ombra-card: 0 8px 12px rgba(18, 14, 11, .10);
  --f-titolo: "Playfair Display", Georgia, "Times New Roman", serif;
  --f-edit: "Cormorant Garamond", Georgia, serif;
  --f-corpo: "Mulish", system-ui, -apple-system, sans-serif;
  --f-label: "Jost", system-ui, -apple-system, sans-serif;
  --r-card: 18px;
  --maxw: 1180px;
  --gutter: clamp(24px, 4vw, 48px);
  --nav-h: 68px;
  --cornice: clamp(12px, 1.8vw, 26px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  position: relative;
  margin: 0;
  background: var(--base);
  color: var(--nero);
  font: 400 18px/1.6 var(--f-corpo);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* sfondo: un solo livello fisso. Fotogramma fermo sempre; il video (gia' lavato in avorio) solo da computer, caricato via script */
.sfondo { position: fixed; inset: 0; z-index: -2; pointer-events: none; background: var(--base) url("assets/img/sfondo-poster.jpg") center 40% / cover no-repeat; }
@media (min-aspect-ratio: 1/1) { .sfondo { background-image: url("assets/img/sfondo-largo.jpg"); } }
.sfondo-video { display: none; width: 100%; height: 100%; object-fit: cover; }
.sfondo-video.attivo { display: block; }
/* cornice Giallo PSE come nelle storie: sottile, senza ombra, parte dello sfondo; sta sotto la barra */
/* la cornice abbraccia tutta la pagina: i lati scorrono con il contenuto, la riga in alto si vede all'inizio e quella in basso solo in fondo */
.cornice { position: absolute; left: var(--cornice); right: var(--cornice); bottom: var(--cornice); top: calc(var(--nav-h) + var(--cornice)); z-index: -1; pointer-events: none; border: 2px solid transparent; border-image: var(--giallo) 1; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-family: var(--f-titolo); font-weight: 700; text-transform: uppercase; line-height: 1.14; letter-spacing: .01em; text-shadow: var(--ombra-testo); text-wrap: balance; }
h1 { font-size: clamp(32px, 4.4vw, 50px); }
h2 { font-size: clamp(26px, 3.1vw, 36px); }
h3 { font-size: clamp(19px, 1.6vw, 22px); }
.editoriale { font-family: var(--f-edit); font-weight: 700; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.28; text-shadow: var(--ombra-testo); }
.intro { font-size: clamp(17px, 1.35vw, 20px); color: var(--testo-soft); max-width: 60ch; }

/* Giallo PSE sul testo: sweep locale per ogni riga */
.oro {
  background: var(--giallo); -webkit-background-clip: text; background-clip: text; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
/* occhielli: testo scuro leggibile, rombo in Giallo PSE davanti */
.occhiello { display: inline-flex; align-items: center; gap: 10px; color: var(--handle); font: 500 12px/1.2 var(--f-label); letter-spacing: .22em; text-transform: uppercase; margin-bottom: 18px; }
.occhiello::before { content: ""; width: 7px; height: 7px; background: var(--giallo); transform: rotate(45deg); flex: none; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rombo { display: inline-block; width: 8px; height: 8px; background: var(--giallo); transform: rotate(45deg); flex: none; }
.divisore { display: flex; align-items: center; justify-content: center; gap: 14px; }
.divisore::before, .divisore::after { content: ""; display: block; width: 48px; height: 1px; background: var(--giallo); }

/* pulsanti: forma a pillola; le card restano a 18px */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px; border: 1px solid transparent;
  font: 500 13px/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase;
  color: var(--nero); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.btn-oro { background: var(--giallo); box-shadow: 0 8px 18px rgba(18, 14, 11, .12); }
.btn-oro:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(18, 14, 11, .16); }
.btn-linea { background: var(--card); border-color: var(--oro-bordo); }
.btn-linea:hover { background: var(--campo); transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
:focus-visible { outline: 2px solid var(--nero); outline-offset: 3px; }
.salta { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--avorio); padding: 10px 16px; }
.salta:focus { left: 12px; }

/* ---------- barra ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(244, 238, 226, .97); border-bottom: 1px solid var(--oro-bordo-soft); }
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.marchio { font: 700 19px/1 var(--f-titolo); letter-spacing: .02em; color: var(--nero); text-decoration: none; white-space: nowrap; }
.menu { display: flex; align-items: center; gap: 24px; list-style: none; margin: 0; padding: 0; }
.menu a:not(.btn) { white-space: nowrap; font: 500 12px/1 var(--f-label); letter-spacing: .16em; text-transform: uppercase; color: var(--handle); text-decoration: none; transition: color .2s; }
.menu a:not(.btn):hover { color: var(--nero); }
.nav .btn { min-height: 44px; padding: 0 22px; font-size: 12px; }
.solo-mobile { display: none; }
.hamb { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.hamb span { display: block; height: 2px; width: 24px; background: var(--nero); transition: transform .3s var(--ease), opacity .2s; }
.hamb.x span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamb.x span:nth-child(2) { opacity: 0; }
.hamb.x span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { position: relative; max-width: var(--maxw); margin: 0 auto; padding: 40px var(--gutter) 0; min-height: calc(100vh - var(--nav-h)); min-height: calc(100dvh - var(--nav-h)); display: grid; grid-template-columns: 1.15fr .85fr; align-items: end; gap: 24px; }
.hero::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: var(--giallo); }
.hero-testo { align-self: center; padding-bottom: 72px; }
.hero h1 { margin-bottom: 22px; max-width: 12em; }
.hero-sub { font-size: clamp(17px, 1.4vw, 20px); max-width: 44ch; margin: 0 0 30px; color: var(--testo-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-figura { position: relative; margin: 0; justify-self: center; align-self: center; width: min(100%, 440px); padding-bottom: 48px; }
.hero-figura img { width: 100%; height: auto; max-height: calc(100vh - var(--nav-h) - 120px); max-height: calc(100dvh - var(--nav-h) - 120px); object-fit: cover; border-radius: 22px; border: 1px solid var(--oro-bordo); box-shadow: var(--ombra-card); }

/* ---------- sezioni ---------- */
.sezione { padding: clamp(64px, 9vw, 120px) var(--gutter); scroll-margin-top: var(--nav-h); content-visibility: auto; contain-intrinsic-size: auto 900px; }
.contenitore { max-width: var(--maxw); margin: 0 auto; }
.intestazione { max-width: 64ch; margin-bottom: clamp(32px, 4vw, 52px); }
.intestazione h2 { margin-bottom: 16px; }
.intestazione p:last-child { margin-bottom: 0; }

/* i quattro momenti */
.momenti { display: grid; grid-template-columns: repeat(2, 1fr); gap: 44px 64px; }
.momento { display: flex; flex-direction: column; gap: 12px; }
.momento .filetto { width: 56px; height: 1px; background: var(--giallo); margin-bottom: 4px; }
.momento p { margin: 0; color: var(--testo-soft); }

/* dal vivo */
.dalvivo-testa { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-bottom: 28px; }
.dalvivo-testa p { margin: 0; max-width: 54ch; }
.galleria { display: grid; grid-template-columns: 1.25fr 1fr 1fr; grid-template-rows: 290px 290px; gap: 14px; }
.galleria figure { margin: 0; overflow: hidden; isolation: isolate; border-radius: var(--r-card); border: 1px solid var(--oro-bordo); box-shadow: var(--ombra-card); background: var(--crema); }
.galleria img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.galleria figure:hover img { transform: scale(1.03); }
.g1 { grid-row: 1 / 3; }
.g2 img, .g3 img { object-position: 50% 15%; }
.g4 { grid-column: 2 / 4; }

/* le formazioni: card crema con filo Giallo PSE */
.formazioni-card { position: relative; background: var(--crema); border-radius: 20px; box-shadow: var(--ombra-card); padding: clamp(28px, 4vw, 56px); }
.formazioni-card::before { content: ""; position: absolute; inset: 0; border-radius: 20px; padding: 1px; background: var(--giallo); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; pointer-events: none; }
.formazioni-card .intestazione { margin-bottom: 28px; }
.formazioni-card .editoriale { font-size: clamp(21px, 2vw, 26px); font-weight: 600; margin: 0; }
.momento-riga { display: grid; grid-template-columns: 150px 1fr; gap: 10px 28px; padding: 20px 0; border-top: 1px solid var(--oro-bordo-soft); align-items: baseline; }
.intestazione + .momento-riga { border-top: 0; }
.momento-riga .nome { color: var(--handle); font: 500 13px/1.5 var(--f-label); letter-spacing: .22em; text-transform: uppercase; }
.elementi { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 17px; margin: 0; padding: 0; list-style: none; }
.elementi li { display: inline-flex; align-items: center; gap: 12px; }
.elementi li:not(.basi) + li:not(.basi)::before { content: ""; width: 7px; height: 7px; background: var(--giallo); transform: rotate(45deg); flex: none; }
.elementi .basi { width: 100%; font-style: italic; font-size: 15px; color: var(--handle); }
.nota-formazioni { margin-top: 26px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; font-size: 16px; color: var(--handle); }
.nota-formazioni p { margin: 0; max-width: 56ch; }

/* un matrimonio vero */
.storia { display: grid; grid-template-columns: 5fr 7fr; gap: 56px; align-items: start; }
.storia-clou { position: sticky; top: calc(var(--nav-h) + 32px); }
.storia-testo p { color: var(--testo-soft); }
.storia-testo .chiusura { font-weight: 700; color: var(--nero); }

/* feedback: le schermate vere dei messaggi, fedeli all'app, dentro card con l'ombra del brand */
.feedback { columns: 3; column-gap: 18px; }
.shot { margin: 0 0 18px; break-inside: avoid; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--oro-bordo); box-shadow: var(--ombra-card); background: #fff; }
.shot img { display: block; width: 100%; height: auto; }

/* come si parte */
.passi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; }
.passo { padding-left: 22px; border-left: 1px solid var(--oro-bordo); }
.passo h3 { margin-bottom: 12px; }
.passo p { margin: 0 0 .7em; color: var(--testo-soft); }
.passo p:last-child { margin-bottom: 0; }

/* chi sono */
.chisono { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ritratto { margin: 0; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--oro-bordo); box-shadow: var(--ombra-card); aspect-ratio: 4 / 5; background: var(--crema); }
.ritratto img { width: 100%; height: 100%; object-fit: cover; }
.chisono-testo h2 { margin-bottom: 20px; }
.chisono-testo p { color: var(--testo-soft); }
.chisono-testo .editoriale { color: var(--nero); margin: 26px 0 0; }

/* domande */
.faq { max-width: 840px; }
.faq details { border-bottom: 1px solid var(--oro-bordo-soft); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 48px 20px 0; position: relative; font: 600 18px/1.4 var(--f-corpo); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px; border-right: 2px solid var(--handle); border-bottom: 2px solid var(--handle); transform: translateY(-75%) rotate(45deg); transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(225deg); }
.faq details p { margin: 0 0 22px; max-width: 66ch; color: var(--testo-soft); }

/* chiusura */
.chiusura-sez { text-align: center; }
.chiusura-sez .contenitore { max-width: 760px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.chiusura-sez h2 { margin: 0; }
.chiusura-sez p { margin: 0; color: var(--testo-soft); }
.chiusura-sez .editoriale { color: var(--nero); max-width: 24ch; }
.chiusura-sez .mail { font-size: 15px; color: var(--handle); }
.chiusura-sez .mail a { color: var(--nero); }

/* piede */
.piede { padding: 34px var(--gutter) 44px; border-top: 1px solid var(--oro-bordo-soft); font-size: 13px; line-height: 1.8; color: var(--handle); }
.piede .contenitore { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; }
.piede ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 22px; }
.piede a { color: var(--handle); text-decoration: none; border-bottom: 1px solid var(--oro-bordo); }
.piede a:hover { color: var(--nero); }

/* comparsa dolce allo scorrimento (solo con script attivo) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .galleria img, .hamb span, .faq summary::after { transition: none; }
  .galleria figure:hover img { transform: none; }
}

/* ---------- schermi stretti ---------- */
@media (max-width: 1139px) {
  .feedback { columns: 2; }
  .menu { display: none; }
  .nav-cta { display: none; }
  .hamb { display: flex; }
  .menu.aperto { display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 20px; padding: 22px var(--gutter) 28px; background: var(--avorio); border-bottom: 1px solid var(--oro-bordo); box-shadow: var(--ombra-card); }
  .solo-mobile { display: block; margin-top: 6px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 32px; gap: 8px; }
  .hero-testo { padding-bottom: 20px; }
  .hero-figura { width: min(78%, 360px); padding-bottom: 28px; }
  .hero-figura img { max-height: none; }
  .momenti { grid-template-columns: 1fr; gap: 32px; }
  .galleria { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .g1 { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 4 / 3; }
  .g2, .g3 { aspect-ratio: 1; }
  .g4 { grid-column: 1 / 3; aspect-ratio: 16 / 9; }
  .momento-riga { grid-template-columns: 1fr; gap: 8px; }
  .storia { grid-template-columns: 1fr; gap: 28px; }
  .storia-clou { position: static; }
  .feedback { columns: 1; }
  .passi { grid-template-columns: 1fr; }
  .chisono { grid-template-columns: 1fr; }
  .ritratto { max-width: 420px; }
}
@media (max-width: 520px) {
  body { font-size: 17px; }
  .btn { white-space: normal; text-align: center; line-height: 1.3; padding: 14px 24px; }
  .hero-cta .btn { width: 100%; }
}
