/* Scenadinamica — Teatro e Cultura · Pescara
   Palette "palcoscenico": nero di scena, terracotta del simbolo, avorio di carta, ocra delle luci. */

@font-face { font-family: 'Playfair Display'; src: url('../fonts/playfair-var.woff2') format('woff2'); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Playfair Display'; src: url('../fonts/playfair-italic.woff2') format('woff2'); font-weight: 400 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('../fonts/jost-variable.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --brand: #b55842;        /* terracotta del simbolo */
  --brand-dark: #93412f;
  --brand-light: #d67a60;
  --ochre: #c9a26b;        /* luce di scena */
  --ink: #100d0c;          /* nero palcoscenico */
  --ink-2: #1a1513;
  --ink-3: #241d1a;
  --text: #2b2421;
  --muted: #6e625c;
  --bg: #f6f0e7;           /* avorio */
  --bg-alt: #ede4d7;
  --paper: #fbf8f3;
  --line: #ddd0bf;
  --line-dark: rgba(244, 237, 227, .14);
  --on-dark: #f4ede3;
  --on-dark-muted: #b9ada3;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Jost', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --shadow-sm: 0 2px 10px rgba(16, 13, 12, .06);
  --shadow-md: 0 14px 40px rgba(16, 13, 12, .12);
  --shadow-lg: 0 30px 80px rgba(16, 13, 12, .28);
  --radius: 4px;
  --radius-lg: 10px;
  --container: 1220px;
  --nav-h: 84px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; font-weight: 400; line-height: 1.75; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }
h1 em, h2 em, h3 em { font-style: italic; color: var(--brand); font-weight: 500; }
p { margin: 0 0 1.1em; }
strong { font-weight: 600; }
:focus-visible { outline: 2px solid var(--brand-light); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { left: 12px; }

.container { width: min(100% - 40px, var(--container)); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-paper { background: var(--paper); }
.section-dark { background: var(--ink); color: var(--on-dark-muted); }
.section-dark h2, .section-dark h3 { color: var(--on-dark); }
.section-dark h2 em, .section-dark h3 em { color: var(--brand-light); }

.eyebrow { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.section-dark .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--ochre); }
.lead { font-size: clamp(1.1rem, 1.5vw, 1.25rem); line-height: 1.7; color: var(--muted); }
.section-dark .lead { color: var(--on-dark-muted); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .eyebrow::after { content: ""; width: 36px; height: 1px; background: currentColor; }
.section-head { max-width: 760px; margin: 0 auto clamp(48px, 6vw, 72px); }

/* bottoni */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 30px; border-radius: 999px; font-family: var(--font-body); font-size: .82rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.section-dark .btn-outline, .hero .btn-outline, .page-hero .btn-outline, .band .btn-outline { color: var(--on-dark); }
.section-dark .btn-outline:hover, .hero .btn-outline:hover, .page-hero .btn-outline:hover, .band .btn-outline:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn-light { background: var(--on-dark); color: var(--ink); }
.btn-light:hover { background: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.center .btn-row { justify-content: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; color: var(--brand); border-bottom: 1px solid currentColor; padding-bottom: 4px; transition: gap .3s var(--ease); }
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { gap: 16px; }

/* ---------------- header ---------------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 90; height: var(--nav-h); display: flex; align-items: center; transition: background .4s var(--ease), height .4s var(--ease), box-shadow .4s var(--ease); }
.site-header::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; background: var(--line-dark); opacity: 0; transition: opacity .4s; }
.site-header.scrolled { background: rgba(16, 13, 12, .86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); height: 72px; }
.site-header.scrolled::after { opacity: 1; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 178px; height: auto; transition: width .4s var(--ease); }
.scrolled .brand img { width: 158px; }
.nav-menu { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-menu a { display: block; padding: 10px 16px; font-size: .78rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--on-dark); position: relative; transition: color .3s; }
.nav-menu > li:not(.nav-cta) > a::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px; height: 1px; background: var(--brand-light); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-menu > li > a:hover::after, .nav-menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav-menu a[aria-current="page"] { color: #fff; }
.nav-cta { margin-left: 12px; }
.nav-cta .btn { padding: 12px 22px; color: #fff; }

/* menu mobile — da templates/menu.css */
body.is-locked { position: fixed; width: 100%; overflow: hidden; top: var(--scroll-lock-top, 0); overflow-anchor: none; }
.nav-overlay { display: none; }
.site-header.has-menu-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ink); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--line-dark); border-radius: 50%; background: transparent; cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px; position: relative; z-index: 95; }
.nav-toggle span { display: block; width: 20px; height: 1.6px; background: var(--on-dark); transition: transform .3s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .nav-overlay { display: block; position: fixed; inset: 0; z-index: 89; background: rgba(0, 0, 0, .6); border: 0; padding: 0; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .38s var(--ease), visibility 0s linear .38s; }
  .nav-overlay.is-open { opacity: 1; visibility: visible; transition: opacity .38s var(--ease), visibility 0s linear 0s; }
  .nav-menu { position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px); background: var(--ink-2); flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 2px; padding: 110px 28px 40px; box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain; transform: translateX(100%); visibility: hidden; transition: transform .38s var(--ease), visibility 0s linear .38s; border-left: 1px solid var(--line-dark); }
  .nav-menu.is-open { transform: none; visibility: visible; transition: transform .38s var(--ease), visibility 0s linear 0s; }
  .nav-menu a { padding: 15px 4px; font-size: .95rem; border-bottom: 1px solid var(--line-dark); }
  .nav-menu > li:not(.nav-cta) > a::after { display: none; }
  .nav-menu a[aria-current="page"] { color: var(--brand-light); }
  .nav-cta { margin: 24px 0 0; }
  .nav-cta .btn { width: 100%; border-bottom: 0; }
}

/* ---------------- hero home ---------------- */
.hero { position: relative; min-height: min(100svh, 940px); display: flex; align-items: flex-end; color: var(--on-dark); background: var(--ink); overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; animation: heroZoom 14s var(--ease) both; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(16, 13, 12, .92) 0%, rgba(16, 13, 12, .62) 45%, rgba(16, 13, 12, .15) 100%), linear-gradient(0deg, rgba(16, 13, 12, .9) 0%, transparent 45%); }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-inner { padding: calc(var(--nav-h) + 60px) 0 clamp(90px, 12vh, 140px); }
.hero h1 { color: var(--on-dark); font-weight: 500; margin-bottom: .3em; }
.hero h1 .word { display: inline-block; }
.hero h1 em { color: var(--brand-light); }
.hero .lead { max-width: 560px; color: #d9cfc5; }
.hero-spot { position: absolute; z-index: -1; width: 70vmax; height: 70vmax; right: -15vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(201, 162, 107, .16), transparent 70%); pointer-events: none; }
.scroll-cue { position: absolute; right: max(20px, calc((100vw - var(--container)) / 2)); bottom: 48px; display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; color: var(--on-dark-muted); writing-mode: vertical-rl; text-decoration: none; }
.scroll-cue::after { content: ""; width: 1px; height: 64px; background: linear-gradient(var(--ochre), transparent); animation: cue 2.4s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: scaleY(.4); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }

/* ---------------- banda "Desiderate collaborare" ---------------- */
.band-wrap { position: relative; z-index: 2; margin-top: -70px; }
.band { position: relative; overflow: hidden; background: var(--brand); color: #fff; border-radius: var(--radius-lg); padding: clamp(40px, 5vw, 60px) clamp(28px, 5vw, 70px); display: grid; grid-template-columns: 1fr auto; gap: 30px 60px; align-items: center; box-shadow: var(--shadow-lg); }
.band::before { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 50%; }
.band::after { content: ""; position: absolute; right: 40px; bottom: -120px; width: 220px; height: 220px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 50%; }
.band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: .35em; }
.band p { margin: 0; color: rgba(255, 255, 255, .88); max-width: 620px; }
.band .btn { position: relative; z-index: 1; }

/* ---------------- card "Perché sceglierci" ---------------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.feature { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 500px; border-radius: var(--radius-lg); overflow: hidden; color: var(--on-dark); text-decoration: none; isolation: isolate; background: var(--ink); }
.feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.85); }
.feature::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(16, 13, 12, .95) 8%, rgba(16, 13, 12, .55) 48%, rgba(16, 13, 12, .05) 100%); }
.feature:hover img { transform: scale(1.06); filter: saturate(1); }
.feature-body { padding: 34px 30px 32px; }
.feature .num { font-family: var(--font-display); font-style: italic; color: var(--ochre); font-size: 1.05rem; display: block; margin-bottom: 10px; }
.feature h3 { color: var(--on-dark); font-size: 1.6rem; }
.feature p { font-size: .98rem; color: #d3c8bd; margin-bottom: 20px; }
.feature .link-arrow { color: var(--brand-light); }

/* ---------------- split immagine/testo ---------------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.split.reverse > :first-child { order: 2; }
.frame { position: relative; }
.frame img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
.frame::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--brand); border-radius: var(--radius-lg); z-index: -1; }
.split.reverse .frame::before { inset: 22px 22px -22px -22px; }
.frame-square img { aspect-ratio: 1; }
.logo-stage { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); aspect-ratio: 5 / 4; display: grid; place-items: center; padding: 12%; position: relative; overflow: hidden; }
.logo-stage::before { content: ""; position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(181, 88, 66, .1), transparent); }
.logo-stage img { position: relative; width: 100%; }
.split-text p { color: var(--muted); }

/* ---------------- striscia foto ---------------- */
.strip { background: var(--ink); padding: clamp(70px, 9vw, 110px) 0; overflow: hidden; }
.strip-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 36px; }
.strip-head h2 { color: var(--on-dark); margin: 0; }
.strip-nav { display: flex; gap: 10px; }
.strip-nav button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-dark); background: transparent; color: var(--on-dark); font-size: 1.4rem; cursor: pointer; transition: background .3s, border-color .3s; }
.strip-nav button:hover { background: var(--brand); border-color: var(--brand); }
.strip-track { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 26vw, 340px); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: max(20px, calc((100vw - var(--container)) / 2)); scroll-padding-inline: max(20px, calc((100vw - var(--container)) / 2)); }
.strip-track::-webkit-scrollbar { display: none; }
.strip-track a { scroll-snap-align: start; border-radius: var(--radius-lg); overflow: hidden; display: block; }
.strip-track img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .8s var(--ease); }
.strip-track a:hover img { transform: scale(1.05); }

/* ---------------- pagine interne: apertura ---------------- */
.page-hero { position: relative; background: var(--ink); color: var(--on-dark); padding: calc(var(--nav-h) + clamp(50px, 7vw, 90px)) 0 clamp(60px, 8vw, 100px); overflow: hidden; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; z-index: -1; width: 60vmax; height: 60vmax; left: -20vmax; top: -30vmax; background: radial-gradient(closest-side, rgba(201, 162, 107, .13), transparent 70%); }
.page-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.page-hero h1 { color: var(--on-dark); font-size: clamp(2.6rem, 5.4vw, 4.4rem); }
.page-hero h1 em { color: var(--brand-light); }
.page-hero .lead { color: #d3c8bd; max-width: 560px; }
.page-hero-img { position: relative; justify-self: end; width: 100%; max-width: 480px; }
.page-hero-img img { width: 100%; border-radius: var(--radius-lg); aspect-ratio: 3 / 2; object-fit: cover; box-shadow: var(--shadow-lg); }
.page-hero-img::before { content: ""; position: absolute; inset: -18px 18px 18px -18px; border: 1px solid rgba(214, 122, 96, .55); border-radius: var(--radius-lg); z-index: -1; }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; font-size: .74rem; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--brand-light); }
.breadcrumb a { text-decoration: none; color: var(--on-dark-muted); }
.breadcrumb a:hover { color: var(--on-dark); }
.breadcrumb [aria-current] { color: var(--on-dark); }

/* ---------------- chi siamo: missione ---------------- */
.mission { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(40px, 7vw, 100px); align-items: start; }
.prose p { color: var(--text); }
.prose .closing { font-family: var(--font-display); font-style: italic; font-size: 1.35rem; line-height: 1.5; color: var(--ink); border-left: 2px solid var(--brand); padding-left: 24px; margin-top: 34px; }
.mission-aside { position: sticky; top: 120px; }
.mission-aside .frame img { aspect-ratio: 1; }
.timeline { list-style: none; padding: 0; margin: 60px 0 0; border-top: 1px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.timeline b { font-family: var(--font-display); font-weight: 500; color: var(--brand); font-size: 1.15rem; }

/* tabs */
.tabs { margin-top: 10px; }
.tab-list { display: none; }
.tabs-ready .tab-list { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line-dark); margin-bottom: 30px; }
.tab-list button { background: none; border: 0; padding: 14px 18px 16px; font-family: var(--font-body); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-muted); cursor: pointer; position: relative; }
.tab-list button::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--brand-light); transform: scaleX(0); transition: transform .35s var(--ease); }
.tab-list button[aria-selected="true"] { color: var(--on-dark); }
.tab-list button[aria-selected="true"]::after { transform: scaleX(1); }
.tab-panel h3 { color: var(--on-dark); }
.tabs-ready .tab-panel h3 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tab-panel p { color: #d3c8bd; font-size: 1.05rem; }
.tabs:not(.tabs-ready) .tab-panel + .tab-panel { margin-top: 30px; }
.tab-panel[hidden] { display: none; }
.tabs-ready .tab-panel:not([hidden]) { animation: fadeUp .5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------------- servizi ---------------- */
.offer-list { display: grid; gap: clamp(70px, 9vw, 120px); }
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.offer:nth-child(even) .offer-media { order: 2; }
.offer:nth-child(even) .frame::before { inset: 22px 22px -22px -22px; }
.offer-media .frame img { aspect-ratio: 1; }
.offer-num { font-family: var(--font-display); font-style: italic; font-size: clamp(3.6rem, 7vw, 6rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--brand); display: block; margin-bottom: 8px; }
.offer p { color: var(--muted); }

/* ---------------- CTA finale ---------------- */
.cta-final { position: relative; text-align: center; overflow: hidden; isolation: isolate; }
.cta-final::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(60% 80% at 50% 0%, rgba(201, 162, 107, .16), transparent 70%); }
.cta-final .container { max-width: 820px; }
.curtain { position: absolute; top: 0; bottom: 0; width: clamp(40px, 8vw, 110px); z-index: -1; opacity: .5; background: repeating-linear-gradient(90deg, #5e1f17 0 10px, #7a2a1f 10px 22px, #4b1811 22px 30px); mask-image: linear-gradient(90deg, #000, transparent); -webkit-mask-image: linear-gradient(90deg, #000, transparent); }
.curtain.l { left: 0; }
.curtain.r { right: 0; transform: scaleX(-1); }

/* ---------------- galleria ---------------- */
.gallery { columns: 4 240px; column-gap: 16px; }
.gallery a { display: block; margin-bottom: 16px; break-inside: avoid; border-radius: var(--radius-lg); overflow: hidden; position: relative; background: var(--ink); }
.gallery img { width: 100%; transition: transform .8s var(--ease), opacity .4s; }
.gallery a::after { content: "+"; position: absolute; right: 14px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(16, 13, 12, .7); color: var(--on-dark); font-size: 1.3rem; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s var(--ease); }
.gallery a:hover img { transform: scale(1.04); opacity: .88; }
.gallery a:hover::after, .gallery a:focus-visible::after { opacity: 1; transform: none; }

.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(10, 8, 7, .96); display: grid; grid-template-columns: 70px 1fr 70px; align-items: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: min(100%, 900px); max-height: 80vh; margin: 0 auto; border-radius: var(--radius); object-fit: contain; }
.lightbox figcaption { margin-top: 14px; color: var(--on-dark-muted); font-size: .8rem; letter-spacing: .2em; }
.lightbox button { background: none; border: 1px solid var(--line-dark); color: var(--on-dark); width: 52px; height: 52px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; justify-self: center; }
.lightbox button:hover { background: var(--brand); border-color: var(--brand); }
.lb-close { position: absolute; top: 20px; right: 20px; }
html.lb-open { overflow: hidden; }

/* ---------------- contatti ---------------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.contact-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px 32px; }
.contact-card .ico { width: 54px; height: 54px; border-radius: 50%; background: rgba(181, 88, 66, .1); color: var(--brand); display: grid; place-items: center; margin-bottom: 22px; }
.contact-card .ico svg { width: 24px; height: 24px; }
.contact-card h2 { font-size: 1.5rem; }
.contact-card ul { list-style: none; margin: 0; padding: 0; }
.contact-card li { padding: 9px 0; border-bottom: 1px dashed var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; }
.contact-card li:last-child { border-bottom: 0; }
.contact-card a { text-decoration: none; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.contact-card a:hover { color: var(--brand); }
.contact-card small { color: var(--muted); font-size: .9rem; }
.form-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; background: var(--ink-2); padding: clamp(28px, 4vw, 48px); border-radius: var(--radius-lg); }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: 8px; }
.form input, .form textarea { width: 100%; padding: 14px 16px; background: var(--ink-3); border: 1px solid var(--line-dark); border-radius: var(--radius); color: var(--on-dark); font: inherit; font-size: 1rem; transition: border-color .3s; }
.form input:focus, .form textarea:focus { outline: none; border-color: var(--brand-light); }
.form textarea { min-height: 160px; resize: vertical; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--on-dark-muted); }
.check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--brand); flex: none; }
.check a { color: var(--on-dark); }
.form-status { min-height: 1.5em; margin: 0; color: var(--ochre); font-size: .95rem; }

/* ---------------- footer ---------------- */
.site-footer { background: var(--ink); color: var(--on-dark-muted); padding: clamp(70px, 9vw, 110px) 0 0; font-size: .97rem; border-top: 1px solid var(--line-dark); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr 1fr 1.2fr; gap: 50px; padding-bottom: 60px; }
.footer-brand img { width: 220px; margin-bottom: 22px; }
.footer-brand p { margin: 0 0 22px; }
.site-footer h4 { font-family: var(--font-body); font-size: .74rem; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; color: var(--on-dark); margin: 0 0 22px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { text-decoration: none; color: var(--on-dark-muted); transition: color .3s; }
.site-footer a:hover { color: var(--on-dark); }
.footer-call { display: inline-flex; flex-direction: column; gap: 2px; padding: 16px 22px; border: 1px solid var(--line-dark); border-radius: var(--radius-lg); }
.footer-call small { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--ochre); }
.footer-call a { font-family: var(--font-display); font-size: 1.3rem; color: var(--on-dark); }
.footer-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.footer-thumbs a { border-radius: var(--radius); overflow: hidden; display: block; }
.footer-thumbs img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .6s var(--ease), opacity .3s; opacity: .85; }
.footer-thumbs a:hover img { transform: scale(1.06); opacity: 1; }
.sponsor { border-top: 1px solid var(--line-dark); padding: 40px 0; display: grid; grid-template-columns: auto 1fr; gap: 20px 50px; align-items: center; }
.sponsor-label h4 { margin-bottom: 6px; }
.sponsor-label p { margin: 0; font-size: .92rem; }
.sponsor-logos { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.sponsor-logos img { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 10px; padding: 0; transition: transform .3s var(--ease); }
.sponsor-logos img:hover { transform: translateY(-3px); }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 26px 0 30px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 30px; font-size: .85rem; }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------------- testi legali / 404 ---------------- */
.legal { max-width: 820px; }
.legal h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 1.6em; }
.legal h3 { font-size: 1.25rem; margin-top: 1.4em; }
.legal li { margin-bottom: .5em; }
.legal table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.err { min-height: 100svh; display: grid; place-items: center; text-align: center; }
.err-num { font-family: var(--font-display); font-style: italic; font-size: clamp(6rem, 20vw, 13rem); line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--brand-light); display: block; }

/* ---------------- reveal ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.d1 { transition-delay: .12s; } .d2 { transition-delay: .24s; } .d3 { transition-delay: .36s; }

/* ---------------- responsive ---------------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature { min-height: 440px; }
}
@media (max-width: 900px) {
  :root { --nav-h: 72px; }
  .brand img, .scrolled .brand img { width: 150px; }
  .split, .mission, .offer, .page-hero-grid, .form-wrap { grid-template-columns: 1fr; }
  .split.reverse > :first-child, .offer:nth-child(even) .offer-media { order: 0; }
  .features { grid-template-columns: 1fr; }
  .feature { min-height: 400px; }
  .band { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .page-hero-img { justify-self: start; max-width: 520px; }
  .mission-aside { position: static; }
  .sponsor { grid-template-columns: 1fr; }
  .sponsor-logos { justify-content: flex-start; }
  .scroll-cue { display: none; }
  .frame::before, .split.reverse .frame::before, .offer:nth-child(even) .frame::before { inset: 14px -14px -14px 14px; }
  .frame { margin-right: 14px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .container { width: min(100% - 32px, var(--container)); }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .form { grid-template-columns: 1fr; }
  .strip-head { flex-direction: column; align-items: flex-start; }
  .lightbox { grid-template-columns: 1fr; }
  .lightbox .lb-prev, .lightbox .lb-next { position: absolute; bottom: 24px; }
  .lightbox .lb-prev { left: calc(50% - 64px); }
  .lightbox .lb-next { right: calc(50% - 64px); }
  .gallery { columns: 2 140px; column-gap: 10px; }
  .gallery a { margin-bottom: 10px; }
  .band-wrap { margin-top: -40px; }
}
@media (max-width: 480px) {
  .btn { padding: 14px 24px; }
  .btn-row .btn { width: 100%; }
  .sponsor-logos img { width: 54px; height: 54px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
