/* CSS del sito, sopra Bootstrap 5 (tema scuro). */

:root {
  --blu-imola: #003da5;
  --blu-scuro: #001f54;
  --giallo-imola: #f5c518;
  --nero: #0a0a0f;
  --testo-soft: rgba(255, 255, 255, 0.8);
  --bs-link-color-rgb: 245, 197, 24;
  --bs-link-hover-color-rgb: 255, 224, 102;
}

html { scroll-behavior: smooth; }

body {
  background: var(--nero);
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--giallo-imola);
  outline-offset: 3px;
}

.skip-link {
  position: absolute; top: .5rem; left: .5rem; z-index: 100;
  background: var(--giallo-imola); color: var(--blu-scuro);
  padding: .5rem 1rem; font-weight: 700;
}

/* Sfondo: foto fissa + velatura */
.page-bg {
  position: fixed; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 40% 55%; z-index: -2;
}
.page-overlay {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(0, 61, 165, .18) 0%, rgba(0, 31, 84, .35) 40%,
    rgba(0, 15, 40, .72) 75%, rgba(0, 10, 30, .85) 100%);
}

/* Hero */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.hero__accent {
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: var(--giallo-imola);
}
.hero__content {
  max-width: 52rem; padding-top: 3rem; padding-bottom: 4rem;
  animation: fade-up 1.2s ease-out both;
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}
.hero__badge {
  display: inline-block; margin-bottom: 1.25rem; padding: .35rem .85rem;
  font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--blu-scuro); background: var(--giallo-imola);
}
.hero__title {
  font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 800;
  line-height: 1.05; letter-spacing: -.02em; margin-bottom: .75rem;
}
.hero__title span { color: var(--giallo-imola); }
.tricolore { display: flex; width: 7rem; height: 4px; margin-bottom: 1rem; }
.tricolore span { flex: 1; }
.tricolore span:nth-child(1) { background: #009246; }
.tricolore span:nth-child(2) { background: #fff; }
.tricolore span:nth-child(3) { background: #ce2b37; }
.hero__tagline {
  margin-bottom: 1.25rem; font-size: clamp(.95rem, 2.8vw, 1.25rem);
  font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.hero__lead {
  max-width: 38rem; margin-bottom: 1.75rem;
  font-size: clamp(1.1rem, 3vw, 1.4rem); color: var(--testo-soft);
}
.hero__coming {
  display: inline-flex; align-items: center; gap: .6rem; margin: 0;
  padding: .65rem 1.2rem; border: 1px solid rgba(245, 197, 24, .6);
  font-size: .85rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.hero__coming::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--giallo-imola); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.85); }
}

/* Sezioni */
.info {
  border-top: 3px solid rgba(245, 197, 24, .65);
  padding: 3.5rem 0 3rem;
  background: rgba(0, 10, 30, .35);
}
.card-glass {
  padding: 1.5rem; border: 1px solid rgba(255, 255, 255, .12); border-radius: 4px;
  background: rgba(0, 15, 40, .6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.card-glass h2 {
  margin-bottom: .75rem; font-size: .8rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; color: var(--giallo-imola);
}
.card-glass p { color: var(--testo-soft); }
.card-glass p:last-child { margin-bottom: 0; }
.hashtags { font-weight: 700; color: var(--giallo-imola) !important; }
.disclaimer { border-left: 4px solid var(--giallo-imola); }
.photo-credit { margin: 1.5rem 0 0; font-size: .8rem; color: rgba(255, 255, 255, .7); }

/* Footer */
.site-footer {
  margin-top: auto; padding: 1.5rem 0; text-align: center; font-size: .85rem;
  color: rgba(255, 255, 255, .75);
  background: rgba(0, 10, 30, .85);
  border-top: 1px solid rgba(255, 255, 255, .12);
}

/* Pagine di testo */
.doc { background: var(--blu-scuro); }
.doc__main { max-width: 46rem; padding-top: 2.5rem; padding-bottom: 3rem; }
.doc__main h1 { font-size: clamp(1.8rem, 5vw, 2.5rem); font-weight: 800; }
.doc__main h2 { margin-top: 2rem; font-size: 1.15rem; color: var(--giallo-imola); }
.doc__main p { color: var(--testo-soft); }
