/* fabioorfeo.com — stile del sito */

:root {
  --nero: #0b0b0c;
  --fondo: #111113;
  --fondo-2: #19191c;
  --bordo: #2a2a2f;
  --testo: #ece7d8;
  --testo-2: #a9a498;
  --rame: #d08a4e;
  --rame-scuro: #ab633b;
  --raggio: 14px;
  --largo: 1120px;
  --carattere: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--testo);
  font-family: var(--carattere);
  font-size: 1.0625rem;
  line-height: 1.65;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--rame); text-underline-offset: 3px; }
a:hover { color: #e9a970; }

:focus-visible { outline: 2px solid var(--rame); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3 {
  line-height: 1.1;
  margin: 0 0 .5em;
  font-weight: 800;
  letter-spacing: -.02em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); text-transform: uppercase; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1.1em; }

.contenitore { width: 100%; max-width: var(--largo); margin: 0 auto; padding: 0 20px; }

.salta {
  position: absolute; left: -9999px; top: 0;
  background: var(--rame); color: #000; padding: 10px 16px; z-index: 100;
}
.salta:focus { left: 10px; top: 10px; }

.occhiello {
  color: var(--rame);
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: .8rem;
  font-weight: 700;
  margin: 0 0 1em;
}
.sotto { color: var(--testo-2); font-size: 1.15rem; max-width: 46ch; }
.centro { text-align: center; margin-top: 2rem; }

/* ---------- testata ---------- */
.testata {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 12, .88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bordo);
}
.testata-interno {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; min-height: 68px;
}
.logo {
  color: var(--testo); text-decoration: none;
  font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; text-transform: uppercase;
  line-height: 1.1;
}
.logo:hover { color: var(--testo); }
.logo span { color: var(--rame); }
.logo small {
  display: block; font-size: .62rem; letter-spacing: .16em; font-weight: 600; color: var(--testo-2);
}

#menu ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
#menu a {
  display: block; padding: 8px 12px; border-radius: 8px;
  color: var(--testo-2); text-decoration: none; font-size: .95rem; font-weight: 600;
  white-space: nowrap;
}
#menu a:hover { color: var(--testo); background: var(--fondo-2); }
#menu a[aria-current="page"] { color: var(--rame); }

.menu-bottone {
  display: none;
  width: 46px; height: 46px; padding: 12px 10px;
  background: none; border: 1px solid var(--bordo); border-radius: 10px; cursor: pointer;
  flex-direction: column; justify-content: space-between;
}
.menu-bottone span { display: block; height: 2px; background: var(--testo); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-bottone[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-bottone[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-bottone[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

@media (max-width: 900px) {
  .menu-bottone { display: flex; }
  #menu {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--nero); border-bottom: 1px solid var(--bordo);
    padding: 8px 20px 16px;
  }
  #menu.aperto { display: block; }
  #menu ul { flex-direction: column; gap: 0; }
  #menu a { padding: 14px 4px; font-size: 1.05rem; border-bottom: 1px solid var(--bordo); border-radius: 0; }
  #menu li:last-child a { border-bottom: 0; }
}

/* ---------- bottoni ---------- */
.bottone {
  display: inline-block;
  background: var(--rame); color: #14100c;
  padding: 14px 26px; border-radius: 999px; border: 2px solid var(--rame);
  font-weight: 700; text-decoration: none; letter-spacing: .01em;
  transition: background .15s, color .15s, transform .15s;
}
.bottone:hover { background: #e9a970; border-color: #e9a970; color: #14100c; transform: translateY(-1px); }
.bottone-vuoto { background: transparent; color: var(--testo); border-color: var(--bordo); }
.bottone-vuoto:hover { background: transparent; color: var(--rame); border-color: var(--rame); }
.azioni { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }

/* ---------- copertina ---------- */
.copertina { background: var(--nero); border-bottom: 1px solid var(--bordo); overflow: hidden; }
.copertina-interno {
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 30px;
  padding-top: clamp(40px, 8vw, 96px); padding-bottom: clamp(40px, 8vw, 96px);
}
.copertina h1 em { font-style: normal; color: var(--rame); display: block; }
.copertina-foto img {
  width: 100%; max-width: 560px; margin-left: auto;
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 55%, transparent 78%);
          mask-image: radial-gradient(ellipse at 50% 45%, #000 55%, transparent 78%);
}
@media (max-width: 800px) {
  .copertina-interno { grid-template-columns: 1fr; }
  .copertina-foto { order: -1; }
  .copertina-foto img { margin: 0 auto; max-width: 420px; }
}

/* ---------- sezioni ---------- */
.sezione { padding: clamp(48px, 8vw, 96px) 0; }
.sezione-chiara { background: var(--fondo-2); border-block: 1px solid var(--bordo); }

.pagina-testa {
  background: var(--nero);
  border-bottom: 1px solid var(--bordo);
  padding: clamp(40px, 7vw, 80px) 0 clamp(28px, 5vw, 56px);
}
.pagina-testa h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
.pagina-testa .sotto { margin-bottom: 0; }

.due-colonne { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.due-colonne-testo { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: start; }
.due-colonne-testo aside { position: sticky; top: 92px; display: grid; gap: 22px; }
@media (max-width: 800px) {
  .due-colonne, .due-colonne-testo { grid-template-columns: 1fr; }
  .due-colonne-testo aside { position: static; }
}

.foto-cornice {
  background: #000; border: 1px solid var(--bordo); border-radius: var(--raggio); overflow: hidden;
  max-width: 360px; margin: 0 auto; width: 100%;
}
.foto-cornice img { width: 100%; }

/* ---------- testo lungo ---------- */
.testo { max-width: 68ch; }
.testo h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin-top: 2.2em; }
.testo > p:first-child { font-size: 1.2rem; color: var(--testo); }
.testo p { color: #d2ccbd; }
blockquote {
  margin: 2em 0; padding: 4px 0 4px 22px;
  border-left: 3px solid var(--rame);
  font-size: 1.3rem; line-height: 1.4; font-weight: 600; color: var(--testo);
}

/* ---------- schede ---------- */
.schede { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 2rem; }
.scheda {
  display: flex; flex-direction: column;
  background: var(--fondo-2); border: 1px solid var(--bordo); border-radius: var(--raggio);
  padding: 26px; color: var(--testo); text-decoration: none;
  transition: border-color .15s, transform .15s;
}
a.scheda:hover { border-color: var(--rame); transform: translateY(-3px); color: var(--testo); }
.scheda p { color: var(--testo-2); font-size: 1rem; margin-bottom: 1.2em; }
.scheda-numero { color: var(--rame); font-weight: 800; font-size: .85rem; letter-spacing: .14em; margin-bottom: 14px; }
.scheda-link { margin-top: auto; color: var(--rame); font-weight: 700; font-size: .95rem; }
.scheda-link::after { content: " →"; }
.schede-piccole { margin: 1.4rem 0 2rem; }
.schede-piccole .scheda { padding: 20px; }
.schede-piccole .scheda p { margin: 0; font-size: .95rem; }
@media (max-width: 800px) { .schede { grid-template-columns: 1fr; } }

/* ---------- traguardi ---------- */
.traguardi { list-style: none; padding: 0; margin: 1.6rem 0 2rem; border-top: 1px solid var(--bordo); }
.traguardi li { display: flex; gap: 18px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--bordo); }
.traguardi strong { color: var(--rame); font-variant-numeric: tabular-nums; min-width: 3.2em; }
aside .traguardi { margin: 0; }

/* ---------- riquadri e documenti ---------- */
.riquadro { background: var(--fondo-2); border: 1px solid var(--bordo); border-radius: var(--raggio); padding: 22px; }
.riquadro h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: .12em; color: var(--rame); margin-bottom: 1em; }
.elenco { margin: 0; padding-left: 1.1em; color: var(--testo-2); font-size: .98rem; }
.elenco li { margin-bottom: .5em; }
.elenco li::marker { color: var(--rame); }

.documenti { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.documenti a {
  display: flex; align-items: center; gap: 14px;
  padding: 12px; border: 1px solid var(--bordo); border-radius: 10px;
  color: var(--testo); text-decoration: none; background: var(--fondo);
  transition: border-color .15s;
}
.documenti a:hover { border-color: var(--rame); }
.documenti strong { display: block; line-height: 1.25; }
.documenti small { color: var(--testo-2); }
.doc-tipo {
  flex: none; background: var(--rame-scuro); color: #fff;
  font-size: .7rem; font-weight: 800; letter-spacing: .08em; padding: 8px 7px; border-radius: 6px;
}

.figura-chiara {
  margin: 2em 0; background: #fff; border-radius: var(--raggio); padding: 18px;
  max-width: 400px;
}
.figura-chiara img { margin: 0 auto; }
.figura-chiara figcaption { color: #444; text-align: center; font-size: .9rem; margin-top: 8px; }

/* ---------- anteprima e galleria ---------- */
.anteprima { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 2rem; }
.anteprima a, .galleria a {
  display: block; background: #000; border-radius: 10px; overflow: hidden;
  border: 1px solid var(--bordo); aspect-ratio: 2 / 3;
}
.anteprima img, .galleria img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s, opacity .25s; }
.anteprima a:hover img, .galleria a:hover img { transform: scale(1.04); opacity: .85; }
@media (max-width: 800px) { .anteprima { grid-template-columns: repeat(3, 1fr); } }

.galleria { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.galleria a.larga { grid-column: span 2; aspect-ratio: 3 / 2.21; }
@media (max-width: 420px) { .galleria { grid-template-columns: repeat(2, 1fr); } }

.visore {
  border: 0; padding: 0; background: transparent; color: var(--testo);
  width: 100vw; height: 100dvh; max-width: none; max-height: none;
}
.visore[open] { display: grid; place-items: center; }
.visore::backdrop { background: rgba(0, 0, 0, .94); }
.visore img { max-width: min(92vw, 720px); max-height: 82dvh; width: auto; height: auto; border-radius: 8px; }
.visore button {
  position: fixed; background: rgba(30, 30, 34, .85); color: var(--testo);
  border: 1px solid var(--bordo); border-radius: 999px; cursor: pointer;
  width: 48px; height: 48px; font-size: 1.7rem; line-height: 1;
}
.visore button:hover { border-color: var(--rame); color: var(--rame); }
.visore-chiudi { top: 16px; right: 16px; }
.visore-prima { left: 12px; top: 50%; transform: translateY(-50%); }
.visore-dopo { right: 12px; top: 50%; transform: translateY(-50%); }
.visore-conto { position: fixed; bottom: 14px; left: 0; right: 0; text-align: center; margin: 0; color: var(--testo-2); font-size: .9rem; }

/* ---------- contatti ---------- */
.contatti { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.contatto {
  display: block; background: var(--fondo-2); border: 1px solid var(--bordo); border-radius: var(--raggio);
  padding: 28px; color: var(--testo); text-decoration: none; transition: border-color .15s, transform .15s;
}
a.contatto:hover { border-color: var(--rame); transform: translateY(-2px); color: var(--testo); }
.contatto-tipo { display: block; color: var(--rame); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 700; margin-bottom: 10px; }
.contatto strong { display: block; font-size: clamp(1.25rem, 3.4vw, 1.7rem); line-height: 1.2; overflow-wrap: anywhere; }
.contatto small { display: block; color: var(--testo-2); margin-top: 8px; font-size: .95rem; }
@media (max-width: 640px) { .contatti { grid-template-columns: 1fr; } }

/* ---------- invito e piede ---------- */
.invito { background: linear-gradient(135deg, #2a1a10, #17110d); border-top: 1px solid var(--bordo); padding: clamp(40px, 6vw, 72px) 0; }
.invito-interno { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.invito h2 { margin-bottom: .2em; }
.invito p { margin: 0; color: var(--testo-2); }

.piede { background: var(--nero); border-top: 1px solid var(--bordo); padding: 40px 0; color: var(--testo-2); font-size: .95rem; }
.piede-interno { display: flex; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.piede strong { color: var(--testo); }
.piede a { color: var(--testo-2); text-decoration: none; }
.piede a:hover { color: var(--rame); }
.piede-nota { align-self: flex-end; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

.traguardi strong { white-space: nowrap; }
@media (min-width: 900px) { .contatti-tre { grid-template-columns: repeat(3, 1fr); } }

/* ---------- sfera di foto ---------- */
.vista-scelta { display: none; gap: 6px; justify-content: center; margin-bottom: 10px; }
.vista-sfera .vista-scelta, .vista-griglia .vista-scelta { display: flex; }
.vista-scelta button {
  background: transparent; color: var(--testo-2); font: inherit; font-size: .9rem; font-weight: 700;
  border: 1px solid var(--bordo); border-radius: 999px; padding: 8px 18px; cursor: pointer;
}
.vista-scelta button:hover { color: var(--testo); }
.vista-scelta button[aria-pressed="true"] { background: var(--rame); border-color: var(--rame); color: #14100c; }

.sfera { display: none; }
.vista-sfera .sfera {
  display: block; position: relative; width: 100%; height: 700px;
  perspective: 1400px; overflow: hidden;
  cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none;
  background: radial-gradient(circle at 50% 50%, rgba(208, 138, 78, .13), transparent 62%);
}
.sfera.in-trascinamento { cursor: grabbing; }
.vista-sfera .galleria { display: none; }
.sfera-mondo { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; will-change: transform; }
.sfera-foto {
  position: absolute; padding: 0; border: 1px solid #3a3a40; border-radius: 6px; overflow: hidden;
  width: var(--tessera, 80px); height: calc(var(--tessera, 80px) * 1.5);
  left: calc(var(--tessera, 80px) / -2); top: calc(var(--tessera, 80px) * -.75);
  background: #000; cursor: pointer;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.sfera-foto img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.sfera-foto:hover { border-color: var(--rame); }
.sfera.in-trascinamento .sfera-foto { cursor: grabbing; }

/* ---------- citazione ---------- */
.citazione { background: var(--fondo-2); border-bottom: 1px solid var(--bordo); padding: clamp(40px, 6vw, 72px) 0; text-align: center; }
.citazione figure { margin: 0 auto; max-width: 780px; }
.citazione blockquote {
  margin: 0; padding: 0; border: 0;
  font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 400;
  font-size: clamp(1.35rem, 3.2vw, 2rem); line-height: 1.4; color: var(--testo); text-wrap: balance;
}
.citazione figcaption { margin-top: 1.1em; color: var(--rame); text-transform: uppercase; letter-spacing: .18em; font-size: .8rem; font-weight: 700; }
.citazione figcaption::before { content: "— "; }

/* schermi molto stretti */
.copertina-interno > * { min-width: 0; }
@media (max-width: 400px) {
  h1 { font-size: 1.85rem; overflow-wrap: anywhere; }
  .pagina-testa h1 { font-size: 1.75rem; }
}

/* ---------- foto nel testo ---------- */
.figura-foto { margin: 2em 0; }
.figura-foto img { width: 100%; border-radius: var(--raggio); border: 1px solid var(--bordo); }
.figura-foto figcaption { margin-top: 10px; color: var(--testo); font-size: .98rem; }
.figura-foto figcaption span { display: block; color: var(--testo-2); font-size: .8rem; margin-top: 2px; }
.figura-foto figcaption a { color: var(--testo-2); }
