/* ═══════════════════════════════════════
   VARIABILI — Palette A.P.E. ODV
   ═══════════════════════════════════════ */
:root {
  /* Palette principale */
  --primary: #F086A4;
  --primary-light: #f4a3ba;
  --primary-soft: #fce8ef;
  --dark: #28164C;
  --dark-medium: #3a2766;
  --white: #FFFFFF;

  /* Colori secondari */
  --pink-intense: #FF598E;
  --yellow: #FFD430;
  --yellow-soft: #FFF5D6;
  --purple: #544D9B;
  --green: #00A04E;

  /* Colori derivati */
  --bg-cream: #FDF8FC;
  --bg-section: #FAF5F8;
  --bg-section-2: #f4f4f4;
  --text: #28164C;
  --text-light: #6B5F82;
  --border-soft: rgba(240, 134, 164, 0.15);

  /* Font */
  --font: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

/* Reset: niente italic in nessun elemento, nemmeno <em> o <i> */
em,
i,
cite,
address,
dfn {
  font-style: normal;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ─── UTILITIES ─── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}

.section-alt {
  background: var(--bg-section);
  position: relative;
  overflow: hidden;
}

.section-alt2 {
  background: var(--bg-section-2);
  position: relative;
  overflow: hidden;
}

/* Garantisce che i contenuti restino sopra le api decorative */
.section>.container,
.section-alt>.container,
.section-alt>.location-fullwidth,
.section-alt>.location-map,
.section-alt>.location-directions {
  position: relative;
  z-index: 2;
}

/* ─── Api decorative (ape-posa-01/02/03) ─── */
.bee-decor {
  position: absolute;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  opacity: 0.92;
  width: 64px;
  height: auto;
  filter: drop-shadow(0 4px 10px rgba(40, 22, 76, 0.08));
}

@media (max-width: 768px) {
  .bee-decor {
    display: none;
  }
}

.text-center {
  text-align: center;
}

.text-grey {
  color: #a5a0a4;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 20px;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.8;
  font-weight: 300;
}

.divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--pink-intense));
  border: none;
  margin: 24px auto;
  border-radius: 2px;
}

a {
  transition: all 0.25s ease;
}


/* ─── HERO (full-bleed image) ─── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 120px 24px 88px;
  color: var(--white);
  background-color: var(--dark);
  background-image: url('../../images/APE_Cena20anni_illustrazione_02_Rgb.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay viola scuro per leggibilità del testo */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(40, 22, 76, 0.78) 0%,
      rgba(40, 22, 76, 0.50) 38%,
      rgba(40, 22, 76, 0.72) 75%,
      rgba(40, 22, 76, 0.95) 100%),
    radial-gradient(ellipse at 50% 50%, transparent 0%, rgba(40, 22, 76, 0.35) 100%);
  pointer-events: none;
}

/* Accento rosa sottile ai lati per coerenza brand */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 12% 90%, rgba(240, 134, 164, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 88% 10%, rgba(255, 89, 142, 0.12) 0%, transparent 55%);
  pointer-events: none;
  mix-blend-mode: screen;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 760px;
  text-align: center;
}

.hero-logo {
  width: 300px;
  max-width: 80%;
  height: auto;
  margin: 0 auto 28px;
  display: block;
  filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.4));
}

.hero-logo-ape {
  position: absolute;
  top: 36px;
  left: 40px;
  width: 200px;
  height: auto;
  display: block;
  z-index: 3;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.35));
}

.hero-title {
  font-size: clamp(1.3rem, 2.6vw, 1.85rem);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 24px;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  text-shadow: 0 4px 32px rgba(40, 22, 76, 0.5);
}

.hero-title .t-accent {
  display: block;
  color: var(--primary);
  margin-bottom: 6px;
}

.hero-title .t-main {
  display: block;
  color: var(--white);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 auto 36px;
  line-height: 1.65;
  max-width: 600px;
  text-shadow: 0 2px 16px rgba(40, 22, 76, 0.5);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
}

.hero-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.95rem;
  font-weight: 400;
  background: rgba(40, 22, 76, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(240, 134, 164, 0.28);
  border-radius: 50px;
  padding: 10px 18px;
}

.hero-meta-item svg {
  flex-shrink: 0;
  color: var(--primary);
}

.hero-meta-item strong {
  color: var(--white);
  font-weight: 600;
}

.btn-primary {
  display: inline-block;
  padding: 16px 40px;
  background: linear-gradient(135deg, var(--primary), var(--pink-intense));
  color: var(--white);
  font-family: var(--font);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(240, 134, 164, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(240, 134, 164, 0.5);
}

.btn-outline {
  display: inline-block;
  padding: 14px 36px;
  border: 2px solid var(--primary);
  color: var(--dark);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 50px;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  background: var(--primary);
  color: var(--white);
}

/* ─── CHI SIAMO ─── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.85;
}

.about-text .highlight-quote {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--dark);
  border-left: 3px solid var(--primary);
  padding-left: 20px;
  margin: 24px 0;
  line-height: 1.5;
  letter-spacing: -0.2px;
}

.about-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
}

.about-logo {
  width: 200px;
  max-width: 70%;
  height: auto;
  display: block;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  width: 100%;
}

.stat-card {
  background: var(--white);
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(40, 22, 76, 0.06);
  border: 1px solid var(--border-soft);
}

.stat-number {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.4;
}

/* ─── EVENTO ─── */
.evento-cta {
  margin-top: 44px;
  display: flex;
  justify-content: center;
}

.parallax-banner {
  position: relative;
  width: 100%;
  height: 62vh;
  min-height: 380px;
  background-image: url('../../images/APE_Cena20anni_illustrazione_02_MOON_rgb.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.parallax-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(40, 22, 76, 0.35) 0%, rgba(40, 22, 76, 0.28) 50%, rgba(40, 22, 76, 0.45) 100%);
  pointer-events: none;
}

.parallax-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
}

.parallax-date {
  font-size: clamp(2rem, 5.2vw, 3.4rem);
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.parallax-location {
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin: 18px 0 0 0;
  opacity: 0.95;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .parallax-date {
    letter-spacing: 0.08em;
  }

  .parallax-location {
    letter-spacing: 0.18em;
    margin-top: 14px;
  }
}

.event-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.event-card {
  background: var(--white);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  border: 1px solid var(--border-soft);
  transition: transform 0.3s ease;
}

.event-card:hover {
  transform: translateY(-4px);
}

.event-card-icon {
  width: 56px;
  height: 56px;
  background: var(--primary-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.event-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
}

.event-card p {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.65;
}

/* ─── PROGRAMMA ─── */
.timeline {
  max-width: 640px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--pink-intense), var(--primary), transparent);
}

.timeline-item {
  display: flex;
  gap: 28px;
  padding-bottom: 36px;
  position: relative;
}

.timeline-dot {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: var(--white);
  border: 2px solid var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--dark);
  z-index: 2;
}

.timeline-content h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-light);
}

/* ─── Spacing override: riduce gap Programma → Partecipa ─── */
#programma {
  padding-bottom: 40px;
}

#partecipare {
  padding-top: 40px;
}

/* ─── PROGRAMMA (new structured layout) ─── */
.programma-group {
  max-width: 760px;
  margin: 0 auto;
}

.programma-group+.programma-group {
  margin-top: 56px;
}

.programma-group-header {
  text-align: center;
  margin-bottom: 28px;
}

.programma-badge {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.programma-badge--open {
  background: var(--primary-soft);
  color: var(--dark);
}

.programma-badge--reserved {
  background: var(--dark);
  color: var(--white);
}

.programma-group-note {
  margin-top: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-light);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.programma-list {
  margin-top: 8px;
}

.programma-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--border-soft);
  align-items: center;
}

.programma-item:first-child {
  border-top: none;
  padding-top: 12px;
}

.programma-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.3px;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  white-space: nowrap;
}

.programma-time-divider {
  color: var(--primary);
  display: block;
}

.programma-time--single {
  justify-content: center;
}

.programma-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.4;
  margin-bottom: 6px;
}

.programma-content>p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.65;
  margin-top: 6px;
}

.programma-note {
  margin-top: 12px !important;
  padding: 10px 14px;
  background: var(--primary-soft);
  border-radius: 8px;
  font-size: 0.85rem !important;
  color: var(--dark) !important;
  font-weight: 500;
}

/* ─── MEDICI ─── */
.speakers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.speaker-card {
  background: var(--white);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  box-shadow: 0 2px 16px rgba(40, 22, 76, 0.06);
  border: 1px solid var(--border-soft);
}

.speaker-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-soft), rgba(84, 77, 155, 0.1));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  color: var(--dark);
  font-weight: 600;
}

.speaker-card h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
}

.speaker-card .role {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
  margin-bottom: 4px;
}

.speaker-card .affiliation {
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--text-light);
}

/* ─── SPONSOR ─── */
.sponsor-tiers {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
}

.sponsor-tier {
  padding: 40px 0;
}

.sponsor-tier+.sponsor-tier {
  border-top: 1px solid var(--border-soft);
}

.sponsor-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 48px 56px;
}

.sponsor-item {
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex: 0 0 auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.sponsor-item:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.sponsor-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Oro: grande e isolato */
.sponsor-tier--oro .sponsor-item {
  width: 300px;
  height: 120px;
}

/* Argento: medio */
.sponsor-tier--argento .sponsor-item {
  width: 230px;
  height: 100px;
}

/* Bronzo: più piccolo */
.sponsor-tier--bronzo .sponsor-item {
  width: 160px;
  height: 68px;
}

/* Tecnici: più piccoli */
.sponsor-tier--tecnici .sponsor-item {
  width: 200px;
  height: 80px;
}

.sponsor-placeholder {
  font-size: 0.85rem;
  color: var(--text-light);
  font-weight: 400;
  padding: 24px 32px;
}

/* Dicitura pacchetti sponsor (CTA) */
.sponsor-cta {
  margin-top: 48px;
  padding: 28px 24px;
  background: var(--white);
  border-radius: 16px;
  border: 1px solid var(--primary-light);
  font-size: 0.95rem;
  color: var(--text-light);
  line-height: 1.7;
}

.sponsor-cta strong {
  color: var(--dark);
}

/* ─── LOCATION (full-width split) ─── */
.location-section {
  padding: 0;
}

.location-fullwidth {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
}

.location-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 64px 72px max(32px, calc((100vw - 1280px) / 2 + 32px));
}

.location-content .section-label {
  margin-bottom: 12px;
}

.location-content .section-title {
  text-align: left;
  margin-bottom: 24px;
}

.location-content .divider {
  margin: 0 0 32px 0;
}

.location-text p {
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text);
}

.location-facts {
  list-style: none;
  margin-top: 24px;
}

.location-facts li {
  padding: 8px 0;
  font-size: 0.95rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.location-facts li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.location-mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  aspect-ratio: 16 / 9;
  /* ogni cella 1×1 → 4:3 orizzontale */
  gap: 3px;
  background: var(--white);
  align-self: center;
}

.location-mosaic-tile {
  overflow: hidden;
  position: relative;
  cursor: zoom-in;
}

.location-mosaic-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.location-mosaic-tile:hover img {
  transform: scale(1.05);
}

.location-mosaic-tile:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.location-mosaic-tile:nth-child(2) {
  grid-column: span 2;
  grid-row: span 1;
}

.location-mosaic-tile:nth-child(3) {
  grid-column: span 2;
  grid-row: span 1;
}

.location-mosaic-tile:nth-child(4) {
  grid-column: span 1;
  grid-row: span 1;
}

.location-mosaic-tile:nth-child(5) {
  grid-column: span 1;
  grid-row: span 1;
}

.location-mosaic-tile:nth-child(6) {
  grid-column: span 1;
  grid-row: span 1;
}

.location-mosaic-tile:nth-child(7) {
  grid-column: span 1;
  grid-row: span 1;
}

/* ─── LIGHTBOX ─── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(15, 8, 32, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 48px 72px;
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-stage {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  transform: scale(0.96);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
}

.lightbox.open .lightbox-img {
  transform: scale(1);
  opacity: 1;
}

.lightbox-caption {
  position: absolute;
  left: 50%;
  bottom: -44px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
  max-width: 90vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lightbox-btn {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  padding: 0;
  font-family: inherit;
}

.lightbox-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.05);
}

.lightbox-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox-close {
  top: 24px;
  right: 24px;
}

.lightbox-prev {
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-next {
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-prev:hover {
  transform: translateY(-50%) scale(1.05);
}

.lightbox-next:hover {
  transform: translateY(-50%) scale(1.05);
}

.lightbox-counter {
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .lightbox {
    padding: 24px 12px;
  }

  .lightbox-btn {
    width: 42px;
    height: 42px;
  }

  .lightbox-prev {
    left: 12px;
  }

  .lightbox-next {
    right: 12px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
  }

  .lightbox-img {
    max-height: calc(100vh - 120px);
  }
}

.location-map {
  width: 100%;
  background: #f8f8f8;
  overflow: hidden;
}

.location-map iframe {
  width: 100%;
  height: 560px;
  border: none;
  display: block;
}

.location-directions {
  padding: 64px 0 80px;
}

.directions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 28px;
}

.direction-item h4 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.direction-item p {
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-light);
  line-height: 1.65;
}

/* ─── PARTECIPARE ─── */
.cta-box {
  background: linear-gradient(160deg, var(--dark), #321d5a);
  border-radius: 24px;
  padding: 56px 48px;
  text-align: center;
  color: var(--white);
}

.cta-box .section-title {
  color: var(--white);
}

.cta-box p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 12px;
  line-height: 1.7;
}

.cta-details {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 36px 0;
  text-align: left;
}

.cta-detail-item {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(240, 134, 164, 0.2);
}

.cta-detail-item h4 {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 8px;
}

.cta-detail-item p {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--white);
  margin: 0;
  line-height: 1.55;
}

.partecipa-convenzioni {
  margin: 40px auto 0;
  max-width: 640px;
  padding: 28px 32px;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--white);
  text-align: center;
  box-shadow: 0 4px 24px rgba(40, 22, 76, 0.04);
}

.convenzioni-label {
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 6px 0;
}

.convenzioni-title {
  color: var(--dark);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.convenzioni-hotel {
  color: var(--dark);
  font-size: 1.1rem;
  margin: 0 0 12px 0;
  font-weight: 500;
}

.convenzioni-hotel a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  padding-left: 0;
  padding-right: 0;
  border-bottom: 2px solid transparent;
  transition: border-bottom 0.25s ease;
  padding-bottom: 1px;
}

.convenzioni-hotel a:hover {
  border-bottom: 2px solid var(--primary);
}

.convenzioni-note {
  color: var(--dark);
  opacity: 0.85;
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.55;
}

.convenzioni-note strong {
  color: var(--dark);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.partecipa-contatti {
  margin-top: 48px;
  text-align: center;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 500;
}

.partecipa-contatti a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.partecipa-contatti a:hover {
  text-decoration: underline;
}

.partecipa-contatti-divider {
  margin: 48px auto 0;
  max-width: 880px;
  border: 0;
  border-top: 1px solid var(--primary);
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 36px;
}

/* ─── FOOTER ─── */
footer {
  background: var(--white);
  color: var(--dark);
  border-top: 2px solid var(--primary);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
  align-items: start;
}

.footer-brand p {
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--dark);
  margin-top: 20px;
}

.footer-logos {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  height: 104px;
  width: auto;
  display: block;
}

.footer-logo-ape {
  height: 92px;
}

.footer-donate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s, transform 0.2s;
}

.footer-donate:hover {
  color: var(--dark);
  transform: translateX(2px);
}

.footer-donate::after {
  content: '↗';
  font-size: 0.95em;
  font-weight: 500;
}

.footer-col h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.footer-col a {
  display: block;
  color: var(--dark);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 400;
  padding: 5px 0;
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--primary);
}

.footer-bottom {
  border-top: 1px solid var(--border-soft);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--dark);
}

.footer-legal span {
  margin-right: 16px;
}

.footer-bottom span {
  color: var(--dark);
}

/* ─── PLACEHOLDER NOTICE ─── */
.placeholder {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 4px;
  vertical-align: middle;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 960px) {
  .location-fullwidth {
    grid-template-columns: 1fr;
  }

  .location-content {
    padding: 72px 32px 48px;
  }

  .location-mosaic {
    aspect-ratio: auto;
    grid-template-rows: repeat(3, 180px);
  }

  .location-map iframe {
    height: 420px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 56px 0;
  }

  .about-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .location-mosaic {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 180px);
    aspect-ratio: auto;
  }

  .location-mosaic-tile:nth-child(1),
  .location-mosaic-tile:nth-child(2),
  .location-mosaic-tile:nth-child(3),
  .location-mosaic-tile:nth-child(4),
  .location-mosaic-tile:nth-child(5),
  .location-mosaic-tile:nth-child(6),
  .location-mosaic-tile:nth-child(7) {
    grid-column: span 1;
    grid-row: span 1;
  }

  .location-map iframe {
    height: 320px;
  }

  .location-directions {
    padding: 48px 0 56px;
  }

  .directions-grid {
    grid-template-columns: 1fr;
  }

  .event-cards {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .parallax-banner {
    background-attachment: scroll;
    height: 44vh;
    min-height: 260px;
  }

  .programma-item {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 22px 0;
  }

  .programma-time {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    font-size: 1.15rem;
  }

  .hero {
    padding: 140px 20px 72px;
    min-height: 92vh;
  }

  .hero-logo {
    width: 240px;
    margin-bottom: 24px;
  }

  .hero-logo-ape {
    width: 150px;
    top: 24px;
    left: 24px;
  }

  .hero-meta {
    flex-direction: column;
    gap: 10px;
    align-items: center;
  }

  .hero-meta-item {
    width: fit-content;
  }

  .cta-box {
    padding: 36px 24px;
  }

  .cta-details {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-logos {
    justify-content: flex-start;
    gap: 20px;
  }

  .footer-logo {
    height: 84px;
  }

  .footer-logo-ape {
    height: 74px;
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-meta-item {
    font-size: 0.88rem;
    padding: 8px 14px;
  }

  .hero-logo {
    width: 200px;
  }

  .hero-logo-ape {
    width: 120px;
    top: 20px;
    left: 20px;
  }
}

/* ════════════════════════════════════
   SIDE NAV — menu verticale one-page
   ════════════════════════════════════ */
.sidenav {
  position: fixed;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 900;
  display: flex;
  flex-direction: column;
  gap: 3px;
  pointer-events: auto;
}

.sidenav-item {
  /* testo ruotato 90° in senso antiorario (si legge dal basso verso l'alto) */
  writing-mode: vertical-rl;
  transform: rotate(180deg);

  background: var(--white);
  color: var(--dark);
  text-decoration: none;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 11px 7px;
  border-radius: 0;
  white-space: nowrap;
  box-shadow: -2px 0 10px rgba(40, 22, 76, 0.08);
  transition: color 0.2s ease, background 0.2s ease, padding 0.2s ease;
}

.sidenav-item:hover {
  color: var(--primary);
  padding-right: 11px;
}

.sidenav-item.is-active {
  color: var(--primary);
}

/* Nascondi su mobile */
@media (max-width: 768px) {
  .sidenav {
    display: none;
  }
}

a.link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
  display: inline-block;
  padding-left: 0;
  padding-right: 0;
}

a.link:hover {
  /* text-decoration: underline; */
  padding-left: 4px;
  padding-right: 4px;
}