:root {
  --ink: #141210;
  --ink-2: #3b3631;
  --muted: #5a534b;
  --paper: #f4f1ec;
  --sand: #e8e2d6;
  --line: #d9d2c6;
  --red: #d7192f;
  --red-dark: #b3121f;
  --red-light: #ff5a69;
  --stone: #a39b90;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --text: 'Instrument Sans', system-ui, sans-serif;
  --pad: clamp(16px, 4vw, 32px);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.65 var(--text); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .92; margin: 0; letter-spacing: .005em; }
h2 { font-size: clamp(44px, 7vw, 84px); margin-bottom: 32px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--red); color: #fff; padding: 8px 14px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { max-width: 1240px; margin: 0 auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 10vw, 112px); }
.kicker { margin: 0 0 14px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); font-weight: 600; }
.kicker-light { color: var(--red-light); }
.kicker-muted { color: var(--stone); }

.prose { color: var(--ink-2); max-width: 66ch; text-wrap: pretty; }
.prose p { margin: 0 0 1.1em; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose h3 { font-size: 30px; margin: 1.6em 0 .6em; color: var(--ink); }
.prose ul { padding-left: 1.1em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .4em; }
.prose a { color: var(--red); }
.prose-light { color: #d6cfc4; }
.prose-light strong { color: #fff; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 24px; font-weight: 600; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; text-decoration: none; transition: background .15s, color .15s; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-light { background: var(--paper); color: var(--ink); }
.btn-light:hover { background: #fff; color: var(--red); }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: var(--red); }

/* Header */
.topbar { position: sticky; top: 0; z-index: 30; background: var(--ink); color: var(--paper); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-family: var(--display); font-weight: 900; font-size: 20px; letter-spacing: .05em; text-transform: uppercase; }
.brand em { font-style: normal; color: var(--red-light); }
.menu { display: flex; align-items: center; gap: 22px; font-size: 14px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.menu a { text-decoration: none; }
.menu a:not(.btn):hover, .menu a[aria-current] { color: var(--red-light); }
.menu .btn { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.menu-btn { display: none; background: none; border: 0; width: 48px; height: 48px; padding: 12px; cursor: pointer; color: inherit; }
.menu-btn i, .menu-btn i::before, .menu-btn i::after { display: block; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.menu-btn i::before, .menu-btn i::after { content: ''; position: absolute; left: 0; right: 0; }
.menu-btn i::before { top: -8px; }
.menu-btn i::after { top: 8px; }
.menu-btn[aria-expanded="true"] i { background: transparent; }
.menu-btn[aria-expanded="true"] i::before { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i::after { transform: translateY(-8px) rotate(-45deg); }
@media (max-width: 960px) {
  .menu-btn { display: block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--pad) 20px; border-top: 1px solid #2a2622; font-size: 16px; }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid #2a2622; }
  .menu .btn { margin-top: 16px; min-height: 48px; }
}
@media (max-width: 420px) { .brand span { font-size: 17px; } }

/* Hero */
.hero { position: relative; background: var(--ink); color: var(--paper); min-height: min(88vh, 820px); display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; filter: grayscale(1); }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,16,.35) 0%, rgba(20,18,16,.9) 78%); }
.hero-in { position: relative; z-index: 1; width: 100%; padding-block: 120px 64px; }
.hero-logo { width: clamp(96px, 13vw, 170px); height: auto; margin-bottom: 24px; filter: drop-shadow(0 8px 24px rgba(0,0,0,.45)); }
.hero h1 { font-size: clamp(56px, 11vw, 144px); line-height: .86; }
.hero h1 span { color: var(--red); }
.hero-lead { font-size: clamp(18px, 2vw, 21px); max-width: 34ch; color: #e6e0d6; margin: 24px 0 32px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Split */
.split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 80px); align-items: start; }
.split-side { position: sticky; top: 96px; display: grid; gap: 24px; }
.photo { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--sand); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.callout { background: var(--ink); color: #d6cfc4; padding: 28px; border-left: 6px solid var(--red); }
.callout p { margin: 0; }
.callout strong { color: #fff; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split-side { position: static; }
  .photo { aspect-ratio: 4 / 3; }
}

/* Quote */
.quote { background: var(--red); color: #fff; }
.quote blockquote { margin: 0; padding-block: clamp(56px, 8vw, 96px); }
.quote p { margin: 0; font-family: var(--display); font-weight: 900; font-size: clamp(32px, 5vw, 64px); line-height: 1; text-transform: uppercase; text-wrap: balance; max-width: 22ch; }
.quote footer { margin-top: 20px; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; }

/* Orari */
.schedule { list-style: none; margin: 0 0 32px; padding: 0; border-top: 2px solid var(--ink); }
.schedule li { display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.schedule .day { font-family: var(--display); font-weight: 900; font-size: 34px; text-transform: uppercase; line-height: 1; }
.schedule .time { font-family: var(--display); font-weight: 700; font-size: 34px; color: var(--red); line-height: 1; }
.schedule .what { color: var(--muted); font-size: 15px; }
.place { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.place p { margin: 0; }
.note { color: var(--muted); font-size: 16px; margin-top: 24px; }
.note a { color: var(--red); }

/* Dark band + teachers */
.dark { background: var(--ink); color: var(--paper); }
.head-split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px 48px; align-items: end; margin-bottom: 48px; }
.head-split h2 { margin-bottom: 0; }
.teachers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; }
.teacher h3 { font-size: clamp(34px, 4vw, 44px); margin-bottom: 14px; }
.teacher p:not(.kicker) { color: #d6cfc4; margin: 0 0 16px; }
.teacher .kicker { color: var(--red-light); margin-top: 24px; }
.teacher-img { display: block; aspect-ratio: 4 / 5; overflow: hidden; }
.teacher-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .3s, transform .4s; }
.teacher-img:hover img { filter: none; transform: scale(1.03); }
.more { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--red); }
.more:hover { color: var(--red-light); }

/* Palmares */
.banner { position: relative; height: clamp(220px, 32vw, 420px); background: #2a2622; overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.75); }
.banner .wrap { position: absolute; left: 0; right: 0; bottom: 0; }
.banner h2 { margin: 0 0 -.1em; font-size: clamp(76px, 15vw, 200px); line-height: .8; color: var(--red); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin: 0 0 56px; }
.stats div { background: var(--ink); color: var(--paper); padding: 20px; }
.stats dt { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); font-weight: 600; }
.stats dd { margin: 6px 0 0; font-family: var(--display); font-weight: 900; font-size: 48px; line-height: 1; }
.year { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 8px 32px; border-top: 2px solid var(--ink); padding-top: 20px; margin-bottom: 48px; }
.year h3 { font-size: 56px; }
.year ul { list-style: none; margin: 0; padding: 0; }
.year li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 4px 20px; padding: 14px 0; border-bottom: 1px solid var(--line); line-height: 1.4; }
.pos { font-family: var(--display); font-weight: 900; font-size: 24px; color: var(--muted); line-height: 1.1; }
.gold .pos { color: var(--red); }
.ev { font-weight: 600; }
.cat { color: var(--muted); font-size: 16px; text-align: right; white-space: nowrap; }
@media (max-width: 760px) {
  .year { grid-template-columns: 1fr; }
  .year li { grid-template-columns: 64px minmax(0, 1fr); }
  .cat { grid-column: 2; text-align: left; white-space: normal; }
}

/* Gallery */
.sand { background: var(--sand); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); gap: 8px; }
.g-item { display: block; aspect-ratio: 1; overflow: hidden; background: #d0c8ba; }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.g-item:hover img { transform: scale(1.05); }
.lightbox { padding: 0; border: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10,9,8,.94); }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(20,18,16,.6); color: #fff; border: 0; width: 56px; height: 56px; font-size: 36px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--red); }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* Insegnanti page */
.page-head { padding-block: clamp(72px, 10vw, 120px) clamp(48px, 6vw, 72px); }
.page-head h1 { font-size: clamp(56px, 10vw, 128px); margin-bottom: 32px; }
.bio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(32px, 6vw, 80px); padding-block: clamp(64px, 9vw, 104px); border-bottom: 1px solid var(--line); align-items: start; }
.bio h2 { font-size: clamp(44px, 6vw, 72px); }
.bio-side { position: sticky; top: 96px; }
.bio-side img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1); }
.facts { list-style: none; margin: 0; padding: 0; background: var(--ink); color: var(--paper); }
.facts li { padding: 14px 20px; border-bottom: 1px solid #2a2622; font-weight: 500; font-size: 16px; }
.facts li::before { content: '■'; color: var(--red); margin-right: 10px; font-size: 11px; vertical-align: 2px; }
@media (max-width: 860px) {
  .bio { grid-template-columns: 1fr; }
  .bio-side { position: static; max-width: 460px; }
}
.cta-band { text-align: center; }
.cta-band p { color: var(--muted); margin: 0 0 24px; }
.page-404 { min-height: 50vh; }
.page-404 h1 { font-size: clamp(56px, 10vw, 120px); margin-bottom: 24px; }
.page-404 a { color: var(--red); }

/* Footer */
.footer { background: var(--ink); color: var(--paper); border-top: 8px solid var(--red); }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 40px; padding-block: 72px 40px; }
.footer p { margin: 0 0 12px; }
.footer-who { font-size: 17px; }
.footer-tel { display: inline-block; font-family: var(--display); font-weight: 700; font-size: clamp(36px, 4vw, 44px); line-height: 1; text-decoration: none; margin-bottom: 16px; }
.footer-tel:hover { color: var(--red-light); }
.footer-addr { font-size: 17px; }
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
.chip { border: 1px solid #4a443d; padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; font-weight: 600; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
.chip:hover { border-color: var(--red); color: #fff; }
.footer-base { display: flex; align-items: center; gap: 14px; padding-block: 24px; border-top: 1px solid #2a2622; font-size: 14px; color: var(--stone); }

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