@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&family=Plus+Jakarta+Sans:ital,wght@0,500;0,600;0,700;0,800;1,600&family=Source+Sans+3:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&display=swap");

:root {
  --brand: #ff3e00;
  --brand-dark: #cc3200;
  --brand-h: 15;
  --brand-s: 100%;
  --brand-l: 50%;
  --brand-6: hsl(var(--brand-h) var(--brand-s) var(--brand-l) / 0.06);
  --brand-8: hsl(var(--brand-h) var(--brand-s) var(--brand-l) / 0.08);
  --brand-10: hsl(var(--brand-h) var(--brand-s) var(--brand-l) / 0.1);
  --brand-12: hsl(var(--brand-h) var(--brand-s) var(--brand-l) / 0.12);
  --brand-16: hsl(var(--brand-h) var(--brand-s) var(--brand-l) / 0.16);
  --brand-18: hsl(var(--brand-h) var(--brand-s) var(--brand-l) / 0.18);
  --brand-20: hsl(var(--brand-h) var(--brand-s) var(--brand-l) / 0.2);
  --brand-22: hsl(var(--brand-h) var(--brand-s) var(--brand-l) / 0.22);
  --brand-25: hsl(var(--brand-h) var(--brand-s) var(--brand-l) / 0.25);
  --brand-55: hsl(var(--brand-h) var(--brand-s) var(--brand-l) / 0.55);
  --brand-78: hsl(var(--brand-h) var(--brand-s) var(--brand-l) / 0.78);
  --brand-92: hsl(var(--brand-h) var(--brand-s) var(--brand-l) / 0.92);
  --background: hsl(0, 0%, 100%);
  --foreground: hsl(240, 10%, 3.9%);
  --card: hsl(0, 0%, 100%);
  --muted-foreground: hsl(240, 3.8%, 46.1%);
  --secondary: hsl(240, 4.8%, 95.9%);
  --border: hsl(240, 5.9%, 90%);
  --radius: 0.5rem;
  --radius-md: 0.625rem;
  /* Testi: Source Sans 3 — ottima leggibilità su schermo (Adobe UI font). */
  --font-sans: "Source Sans 3", ui-sans-serif, system-ui, sans-serif;
  /* Titoli: Plus Jakarta Sans — chiaro, moderno, meno “compresso” di un display stretto. */
  --font-display: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --nav-height: 3.5rem;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --sticky-bg: hsla(0, 0%, 100%, 0.88);

  /* Typography scale (uniform across pages) */
  --text-base: 1.0625rem;
  --text-sm: 0.9375rem;
  --text-xs: 0.875rem;
  --h1: clamp(2rem, 6vw, 3rem);
  --h2: clamp(1.6rem, 5vw, 2.25rem);
  --h3: 1.25rem;
}

@media (min-width: 768px) {
  :root {
    --nav-height: 4rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--border);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 0.75rem);
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  font-weight: 400;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--brand);
  color: #fff;
  font-weight: 600;
  border-radius: var(--radius);
}

.skip-link:focus {
  left: 0.75rem;
  outline: 2px solid var(--foreground);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

::selection {
  background: var(--brand);
  color: #fff;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

.font-display {
  font-family: var(--font-display);
}

.text-brand {
  color: var(--brand);
}

.bg-brand {
  background-color: var(--brand);
}

/* Nav */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: 100%;
  border-bottom: 1px solid var(--border);
  background: hsla(0, 0%, 100%, 0.8);
  backdrop-filter: blur(12px);
}

/* Compensa l'header fixed per evitare che il contenuto finisca sotto la nav. */
body {
  padding-top: var(--nav-height);
}

.logo-link {
  text-decoration: none;
  color: inherit;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-nav-inner {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-img {
  display: block;
  height: 40px;
  width: auto;
}

.logo-img--footer {
  height: 48px;
}

.logo-mark {
  background: var(--brand);
  padding: 0.375rem;
  border-radius: 0.125rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .logo-img {
    height: 65px;
  }

  .logo-img--footer {
    height: 52px;
  }
}

.logo-mark svg {
  width: 1.5rem;
  height: 1.5rem;
  color: #fff;
  fill: currentColor;
}

.logo-text {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4vw, 1.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.logo-text-footer {
  font-size: 1.75rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  font-weight: 700;
  transition: background 0.2s, color 0.2s, transform 0.2s;
  border-radius: var(--radius-md);
}

.btn-brand {
  background: var(--brand);
  color: #fff;
  padding: 0.5rem 1.5rem;
  font-size: 0.875rem;
}

.btn-brand:hover {
  background: var(--brand-dark);
}

.btn-brand:active {
  transform: scale(0.98);
}

.btn-nav-cta {
  display: none;
}

@media (min-width: 768px) {
  .btn-nav-cta {
    display: inline-flex;
  }
}

.btn-icon {
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem;
}

.btn-ghost {
  background: transparent;
  padding: 0.5rem;
}

.btn-ghost:hover {
  background: var(--secondary);
}

.btn-lg {
  width: 100%;
  padding: 1rem 1.5rem;
  font-size: 1.0625rem;
  text-transform: none;
  min-height: 48px;
}

@media (min-width: 640px) {
  .btn-lg {
    width: auto;
    padding: 1.125rem 2rem;
    font-size: 1.25rem;
  }
}

@media (min-width: 900px) {
  .btn-lg {
    padding: 1.5rem 2.75rem;
    font-size: 1.5rem;
  }

  .btn-lg:hover {
    transform: scale(1.03);
  }
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  padding: 1rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  width: 100%;
  min-height: 48px;
}

@media (min-width: 640px) {
  .btn-outline-white {
    width: auto;
    padding: 1.125rem 2rem;
    font-size: 1.25rem;
  }
}

@media (min-width: 900px) {
  .btn-outline-white {
    padding: 1.5rem 2.75rem;
    font-size: 1.5rem;
  }
}

.btn-outline-white:hover {
  background: #fff;
  color: #000;
}

.btn-block {
  width: 100%;
}

.btn-outline-dark {
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.75rem 2rem;
}

.btn-outline-dark:hover {
  background: var(--secondary);
}

.nav-toggle {
  display: flex;
}

@media (min-width: 768px) {
  .nav-toggle {
    display: none;
  }
}

/* Sheet (mobile menu) */
.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}

.sheet-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.sheet-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(22rem, 100vw);
  height: 100%;
  height: 100dvh;
  background: var(--background);
  z-index: 101;
  padding: max(1rem, env(safe-area-inset-top, 0px)) 1.25rem 1.5rem;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  overflow-y: auto;
}

.sheet-backdrop.is-open .sheet-panel {
  transform: translateX(0);
}

.sheet-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.5rem;
}

.sheet-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.sheet-cta {
  margin-top: 0.5rem;
}

.sheet-nav {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.sheet-nav a {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.sheet-sep {
  height: 1px;
  background: var(--border);
  margin: 0.5rem 0;
}

.sheet-nav .btn-brand {
  width: 100%;
  padding: 1.5rem;
  font-size: 1.125rem;
}

/* Intestazione pagina — senza hero a tutta schermo */
.page-top {
  padding: 1.25rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  background: var(--background);
}

.page-top-inner {
  max-width: 40rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-title {
  font-family: var(--font-display);
  font-size: var(--h1);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.5rem;
}

.page-tagline {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--muted-foreground);
}

.page-top-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.btn-page-cta {
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  border-radius: var(--radius-md);
  text-decoration: none;
}

.btn-page-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-page-secondary:hover {
  border-color: var(--brand);
  background: var(--brand-6);
}

.publish-section {
  padding: 2.25rem 0 4rem;
}

.publish-card {
  max-width: 52rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.publish-card h2 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.publish-card p {
  margin: 0 0 1rem;
  color: var(--muted-foreground);
}

.publish-list {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.publish-list li {
  margin-bottom: 0.5rem;
}

.publish-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1rem;
}

.publish-note {
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

/* Pagina Calendario (mensile) */
.calendar-section {
  padding: 1.25rem 0 3rem;
  background: linear-gradient(180deg, hsla(240, 4.8%, 97%, 0.65) 0%, var(--background) 100%);
}

.calendar-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .calendar-layout {
    grid-template-columns: 1fr minmax(22rem, 28rem);
    align-items: start;
  }
}

.calendar-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.75rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, hsla(0, 0%, 100%, 0.85), hsla(0, 0%, 100%, 0.65));
  backdrop-filter: blur(10px);
}

.calendar-nav {
  border: 1px solid transparent;
  border-radius: 999px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.calendar-nav:hover {
  border-color: var(--brand-25);
  background: var(--brand-8);
  transform: translateY(-1px);
}

.calendar-title {
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.calendar-title span {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.5rem;
  padding: 0.85rem;
  background: radial-gradient(120% 80% at 50% 0%, var(--brand-6) 0%, transparent 60%);
}

.calendar-cell {
  position: relative;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #fff, hsla(240, 4.8%, 97%, 0.7));
  aspect-ratio: 1 / 1;
  padding: 0.45rem 0.5rem;
  text-align: left;
  border-radius: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
  cursor: pointer;
}

.calendar-cell:hover {
  transform: translateY(-1px);
  border-color: var(--brand-22);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08);
}

.calendar-cell--pad {
  border: none;
  background: transparent;
}

.calendar-cell--disabled {
  opacity: 0.55;
  cursor: default;
}

.calendar-cell--disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}

.calendar-cell--has {
  background: linear-gradient(180deg, var(--brand-92), var(--brand-78));
  border-color: var(--brand-55);
  box-shadow: 0 0 0 3px var(--brand-16);
}

.calendar-cell--today {
  border-color: hsla(222, 84%, 55%, 0.35);
  box-shadow: 0 0 0 3px hsla(222, 84%, 55%, 0.1);
  background: linear-gradient(180deg, #fff, hsla(222, 84%, 55%, 0.06));
}

.calendar-cell--has .calendar-day {
  color: #fff;
}

.calendar-cell--has .calendar-badge {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.calendar-cell--today.calendar-cell--has {
  border-color: var(--brand-55);
  box-shadow: 0 0 0 3px var(--brand-16);
}

.calendar-cell.is-selected {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-20), 0 18px 44px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.calendar-day {
  font-weight: 800;
  font-size: 0.95rem;
}

.calendar-cell--has::after {
  content: "";
  position: absolute;
  left: 0.5rem;
  bottom: 0.5rem;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: var(--brand-55);
  box-shadow: 0 0 0 4px var(--brand-10);
}

.calendar-cell--today::after {
  background: hsla(222, 84%, 55%, 0.55);
  box-shadow: 0 0 0 4px hsla(222, 84%, 55%, 0.12);
}

.calendar-cell.is-selected::after {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0 0 4px var(--brand-22);
}

.calendar-badge {
  position: absolute;
  top: 0.35rem;
  right: 0.35rem;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--brand-12);
  color: var(--brand);
  font-weight: 900;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--brand-18);
}

@media (max-width: 640px) {
  /* Mobile: più leggibile, meno “rumore” */
  .calendar-badge {
    display: none;
  }

  .calendar-cell--has::after {
    display: none;
  }

  .calendar-cell.is-selected {
    box-shadow: 0 0 0 3px var(--brand-22), 0 18px 44px rgba(15, 23, 42, 0.12);
  }

  .calendar-cell--has.is-selected .calendar-day {
    color: #fff;
  }
}

.calendar-detail {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.calendar-detail-head {
  padding: 1rem 1rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, hsla(0, 0%, 100%, 0.85), hsla(0, 0%, 100%, 0.65));
}

.calendar-detail-title {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
}

.calendar-detail-meta {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.9rem;
}

.calendar-detail-body {
  padding: 1rem;
}

.calendar-empty {
  text-align: center;
  color: var(--muted-foreground);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.calendar-empty.is-hidden {
  display: none;
}

@media (min-width: 1024px) {
  .calendar-detail {
    position: sticky;
    top: calc(var(--nav-height) + 1rem);
  }
}

/* Blocco subito sotto: prossime date */
.soon-section {
  padding: 1.25rem 0 1.75rem;
  background: linear-gradient(180deg, hsla(240, 4.8%, 97%, 0.65) 0%, var(--background) 100%);
  border-bottom: 1px solid var(--border);
}

.soon-head {
  margin-bottom: 1rem;
}

.soon-head h2 {
  font-family: var(--font-display);
  font-size: var(--h2);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 0.35rem;
}

.soon-sub {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--muted-foreground);
  max-width: 32rem;
}

.section-kicker-tight {
  padding-top: 0;
  margin-bottom: 0.35rem;
}

.featured-scroller--soon {
  margin-bottom: 0;
}

.soon-section--week {
  padding-top: 2.25rem;
}

.featured-scroller--week {
  margin-bottom: 0;
}

.home-owl-section {
  padding: 1.25rem 0 1.75rem;
  background: linear-gradient(180deg, hsla(240, 4.8%, 97%, 0.65) 0%, var(--background) 100%);
}

.home-owl .home-owl-item {
  padding-bottom: 0.5rem;
}

.home-owl .owl-dots .owl-dot span {
  background: var(--border);
}

.home-owl .owl-dots .owl-dot.active span,
.home-owl .owl-dots .owl-dot:hover span {
  background: var(--brand);
}

.home-carousel-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.1rem;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.home-carousel-body {
  padding: 1rem 1rem 1.1rem;
  display: grid;
  gap: 0.55rem;
}

.home-carousel-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.home-carousel-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.home-carousel-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.55rem;
  flex-shrink: 0;
}

.home-carousel-price {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: var(--brand-12);
  color: var(--brand);
  font-weight: 900;
  font-size: 0.9rem;
  line-height: 1;
  white-space: nowrap;
}

.home-carousel-organizer-logo {
  width: 6.5rem;
  height: 2.75rem;
  object-fit: contain;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  padding: 0.35rem 0.5rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.14);
}

.home-carousel-meta {
  font-size: 0.95rem;
  color: var(--muted-foreground);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.home-carousel-circuit {
  color: var(--foreground);
  font-weight: 700;
  text-decoration: none;
}

.home-carousel-circuit:hover {
  color: var(--brand);
}

.home-carousel-sep {
  opacity: 0.65;
}

.home-carousel-org {
  font-weight: 600;
}

.home-carousel-cta .btn {
  width: 100%;
}

.home-carousel-fallback {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.5rem;
}

.home-carousel-fallback .home-owl-item {
  flex: 0 0 min(88vw, 22rem);
  scroll-snap-align: start;
}

/* Stats */
.stats-section {
  background: linear-gradient(180deg, hsla(240, 4.8%, 97%, 0.9) 0%, var(--background) 100%);
  padding: 2.5rem 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 768px) {
  .stats-section {
    padding: 4rem 0;
  }
}

.stat-card {
  padding: 0.75rem 0.25rem;
  border-radius: var(--radius-md);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0 auto 0.5rem;
  color: var(--brand);
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 6vw, 2.25rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.stat-label {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  color: var(--muted-foreground);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}

/* Featured */
.section-kicker {
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-foreground);
  margin: 0 0 0.25rem;
  padding-top: 1.5rem;
}

.featured-scroller {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  overflow-x: auto;
  overflow-y: visible;
  padding: 0.35rem 0 1rem;
  margin: 0 calc(-1 * max(1rem, env(safe-area-inset-left, 0px)));
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.featured-scroller::-webkit-scrollbar {
  height: 6px;
}

.featured-scroller::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 999px;
}

.featured-scroller .card {
  flex: 0 0 min(88vw, 18rem);
  scroll-snap-align: start;
  scroll-snap-stop: always;
  max-width: 100%;
}

@media (min-width: 768px) {
  .featured-scroller {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
    overflow: visible;
    margin: 0;
    padding: 0;
    scroll-snap-type: none;
  }

  .featured-scroller .card {
    flex: none;
  }
}

/* Track cards — lista compatta su mobile, griglia su desktop */
.track-day-grid {
  display: grid;
  gap: 0.875rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .track-day-grid {
    grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr));
    gap: 1.5rem;
  }
}

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.25s;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
  }

  .card:hover .card-img-wrap img {
    transform: scale(1.06);
  }
}

.card-body-stack {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.track-grid-wrap .card-event.card {
  flex-direction: row;
  align-items: stretch;
}

.track-grid-wrap .card-event .card-body-stack {
  align-self: stretch;
}

.track-grid-wrap .card-event .card-img-wrap {
  width: 7.25rem;
  min-width: 7.25rem;
  height: 7.25rem;
  min-height: 7.25rem;
  flex-shrink: 0;
  align-self: center;
}

.track-grid-wrap .card-event .card-img-wrap img {
  min-height: 0;
}

.track-grid-wrap .card-event .card-header-row {
  padding: 0.75rem 0.875rem 0.35rem;
  gap: 0.35rem;
}

.track-grid-wrap .card-event .card-header-row h3 {
  font-size: 1rem;
  line-height: 1.2;
}

.track-grid-wrap .card-event .card-price {
  font-size: 1.125rem;
}

.track-grid-wrap .card-event .card-body {
  padding: 0 0.875rem 0.65rem;
  gap: 0.35rem;
}

.track-grid-wrap .card-event .card-meta {
  font-size: 0.8125rem;
}

.track-grid-wrap .card-event .card-desc {
  display: none;
}

.track-grid-wrap .card-event .card-footer {
  padding: 0 0.875rem 0.75rem;
  margin-top: auto;
}

.track-grid-wrap .card-event .card-footer .btn-brand {
  padding: 0.625rem 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
}

@media (min-width: 768px) {
  .track-grid-wrap .card-event.card {
    flex-direction: column;
  }

  .track-grid-wrap .card-event .card-img-wrap {
    width: 100%;
    min-width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 1 / 1;
  }

  .track-grid-wrap .card-event .card-img-wrap img {
    min-height: 0;
  }

  .track-grid-wrap .card-event .card-header-row {
    padding: 1rem 1rem 0.5rem;
  }

  .track-grid-wrap .card-event .card-header-row h3 {
    font-size: 1.25rem;
  }

  .track-grid-wrap .card-event .card-price {
    font-size: 1.5rem;
  }

  .track-grid-wrap .card-event .card-body {
    padding: 0 1rem 1rem;
    gap: 0.75rem;
  }

  .track-grid-wrap .card-event .card-meta {
    font-size: 0.875rem;
  }

  .track-grid-wrap .card-event .card-desc {
    display: -webkit-box;
  }

  .track-grid-wrap .card-event .card-footer {
    padding: 0 1rem 1rem;
  }

  .track-grid-wrap .card-event .card-footer .btn-brand {
    padding: 0.75rem;
    font-size: inherit;
    letter-spacing: 0.05em;
  }
}

.card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background: hsla(240, 4.8%, 94%, 1);
  background-size: cover;
  background-position: center;
}

.card-img-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--card-img);
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  filter: blur(14px) saturate(1.05);
  opacity: 0.8;
}

.card-img-wrap img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.event-date-badge {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 2;
  padding: 0.45rem 0.7rem;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.weather-badge {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  z-index: 2;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.weather-badge svg {
  width: 1.25rem;
  height: 1.25rem;
  display: block;
}

.event-circuit-badge {
  max-width: 100%;
  padding: 0.55rem 0.8rem;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.48));
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--brand);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1.05;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-track-map {
  width: 7.25rem;
  height: 4.6rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0.35rem;
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.event-track-map img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: none;
}

.event-bottom-left {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: flex-start;
  max-width: calc(100% - 1.5rem);
}

.event-circuit-thumb {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 4.9rem;
  height: auto;
  overflow: visible;
  z-index: 1;
}

.event-circuit-thumb img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 0.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

@media (min-width: 640px) {
  .event-track-map {
    width: 8.2rem;
    height: 5.2rem;
  }
  .event-circuit-thumb {
    width: 5.4rem;
    height: auto;
  }
}

@media (min-width: 1024px) {
  .event-circuit-thumb {
    right: 1rem;
    bottom: 1rem;
  }
  .event-date-badge {
    left: 1rem;
    top: 1rem;
    font-size: 1rem;
  }
  .event-track-map {
    width: 9.2rem;
    height: 5.8rem;
  }
  .event-bottom-left {
    left: 1rem;
    bottom: 1rem;
    max-width: calc(100% - 2rem);
  }
}

.event-price-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
  flex-shrink: 0;
}

.event-organizer-logo {
  width: 4.6rem;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.card-badges {
  position: absolute;
  z-index: 3;
  top: 0.5rem;
  right: 0.5rem;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.125rem 0.5rem;
  border-radius: calc(var(--radius) - 2px);
  color: #fff;
}

.badge-green {
  background: #16a34a;
}

.badge-blue {
  background: #2563eb;
}

.badge-orange {
  background: var(--brand);
}

.badge-both {
  background: #7c3aed;
}

.card-header-row {
  padding: 1rem 1rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.card-header-row h3 {
  font-family: var(--font-display);
  font-size: var(--h3);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
}

.card-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--brand);
  white-space: nowrap;
}

.card-price-badge {
  flex-shrink: 0;
  padding: 0.35rem 0.6rem;
  border-radius: 9999px;
  background: rgba(255, 62, 0, 0.12);
  border: 1px solid rgba(255, 62, 0, 0.25);
  color: var(--brand-dark);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
}

.card-body {
  padding: 0 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.card-meta {
  display: flex;
  align-items: center;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}

.card-circuit-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(100, 116, 139, 0.55);
  text-underline-offset: 3px;
}

.card-circuit-link:hover {
  color: var(--brand);
  text-decoration-color: rgba(255, 62, 0, 0.55);
}

.org-mini-logo {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #fff;
  object-fit: contain;
  padding: 2px;
  flex-shrink: 0;
  margin-right: 0.4rem;
}

.card-meta svg {
  width: 1rem;
  height: 1rem;
  margin-right: 0.5rem;
  flex-shrink: 0;
  color: var(--brand);
}

.card-org {
  color: var(--foreground);
  font-weight: 600;
}

.card-desc {
  font-size: 0.9375rem;
  line-height: 1.55;
  font-style: italic;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  padding: 0 1rem 1rem;
}

.card-footer .btn-brand {
  width: 100%;
  padding: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
}

/* Events section */
.events-section {
  padding: 2.5rem 0 4rem;
}

@media (min-width: 768px) {
  .events-section {
    padding: 4rem 0 5rem;
  }
}

.events-intro {
  margin-bottom: 1.25rem;
}

.events-intro h2 {
  font-family: var(--font-display);
  font-size: var(--h2);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
}

.events-intro-text {
  font-size: 1.0625rem;
  color: var(--muted-foreground);
  margin: 0.65rem 0 0;
  line-height: 1.65;
  max-width: 40rem;
}

@media (min-width: 768px) {
  .events-intro-text {
    font-size: 1.125rem;
  }
}

.events-sticky {
  position: sticky;
  top: var(--nav-height);
  z-index: 35;
  background: var(--sticky-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 0.65rem 0 0.85rem;
  margin-bottom: 1.25rem;
}

.events-sticky-inner {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.events-toolbar-top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .events-toolbar-top {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
}

.sort-wrap {
  flex-shrink: 0;
}

.select-sort {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 2.25rem 0.5rem 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background);
  color: var(--foreground);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  cursor: pointer;
}

@media (min-width: 640px) {
  .select-sort {
    width: auto;
    min-width: 16rem;
  }
}

.select-sort:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.result-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--secondary);
  padding: 0.5rem 0.75rem;
  border-radius: 9999px;
  color: var(--muted-foreground);
  line-height: 1.4;
  margin: 0;
}

@media (min-width: 640px) {
  .result-pill {
    font-size: 0.8125rem;
    padding: 0.5rem 1rem;
  }
}

.result-pill-strong {
  font-weight: 700;
  color: var(--foreground);
}

.result-pill-sep {
  margin: 0 0.2rem;
  opacity: 0.5;
}

.events-list-wrap {
  padding-bottom: 2rem;
}

.btn-load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 22rem;
  margin: 0 auto;
  min-height: 48px;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--foreground);
  background: var(--background);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, background 0.2s;
}

.btn-load-more:hover {
  border-color: var(--brand);
  background: var(--brand-6);
}

.load-more-wrap {
  margin-top: 1.75rem;
  text-align: center;
}

.load-more-wrap.is-hidden {
  display: none;
}

/* Filters */
.filters-box {
  background: hsla(240, 4.8%, 96%, 0.85);
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 0;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
  .filters-box {
    padding: 1.25rem 1.5rem;
  }
}

.filters-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

@media (min-width: 768px) {
  .filters-row {
    flex-direction: row;
    align-items: stretch;
  }
}

.search-wrap {
  position: relative;
  flex: 1;
}

.search-wrap svg {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--muted-foreground);
  pointer-events: none;
}

.search-wrap input {
  width: 100%;
  min-height: 48px;
  padding: 0.625rem 0.75rem 0.625rem 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--background);
  font-size: 1rem;
}

.search-wrap input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--brand);
}

.filter-btns {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.filter-btns .btn {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  padding: 0.5rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--background);
}

@media (min-width: 768px) {
  .filter-btns .btn {
    flex: none;
  }
}

.filter-btns .btn.is-active {
  background: var(--foreground);
  color: var(--background);
  border-color: var(--foreground);
}

.btn-reset {
  background: transparent;
  border: none;
  color: var(--muted-foreground);
  min-height: 44px;
  padding: 0.5rem 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: var(--radius-md);
  width: 100%;
}

@media (min-width: 768px) {
  .btn-reset {
    width: auto;
    padding: 0.5rem 0.75rem;
  }
}

.btn-reset:hover {
  color: var(--foreground);
}

/* Empty state */
.empty-state {
  padding: 8rem 1rem;
  text-align: center;
}

.empty-state.is-hidden {
  display: none;
}

.empty-icon {
  display: inline-flex;
  padding: 1.5rem;
  background: var(--secondary);
  border-radius: 9999px;
  margin-bottom: 1.5rem;
}

.empty-icon svg {
  width: 4rem;
  height: 4rem;
  color: var(--muted-foreground);
}

.empty-state h3 {
  font-size: 1.875rem;
  margin: 0 0 1rem;
}

.empty-state p {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

.track-grid-wrap.is-hidden {
  display: none;
}

.card-event.is-hidden {
  display: none;
}

/* Why section */
.why-section {
  background: #000;
  color: #fff;
  padding: 6rem 0;
}

.why-section h2 {
  font-family: var(--font-display);
  font-size: var(--h2);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-align: center;
  margin: 0 0 1rem;
}

.why-lead {
  text-align: center;
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  max-width: 42rem;
  margin: 0 auto 4rem;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-card {
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  transition: background 0.2s;
}

.why-card:hover {
  background: rgba(255, 255, 255, 0.1);
}

.why-card svg {
  width: 3rem;
  height: 3rem;
  color: var(--brand);
  margin-bottom: 1rem;
}

.why-card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 0 0 1rem;
}

.why-card p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.65;
}

/* Footer */
.site-footer {
  background: #0b0f1a;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.92);
}

.footer-inner {
  padding: 5rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-top: 1.5rem;
}

.footer-newsletter-lead {
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.footer-col h4 {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.2em;
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.92);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 1rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.78);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--brand);
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 400px) {
  .newsletter-form {
    flex-direction: row;
    align-items: stretch;
  }
}

.newsletter-form input {
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.92);
}

.newsletter-form input:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--brand);
}

.newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.newsletter-form .btn-brand {
  padding: 0.75rem 1.5rem;
  min-height: 44px;
}

@media (min-width: 400px) {
  .newsletter-form .btn-brand {
    border-radius: var(--radius-md);
  }
}

.footer-sep {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 3rem 0;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.footer-social a:hover {
  color: var(--brand);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

body.sheet-open {
  overflow: hidden;
}

/* Pagina Organizzatori */
.nav-links a[aria-current="page"],
.sheet-nav a[aria-current="page"] {
  font-weight: 700;
  color: var(--brand);
}

.org-page-intro .page-tagline a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.org-page-intro .page-tagline a:hover {
  color: var(--brand-dark);
}

.org-count {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  color: var(--muted-foreground);
}

.org-count strong {
  color: var(--foreground);
}

.org-section {
  padding: 1.25rem 0 3rem;
}

.promoters-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .promoters-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .promoters-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.promoter-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

@media (min-width: 480px) {
  .promoter-card {
    flex-direction: row;
    align-items: flex-start;
  }
}

.promoter-logo-wrap {
  flex-shrink: 0;
  width: 6.5rem;
  height: 6.5rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsla(240, 4.8%, 96%, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.5rem;
}

@media (min-width: 480px) {
  .promoter-logo-wrap {
    margin: 0;
  }
}

.promoter-logo-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Organizzatori: logo più grande, top-center, senza box/padding */
.promoters-grid .promoter-card {
  text-align: center;
}

@media (min-width: 480px) {
  .promoters-grid .promoter-card {
    flex-direction: column;
    align-items: center;
  }
}

.promoters-grid .promoter-logo-wrap {
  width: 100%;
  height: auto;
  margin: 0 auto 0.75rem;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.promoters-grid .promoter-logo-wrap img {
  max-height: 110px;
  width: auto;
}

.promoter-title-link {
  color: inherit;
  text-decoration: none;
}

.promoter-title-link:hover {
  color: var(--brand);
}

.promoter-body {
  flex: 1;
  min-width: 0;
}

.promoter-body h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
  line-height: 1.25;
}

.promoter-upcoming {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 1.35rem;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  flex-shrink: 0;
  transform: translateY(-0.02em);
}

.promoter-upcoming--corner {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
}

.promoter-contacts {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--muted-foreground);
  margin-bottom: 0.75rem;
}

.promoter-contact {
  display: flex;
  gap: 0.35rem;
  align-items: flex-start;
  margin-bottom: 0.35rem;
  word-break: break-word;
}

.promoter-contact:last-child {
  margin-bottom: 0;
}

.promoter-contact-icon {
  flex-shrink: 0;
  color: var(--brand);
  margin-top: 0.1rem;
}

.promoter-contact-icon svg {
  display: block;
}

.promoter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.promoter-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}

.promoter-link:hover {
  text-decoration: underline;
}

.promoter-link svg {
  flex-shrink: 0;
}

.promoter-card--empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
}

/* Pagina Circuiti */
.circuits-section {
  padding: 1rem 0 3rem;
}

.circuits-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .circuits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .circuits-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.circuit-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.circuit-card-img-wrap {
  position: relative;
  width: 100%;
  background: hsla(240, 4.8%, 94%, 1);
  overflow: hidden;
}

.circuit-card-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: hsla(240, 4.8%, 94%, 1);
  position: relative;
  overflow: hidden;
}

.circuit-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.circuit-events-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  min-width: 2.1rem;
  height: 2.1rem;
  padding: 0 0.6rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 0.95rem;
  line-height: 1;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

.circuit-track-map {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  width: 8.25rem;
  height: 5.25rem;
  padding: 0.5rem;
  border-radius: 0.85rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

.circuit-track-map img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0.6rem;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.45));
}

@media (min-width: 640px) {
  .circuit-track-map {
    width: 9.25rem;
    height: 5.75rem;
  }
}

@media (min-width: 1024px) {
  .circuit-track-map {
    right: 1rem;
    bottom: 1rem;
    width: 10.25rem;
    height: 6.25rem;
  }
}

.circuit-card-body {
  padding: 1rem 1.125rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

.circuit-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.3;
}

.circuit-card-meta {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--muted-foreground);
}

.circuit-card-desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--foreground);
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.btn-circuit-calendar {
  width: 100%;
  margin-top: 0.25rem;
}

.circuit-card--empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
}
