/* ---------- Fonts ---------- */
@font-face {
  font-family: "Sharp Sans";
  src: url("../fonts/Sharp Sans Semibold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sharp Sans";
  src: url("../fonts/Sharp Sans Extrabold.otf") format("opentype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sharp Sans";
  src: url("../fonts/SharpSansNo1-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Sharp Sans", "Helvetica Neue", Arial, sans-serif;
  font-weight: 600;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ol, ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }

/* ---------- Palette ---------- */
:root {
  --teal-deep: #0b3a46;
  --teal-dark: #0f6a86;
  --teal: #23a9c2;
  --teal-mid: #2fb9cf;
  --teal-light: #6fd3e0;
  --ink: #0b2e38;
  --white: #fdfdfb;
  --paper: #f2f8f9;

  --c-white:  #F4F1EC;
  --c-pink:   #F5A9C5;
  --c-lblue:  #A8D8E8;
  --c-brown:  #4A2E1E;
  --c-black:  #221D1A;
  --c-red:    #E2312F;
  --c-orange: #F5952E;
  --c-yellow: #FFC629;
  --c-green:  #8DC63F;
  --c-blue:   #4F6FA8;
  --c-purple: #8B2E74;

  --rainbow: linear-gradient(90deg,
    var(--c-red), var(--c-orange), var(--c-yellow),
    var(--c-green), var(--c-blue), var(--c-purple));

  --container-w: 1180px;
  --radius: 18px;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--white);
  color: var(--ink);
  padding: 12px 18px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--teal-deep);
  margin-bottom: 14px;
}
.eyebrow-light { color: rgba(255,255,255,0.85); }

.section-title {
  font-family: "Sharp Sans", sans-serif;
  font-weight: 900;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  text-transform: uppercase;
  line-height: 1.05;
  color: var(--teal-deep);
  margin-bottom: 40px;
  letter-spacing: -0.01em;
}
.section-title-light { color: var(--white); }

.lead {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 46ch;
}
.pride-week .lead { color: rgba(255,255,255,0.92); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.92rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--white);
  color: var(--teal-deep);
  box-shadow: 0 8px 24px rgba(11,58,70,0.25);
}
.btn-primary:hover { box-shadow: 0 12px 28px rgba(11,58,70,0.32); }
.btn-ghost {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
  background: rgba(11,58,70,0.32);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); }
.btn-outline-light {
  border-color: rgba(255,255,255,0.8);
  color: var(--white);
}
.btn-outline-light:hover { background: rgba(255,255,255,0.15); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(253,253,251,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid rgba(11,58,70,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.brand-badge { border-radius: 50%; }
.brand-text {
  font-size: 0.95rem;
  color: var(--teal-deep);
  line-height: 1.1;
}
.brand-text strong { display: block; font-weight: 900; font-size: 1.05rem; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.primary-nav a {
  font-weight: 700;
  font-size: 0.86rem;
  color: var(--teal-deep);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.primary-nav a:hover { border-color: var(--c-orange); }

.nav-link-external {
  color: var(--teal-dark);
  font-weight: 800;
}
.nav-link-external span { font-size: 0.8em; }

.btn-donate {
  display: inline-flex;
  padding: 9px 20px;
  border-radius: 999px;
  background: var(--c-orange);
  color: var(--teal-deep);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 0.82rem;
  border-bottom: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-donate:hover {
  border-bottom: none;
  background: var(--c-red);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(11,58,70,0.2);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: var(--teal-deep);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 20% 10%, var(--teal-mid) 0%, var(--teal-dark) 55%, var(--teal-deep) 100%);
  padding: 96px 0 120px;
  color: var(--white);
}
.hero-ribbons {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-ribbons-img {
  position: absolute;
  right: -8%;
  top: 20%;
  min-width: 800px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}
.hero-title {
  display: flex;
  flex-direction: column;
  font-family: "Sharp Sans", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.6rem, 8vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.01em;
  margin-bottom: 28px;
}
.hero-subtitle {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: clamp(1.1rem, 2.4vw, 1.5rem);
  margin-bottom: 44px;
  max-width: 30ch;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---------- Programma / Timeline ---------- */
.programma { padding: 110px 0; background: var(--white); }
.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  position: relative;
}
.timeline-item {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 34px 28px 30px;
  border-top: 6px solid;
  border-image: var(--rainbow) 1;
}
.timeline-time {
  display: inline-block;
  font-weight: 900;
  font-size: 1.6rem;
  color: var(--teal-dark);
  margin-bottom: 14px;
}
.timeline-item h3 {
  font-weight: 800;
  font-size: 1.15rem;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--ink);
}
.timeline-item p {
  font-weight: 600;
  color: rgba(11,46,56,0.75);
}

/* ---------- Pride Week ---------- */
.pride-week {
  background: linear-gradient(120deg, var(--teal-deep) 0%, var(--teal-dark) 60%, var(--teal) 100%);
  padding: 100px 0;
  color: var(--white);
}
.pride-week-inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  align-items: center;
}
.pride-week-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius);
  padding: 40px 32px;
  backdrop-filter: blur(6px);
}
.pride-week-card h3 {
  font-weight: 900;
  font-size: 1.4rem;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.pride-week-card p { font-weight: 600; opacity: 0.9; margin-top: 4px; }
.pride-week-dates {
  margin-top: 18px;
  display: inline-block;
  font-weight: 800;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--rainbow);
  color: var(--teal-deep);
}

/* ---------- Anniversario ---------- */
.anniversario { padding: 110px 0; background: var(--paper); }
.anniversario-inner {
  display: flex;
  align-items: center;
  gap: 44px;
  flex-wrap: wrap;
}
.anniversario-number {
  font-family: "Sharp Sans", sans-serif;
  font-weight: 900;
  font-size: clamp(3.5rem, 9vw, 6rem);
  line-height: 0.9;
  color: var(--teal-deep);
}
.anniversario-label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal-dark);
  margin-bottom: 18px;
}

/* ---------- Dove ---------- */
.dove { padding: 110px 0 120px; background: var(--white); }
.dove-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.dove-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 26px 26px 0;
  overflow: hidden;
}
.dove-card h3 {
  font-weight: 800;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 4px;
}
.dove-card p {
  font-weight: 600;
  color: rgba(11,46,56,0.75);
  margin-bottom: 18px;
}
.map-embed {
  position: relative;
  width: calc(100% + 52px);
  margin-left: -26px;
  height: 280px;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  overflow: hidden;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Collaborazioni ---------- */
.collaborazioni {
  padding: 80px 0 88px;
  background: var(--paper);
  text-align: center;
}
.collab-label {
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
  color: var(--teal-dark);
  margin-bottom: 22px;
}
.collab-organizer-logo {
  height: 62px;
  width: auto;
  margin: 0 auto 56px;
}
.collab-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 44px;
}
.collab-logo {
  height: 76px;
  width: auto;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--teal-deep);
  color: var(--white);
  padding: 56px 0;
  text-align: center;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.footer-badge { margin-bottom: 6px; }
.footer-tagline {
  font-family: "Sharp Sans", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.3rem;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  margin: 10px 0 4px;
}
.footer-nav a {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  opacity: 0.85;
  border-bottom: 1px solid transparent;
}
.footer-nav a:hover { opacity: 1; border-color: var(--c-orange); }
.footer-meta {
  font-weight: 600;
  font-size: 0.85rem;
  opacity: 0.75;
}

/* ---------- Sub-page hero & placeholder ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 20% 10%, var(--teal-mid) 0%, var(--teal-dark) 55%, var(--teal-deep) 100%);
  padding: 84px 0 92px;
  color: var(--white);
}
.page-hero .container {
  position: relative;
  z-index: 1;
}
.page-hero .hero-ribbons-img {
  position: absolute;
  right: -8%;
  top: -10%;
  height: 200%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}
.page-title {
  font-family: "Sharp Sans", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.lead-light {
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.92);
  max-width: 56ch;
  margin-bottom: 32px;
}
.page-content { padding: 96px 0; background: var(--white); }
.placeholder-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--paper);
  border-radius: var(--radius);
  padding: 52px 40px;
  text-align: center;
  border-top: 6px solid;
  border-image: var(--rainbow) 1;
}
.placeholder-card h2 {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.5rem;
  color: var(--teal-deep);
  margin-bottom: 16px;
}
.placeholder-card p {
  font-weight: 600;
  color: rgba(11,46,56,0.75);
  line-height: 1.6;
}
.placeholder-card p + p { margin-top: 12px; }

/* ---------- Sponsor / patrocini / adesioni ---------- */
.sponsor-section { padding: 72px 0; background: var(--white); }
.sponsor-section-alt { background: var(--paper); }
.sponsor-section-title {
  font-family: "Sharp Sans", sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--teal-deep);
  text-align: center;
  margin-bottom: 44px;
  letter-spacing: -0.01em;
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 40px 24px;
}
.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  text-align: center;
}
.logo-item img {
  max-height: 60px;
  max-width: 150px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.logo-item span {
  font-weight: 700;
  font-size: 0.78rem;
  color: rgba(11,46,56,0.7);
  line-height: 1.3;
}

/* ---------- Accessibilità grid ---------- */
.a11y-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.a11y-card {
  background: var(--paper);
  border-radius: var(--radius);
  padding: 34px 32px;
  border-top: 6px solid;
  border-image: var(--rainbow) 1;
}
.a11y-card h2 {
  font-weight: 900;
  text-transform: uppercase;
  font-size: 1.15rem;
  color: var(--teal-deep);
  margin-bottom: 18px;
}
.a11y-card ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.a11y-card li {
  font-weight: 600;
  color: rgba(11,46,56,0.8);
  line-height: 1.55;
  padding-left: 28px;
  position: relative;
}
.a11y-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--teal-dark);
  font-weight: 900;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pride-week-inner { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; }
  .dove-grid { grid-template-columns: 1fr; }
  .a11y-grid { grid-template-columns: 1fr; }
  .anniversario-inner { text-align: center; justify-content: center; }
  .anniversario-inner > div { width: 100%; }
  .lead { margin-left: auto; margin-right: auto; }
}

@media (max-width: 1180px) {
  .primary-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
    border-bottom: 1px solid rgba(11,58,70,0.08);
    display: none;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: 12px 0; border-bottom: 1px solid rgba(11,58,70,0.08); white-space: normal; }
  .btn-donate { margin-top: 12px; justify-content: center; }
  .nav-toggle { display: flex; }
}

@media (max-width: 720px) {
  .hero { padding: 64px 0 80px; }
  .hero-title { gap: 2px; }
  .programma, .pride-week, .anniversario, .dove, .page-content, .collaborazioni { padding: 72px 0; }
  .page-hero { padding: 64px 0 72px; }
  .hero-ribbons-img { right: -20%; top: 40%; opacity: 0.8; }
  .page-hero .hero-ribbons-img { width: 100%; min-width: 0; max-width: none; right: -15%; bottom: 0; opacity: 0.8; }
  .collab-logos { gap: 32px; }
  .collab-logo { height: 56px; }
  .collab-organizer-logo { height: 48px; margin-bottom: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
