/* ==========================================================================
   Prometeo Gymnasium — foglio di stile principale
   Sito statico, nessuna dipendenza esterna a parte i Google Fonts.
   ========================================================================== */

:root {
  /* Colori */
  --ink: #15110e;
  --ink-2: #1f1915;
  --ink-3: #2b231d;
  --parchment: #f6f0e6;
  --sand: #ece2d0;
  --sand-2: #e0d2b9;
  --bronze: #b8873b;
  --bronze-light: #d9a957;
  --bronze-dark: #8a6224;
  --terracotta: #b0432e;
  --text: #2a231e;
  --text-muted: #6b5f55;
  --text-on-dark: #efe7da;
  --text-on-dark-muted: #b9ad9d;
  --line: rgba(42, 35, 30, .14);
  --line-dark: rgba(239, 231, 218, .14);

  /* Tipografia */
  --font-display: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Misure */
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 72px;
  --shadow: 0 10px 30px rgba(21, 17, 14, .12);
  --shadow-lg: 0 24px 60px rgba(21, 17, 14, .25);

  /* Greca (meandro) come immagine riutilizzabile */
  --meander: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='20' viewBox='0 0 40 20'%3E%3Cpath d='M0 18h8V6h16v8h-8v-4h-4v8h20V2H0' fill='none' stroke='%23b8873b' stroke-width='2'/%3E%3C/svg%3E");
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--parchment);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--bronze-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .02em;
  margin: 0 0 .6em;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .35em; }

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--bronze); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

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

/* --------------------------------------------------------------------------
   Header e navigazione
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  color: var(--text-on-dark);
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header::before {
  /* sfumatura per leggere il menu sopra le immagini */
  content: ""; position: absolute; inset: 0 0 -40px 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(10, 8, 6, .7), rgba(10, 8, 6, 0));
  transition: opacity .3s ease;
}
.site-header.is-scrolled,
body.nav-open .site-header {
  background: rgba(21, 17, 14, .94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.site-header.is-scrolled::before, body.nav-open .site-header::before { opacity: 0; }
/* con il menu aperto niente backdrop-filter: altrimenti il pannello "fixed" verrebbe ritagliato dentro l'header */
body.nav-open .site-header, body.nav-open .site-header.is-scrolled {
  background: var(--ink); backdrop-filter: none; -webkit-backdrop-filter: none;
}

.header-inner {
  position: relative; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; flex-shrink: 0; }
.brand:hover { color: inherit; }
.brand-logo {
  width: 46px; height: 46px; border-radius: 50%;
  background: #fff url("../img/logo.jpg") center 48% / 132% auto no-repeat;
  box-shadow: 0 0 0 2px var(--bronze);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .08em; }
.brand-sub { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--bronze-light); margin-top: 3px; }

.main-nav ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav li { margin: 0; position: relative; }
.main-nav a, .main-nav .sub-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  color: var(--text-on-dark); text-decoration: none;
  font-size: .9rem; font-weight: 500; letter-spacing: .03em;
  background: none; border: 0; font-family: inherit; cursor: pointer;
}
.main-nav a:hover, .main-nav .sub-toggle:hover { color: var(--bronze-light); }
.main-nav a[aria-current="page"], .main-nav .is-current > .sub-toggle, .main-nav .is-current > a {
  color: var(--bronze-light);
}
.sub-toggle .chev { width: 10px; height: 10px; transition: transform .2s ease; }

.submenu {
  position: absolute; top: calc(100% + 6px); left: 50%; min-width: 250px;
  transform: translate(-50%, 6px);
  background: var(--ink-2); border: 1px solid var(--line-dark); border-radius: var(--radius);
  padding: 8px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.submenu a { display: flex; width: 100%; padding: 9px 12px; font-size: .9rem; }
.submenu a:hover { background: rgba(255, 255, 255, .05); }

@media (hover: hover) and (min-width: 1081px) {
  .has-sub:hover > .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .has-sub:hover > .sub-toggle .chev { transform: rotate(180deg); }
}
.has-sub.is-open > .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.has-sub.is-open > .sub-toggle .chev { transform: rotate(180deg); }

.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 46px; height: 46px; border-radius: 50%;
  background: transparent; border: 1px solid var(--line-dark); color: var(--text-on-dark);
  align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .25s ease, background-color .25s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1080px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
    background: var(--ink); overflow-y: auto; overscroll-behavior: contain;
    padding: 12px var(--gutter) 40px;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  body.nav-open { overflow: hidden; }
  body.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav > ul > li { border-bottom: 1px solid var(--line-dark); }
  .main-nav a, .main-nav .sub-toggle {
    width: 100%; justify-content: space-between; padding: 16px 4px;
    font-family: var(--font-display); font-size: 1.15rem; letter-spacing: .06em;
  }
  .submenu {
    position: static; transform: none; min-width: 0; box-shadow: none; border: 0;
    background: transparent; padding: 0 0 12px 12px; opacity: 1; visibility: visible;
    display: none;
  }
  .has-sub.is-open > .submenu { display: block; transform: none; }
  .submenu a { font-family: var(--font-body); font-size: 1rem; padding: 10px 4px; color: var(--text-on-dark-muted); }
  .nav-cta { margin: 24px 0 0; border-bottom: 0 !important; }
}

/* --------------------------------------------------------------------------
   Bottoni
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 13px 24px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem; letter-spacing: .03em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--bronze); color: var(--ink); box-shadow: 0 6px 20px rgba(184, 135, 59, .35); }
.btn-primary:hover { background: var(--bronze-light); color: var(--ink); }
.btn-ghost { border-color: rgba(239, 231, 218, .5); color: var(--text-on-dark); }
.btn-ghost:hover { border-color: var(--bronze-light); color: var(--bronze-light); }
.btn-dark { background: var(--ink); color: var(--text-on-dark); }
.btn-dark:hover { background: var(--ink-3); color: var(--bronze-light); }
.btn-outline { border-color: var(--bronze); color: var(--bronze-dark); }
.btn-outline:hover { background: var(--bronze); color: var(--ink); }
.main-nav .nav-cta .btn {
  padding: 10px 18px; font-family: var(--font-body); font-size: .88rem; font-weight: 600; letter-spacing: .03em;
  background: var(--bronze); color: var(--ink); justify-content: center; border-radius: 999px;
}
.main-nav .nav-cta .btn:hover { background: var(--bronze-light); color: var(--ink); }
@media (max-width: 1080px) {
  .main-nav .nav-cta .btn { width: 100%; padding: 15px 20px; font-size: 1rem; }
}

/* --------------------------------------------------------------------------
   Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  color: var(--text-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: center 40%; }
.hero-media picture { display: block; width: 100%; height: 100%; }
.hero-media--home img { object-position: 88% 40%; }
@media (max-aspect-ratio: 4/5) { .hero-media--home img { object-position: center top; } }
/* la composizione della home è già scura: velatura più leggera, solo dietro al testo */
.hero.hero--home::after {
  background:
    linear-gradient(to top, rgba(15, 12, 10, .92) 0%, rgba(15, 12, 10, .35) 32%, rgba(15, 12, 10, 0) 55%),
    linear-gradient(to right, rgba(15, 12, 10, .55), rgba(15, 12, 10, 0) 45%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(15, 12, 10, .96) 0%, rgba(15, 12, 10, .55) 45%, rgba(15, 12, 10, .25) 100%),
    linear-gradient(to right, rgba(15, 12, 10, .6), rgba(15, 12, 10, 0) 70%);
}
.hero-content { padding-top: calc(var(--header-h) + 60px); padding-bottom: clamp(56px, 10vh, 110px); max-width: 820px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .78rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: var(--bronze-light); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.hero h1 { color: #fff; margin-bottom: .3em; text-shadow: 0 2px 30px rgba(0, 0, 0, .4); }
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--text-on-dark); max-width: 640px; margin-bottom: 2em; }
.hero-lead em { font-family: var(--font-display); font-style: normal; color: var(--bronze-light); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-height: 720px), (max-width: 700px) { .scroll-hint { display: none; } }
.scroll-hint {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(239, 231, 218, .5); border-radius: 14px;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px;
  background: var(--bronze-light); border-radius: 2px; animation: scrollhint 1.8s infinite;
}
@keyframes scrollhint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* --------------------------------------------------------------------------
   Hero interna (pagine)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--ink); color: var(--text-on-dark);
  padding: calc(var(--header-h) + clamp(60px, 10vw, 120px)) 0 clamp(48px, 7vw, 80px);
}
.page-hero-media { position: absolute; inset: 0; z-index: -2; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(15, 12, 10, .95), rgba(15, 12, 10, .55) 60%, rgba(15, 12, 10, .45));
}
.page-hero--plain::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 20px; z-index: 0; opacity: .5;
  background: var(--meander) repeat-x center / auto 20px;
}
.page-hero--plain::after {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(184, 135, 59, .25), transparent 60%),
    radial-gradient(ellipse at 0% 100%, rgba(176, 67, 46, .18), transparent 55%);
}
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-on-dark); max-width: 720px; margin: 0; }

.breadcrumb { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; font-size: .85rem; color: var(--text-on-dark-muted); }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.breadcrumb a { color: var(--text-on-dark-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--bronze-light); }

/* --------------------------------------------------------------------------
   Sezioni
   -------------------------------------------------------------------------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: var(--text-on-dark); }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.section--dark a:not(.btn) { color: var(--bronze-light); }
.section--dark .text-muted { color: var(--text-on-dark-muted); }
.section--tight { padding: clamp(48px, 6vw, 80px) 0; }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 34px; height: 1px; background: currentColor; }
.section-head p { font-size: 1.08rem; color: var(--text-muted); }
.section--dark .section-head p { color: var(--text-on-dark-muted); }

.meander {
  height: 16px; background: var(--meander) repeat-x center / auto 16px; opacity: .55; border: 0; margin: 0;
}

.text-muted { color: var(--text-muted); }

/* Layout a due colonne */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--wide-left { grid-template-columns: 1.2fr 1fr; }
  .split--wide-right { grid-template-columns: 1fr 1.2fr; }
  .split--top { align-items: start; }
}

.media-frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--offset::before {
  content: ""; position: absolute; inset: 14px -14px -14px 14px; z-index: -1;
  border: 1px solid var(--bronze); border-radius: var(--radius);
}
.media-wrap { position: relative; z-index: 0; }

/* --------------------------------------------------------------------------
   Valori / punti chiave
   -------------------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 32px; }
.pillar { padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .55); border: 1px solid var(--line); }
.pillar-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink); color: var(--bronze-light); margin-bottom: 14px;
}
.pillar-icon svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.05rem; margin-bottom: .35em; }
.pillar p { font-size: .95rem; color: var(--text-muted); margin: 0; }

/* --------------------------------------------------------------------------
   Card
   -------------------------------------------------------------------------- */
.card-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }

.card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); text-decoration: none; color: var(--text);
  transition: transform .25s ease, box-shadow .25s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: var(--text); }
.card-media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a.card:hover .card-media img { transform: scale(1.05); }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card-kicker { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 8px; }
.card h3 { margin-bottom: .45em; }
.card p { font-size: .96rem; color: var(--text-muted); margin-bottom: 1em; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: .92rem; color: var(--bronze-dark); }
.card-link svg { width: 16px; height: 16px; transition: transform .2s ease; }
a.card:hover .card-link svg { transform: translateX(4px); }

.section--dark .card { background: var(--ink-2); color: var(--text-on-dark); border: 1px solid var(--line-dark); box-shadow: none; }
.section--dark .card p { color: var(--text-on-dark-muted); }
.section--dark .card h3 { color: #fff; }
.section--dark .card-link { color: var(--bronze-light); }
.section--dark .card-kicker { color: var(--bronze-light); }

/* Card "overlay" con immagine a tutta altezza */
.tile {
  position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 320px;
  color: #fff; text-decoration: none; isolation: isolate; background: var(--ink-2);
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s ease; }
.tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(12, 10, 8, .95) 10%, rgba(12, 10, 8, .2) 70%); }
.tile:hover img { transform: scale(1.06); }
.tile-body { position: absolute; inset: auto 0 0 0; padding: 24px; }
.tile h3 { color: #fff; margin-bottom: .3em; }
.tile p { color: var(--text-on-dark); font-size: .95rem; margin: 0; opacity: .9; }
.tile:hover { color: #fff; }
.tile-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

/* --------------------------------------------------------------------------
   Orari
   -------------------------------------------------------------------------- */
.schedule { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.slot {
  border-radius: var(--radius); padding: 22px 22px 20px; position: relative; overflow: hidden;
  background: var(--ink-2); border: 1px solid var(--line-dark); color: var(--text-on-dark);
}
.slot::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--bronze); }
.slot-day { font-family: var(--font-display); font-size: 1.35rem; color: #fff; margin: 0 0 2px; }
.slot-time { font-size: 1.05rem; font-weight: 600; color: var(--bronze-light); margin: 0 0 10px; font-variant-numeric: tabular-nums; }
.slot-what { margin: 0; color: var(--text-on-dark-muted); font-size: .95rem; }
.section:not(.section--dark) .slot { background: #fff; border-color: var(--line); color: var(--text); box-shadow: var(--shadow); }
.section:not(.section--dark) .slot-day { color: var(--ink); }
.section:not(.section--dark) .slot-time { color: var(--bronze-dark); }
.section:not(.section--dark) .slot-what { color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Testo lungo (pagine disciplina)
   -------------------------------------------------------------------------- */
.prose { max-width: 72ch; }
.prose p, .prose li { font-size: 1.04rem; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose strong { color: var(--ink); }
.prose .lead-p { font-size: 1.22rem; line-height: 1.6; color: var(--ink); }
.prose .lead-p::first-letter {
  float: left; font-family: var(--font-display); font-size: 3.6em; line-height: .8;
  padding: .08em .12em 0 0; color: var(--bronze-dark);
}

.content-layout { display: grid; gap: clamp(32px, 5vw, 64px); grid-template-columns: 1fr; }
@media (min-width: 1000px) {
  .content-layout { grid-template-columns: minmax(0, 1fr) 320px; }
}
.aside-sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 20px; align-self: start; }
.aside-box { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.aside-box h3 { font-size: 1.05rem; }
.aside-box ul { list-style: none; padding: 0; margin: 0; }
.aside-box li { margin: 0; border-top: 1px solid var(--line); }
.aside-box li:first-child { border-top: 0; }
.aside-box li a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; text-decoration: none; color: var(--text); font-weight: 500; }
.aside-box li a:hover, .aside-box li a[aria-current="page"] { color: var(--bronze-dark); }
.aside-box li a[aria-current="page"]::after { content: "●"; font-size: .6rem; color: var(--bronze); }
.aside-box--dark { background: var(--ink); color: var(--text-on-dark); }
.aside-box--dark h3 { color: #fff; }
.aside-box--dark p { color: var(--text-on-dark-muted); font-size: .95rem; }

blockquote, .quote {
  margin: 2em 0; padding: 4px 0 4px 26px; border-left: 3px solid var(--bronze);
  font-family: var(--font-display); font-size: clamp(1.2rem, 2.4vw, 1.55rem); line-height: 1.45; color: var(--ink);
}
.section--dark blockquote, .section--dark .quote { color: #fff; }
.quote-big {
  font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.7rem); line-height: 1.3; color: #fff; margin: 0 auto; max-width: 900px; text-align: center;
}
.quote-big::before { content: "“"; display: block; font-size: 2.4em; line-height: .6; color: var(--bronze); margin-bottom: 10px; }
.quote-cite { display: block; text-align: center; margin-top: 18px; font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze-light); }

.rules { counter-reset: rule; list-style: none; padding: 0; display: grid; gap: 12px; }
.rules li {
  counter-increment: rule; position: relative; padding: 16px 18px 16px 62px; margin: 0;
  background: #fff; border-radius: var(--radius-sm); box-shadow: 0 2px 10px rgba(21, 17, 14, .06); font-size: 1rem;
}
.rules li::before {
  content: counter(rule, upper-roman); position: absolute; left: 14px; top: 14px;
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-size: .82rem; font-weight: 700; background: var(--ink); color: var(--bronze-light);
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1.2em; }
.chips li { margin: 0; padding: 7px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: .9rem; font-weight: 500; }
.section--dark .chips li { background: var(--ink-2); border-color: var(--line-dark); }

.discipline-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); list-style: none; padding: 0; margin: 1.5em 0; }
.discipline-list li { margin: 0; background: #fff; border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: 0 2px 10px rgba(21, 17, 14, .06); }
.discipline-list strong { display: block; font-family: var(--font-display); font-size: 1.02rem; color: var(--ink); }
.discipline-list span { font-size: .93rem; color: var(--text-muted); }

/* Sotto-navigazione a schede (anchor) */
.subnav { position: sticky; top: var(--header-h); z-index: 50; background: rgba(246, 240, 230, .95); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 10px 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav li { margin: 0; flex-shrink: 0; }
.subnav a { display: block; padding: 8px 16px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--text); border: 1px solid var(--line); background: #fff; }
.subnav a:hover, .subnav a.is-active { background: var(--ink); color: var(--bronze-light); border-color: var(--ink); }

/* --------------------------------------------------------------------------
   Galleria e lightbox
   -------------------------------------------------------------------------- */
.gallery { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 200px), 1fr)); margin: 2em 0; }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink-2); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .3s ease; }
.gallery a:hover img { transform: scale(1.06); }
.gallery--square a { aspect-ratio: 1; }
.gallery figcaption { display: none; }

.ig-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .ig-grid { grid-template-columns: repeat(4, 1fr); } }
.ig-grid a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--ink-2); }
.ig-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ig-grid a::after {
  content: ""; position: absolute; inset: 0; background: rgba(15, 12, 10, .55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9a957' stroke-width='1.8'%3E%3Crect x='3' y='3' width='18' height='18' rx='5'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3Ccircle cx='17.5' cy='6.5' r='1' fill='%23d9a957'/%3E%3C/svg%3E") center / 34px no-repeat;
  opacity: 0; transition: opacity .25s ease;
}
.ig-grid a:hover::after, .ig-grid a:focus-visible::after { opacity: 1; }
.ig-grid a:hover img { transform: scale(1.05); }
.ig-grid .is-video::before {
  content: ""; position: absolute; top: 10px; right: 10px; z-index: 1; width: 22px; height: 22px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6));
}

.lightbox {
  position: fixed; inset: 0; z-index: 500; display: none; align-items: center; justify-content: center;
  background: rgba(10, 8, 6, .94); padding: 60px 16px;
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(1200px, 100%); max-height: 100%; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); object-fit: contain; }
.lightbox-caption { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: var(--text-on-dark); font-size: .92rem; padding: 0 70px; }
.lightbox button {
  position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-dark);
  background: rgba(31, 25, 21, .8); color: #fff; cursor: pointer; display: grid; place-items: center;
}
.lightbox button:hover { border-color: var(--bronze-light); color: var(--bronze-light); }
.lightbox button svg { width: 22px; height: 22px; }
.lightbox-close { top: 14px; right: 14px; }
.lightbox-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 14px; top: 50%; transform: translateY(-50%); }
@media (max-width: 600px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 10px; transform: none; }
  .lightbox-caption { bottom: 70px; padding: 0 16px; }
}

/* --------------------------------------------------------------------------
   Embed a caricamento su consenso (YouTube / Maps)
   -------------------------------------------------------------------------- */
.embed {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  background: var(--ink-2); box-shadow: var(--shadow-lg); isolation: isolate;
}
.embed--map { aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .embed--map { aspect-ratio: 16 / 10; } }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; filter: brightness(.55); }
.embed-cover {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 20px; text-align: center; color: var(--text-on-dark);
}
.embed-play {
  width: 78px; height: 78px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--bronze); color: var(--ink); display: grid; place-items: center;
  box-shadow: 0 0 0 10px rgba(184, 135, 59, .25); transition: transform .2s ease, background-color .2s ease;
}
.embed-play:hover { transform: scale(1.06); background: var(--bronze-light); }
.embed-play svg { width: 30px; height: 30px; margin-left: 4px; }
.embed-note { font-size: .78rem; color: var(--text-on-dark-muted); max-width: 420px; margin: 0; }
.embed-note a { color: var(--bronze-light); }
.embed-title { font-family: var(--font-display); font-size: 1.15rem; color: #fff; margin: 0; }
.embed--map .embed-cover { background:
  linear-gradient(rgba(21, 17, 14, .82), rgba(21, 17, 14, .82)),
  repeating-linear-gradient(0deg, transparent 0 38px, rgba(217, 169, 87, .12) 38px 39px),
  repeating-linear-gradient(90deg, transparent 0 38px, rgba(217, 169, 87, .12) 38px 39px);
}

/* --------------------------------------------------------------------------
   Contatti / info
   -------------------------------------------------------------------------- */
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; margin: 0; }
.info-icon { flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: var(--bronze-light); }
.info-icon svg { width: 20px; height: 20px; }
.info-list strong { display: block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); font-weight: 600; }
.info-list div > a, .info-list div > span { font-size: 1.05rem; font-weight: 500; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.info-list div > a:hover { color: var(--terracotta); }
.section--dark .info-list div > a, .section--dark .info-list div > span { color: #fff; }
.section--dark .info-list strong { color: var(--text-on-dark-muted); }
.section--dark .info-icon { background: var(--ink-3); }

.person-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.person { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.person h3 { margin-bottom: .2em; }
.person .role { font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta); font-weight: 600; margin-bottom: 18px; }

.topics { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); list-style: none; padding: 0; margin: 0; }
@media (max-width: 560px) { .topics { grid-template-columns: 1fr 1fr; gap: 8px; } .topics li { padding: 12px !important; font-size: .9rem; line-height: 1.3; } }
.topics li { margin: 0; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .6); border: 1px solid var(--line); font-weight: 500; }
.section--dark .topics li { background: var(--ink-2); border-color: var(--line-dark); color: var(--text-on-dark); }
.topics li::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--bronze); flex-shrink: 0; }

.download {
  display: flex; align-items: center; gap: 18px; padding: 20px 22px; border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow); text-decoration: none; color: var(--text);
}
.download:hover { color: var(--text); box-shadow: var(--shadow-lg); }
.download-icon { width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; background: var(--terracotta); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .8rem; letter-spacing: .05em; }
.download strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }
.download span { font-size: .9rem; color: var(--text-muted); }

/* --------------------------------------------------------------------------
   Eventi
   -------------------------------------------------------------------------- */
.event { display: grid; gap: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
@media (min-width: 760px) { .event { grid-template-columns: 300px 1fr; } }
.event-media { aspect-ratio: 4 / 3; background: var(--ink-2); }
@media (min-width: 760px) { .event-media { aspect-ratio: auto; min-height: 220px; } }
.event-media img { width: 100%; height: 100%; object-fit: cover; }
.event-body { padding: 24px 26px; }
.event-date { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 8px; }
.event-body h3 { margin-bottom: .4em; }
.event-body p { color: var(--text-muted); }
.event-list { display: grid; gap: 24px; }

.archive-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.archive-item { display: flex; flex-direction: column; border-radius: var(--radius-sm); overflow: hidden; background: #fff; color: var(--text); text-decoration: none; box-shadow: var(--shadow); transition: box-shadow .2s ease; }
.archive-item img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s ease; }
.archive-item:hover img { transform: scale(1.04); }
.archive-item span { display: block; padding: 12px 14px 14px; font-size: .85rem; line-height: 1.35; color: var(--bronze-dark); }
.archive-item strong { display: block; font-family: var(--font-display); font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
.archive-item:hover { color: var(--text); box-shadow: var(--shadow-lg); }

/* --------------------------------------------------------------------------
   CTA finale
   -------------------------------------------------------------------------- */
.cta {
  position: relative; isolation: isolate; overflow: hidden; border-radius: calc(var(--radius) * 1.5);
  padding: clamp(36px, 6vw, 72px); background: var(--ink); color: var(--text-on-dark);
  display: grid; gap: 24px; align-items: center;
}
@media (min-width: 860px) { .cta { grid-template-columns: 1fr auto; } }
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background: url("../img/bgPrometeo3.jpg") center / cover;
  -webkit-mask-image: linear-gradient(to left, #000 10%, transparent 75%); mask-image: linear-gradient(to left, #000 10%, transparent 75%);
}
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; color: var(--text-on-dark-muted); max-width: 560px; }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: #0f0c0a; color: var(--text-on-dark-muted); padding: 0 0 28px; font-size: .95rem; }
.site-footer::before { content: ""; display: block; height: 16px; margin-bottom: 64px; background: var(--meander) repeat-x center / auto 16px; opacity: .35; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; } }
.site-footer h4 { color: #fff; font-size: .95rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55em; }
.site-footer a { color: var(--text-on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--bronze-light); }
.footer-brand .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { max-width: 360px; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-dark); color: var(--text-on-dark);
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.social a:hover { background: var(--bronze); border-color: var(--bronze); color: var(--ink); }
.social svg { width: 19px; height: 19px; }
.footer-bottom { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }

/* --------------------------------------------------------------------------
   Animazioni all'ingresso
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* --------------------------------------------------------------------------
   Utility
   -------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-3 { margin-bottom: 3rem; }
.schedule-title { font-size: 1rem; letter-spacing: .18em; color: var(--bronze-light); margin: 0 0 16px; }
.section:not(.section--dark) .schedule-title { color: var(--bronze-dark); }
.palestra-nome { font-family: var(--font-display); font-size: 1.35rem; color: inherit; margin: .4em 0; }
.section--dark .palestra-nome { color: #fff; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(184, 135, 59, .15); color: var(--bronze-dark); font-size: .8rem; font-weight: 600; letter-spacing: .05em; }
.section--dark .badge, .page-hero .badge { color: var(--bronze-light); }

.notice { padding: 16px 18px; border-radius: var(--radius-sm); background: rgba(184, 135, 59, .12); border: 1px solid rgba(184, 135, 59, .35); font-size: .95rem; }

@media print {
  .site-header, .site-footer, .nav-toggle, .scroll-hint, .subnav, .cta { display: none !important; }
  .page-hero { padding: 0; background: none; color: #000; }
  .page-hero::after, .page-hero-media { display: none; }
  .page-hero h1 { color: #000; }
  body { background: #fff; }
}

@media (max-width: 600px) { .embed-title { font-size: .95rem; line-height: 1.3; } .embed-note { font-size: .75rem; } }

/* Testo tra due foto: una a sinistra (in alto) e una a destra (in basso).
   Su mobile le due foto affiancate sopra al testo. */
.text-between {
  display: grid; gap: 14px 16px; margin-bottom: 2em;
  grid-template-columns: 1fr 1fr; grid-template-areas: "l r" "t t";
}
.text-between .media-frame { margin: 0; }
.text-between .media-frame img { aspect-ratio: 1 / 1; }
.tb-left { grid-area: l; } .tb-right { grid-area: r; } .tb-text { grid-area: t; }
.tb-text p:last-child { margin-bottom: 0; }
@media (min-width: 640px) {
  .text-between {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr);
    grid-template-areas: "l t r"; gap: 24px; align-items: start;
  }
  .tb-right { align-self: end; margin-top: 3em; }
}

/* Galleria con una sola foto: a tutta larghezza, proporzioni originali */
.gallery.gallery--single { grid-template-columns: 1fr; }
.gallery--single a { aspect-ratio: auto; }
.gallery--single img { aspect-ratio: auto; height: auto; }

/* Pagina Allenamenti: la parola "Ludus" sempre in rosso */
.p-allenamenti .ludus { color: #c0271d; }

/* Galleria a due colonne (es. 4 foto in 2x2) */
.gallery.gallery--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
