/* FlexaSport — global styles (mobile-first) */
:root {
  --bg: #f1f4f9;
  --card-bg: #ffffff;
  --surface: rgba(15, 23, 42, 0.06);
  --surface-2: rgba(15, 23, 42, 0.1);
  --text: #0f172a;
  --muted: #475569;
  --link: #5b21b6;
  --link-hover: #4c1d95;
  --border: rgba(15, 23, 42, 0.12);
  --primary: #6d4bd6;
  --primary-2: #0d9f73;
  --danger: #c0263d;
  --focus: #ca8a04;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-dark: 0 16px 48px rgba(0, 0, 0, 0.35);
  --radius: 16px;
  --radius-sm: 12px;
  --container: 1120px;
  --t: 300ms;
  --header-footer-bg: #121826;
  --header-footer-text: #f1f5f9;
}

/* Local font (place files in assets/fonts/) */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src:
    local("Poppins Regular"),
    url("../fonts/poppins-regular.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src:
    local("Poppins SemiBold"),
    url("../fonts/poppins-600.woff2") format("woff2");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src:
    local("Poppins Bold"),
    url("../fonts/poppins-700.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Poppins,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  background:
    radial-gradient(
      900px 520px at 12% 0%,
      rgba(109, 75, 214, 0.12),
      transparent 55%
    ),
    radial-gradient(
      760px 480px at 92% 8%,
      rgba(13, 159, 115, 0.1),
      transparent 55%
    ),
    radial-gradient(
      800px 500px at 50% 100%,
      rgba(202, 138, 4, 0.06),
      transparent 58%
    ),
    var(--bg);
  color: var(--text);
  line-height: 1.55;
}

main
  a:not(.btn):not(.icon-btn):not(.sport-tile):not(.article-card):not(
    .article-feature-card
  ):not(.brand):not(.fx-footer-link):not(.fx-social) {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
main
  a:not(.btn):not(.icon-btn):not(.sport-tile):not(.article-card):not(
    .article-feature-card
  ):not(.brand):not(.fx-footer-link):not(.fx-social):hover {
  color: var(--link-hover);
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: inherit;
}
button,
input,
select,
textarea {
  font: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 16px;
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 9999;
  background: var(--header-footer-bg);
  color: #f8fafc;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.skip-link:focus {
  left: 16px;
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* Focus */
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

/* Header — tema scuro fisso */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--header-footer-bg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--header-footer-text);
}
.site-header .brand-text strong {
  color: #fff;
}
.site-header .brand-text span {
  color: #94a3b8;
}
.site-header .nav a {
  color: #e2e8f0;
}
.site-header .nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}
.site-header .nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
}
.site-header .icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f8fafc;
}

@media (max-width: 1080px) {
  .site-header .icon-btn.icon-btn--fav .sr-only {
    display: none;
  }
}
.site-header .icon-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}
.site-header .badge {
  background: rgba(46, 230, 166, 0.22);
  border-color: rgba(46, 230, 166, 0.45);
  color: #ecfdf5;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 6px;
  object-fit: contain;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-text strong {
  font-weight: 700;
  letter-spacing: 0.2px;
}
.brand-text span {
  font-size: 12px;
  color: var(--muted);
}

.nav {
  display: none;
  gap: 6px;
  align-items: center;
}
.nav a {
  text-decoration: none;
  padding: 10px 10px;
  border-radius: 12px;
  transition: all 0.3s ease;
}
.nav a:hover {
  background: var(--surface);
}
.nav a[aria-current="page"] {
  background: var(--surface-2);
}

.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.icon-btn {
  border: 1px solid var(--border);
  background: var(--card-bg);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.icon-btn:hover {
  transform: translateY(-1px);
  background: #f8fafc;
}
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(46, 230, 166, 0.18);
  border: 1px solid rgba(46, 230, 166, 0.35);
  font-size: 12px;
}

/* Favorites icon button (heart) */
.icon-btn.icon-btn--fav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 12px;
  position: relative;
}
.icon-btn--fav .fav-ico {
  width: 18px;
  height: 18px;
  display: block;
}
.icon-btn--fav .fav-ico svg {
  width: 18px;
  height: 18px;
  display: block;
}
.icon-btn--fav .badge {
  position: absolute;
  top: -6px;
  right: -6px;
}

/* Mobile menu */
.hamburger {
  display: inline-flex;
}
.mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 1100;
}
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 300px;
  background: #151c2e;
  color: #e2e8f0;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-dark);
  transform: translateX(105%);
  transition: transform 0.35s ease;
  z-index: 1200;
  display: flex;
  flex-direction: column;
}
.mobile-drawer header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--border);
}
.mobile-drawer nav {
  display: flex;
  flex-direction: column;
  padding: 10px 10px 16px;
}
.mobile-drawer .brand-text strong {
  color: #fff;
}
.mobile-drawer .brand-text span {
  color: #94a3b8;
}
.mobile-drawer .icon-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #f8fafc;
}
.mobile-drawer a {
  text-decoration: none;
  padding: 12px 12px;
  border-radius: 12px;
  transition: all 0.3s ease;
  color: #e2e8f0;
}
.mobile-drawer a:hover {
  background: rgba(255, 255, 255, 0.1);
}
.menu-open .mobile-overlay {
  opacity: 1;
  pointer-events: auto;
}
.menu-open .mobile-drawer {
  transform: translateX(0);
}
.menu-open {
  overflow: hidden;
}

/* Hero */
.hero {
  padding: 42px 0 22px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}
.hero-card {
  /* border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 18px 60px rgba(0,0,0,.25); */
}
.hero-kicker {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(124, 92, 255, 0.35);
  background: rgba(124, 92, 255, 0.14);
}
.hero h1 {
  margin: 6px 0 10px;
  font-size: clamp(26px, 5vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.4px;
}
.hero p {
  color: var(--muted);
  margin: 0 0 16px;
}
.cta-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn {
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--primary), rgba(124, 92, 255, 0.55));
  color: white;
  padding: 12px 14px;
  border-radius: 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}
.btn.secondary {
  background: #fff;
  border-color: var(--border);
  color: var(--text);
}
.btn.secondary:hover {
  background: #f8fafc;
}
.btn.success {
  background: linear-gradient(
    135deg,
    rgba(46, 230, 166, 1),
    rgba(46, 230, 166, 0.55)
  );
}
.hero-media {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  min-height: 210px;
  background:
    radial-gradient(
      600px 260px at 20% 15%,
      rgba(46, 230, 166, 0.35),
      transparent 60%
    ),
    radial-gradient(
      700px 320px at 80% 15%,
      rgba(124, 92, 255, 0.35),
      transparent 62%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.06),
      rgba(255, 255, 255, 0.02)
    );
}
.hero-fader {
  position: absolute;
  inset: 0;
}
.hero-fader-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 900ms ease;
  will-change: opacity;
}
.hero-fader-img.is-active {
  opacity: 1;
}
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 0%,
    rgba(0, 0, 0, 0.35) 100%
  );
  z-index: 1;
  pointer-events: none;
}
.hero-media .hero-media-caption {
  z-index: 2;
}
.hero-media::after {
  z-index: 1;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(
      circle at 20% 40%,
      rgba(255, 255, 255, 0.13) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 60% 55%,
      rgba(255, 255, 255, 0.1) 0 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 80% 30%,
      rgba(255, 255, 255, 0.1) 0 2px,
      transparent 3px
    );
  opacity: 0.8;
}
.hero-media .hero-media-caption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  right: 14px;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
  border-radius: 14px;
  backdrop-filter: blur(8px);
  color: #f8fafc;
}
.hero-media-caption strong {
  display: block;
}
.hero-media-caption span {
  color: rgba(248, 250, 252, 0.88);
  font-size: 13px;
}

/* Sections */
.section {
  padding: 22px 0;
}
.page-home .section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}
.section h2 {
  margin: 6px 0;
  font-size: 22px;
}
.section p.lead {
  margin: 0 0 14px;
  color: var(--muted);
}
.card {
  border: 1px solid var(--border);
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 560px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 920px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.sport-tile {
  padding: 14px;
  border-radius: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  min-height: 92px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow);
}
.sport--sections .sport-tile:hover {
  transform: translateY(-4px) !important;
  background: #fafbfc !important;
}
.sport-tile .emoji {
  font-size: 22px;
}
.sport-tile .name {
  font-weight: 600;
}
.sport-tile::before {
  content: "";
  position: absolute;
  inset: -40px -60px auto auto;
  width: 170px;
  height: 140px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(46, 230, 166, 0.35),
    transparent 60%
  );
  transform: rotate(120deg);
}

/* Slider */
.slider {
  position: relative;
}
.slider-viewport {
  overflow: hidden;
  border-radius: var(--radius);
}
.slider-track {
  display: flex;
  will-change: transform;
  transition: transform 0.35s ease;
}
.slide {
  flex: 0 0 100%;
  padding: 0;
}
.slide-inner {
  margin: 0 6px;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--card-bg);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}
.slide-inner:hover {
  transform: translateY(-2px);
  background: #fafbfc;
}
.slider-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  gap: 10px;
}
.dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  flex: 1;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #e2e8f0;
  cursor: pointer;
  transition: all 0.3s ease;
}
.dot[aria-current="true"] {
  background: rgba(109, 75, 214, 0.85);
  border-color: rgba(91, 33, 182, 0.9);
}
.nav-arrow {
  min-width: 44px;
}

/* School card */
.school-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.school-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.school-badge {
  /* width: 36px;
  height: 36px;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 1),
    rgba(46, 230, 166, 1)
  ); */
}
.school-title strong {
  display: block;
  font-weight: 700;
}
.rating {
  display: flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.stars {
  letter-spacing: 1px;
}
.school-meta {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 10px 0;
}
.tag {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f1f5f9;
}
.next-slot {
  border-color: rgba(46, 230, 166, 0.35);
  background: rgba(46, 230, 166, 0.13);
}
.price {
  font-weight: 700;
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.muted {
  color: var(--muted);
}

/* Filters */
.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}
@media (min-width: 920px) {
  .layout {
    grid-template-columns: 340px 1fr;
  }
  .nav {
    display: flex;
  }
  .hamburger {
    display: none;
  }
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}
.filters {
  padding: 14px;
}
.filters h2 {
  margin: 0 0 10px;
  font-size: 18px;
}
.filter-block {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 10px;
}
.filter-head {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 12px;
  cursor: pointer;
  background: #f8fafc;
  border: 0;
  color: var(--text);
}
.filter-head span {
  font-weight: 600;
}
.filter-body {
  padding: 10px 12px;
  display: grid;
  gap: 8px;
}
.filter-body[hidden] {
  display: none;
}
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
}
.check input {
  width: 18px;
  height: 18px;
}

/* Custom checkbox */
.fx-native-checkbox {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.fx-check {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--border);
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.fx-check:hover {
  background: #f1f5f9;
}
.fx-check.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.fx-check-box {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  position: relative;
  flex: 0 0 18px;
  transition:
    background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.fx-check-box::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 4px;
  background: rgba(46, 230, 166, 0.95);
  opacity: 0;
  transform: scale(0.5) rotate(-10deg);
  transition:
    transform 0.22s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.fx-check.is-checked .fx-check-box {
  border-color: rgba(46, 230, 166, 0.55);
  background: rgba(46, 230, 166, 0.12);
}
.fx-check.is-checked .fx-check-box::after {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.fx-check-text {
  color: var(--text);
}

/* Custom select */
.fx-native-select {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.fx-select {
  position: relative;
}
.fx-select-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    background 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.fx-select-btn:hover {
  background: #f8fafc;
}
.fx-select-arrow {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.fx-select[data-state="open"] .fx-select-arrow {
  transform: rotate(180deg);
}

.fx-select-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  max-height: 240px;
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(14, 20, 44, 0.98);
  box-shadow: var(--shadow);
  padding: 6px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.fx-select.open-up .fx-select-list {
  top: auto;
  bottom: calc(100% + 8px);
}
.fx-select[data-state="open"] .fx-select-list {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.fx-select-option {
  padding: 10px 10px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(6px);
  animation: fxOpt 0.22s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.fx-select[data-state="closed"] .fx-select-option {
  animation: none;
  opacity: 1;
  transform: none;
}
.fx-select-option:hover {
  background: rgba(255, 255, 255, 0.06);
}
.fx-select-option.is-selected {
  background: rgba(46, 230, 166, 0.14);
  border: 1px solid rgba(46, 230, 166, 0.22);
}
.fx-select-option.is-active {
  outline: 2px solid rgba(255, 209, 102, 0.65);
  outline-offset: 2px;
}
@keyframes fxOpt {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fx-check,
  .fx-check-box,
  .fx-check-box::after,
  .fx-select-btn,
  .fx-select-arrow,
  .fx-select-list {
    transition: none;
  }
  .fx-select-option {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
.field {
  display: grid;
  gap: 6px;
}
.field label {
  color: var(--muted);
  font-size: 13px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 10px 12px;
}
.filters .btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.count {
  color: var(--muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.school-card {
  padding: 14px;
  display: flex;
  flex-direction: column;
}
.school-media-link {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #e2e8f0;
  margin-bottom: 10px;
}
.school-card-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}
.school-card .btn {
  /* width: 100%; */
}

/* Skeleton */
.skeleton {
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: -60px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.1),
    transparent
  );
  transform: translateX(-35%);
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  to {
    transform: translateX(35%);
  }
}
.skeleton-line {
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
}

/* Gallery + lightbox */
.gallery-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.chip {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  padding: 8px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.chip[aria-pressed="true"] {
  background: rgba(124, 92, 255, 0.18);
  border-color: rgba(124, 92, 255, 0.45);
}
.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
@media (min-width: 720px) {
  .gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.gallery a {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: block;
  background: #f1f5f9;
  transition: all 0.3s ease;
}
.gallery a:hover {
  transform: translateY(-2px);
}
.thumb {
  aspect-ratio: 4/3;
  width: 100%;
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(124, 92, 255, 0.32),
    rgba(46, 230, 166, 0.24)
  );
  display: flex;
  align-items: flex-end;
  padding: 10px;
}
.thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.02);
}
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.55));
  opacity: 0.65;
}
.thumb span {
  position: relative;
  z-index: 1;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(11, 16, 32, 0.5);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
  backdrop-filter: blur(6px);
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: none;
}
.lightbox.open {
  display: block;
}
.lightbox .lb-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
}
.lightbox .lb-inner {
  position: absolute;
  inset: 16px;
  display: grid;
  place-items: center;
}
.lb-frame {
  width: min(1000px, 96vw);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(14, 20, 44, 0.95);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.lb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
}
.lb-title {
  color: var(--muted);
  font-size: 13px;
}
.lb-media {
  height: min(68vh, 540px);
  display: grid;
  place-items: center;
  background:
    radial-gradient(
      800px 360px at 25% 20%,
      rgba(46, 230, 166, 0.25),
      transparent 62%
    ),
    radial-gradient(
      800px 360px at 80% 30%,
      rgba(124, 92, 255, 0.25),
      transparent 62%
    ),
    rgba(255, 255, 255, 0.03);
}
.lb-media img {
  max-height: 68vh;
  width: auto;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
}
.modal.open {
  display: block;
}
.modal .modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  opacity: 0;
  transition: opacity 0.35s ease;
}
.modal .modal-inner {
  position: absolute;
  inset: 16px;
  display: grid;
  place-items: center;
}
.modal-card {
  width: min(640px, 96vw);
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(14, 20, 44, 0.98);
  box-shadow: var(--shadow);
  padding: 16px;
  transform: translateY(8px) scale(0.98);
  opacity: 0;
  transition: all 0.35s ease;
}
.modal.open .modal-overlay {
  opacity: 1;
}
.modal.open .modal-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
.modal-card h3 {
  margin: 4px 0 8px;
  font-size: 18px;
  color: #f8fafc;
}
.modal-card p {
  margin: 0 0 14px;
  color: #cbd5e1;
}
.modal-card .btn {
  width: 100%;
}

/* Footer — tema scuro */
.site-footer {
  margin-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--header-footer-bg);
  color: #cbd5e1;
}
.site-footer .brand-text strong {
  color: #fff;
}
.site-footer .brand-text span {
  color: #94a3b8;
}

/* Footer (refined, grid-based, Freehand-like spacing) */
.fx-footer {
  padding: 56px 16px 26px;
}
.fx-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}
@media (min-width: 768px) {
  .fx-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px;
  }
}
@media (min-width: 1024px) {
  .fx-footer-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 44px;
  }
}
.fx-footer-brand .brand {
  display: flex;
}
.fx-footer-title {
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  margin-bottom: 12px;
}
.fx-footer-link {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: none;
  padding: 8px 0;
  transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.fx-footer-link:hover {
  color: #2dd4bf;
}
.fx-footer-muted {
  font-size: 13px;
  color: #94a3b8;
  margin: 0 0 12px;
}

.fx-footer-contacts {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.fx-contact {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #94a3b8;
}
.fx-contact a {
  color: #94a3b8;
  text-decoration: none;
}
.fx-contact a:hover {
  color: #2dd4bf;
}
.fx-ico {
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, 0.85);
  flex: 0 0 18px;
  margin-top: 1px;
}
.fx-ico svg {
  width: 18px;
  height: 18px;
}

.fx-footer-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fx-footer-form input {
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
  padding: 10px 12px;
}
.fx-footer-form input::placeholder {
  color: #94a3b8;
}
@media (max-width: 480px) {
  .fx-footer-form {
    grid-template-columns: 1fr;
  }
}

.fx-footer-sub {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 768px) {
  .fx-footer-sub {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.fx-footer-payments {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.fx-pay {
  font-size: 13px;
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 999px;
  padding: 6px 10px;
}
.fx-footer-social {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.fx-social {
  font-size: 13px;
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 8px 10px;
  transition:
    color 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.fx-social:hover {
  color: #2dd4bf;
  border-color: rgba(45, 212, 191, 0.35);
}

.fx-footer-legal {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
  color: #94a3b8;
}
@media (min-width: 768px) {
  .fx-footer-legal {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.fx-footer-legal-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* Simple fade-in on scroll */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Home: above-the-fold should render immediately (avoid delaying LCP) */
.page-home .hero .reveal {
  opacity: 1;
  transform: none;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 3500;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(14, 20, 44, 0.96);
  box-shadow: var(--shadow);
  padding: 14px;
}
@media (min-width: 720px) {
  .cookie-banner {
    left: auto;
    right: 16px;
    width: min(560px, calc(100vw - 32px));
  }
}
.cookie-banner strong {
  display: block;
  margin-bottom: 6px;
  color: #fff !important;
}
.cookie-banner .muted {
  font-size: 13px;
  color: rgba(226, 232, 240, 0.78) !important;
}
.cookie-banner .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.cookie-banner {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.cookie-banner[data-hide="true"] {
  opacity: 0;
  transform: translateY(10px);
}

/* Chat widget */
.chat-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, var(--primary), rgba(124, 92, 255, 0.55));
  color: white;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-fab:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.chat-panel {
  position: fixed;
  right: 16px;
  bottom: 80px;
  z-index: 9999;
  width: min(380px, calc(100vw - 32px));
  height: 520px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(14, 20, 44, 0.98);
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.chat-title {
  font-weight: 700;
  color: #fff;
}
.chat-close {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  border-radius: 12px;
  padding: 8px 10px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-close:hover {
  background: rgba(255, 255, 255, 0.1);
}
.chat-messages {
  padding: 12px;
  height: calc(100% - 54px - 62px);
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.chat-bubble {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
}
.chat-bubble.user {
  align-self: flex-end;
  background: rgba(124, 92, 255, 0.18);
  border-color: rgba(124, 92, 255, 0.35);
}
.chat-bubble.bot {
  align-self: flex-start;
}
.chat-bubble a {
  color: rgba(255, 255, 255, 0.95);
}
.chat-input {
  display: flex;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.chat-input input {
  flex: 1;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 10px 12px;
}
.chat-send {
  border-radius: 14px;
  border: 1px solid transparent;
  background: linear-gradient(
    135deg,
    rgba(46, 230, 166, 1),
    rgba(46, 230, 166, 0.55)
  );
  color: #0b1020;
  font-weight: 700;
  padding: 10px 12px;
  cursor: pointer;
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    filter 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.chat-send:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.typing {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}
.typing span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  opacity: 0.35;
  animation: dot 1s infinite;
}
.typing span:nth-child(2) {
  animation-delay: 0.15s;
}
.typing span:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes dot {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-3px);
    opacity: 0.9;
  }
}

@media (max-width: 560px) {
  .chat-panel {
    right: 8px;
    left: 8px;
    width: auto;
    bottom: 72px;
    height: min(78vh, 620px);
  }
  .chat-fab {
    right: 10px;
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .chat-panel,
  .chat-fab,
  .chat-send,
  .chat-close,
  .cookie-banner {
    transition: none;
  }
  .typing span {
    animation: none;
    opacity: 0.8;
  }
}

/* Chat: corpo messaggi sul pannello scuro */
.chat-panel {
  color: #e2e8f0;
}
.chat-panel .chat-input input {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  color: #f8fafc;
}
.chat-bubble {
  color: #e2e8f0;
}

.cookie-banner .muted a {
  color: #a5b4fc;
}

/* Home: icone vantaggi + carta in evidenza */
.card-feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 10px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(109, 75, 214, 0.12),
    rgba(13, 159, 115, 0.1)
  );
  color: var(--primary);
}
.card-feature-icon svg {
  display: block;
}
.cards-grid--features .school-card strong {
  display: block;
  margin-top: 2px;
}

/* Stats section */
.fx-stats {
  background: var(--header-footer-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 18px 14px;
  color: #e2e8f0;
  overflow: hidden;
  position: relative;
}
.fx-stats::before {
  content: "";
  position: absolute;
  inset: -120px -120px auto auto;
  width: 380px;
  height: 300px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(46, 230, 166, 0.35),
    transparent 62%
  );
  transform: rotate(25deg);
  opacity: 0.85;
}
.fx-stats-head {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.fx-stats-head h2 {
  margin: 0;
  color: #fff;
}
.fx-stats-head .muted {
  color: rgba(226, 232, 240, 0.78);
}
.fx-stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .fx-stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.fx-stat {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 14px 14px;
  backdrop-filter: blur(8px);
}
.fx-stat-num {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.4px;
  margin: 0 0 4px;
  color: #fff;
}
.fx-stat-label {
  margin: 0;
  color: rgba(226, 232, 240, 0.8);
  font-size: 13px;
}

/* Newsletter callout */
.fx-newsletter {
  border-radius: var(--radius);
  border: 1px solid rgba(109, 75, 214, 0.25);
  background: linear-gradient(
    135deg,
    rgba(109, 75, 214, 0.18),
    rgba(46, 230, 166, 0.12)
  );
  box-shadow:
    0 18px 55px rgba(109, 75, 214, 0.12),
    var(--shadow);
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
}
.fx-newsletter::after {
  content: "";
  position: absolute;
  inset: -120px auto auto -140px;
  width: 380px;
  height: 320px;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(124, 92, 255, 0.35),
    transparent 62%
  );
  transform: rotate(-12deg);
  opacity: 0.9;
  pointer-events: none;
}
.fx-newsletter-inner {
  position: relative;
  display: grid;
  gap: 12px;
}
@media (min-width: 920px) {
  .fx-newsletter-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }
}
.fx-newsletter h2 {
  margin: 0 0 6px;
}
.fx-newsletter .lead {
  margin: 0;
}
.fx-newsletter-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 560px) {
  .fx-newsletter-form {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
  .fx-newsletter-form .cta-row {
    margin-top: 0 !important;
  }
}
.card--accent {
  border: 2px solid rgba(109, 75, 214, 0.45);
  background: linear-gradient(
    160deg,
    rgba(109, 75, 214, 0.1) 0%,
    rgba(13, 159, 115, 0.08) 100%
  );
  box-shadow:
    0 14px 40px rgba(109, 75, 214, 0.12),
    var(--shadow);
}
.card--accent .card-feature-icon {
  background: rgba(255, 255, 255, 0.55);
  color: #5b21b6;
}

.slide-inner--review .review-slide-text {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}
.review-slide-meta {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* Articoli: griglia card */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 720px) {
  .articles-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.article-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}
.article-card-img {
  aspect-ratio: 16 / 9;
  width: 100%;
  object-fit: cover;
  background: #e2e8f0;
}
.article-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: var(--muted);
}
.article-card-title {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text);
}
.article-card-excerpt {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.article-feature-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  border: 2px solid rgba(109, 75, 214, 0.35);
  background: linear-gradient(
    135deg,
    rgba(109, 75, 214, 0.08),
    rgba(13, 159, 115, 0.06)
  );
}
.article-feature-card:hover {
  border-color: rgba(109, 75, 214, 0.55);
}
.article-feature-card .article-card-img {
  max-height: 220px;
}
.article-feature-card .article-card-title {
  font-size: 1.2rem;
}

/* FAQ accordion (sport) */
.faq-accordion {
  display: grid;
  gap: 12px;
  max-width: 800px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-align: left;
  transition: background 0.2s ease;
}
.faq-trigger:hover {
  background: #f8fafc;
}
.faq-trigger .faq-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  color: var(--primary);
  transition: transform 0.35s ease;
}
.faq-item.is-open .faq-trigger .faq-icon {
  transform: rotate(45deg);
}
.faq-panel {
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 0;
}
.faq-item.is-open .faq-panel {
  max-height: 1000px;
}
.faq-panel-inner {
  overflow: hidden;
  min-height: 0;
}
.faq-content {
  padding: 9px 18px 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.faq-content p {
  margin: 0 0 10px;
}
.faq-content p:last-child {
  margin-bottom: 0;
}

/* Pagina articolo singolo */
.article-page-header {
  margin-bottom: 18px;
}
.article-page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 16px;
}
.article-page-lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.55;
  margin: 0 0 20px;
}
.article-page-cover {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 22px;
  border: 1px solid var(--border);
}
.article-prose {
  max-width: 720px;
}
.article-prose p {
  margin: 0 0 14px;
  color: var(--text);
  line-height: 1.65;
}
.breadcrumb {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 12px;
}
.breadcrumb a {
  color: var(--link);
  text-decoration: none !important;
}
.breadcrumb a:hover {
  text-decoration: underline !important;
}

/* About: team cards */
.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 720px) {
  .team-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.team-card {
  padding: 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
}
.team-avatar {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  flex: 0 0 54px;
}
.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-name {
  font-weight: 800;
  margin: 0;
}
.team-role {
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* About: partner benefits list */
.cards-grid.cards-grid--list {
  grid-template-columns: 1fr;
  max-width: 780px;
}
.cards-grid.cards-grid--list .school-card {
  display: grid;
  grid-template-columns: 1fr;
}

/* Sport da Casa — home cards */
.cards-grid--sport-casa {
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .cards-grid--sport-casa {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 960px) {
  .cards-grid--sport-casa {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.sport-casa-card {
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}
.sport-casa-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.12);
}
.sport-casa-card strong {
  display: block;
  margin: 10px 0 6px;
}
.sport-casa-card .btn {
  margin-top: auto;
  align-self: flex-start;
}
