/* =========================================================
   Orchestra SalentOpera – foglio di stile
   ========================================================= */

@font-face { font-family: "Bodoni Moda"; src: url(../fonts/bodoni-moda-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url(../fonts/bodoni-moda-latin-400-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Bodoni Moda"; src: url(../fonts/bodoni-moda-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(../fonts/hanken-grotesk-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(../fonts/hanken-grotesk-latin-500-normal.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url(../fonts/hanken-grotesk-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --sipario: #1a0d10;       /* fondo: nero-bordeaux del sipario */
  --palco: #24141a;         /* superfici */
  --palco-2: #2f1a21;
  --velluto: #7a1a2b;       /* rosso velluto */
  --velluto-scuro: #4c0f1b;
  --ottone: #c9a25e;        /* oro ottone */
  --ottone-chiaro: #e3c78f;
  --avorio: #f0e7d8;        /* testo: carta da spartito */
  --fumo: #b3a199;          /* testo secondario */
  --linea: rgba(201, 162, 94, .26);

  --f-display: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --f-text: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--sipario); color: var(--avorio);
  font: 400 1.0625rem/1.65 var(--f-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, video, iframe { display: block; max-width: 100%; }
a { color: var(--ottone-chiaro); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--avorio); }
:focus-visible { outline: 2px solid var(--ottone-chiaro); outline-offset: 3px; }
::selection { background: var(--velluto); color: var(--avorio); }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 400; line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1.1em; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--avorio); color: var(--sipario); padding: .6em 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- pentagramma: il segno distintivo del sito ---------- */
.staff { display: grid; gap: 9px; pointer-events: none; }
.staff i { display: block; height: 1px; background: var(--linea); transform-origin: left; }

/* ---------- bottoni ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.6em; border: 1px solid var(--ottone); border-radius: 999px;
  font: 500 .95rem/1 var(--f-text); letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn-brass { background: var(--ottone); color: var(--sipario); }
.btn-brass:hover { background: var(--ottone-chiaro); border-color: var(--ottone-chiaro); color: var(--sipario); }
.btn-ghost { background: transparent; color: var(--avorio); border-color: rgba(240, 231, 216, .35); }
.btn-ghost:hover { border-color: var(--ottone); color: var(--ottone-chiaro); }
.btn-small { padding: .65em 1.2em; font-size: .88rem; }
.linklike { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: .2em; text-decoration-color: var(--linea); }
.linklike:hover { color: var(--avorio); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid, .page-plain .site-header { background: rgba(26, 13, 16, .94); border-bottom-color: var(--linea); backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { text-decoration: none; color: var(--avorio); display: inline-flex; align-items: center; }
.brand-word { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: .01em; }
.brand-word em { color: var(--ottone); }
.brand-logo { height: 46px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav ul { display: flex; gap: 1.8rem; list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { color: var(--avorio); text-decoration: none; font-size: .95rem; padding: .4em 0; position: relative; }
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ottone); transform: scaleX(0); transition: transform .3s var(--ease); }
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current]::after { transform: scaleX(1); }
.site-nav a[aria-current] { color: var(--ottone-chiaro); }
.nav-toggle { display: none; }

@media (max-width: 900px) {
  .nav-toggle { display: grid; place-items: center; width: 46px; height: 46px; background: none; border: 1px solid var(--linea); border-radius: 50%; color: var(--avorio); cursor: pointer; z-index: 2; }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 18px; height: 1px; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; } .nav-toggle-bars::after { top: 6px; }
  .nav-open .nav-toggle-bars { background: transparent; }
  .nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: fixed; inset: 0; background: var(--sipario); flex-direction: column; justify-content: center; gap: 2.5rem;
    opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
  }
  .nav-open .site-nav { opacity: 1; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: center; gap: 1.1rem; }
  .site-nav a:not(.btn) { font-family: var(--f-display); font-size: 2rem; }
  .nav-open { overflow: hidden; }
}

/* ---------- hero della home ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85); transform: scale(1.06); animation: hero-zoom 14s var(--ease) forwards; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 80% 10%, rgba(122, 26, 43, .25), transparent 60%),
    linear-gradient(180deg, rgba(26, 13, 16, .55) 0%, rgba(26, 13, 16, .2) 35%, rgba(26, 13, 16, .85) 75%, var(--sipario) 100%);
}
.hero-noimg .hero-media { background: radial-gradient(90% 70% at 70% 20%, var(--velluto), var(--velluto-scuro) 45%, var(--sipario) 85%); }
.hero-inner { position: relative; width: 100%; padding-bottom: clamp(48px, 9vh, 110px); padding-top: 140px; }
.hero-title {
  position: relative; margin: 0;
  font-size: clamp(3.4rem, 14.5vw, 13.5rem); line-height: .86; letter-spacing: -.035em;
}
.hero-title .ln { display: block; }
.hero-title .o { font-style: italic; color: var(--ottone); }
.hero-staff { position: absolute; left: calc(-1 * var(--gutter)); right: calc(-1 * var(--gutter)); top: 50%; translate: 0 -50%; gap: clamp(9px, 1.6vw, 22px); z-index: -1; }
.hero-staff i { background: rgba(201, 162, 94, .38); transform: scaleX(0); animation: staff-draw 1.6s var(--ease) forwards; }
.hero-staff i:nth-child(2) { animation-delay: .08s; } .hero-staff i:nth-child(3) { animation-delay: .16s; }
.hero-staff i:nth-child(4) { animation-delay: .24s; } .hero-staff i:nth-child(5) { animation-delay: .32s; }
.hero-title .ln { opacity: 0; animation: rise 1.1s var(--ease) forwards; animation-delay: .5s; }
.hero-title .ln + .ln { animation-delay: .65s; }
.hero-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-top: clamp(1.5rem, 4vh, 3rem); opacity: 0; animation: rise 1s var(--ease) 1s forwards; }
.hero-lede { max-width: 34ch; font-size: clamp(1.05rem, 1.6vw, 1.3rem); line-height: 1.5; margin: 0; color: var(--avorio); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

@keyframes staff-draw { to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes hero-zoom { to { transform: scale(1); } }

/* ---------- testata delle pagine interne ---------- */
.page-head { padding: 150px 0 clamp(40px, 7vw, 80px); border-bottom: 1px solid var(--linea); position: relative; overflow: hidden; }
.page-head h1 { font-size: clamp(2.8rem, 8vw, 6.5rem); margin: 0; letter-spacing: -.03em; }
.page-head p { color: var(--fumo); max-width: 60ch; margin: 1.2rem 0 0; font-size: 1.1rem; }
.page-head .staff { position: absolute; left: 0; right: 0; bottom: 34px; opacity: .6; }
.crumb { font-size: .9rem; margin-bottom: 1.4rem; color: var(--fumo); }
.crumb a { color: var(--fumo); }

/* ---------- sezioni ---------- */
.section { padding: clamp(64px, 10vw, 130px) 0; }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 3.8rem); margin: 0; }
.section-head p { color: var(--fumo); margin: 0; max-width: 48ch; }

/* introduzione */
.intro { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.intro-statement { font-family: var(--f-display); font-size: clamp(1.8rem, 3.6vw, 3rem); line-height: 1.16; margin: 0; }
.intro-statement em { color: var(--ottone-chiaro); }
.intro-text { color: var(--fumo); font-size: 1.08rem; }
.intro-text p:first-child { color: var(--avorio); }
.facts { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 1rem 2.4rem; margin: 2rem 0 0; padding: 1.4rem 0 0; border-top: 1px solid var(--linea); }
.facts div { display: flex; flex-direction: column; }
.facts dt { order: 2; font-size: .9rem; color: var(--fumo); }
.facts dd { order: 1; margin: 0; font-family: var(--f-display); font-size: 2.2rem; line-height: 1.1; color: var(--avorio); }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .facts { grid-template-columns: repeat(2, auto); } }

/* ---------- card concerto (locandina) ---------- */
.playbills { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 32px); }
.playbill { position: relative; text-decoration: none; color: var(--avorio); display: block; }
.playbill-img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--palco); border-radius: var(--radius); }
.playbill-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .6s var(--ease); filter: saturate(.9); }
.playbill-img::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(227, 199, 143, 0); transition: border-color .5s var(--ease), inset .5s var(--ease); border-radius: 2px; }
.playbill:hover .playbill-img img, .playbill:focus-visible .playbill-img img { transform: scale(1.045); filter: saturate(1.05); }
.playbill:hover .playbill-img::after { border-color: rgba(227, 199, 143, .7); inset: 14px; }
.playbill-count { position: absolute; right: 12px; bottom: 12px; background: rgba(26, 13, 16, .78); backdrop-filter: blur(6px); color: var(--avorio); font-size: .8rem; padding: .3em .7em; border-radius: 999px; }
.playbill-date { display: block; margin-top: 1rem; font-size: .88rem; color: var(--ottone); letter-spacing: .02em; }
.playbill h3 { font-size: clamp(1.45rem, 2vw, 1.75rem); margin: .25rem 0 .2rem; transition: color .3s; }
.playbill:hover h3 { color: var(--ottone-chiaro); }
.playbill-place { font-size: .92rem; color: var(--fumo); margin: 0; }
.placeholder-art { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(100% 80% at 30% 20%, var(--velluto), var(--velluto-scuro) 55%, var(--palco)); }
.placeholder-art span { font-family: var(--f-display); font-style: italic; font-size: 4.5rem; color: rgba(227, 199, 143, .55); }

/* ---------- stagioni ---------- */
.season-nav { position: sticky; top: 76px; z-index: 20; background: rgba(26, 13, 16, .94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--linea); }
.season-nav ul { display: flex; gap: .4rem; list-style: none; margin: 0; padding: .7rem 0; overflow-x: auto; scrollbar-width: none; }
.season-nav a { display: block; padding: .45em 1em; border-radius: 999px; text-decoration: none; color: var(--fumo); white-space: nowrap; border: 1px solid transparent; font-size: .95rem; }
.season-nav a:hover { color: var(--avorio); border-color: var(--linea); }
.season-nav a.is-active { color: var(--sipario); background: var(--ottone); }
.season { padding: clamp(56px, 8vw, 100px) 0 0; scroll-margin-top: 140px; }
.season:last-of-type { padding-bottom: clamp(64px, 10vw, 130px); }
.season-head { display: grid; grid-template-columns: auto 1fr; align-items: end; gap: .5rem clamp(24px, 4vw, 56px); margin-bottom: clamp(28px, 4vw, 48px); }
.season-year { font-family: var(--f-display); font-size: clamp(4.5rem, 13vw, 10rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--ottone); letter-spacing: -.04em; }
.season-head h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); margin: 0 0 .2rem; }
.season-head p { color: var(--fumo); margin: 0; max-width: 60ch; }
@media (max-width: 640px) { .season-head { grid-template-columns: 1fr; } }

.empty { border: 1px dashed var(--linea); border-radius: var(--radius); padding: 2.2rem; color: var(--fumo); text-align: center; }
.empty strong { color: var(--avorio); font-family: var(--f-display); font-weight: 400; font-size: 1.5rem; display: block; margin-bottom: .4rem; }

/* ---------- pagina concerto ---------- */
.concert-hero { position: relative; min-height: 78svh; display: flex; align-items: flex-end; isolation: isolate; overflow: hidden; }
.concert-hero .hero-media img { animation: none; transform: none; }
.concert-hero .hero-inner { padding-bottom: clamp(36px, 6vh, 72px); }
.concert-hero h1 { font-size: clamp(2.6rem, 7.5vw, 6.2rem); margin: 0; letter-spacing: -.03em; max-width: 16ch; }
.concert-sub { font-family: var(--f-display); font-style: italic; font-size: clamp(1.2rem, 2.2vw, 1.6rem); color: var(--ottone-chiaro); margin: .6rem 0 0; }
.concert-meta { display: flex; flex-wrap: wrap; gap: .6rem 2rem; margin: 1.6rem 0 0; padding: 0; list-style: none; color: var(--avorio); }
.concert-meta li { display: flex; flex-direction: column; font-size: 1rem; }
.concert-meta small { color: var(--fumo); font-size: .82rem; }
.concert-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(32px, 6vw, 90px); }
.concert-desc { font-size: 1.1rem; max-width: 66ch; }
.concert-desc p:first-child::first-letter { font-family: var(--f-display); float: left; font-size: 4.2em; line-height: .8; padding: .08em .12em 0 0; color: var(--ottone); }
.concert-aside { display: flex; flex-direction: column; gap: 1rem; align-self: start; position: sticky; top: 110px; }
.doc-link { display: flex; gap: .9rem; align-items: center; padding: 1rem 1.1rem; border: 1px solid var(--linea); border-radius: var(--radius); text-decoration: none; color: var(--avorio); transition: border-color .25s, background .25s; }
.doc-link:hover { border-color: var(--ottone); background: var(--palco); color: var(--avorio); }
.doc-link svg { flex: none; color: var(--ottone); }
.doc-link small { display: block; color: var(--fumo); font-size: .82rem; }
@media (max-width: 860px) { .concert-body { grid-template-columns: 1fr; } .concert-aside { position: static; } }

/* galleria a mosaico */
.gallery { columns: 3 280px; column-gap: 14px; }
.gallery a { display: block; margin: 0 0 14px; break-inside: avoid; border-radius: var(--radius); overflow: hidden; position: relative; background: var(--palco); }
.gallery img { width: 100%; height: auto; transition: transform .8s var(--ease), opacity .4s; }
.gallery a:hover img { transform: scale(1.03); }
.gallery a::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(227, 199, 143, 0); transition: box-shadow .4s; border-radius: var(--radius); }
.gallery a:hover::after { box-shadow: inset 0 0 0 1px rgba(227, 199, 143, .6); }

.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 24px; }
.videos video { width: 100%; border-radius: var(--radius); background: #000; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; border-top: 1px solid var(--linea); padding-top: 2rem; }
.pager a { text-decoration: none; color: var(--avorio); display: flex; flex-direction: column; gap: .2rem; }
.pager a small { color: var(--fumo); }
.pager a span { font-family: var(--f-display); font-size: clamp(1.2rem, 2.4vw, 1.7rem); line-height: 1.15; }
.pager a:hover span { color: var(--ottone-chiaro); }
.pager .next { text-align: right; grid-column: 2; align-items: flex-end; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 90; background: #0f0709; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); opacity: 0; transition: opacity .3s var(--ease); touch-action: pan-y; }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 14px var(--gutter); color: var(--fumo); font-size: .9rem; }
.lb-stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); place-items: center; min-height: 0; overflow: hidden; padding: 0 clamp(8px, 6vw, 90px); }
.lb-stage img { max-width: 100%; max-height: calc(100svh - 150px); width: auto; height: auto; object-fit: contain; border-radius: 2px; transition: opacity .25s var(--ease), transform .35s var(--ease); user-select: none; -webkit-user-drag: none; }
.lb-stage img.is-loading { opacity: .25; }
.lb-btn { background: rgba(36, 20, 26, .7); color: var(--avorio); border: 1px solid var(--linea); border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; font-size: 1.3rem; line-height: 1; transition: border-color .2s, color .2s; }
.lb-btn:hover { border-color: var(--ottone); color: var(--ottone-chiaro); }
.lb-prev, .lb-next { position: absolute; top: 50%; translate: 0 -50%; z-index: 2; }
.lb-prev { left: clamp(8px, 2vw, 24px); } .lb-next { right: clamp(8px, 2vw, 24px); }
.lb-strip { display: flex; gap: 6px; overflow-x: auto; padding: 12px var(--gutter) 18px; scrollbar-width: none; justify-content: safe center; }
.lb-strip button { flex: none; width: 64px; height: 48px; padding: 0; border: 1px solid transparent; border-radius: 2px; overflow: hidden; opacity: .45; cursor: pointer; background: var(--palco); transition: opacity .2s, border-color .2s; }
.lb-strip button.is-current { opacity: 1; border-color: var(--ottone); }
.lb-strip img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .lb-prev, .lb-next { display: none; } .lb-stage { padding: 0; } }

/* ---------- contenuti esterni con consenso ---------- */
.embed { position: relative; aspect-ratio: var(--ratio, 16/9); background: var(--palco) var(--poster, none) center / cover; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linea); }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-gate { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 1rem; padding: clamp(20px, 5vw, 56px); background: linear-gradient(135deg, rgba(76, 15, 27, .92), rgba(26, 13, 16, .94)); }
.embed-gate p { max-width: 46ch; margin: 0; color: var(--avorio); }
.embed-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.embed.is-loaded { background: #000; }

/* ---------- blocchi home ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticket-card { background: var(--velluto-scuro); border-radius: var(--radius); padding: clamp(28px, 4vw, 48px); position: relative; overflow: hidden; }
.ticket-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 100% 0%, rgba(201, 162, 94, .22), transparent 70%); pointer-events: none; }
.ticket-card h2 { font-size: clamp(2rem, 4vw, 3rem); }
.ticket-card p { color: var(--avorio); opacity: .85; max-width: 40ch; }
.partners { display: flex; flex-wrap: wrap; gap: 1rem 3rem; align-items: baseline; padding: 2rem 0; border-top: 1px solid var(--linea); border-bottom: 1px solid var(--linea); color: var(--fumo); }
.partners strong { font-family: var(--f-display); font-weight: 400; font-size: 1.35rem; color: var(--avorio); display: block; }

/* ---------- testo lungo (chi siamo, trasparenza, policy) ---------- */
.prose { max-width: 70ch; font-size: 1.08rem; }
.prose h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-top: 2.2em; }
.prose h3 { font-size: 1.45rem; margin-top: 1.8em; }
.prose strong { color: var(--avorio); font-weight: 600; }
.prose ul { padding-left: 1.2em; } .prose li { margin-bottom: .6em; } .prose li::marker { color: var(--ottone); }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; margin: 1.5em 0; }
.prose th, .prose td { text-align: left; padding: .7em .6em; border-bottom: 1px solid var(--linea); vertical-align: top; }
.prose th { color: var(--ottone-chiaro); font-weight: 500; }
.table-scroll { overflow-x: auto; }
.lead { font-family: var(--f-display); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; color: var(--avorio); }
.two-col { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(32px, 6vw, 96px); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.figure { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--palco); }
.figure img { width: 100%; height: auto; }

.timeline { list-style: none; padding: 0; margin: 2rem 0; border-left: 1px solid var(--linea); }
.timeline li { position: relative; padding: 0 0 1.6rem 1.8rem; }
.timeline li::before { content: ""; position: absolute; left: -5px; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: var(--ottone); }
.timeline b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; color: var(--ottone-chiaro); }

.opportunity { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--linea); border-radius: var(--radius); overflow: hidden; background: var(--palco); }
.opportunity-img { background: var(--velluto-scuro); min-height: 260px; }
.opportunity-img img { width: 100%; height: 100%; object-fit: cover; }
.opportunity-body { padding: clamp(24px, 4vw, 48px); }
.opportunity-body h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.opportunity-body p { color: var(--fumo); }
@media (max-width: 760px) { .opportunity { grid-template-columns: 1fr; } }

/* contatti */
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; border-top: 1px solid var(--linea); }
.contact-list li { border-bottom: 1px solid var(--linea); }
.contact-list a, .contact-list div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.3rem 0; text-decoration: none; color: var(--avorio); flex-wrap: wrap; }
.contact-list small { color: var(--fumo); font-size: .9rem; }
.contact-list span { font-family: var(--f-display); font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
.contact-list a:hover span { color: var(--ottone-chiaro); }

/* ---------- footer ---------- */
.site-footer { padding: 0 0 2rem; color: var(--fumo); font-size: .95rem; }
.staff-footer { margin-bottom: 4rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand p { max-width: 32ch; margin-top: 1rem; }
.footer-title { font-family: var(--f-text); font-size: .95rem; font-weight: 600; color: var(--avorio); margin-bottom: .8rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .45rem; }
.site-footer a { color: var(--fumo); text-decoration: none; }
.site-footer a:hover, .site-footer .linklike:hover { color: var(--ottone-chiaro); }
.site-footer .linklike { text-decoration: none; }
.footer-legal { margin: 3.5rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--linea); font-size: .82rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- banner cookie ---------- */
.cookie {
  position: fixed; z-index: 80; left: 16px; right: 16px; bottom: 16px; max-width: 560px;
  background: var(--palco-2); color: var(--avorio); border: 1px solid var(--linea); border-radius: 8px;
  padding: 1.5rem 1.5rem 1.3rem; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
  transform: translateY(20px); opacity: 0; transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.cookie.is-open { transform: none; opacity: 1; }
.cookie h2 { font-size: 1.5rem; margin: 0 2rem .5rem 0; }
.cookie p { font-size: .92rem; color: var(--fumo); margin-bottom: 1rem; }
.cookie-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border: 0; background: none; color: var(--fumo); font-size: 1.6rem; cursor: pointer; border-radius: 50%; }
.cookie-close:hover { color: var(--avorio); background: rgba(255, 255, 255, .06); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cookie-actions .btn { flex: 1 1 auto; }
.cookie-prefs { display: grid; gap: .8rem; margin: 0 0 1.1rem; }
.switch { display: flex; gap: .8rem; align-items: flex-start; font-size: .9rem; color: var(--fumo); cursor: pointer; }
.switch strong { display: block; color: var(--avorio); font-weight: 600; }
.switch input { accent-color: var(--ottone); width: 18px; height: 18px; margin-top: .2em; flex: none; }

/* ---------- rivelazione allo scroll (solo foto delle griglie) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .hero-title { font-size: clamp(3.4rem, 23vw, 7rem); }
  .hero-actions .btn { flex: 1 1 auto; }
}
