/* ============================================================
   FOOTBALL PARK SANFOCA — Global Styles
   Palette: #0b0d17 (bg) | #cc0c0c (red) | #00a651 (green)
            #c8c8c8 (silver) | #ffffff (white)
   ============================================================ */

:root {
  --bg:        #0b0d17;
  --bg2:       #111424;
  --red:       #cc0c0c;
  --red-glow:  #ff1a1a;
  --green:     #00a651;
  --green-glow:#00d468;
  --silver:    #c8c8c8;
  --white:     #ffffff;
  --glass:     rgba(255,255,255,0.05);
  --glass-b:   rgba(255,255,255,0.10);
  --border:    rgba(255,255,255,0.08);
  --shadow:    0 8px 32px rgba(0,0,0,0.5);
  --radius:    16px;
  --font-h:    'Bebas Neue', sans-serif;
  --font-b:    'Inter', sans-serif;
  --nav-h:     72px;
  --transition: 0.35s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-b);
  background: var(--bg);
  color: var(--white);
  overflow-x: hidden;
  min-height: 100vh;
}

/* ── CANVAS PARTICLES ── */
#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── ACCENT ── */
.accent { color: var(--red); }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  background: rgba(11,13,23,0.75);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.navbar.scrolled {
  background: rgba(11,13,23,0.95);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  cursor: default;
}

.nav-logo {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--red);
  transition: transform var(--transition), box-shadow var(--transition);
}
.nav-logo:hover {
  transform: rotate(10deg) scale(1.1);
  box-shadow: 0 0 16px var(--red);
}

.nav-title {
  font-family: var(--font-h);
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: var(--white);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-link {
  display: block;
  padding: 0.5rem 1.1rem;
  color: var(--silver);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border-radius: 8px;
  transition: color var(--transition), background var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%; height: 2px;
  background: var(--red);
  border-radius: 2px;
  transition: transform var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: var(--glass);
}

.nav-link.active::after,
.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   MAIN / SECTIONS
   ============================================================ */
.main { position: relative; z-index: 1; }

.tab-section {
  display: none;
  min-height: 100vh;
  padding-top: var(--nav-h);
  animation: fadeIn 0.5s ease;
}
.tab-section.active { display: block; }

/* Su mobile il hero gestisce già il suo padding interno — rimuoviamo il doppio padding */
@media (max-width: 640px) {
  .tab-section { padding-top: var(--nav-h); min-height: auto; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(204,12,12,0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 50%, rgba(0,166,81,0.12) 0%, transparent 60%),
    var(--bg);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
    rgba(11,13,23,0.9) 0%,
    rgba(11,13,23,0.6) 50%,
    rgba(11,13,23,0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 4rem 4rem;
  max-width: 680px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.hero-title {
  font-family: var(--font-h);
  font-size: clamp(3.5rem, 8vw, 7rem);
  line-height: 0.95;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 60px rgba(204,12,12,0.3);
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--silver);
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 480px;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* ── FIELD ILLUSTRATION ── */
.hero-field {
  position: absolute;
  right: -2%;
  top: 50%;
  transform: translateY(-50%);
  width: 55%;
  max-width: 720px;
  aspect-ratio: 16/10;
  border: 3px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  opacity: 0.35;
  background: rgba(0,166,81,0.08);
}

.field-lines {
  position: relative;
  width: 100%; height: 100%;
}

.halfway-line {
  position: absolute;
  left: 50%; top: 0;
  width: 2px; height: 100%;
  background: rgba(255,255,255,0.4);
}

.center-circle {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 22%; padding-top: 22%;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 50%;
}

.center-spot {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 8px; height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 50%;
}

.penalty-left,
.penalty-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 14%;
  height: 50%;
  border: 2px solid rgba(255,255,255,0.4);
}
.penalty-left  { left: 0;  border-left: none; }
.penalty-right { right: 0; border-right: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  border-radius: 50px;
  font-family: var(--font-b);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(204,12,12,0.4);
}
.btn-primary:hover {
  background: var(--red-glow);
  box-shadow: 0 6px 30px rgba(204,12,12,0.65);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
}
.btn-outline:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(204,12,12,0.08);
  transform: translateY(-2px);
}

.btn-green {
  background: var(--green);
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(0,166,81,0.4);
}
.btn-green:hover {
  background: var(--green-glow);
  box-shadow: 0 6px 30px rgba(0,166,81,0.6);
  transform: translateY(-2px);
}
.btn-gold {
  background: #f5c518;
  color: #0b0d17;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(245,197,24,0.35);
  font-weight: 700;
}
.btn-gold:hover {
  background: #ffe680;
  box-shadow: 0 6px 30px rgba(245,197,24,0.55);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.3rem;
  font-size: 0.8rem;
}

.btn-full { width: 100%; justify-content: center; }

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
  background: var(--bg2);
  text-align: center;
  transition: background var(--transition);
}
.stat-item:hover { background: var(--glass); }

.stat-number {
  font-family: var(--font-h);
  font-size: 2.8rem;
  color: var(--red);
  line-height: 1;
  text-shadow: 0 0 20px rgba(204,12,12,0.4);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--silver);
  margin-top: 0.4rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ============================================================
   SECTION BLOCKS
   ============================================================ */
.section-block {
  padding: 5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-family: var(--font-h);
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 3rem;
}

/* ============================================================
   SERVICES SECTION (Home)
   ============================================================ */
.services-section {
  position: relative;
  width: 100%;
  background:
    radial-gradient(ellipse at 0% 50%,   rgba(204,12,12,0.08)  0%, transparent 50%),
    radial-gradient(ellipse at 100% 50%, rgba(0,166,81,0.06)   0%, transparent 50%),
    var(--bg2);
  border-top:    1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* linea decorativa superiore */
.services-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--red), var(--green), transparent);
}

.services-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 5rem 3rem;
}

.services-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.services-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.6rem;
}

.services-title {
  font-family: var(--font-h);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}

.services-sub {
  color: var(--silver);
  font-size: 1rem;
}

/* GRID 4 colonne su desktop */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

/* CARD */
.service-card {
  position: relative;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.25rem 1.75rem 2rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(10px);
}

.service-card:hover {
  transform: translateY(-10px);
}

/* top accent bar */
.service-card--red { border-top: 3px solid var(--red); }
.service-card--green { border-top: 3px solid var(--green); }

.service-card--red:hover {
  border-color: var(--red);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(204,12,12,0.25);
}
.service-card--green:hover {
  border-color: var(--green);
  box-shadow: 0 24px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(0,166,81,0.25);
}

/* glow sfumato di fondo al hover */
.service-card-glow {
  position: absolute;
  top: -40px; left: -40px;
  width: 200px; height: 200px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.service-card--red   .service-card-glow { background: radial-gradient(circle, rgba(204,12,12,0.18), transparent 70%); }
.service-card--green .service-card-glow { background: radial-gradient(circle, rgba(0,166,81,0.15), transparent 70%); }
.service-card:hover .service-card-glow { opacity: 1; }

.service-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.service-icon {
  font-size: 2.75rem;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(255,255,255,0.15));
}

.service-number {
  font-family: var(--font-h);
  font-size: 3.5rem;
  line-height: 1;
  color: rgba(255,255,255,0.05);
  letter-spacing: 1px;
  user-select: none;
}

.service-card h3 {
  font-family: var(--font-h);
  font-size: 1.55rem;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.service-card p {
  color: var(--silver);
  font-size: 0.88rem;
  line-height: 1.65;
  flex: 1;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.service-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.65rem;
  border-radius: 50px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--silver);
}

.service-card--red   .service-tags span { border-color: rgba(204,12,12,0.3); color: #ff8888; }
.service-card--green .service-tags span { border-color: rgba(0,166,81,0.3);  color: #5de4a0; }

/* ============================================================
   GLASS CARDS (generiche, altre sezioni)
   ============================================================ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.glass-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  backdrop-filter: blur(12px);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  cursor: default;
}
.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(204,12,12,0.3);
  border-color: rgba(204,12,12,0.3);
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  display: block;
}

.glass-card h3 {
  font-family: var(--font-h);
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
}

.glass-card p {
  color: var(--silver);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ============================================================
   PAGE HEADER
   ============================================================ */
.page-header {
  text-align: center;
  padding: 5rem 2rem 3rem;
  background: radial-gradient(ellipse at center top, rgba(204,12,12,0.12), transparent 70%);
  border-bottom: 1px solid var(--border);
}

.page-title {
  font-family: var(--font-h);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: 2px;
  margin-bottom: 0.75rem;
}

.page-sub {
  color: var(--silver);
  font-size: 1rem;
}

/* ============================================================
   TORNEI (sezione EVENTI)
   ============================================================ */
.tornei-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* card container */
.torneo-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
  min-height: 480px;
  display: flex;
  flex-direction: column;
}
.torneo-card:hover { transform: translateY(-8px); }

.torneo-card--open:hover  { box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,166,81,0.3); }
.torneo-card--closed:hover { box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(204,12,12,0.25); }

/* sfondo decorativo per card */
.torneo-card-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.torneo-card-bg--speed {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(0,166,81,0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(204,12,12,0.12) 0%, transparent 50%),
    rgba(255,255,255,0.03);
}
.torneo-card-bg--mundialito {
  background:
    radial-gradient(ellipse at 80% 20%, rgba(204,12,12,0.20) 0%, transparent 55%),
    radial-gradient(ellipse at 10% 80%, rgba(200,160,0,0.10) 0%, transparent 50%),
    rgba(255,255,255,0.02);
}

/* linea superiore colorata */
.torneo-card--open::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), #5de4a0);
  z-index: 2;
}
.torneo-card--closed::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), #ff8888);
  z-index: 2;
}
.torneo-card--ongoing::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff6400, #ffaa66, #ff6400);
  z-index: 2;
}
.torneo-card--ongoing:hover { box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,100,0,0.3); }
.torneo-card--concluded::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #f5c518, #ffe680, #f5c518);
  z-index: 2;
}
.torneo-card--concluded:hover { box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(245,197,24,0.3); }

.torneo-card-inner {
  position: relative;
  z-index: 1;
  padding: 2.25rem 2.25rem 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  height: 100%;
  background: rgba(11,13,23,0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* top row: status + data */
.torneo-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

/* badge iscrizioni */
.torneo-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 1rem;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.status--open {
  background: rgba(0,166,81,0.18);
  border: 1.5px solid rgba(0,166,81,0.5);
  color: #5de4a0;
  animation: pulseBadge 2.5s ease-in-out infinite;
}
.status--closed {
  background: rgba(150,150,150,0.12);
  border: 1.5px solid rgba(150,150,150,0.3);
  color: var(--silver);
}
.status--ongoing {
  background: rgba(255,100,0,0.15);
  border: 1.5px solid rgba(255,100,0,0.5);
  color: #ffaa66;
  animation: pulseOngoing 2s ease-in-out infinite;
}
@keyframes pulseOngoing {
  0%,100% { box-shadow: 0 0 0 0 rgba(255,100,0,0); }
  50%      { box-shadow: 0 0 0 5px rgba(255,100,0,0.15); }
}
.status--concluded {
  background: rgba(245,197,24,0.14);
  border: 1.5px solid rgba(245,197,24,0.45);
  color: #ffe680;
}

@keyframes pulseBadge {
  0%,100% { box-shadow: 0 0 0 0 rgba(0,166,81,0); }
  50%      { box-shadow: 0 0 0 5px rgba(0,166,81,0.15); }
}

/* blocco data */
.torneo-date-block {
  text-align: right;
  flex-shrink: 0;
}
.torneo-day {
  display: block;
  font-family: var(--font-h);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--white);
}
.torneo-month {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--silver);
  line-height: 1.4;
}

/* body */
.torneo-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}
.torneo-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--silver);
}
.torneo-title {
  font-family: var(--font-h);
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  letter-spacing: 1px;
  line-height: 1.05;
}
.torneo-desc {
  color: var(--silver);
  font-size: 0.9rem;
  line-height: 1.7;
  flex: 1;
}

/* info row */
.torneo-info-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.torneo-info-item {
  flex: 1;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(255,255,255,0.04);
  border-right: 1px solid var(--border);
}
.torneo-info-item:last-child { border-right: none; }
.torneo-info-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(200,200,200,0.5);
}
.torneo-info-value {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--white);
}

/* button */
.torneo-btn {
  width: 100%;
  justify-content: center;
  text-decoration: none;
  margin-top: 0.25rem;
}

/* OLD event styles — mantenuti per compatibilità futura */
.event-meta span {
  background: rgba(255,255,255,0.06);
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
}

/* ============================================================
   CHI SIAMO
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-text h2 {
  font-family: var(--font-h);
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.about-text p {
  color: var(--silver);
  line-height: 1.8;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.values-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.value-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  transition: border-color var(--transition);
}
.value-item:hover { border-color: rgba(204,12,12,0.35); }

.value-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }

.value-item strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.95rem;
}
.value-item p { color: var(--silver); font-size: 0.82rem; line-height: 1.5; margin: 0; }

/* Logo showcase */
.about-visual { display: flex; justify-content: center; align-items: center; }

.logo-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 320px; height: 320px;
}

.logo-showcase img {
  width: 200px; height: 200px;
  border-radius: 50%;
  object-fit: cover;
  position: relative; z-index: 3;
  border: 3px solid var(--red);
  box-shadow: 0 0 40px rgba(204,12,12,0.5);
  animation: logoPulse 3s ease-in-out infinite;
}

@keyframes logoPulse {
  0%,100% { box-shadow: 0 0 30px rgba(204,12,12,0.4); }
  50%      { box-shadow: 0 0 60px rgba(204,12,12,0.7), 0 0 90px rgba(0,166,81,0.2); }
}

.logo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid;
  animation: ringExpand 3s ease-in-out infinite;
}
.ring1 { width: 230px; height: 230px; border-color: rgba(204,12,12,0.4); animation-delay: 0s; }
.ring2 { width: 270px; height: 270px; border-color: rgba(0,166,81,0.25); animation-delay: 0.5s; }
.ring3 { width: 310px; height: 310px; border-color: rgba(255,255,255,0.08); animation-delay: 1s; }

@keyframes ringExpand {
  0%,100% { transform: scale(1); opacity: 0.6; }
  50%      { transform: scale(1.04); opacity: 1; }
}

/* TEAM */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.team-card {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  text-align: center;
  backdrop-filter: blur(10px);
  transition: transform var(--transition), border-color var(--transition);
}
.team-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0,166,81,0.35);
}

.team-avatar {
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.team-card h3 {
  font-family: var(--font-h);
  font-size: 1.4rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.35rem;
}

.team-role {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--green);
  display: block;
  margin-bottom: 0.85rem;
}

.team-card p {
  color: var(--silver);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* ============================================================
   CONTATTI
   ============================================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
}

.contact-info h2 {
  font-family: var(--font-h);
  font-size: 2rem;
  margin-bottom: 2rem;
}

.info-item {
  display: flex;
  gap: 1.2rem;
  margin-bottom: 1.75rem;
  align-items: flex-start;
}

.info-icon { font-size: 1.6rem; flex-shrink: 0; margin-top: 0.1rem; }

.info-item strong {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--green);
  margin-bottom: 0.3rem;
}
.info-item p { color: var(--silver); font-size: 0.9rem; line-height: 1.5; }

.social-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.social-btn {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--glass);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--silver);
  transition: all var(--transition);
  text-decoration: none;
}
.social-btn svg { width: 18px; height: 18px; }
.social-btn:hover {
  background: rgba(204,12,12,0.2);
  border-color: var(--red);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(204,12,12,0.3);
}

/* FORM */
.contact-form {
  background: var(--glass);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
}

.contact-form h2 {
  font-family: var(--font-h);
  font-size: 2rem;
  margin-bottom: 1.75rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--silver);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.04);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: var(--font-b);
  font-size: 0.9rem;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  width: 100%;
}
.form-group select option { background: var(--bg2); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(204,12,12,0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(200,200,200,0.35);
}

.form-group textarea { resize: vertical; min-height: 100px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  position: relative; z-index: 1;
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 200px;
}

.footer-logo {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--red);
}

.footer-brand p {
  font-family: var(--font-h);
  font-size: 1.1rem;
  line-height: 1.4;
  letter-spacing: 0.5px;
}
.footer-brand small { color: var(--silver); font-family: var(--font-b); font-size: 0.75rem; font-weight: 400; }

.footer-links {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}
.footer-links a {
  color: var(--silver);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--red); }

.footer-copy {
  width: 100%;
  text-align: center;
  color: rgba(200,200,200,0.35);
  font-size: 0.75rem;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

/* ============================================================
   TOAST NOTIFICATION
   ============================================================ */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  background: var(--green);
  color: var(--white);
  padding: 1rem 1.5rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(0,166,81,0.4);
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .about-layout,
  .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
  .about-visual { display: none; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .hero-field { display: none; }
  .hero-content { padding: 3rem 2rem; }
  .hero { min-height: auto; padding: 3rem 0 4rem; align-items: flex-start; }
  .services-inner { padding: 4rem 2rem; }
  .tornei-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  /* ── NAVBAR ── */
  .navbar { padding: 0 1.25rem; }
  .nav-title { font-size: 1.05rem; }
  .nav-logo { width: 38px; height: 38px; }

  /* ── MOBILE MENU: usa max-height + visibility per hiding sicuro ── */
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    z-index: 99;
    flex-direction: column;
    background: rgba(10,12,22,0.98);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    padding: 0 1rem;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    visibility: hidden;
    pointer-events: none;
    transition:
      max-height 0.4s cubic-bezier(0.4,0,0.2,1),
      padding   0.4s cubic-bezier(0.4,0,0.2,1),
      visibility 0s linear 0.4s;
    border-bottom: 1px solid transparent;
  }
  .nav-links.open {
    max-height: 320px;
    padding: 1rem 1rem 1.5rem;
    visibility: visible;
    pointer-events: auto;
    border-bottom-color: var(--border);
    transition:
      max-height 0.4s cubic-bezier(0.4,0,0.2,1),
      padding   0.4s cubic-bezier(0.4,0,0.2,1),
      visibility 0s linear 0s;
  }
  .nav-link {
    padding: 0.75rem 1rem;
    border-radius: 10px;
    font-size: 1rem;
  }
  .burger { display: flex; }

  /* ── HERO ── */
  .hero {
    min-height: auto;
    padding: 2.5rem 0 3.5rem;
    align-items: flex-start;
    background:
      radial-gradient(ellipse at 10% 30%, rgba(204,12,12,0.18) 0%, transparent 55%),
      radial-gradient(ellipse at 90% 70%, rgba(0,166,81,0.10) 0%, transparent 55%),
      var(--bg);
  }
  .hero-content {
    padding: 0 1.5rem;
    max-width: 100%;
  }
  .hero-title {
    font-size: clamp(3rem, 14vw, 4.5rem);
    margin-bottom: 1rem;
  }
  .hero-sub {
    font-size: 0.95rem;
    margin-bottom: 2rem;
  }
  .hero-cta { flex-direction: column; gap: 0.75rem; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-field { display: none; }

  /* ── STATS ── */
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-number { font-size: 2.2rem; }

  /* ── SEZIONI ── */
  .section-block { padding: 3rem 1.25rem; }
  .section-title { font-size: 1.8rem; margin-bottom: 2rem; }
  .page-header { padding: 3rem 1.25rem 2rem; }
  .page-title { font-size: clamp(2rem, 10vw, 3rem); }

  /* ── TORNEI ── */
  .tornei-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .torneo-card { min-height: auto; }
  .torneo-card-inner { padding: 1.5rem; gap: 1.25rem; }
  .torneo-day { font-size: 2.5rem; }
  .torneo-title { font-size: 2rem; }
  .torneo-info-row { flex-direction: column; }
  .torneo-info-item { border-right: none; border-bottom: 1px solid var(--border); }
  .torneo-info-item:last-child { border-bottom: none; }

  /* ── SERVICES ── */
  .services-grid { grid-template-columns: 1fr; }
  .services-inner { padding: 3rem 1.25rem; }
  .services-title { font-size: 2rem; }

  /* ── CARDS ── */
  .cards-grid { grid-template-columns: 1fr; }
  .glass-card { padding: 1.75rem 1.5rem; }
  .team-grid { grid-template-columns: 1fr; }

  /* ── CHI SIAMO ── */
  .about-text h2 { font-size: 2rem; }

  /* ── CONTATTI ── */
  .contact-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .contact-form { padding: 1.5rem 1.25rem; }
  .form-row { grid-template-columns: 1fr; }
  .social-row { gap: 0.6rem; }

  /* ── FOOTER ── */
  .footer-inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0 1.25rem;
  }
  .footer-brand { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; gap: 1rem; }
}
