@font-face {
  font-family: "Inter Fallback";
  src: local("Arial"), local("Helvetica Neue"), local("Roboto");
  size-adjust: 107%;
  ascent-override: 90%;
  descent-override: 22.4%;
  line-gap-override: 0%;
}

:root {
  color-scheme: dark;
  --primary: #1fc8db;
  --primary-dark: #12aebf;
  --bg: #0b0f14;
  --card: #141b23;
  --card-2: #1a232d;
  --text: #e9eef3;
  --text-2: #a9b6c4;
  --muted: #74859a;
  --border: rgba(255, 255, 255, 0.07);
  --border-hard: rgba(255, 255, 255, 0.13);
  --primary-soft: rgba(31, 200, 219, 0.12);
  --signal-red: #f2555a;
  --signal-amber: #f5b544;
  --font-display: "Inter", "Inter Fallback", -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Inter", "Inter Fallback", -apple-system, "Segoe UI", sans-serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
}

/* ── Base ── */

body {
  background: var(--bg);
  background-image: none;
  color: var(--text);
  font-family: var(--font-display);
  -webkit-font-smoothing: antialiased;
}

body *,
body *::before,
body *::after {
  text-transform: none !important;
  letter-spacing: normal !important;
}

a {
  color: var(--primary);
}

/* ── Pulsanti ── */

.btn,
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #04191c;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.btn:hover,
.cta-btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #04191c;
  transform: none;
  box-shadow: none;
}

.btn.secondary,
.cta .btn.secondary {
  background: transparent;
  border-color: var(--border-hard);
  color: var(--text);
}

.btn.secondary:hover,
.cta .btn.secondary:hover {
  background: var(--card);
  border-color: var(--border-hard);
  color: var(--text);
}

/* ── Hero ── */

.hero {
  padding: 96px 20px 72px;
  background:
    radial-gradient(ellipse at top, rgba(31, 200, 219, 0.14), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero::after {
  display: none;
}

.hero .logo {
  width: 92px;
  height: 92px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em !important;
  color: var(--text);
  text-shadow: none;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero .subtitle {
  max-width: 640px;
  margin: 14px auto 0;
  color: var(--text-2);
  font-size: 1.08rem;
  line-height: 1.6;
}

.hero .subtitle b,
.hero .subtitle strong {
  color: var(--text);
}

.hero .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.hero-sub-link,
.hero-sub-link a {
  color: var(--text-2);
  font-size: 0.92rem;
}

.hero-sub-link a:hover {
  color: var(--primary);
}

/* ── Sezioni ── */

section {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding-top: 56px;
  padding-bottom: 8px;
}

section h2 {
  color: var(--text);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.01em !important;
}

section h2::after {
  display: none;
}

section p {
  color: var(--text-2);
}

/* ── Card ── */

.stat-card,
.features .card,
.how-it-works .card,
.process-step,
.recent-item,
.faq-item,
.testimonial,
.gallery-item,
.pwa-banner,
.nuntii-proximi {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: none;
}

.stat-card:hover,
.features .card:hover,
.how-it-works .card:hover,
.recent-item:hover,
.faq-item:hover,
.gallery-item:hover {
  transform: none;
  border-color: var(--border-hard);
  box-shadow: none;
}

.stat-number {
  color: var(--text);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.stat-label {
  color: var(--text-2);
  font-size: 0.9rem;
}

/* ── Processo ── */

.step-number {
  border: none;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 700;
  box-shadow: none;
}

.step-content h4 {
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 600;
}

.step-content p {
  color: var(--text-2);
}

/* ── Ultime foto ── */

.recent-item {
  overflow: hidden;
}

.recent-user {
  color: var(--text);
  font-weight: 600;
}

.recent-date {
  color: var(--muted);
}

/* ── FAQ ── */

.faq-question {
  color: var(--text);
  font-weight: 600;
}

.faq-toggle:checked + .faq-question {
  color: var(--primary);
}

.faq-answer,
.faq-answer p {
  color: var(--text-2);
}

.faq-icon {
  color: var(--muted);
}

/* ── Footer ── */

footer {
  margin-top: 64px;
  border-top: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
}

footer p {
  color: var(--muted);
}

footer a {
  color: var(--text-2);
}

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

/* ── Verifica email ── */

#statusBox {
  border: 1px solid var(--border);
  background: var(--card);
}

.home-assoc-section[hidden],
.home-shooters-section[hidden],
.home-news-section[hidden],
.home-section-actions [hidden] {
  display: none !important;
}

.home-assoc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 28px;
  text-align: left;
}

.home-assoc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease;
}

.home-assoc:hover {
  border-color: var(--border-hard);
}

.home-assoc__logo {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
}

.home-assoc__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.home-assoc__text strong {
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.home-assoc__text span {
  color: var(--text-2);
  font-size: 0.85rem;
}

.home-section-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
}

.home-shooters {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 560px;
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.home-shooter {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.home-shooter__rank {
  width: 22px;
  color: var(--primary);
  font-weight: 700;
  text-align: center;
}

.home-shooter__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

.home-shooter__name {
  flex: 1;
  min-width: 0;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.home-shooter__name:hover {
  color: var(--primary);
}

.home-shooter__count {
  color: var(--text-2);
  font-size: 0.88rem;
  white-space: nowrap;
}

.home-news {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.home-news__item {
  display: flex;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
}

.home-news__item i {
  margin-top: 3px;
  color: var(--primary);
}

.home-news__item strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
}

.home-news__item p {
  margin: 0;
  max-width: none;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.5;
}
