/* ====================================================
   ARENA DEI TEMPLI DI PAESTUM — MAIN STYLESHEET
   ==================================================== */

@import url('./fonts.css');

/* ====================================================
   CUSTOM PROPERTIES
   ==================================================== */

:root {
  --color-bg:           #000000;
  --color-primary:      #bf5e22;
  --color-primary-dark: #833200;
  --color-brown:        #7c5037;
  --color-cream:        #ffebd9;
  --color-teal:         #398398;
  --color-white:        #ffffff;

  --gradient-cta:    linear-gradient(259.59deg, #833200 0%, #bf5e22 93.54%);
  --gradient-footer: linear-gradient(160deg, #833200 0%, #bf5e22 100%);

  --font-primary:   'Barlow', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-secondary: 'Instrument Sans', 'Barlow', sans-serif;

  --radius-btn:     70px;
  --radius-card-lg: 20px;
  --radius-card-sm: 8px;

  --shadow-btn: 0 4px 4px rgba(0,0,0,0.25);
  --shadow-hover: 0 8px 28px rgba(191,94,34,0.45);

  --transition: 0.3s ease;

  --ease-out-strong: cubic-bezier(0.23, 1, 0.32, 1);
  --t-ui:   0.25s cubic-bezier(0.23, 1, 0.32, 1);
  --t-slow: 0.55s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ====================================================
   RESET & BASE
   ==================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Grain texture — fixed overlay sull'intera pagina */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 200px 200px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-white);
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

img    { max-width: 100%; height: auto; display: block; }
a      { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: transparent; }
input, textarea, select { font-family: inherit; }

/* ====================================================
   TYPOGRAPHY UTILITIES
   ==================================================== */

.label {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.section-title .dot { color: var(--color-primary); }
.section-title .accent { color: var(--color-primary); }

.section-sub {
  font-size: clamp(24px, 2.5vw, 30px);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.15;
}

.body-text {
  font-size: 16px;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  line-height: 1.65;
}

/* ====================================================
   LAYOUT
   ==================================================== */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  width: 100%;
}

.section { padding: 90px 0; }

/* ====================================================
   BUTTONS
   ==================================================== */

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: none;
  transition:
    box-shadow 0.30s cubic-bezier(0.23, 1, 0.32, 1),
    transform  0.30s cubic-bezier(0.23, 1, 0.32, 1);
  white-space: nowrap;
  line-height: 1;
}
.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: scale(0.97) translateY(0); }

/* Dark inversion overlay — slides in from right on hover */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #0c0c0c;
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 0.38s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  border-radius: inherit;
}
.btn:hover::before { transform: scaleX(1); }

/* Cursor spotlight */
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
    circle 90px at var(--mx, 50%) var(--my, 50%),
    rgba(255, 255, 255, 0.14),
    transparent 65%
  );
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  border-radius: inherit;
}
.btn:hover::after { opacity: 1; }

.btn:focus-visible {
  outline: 2px solid rgba(255,255,255,.85);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--gradient-cta);
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}
/* Outer ring appears on hover (no layout shift) */
.btn-primary:hover {
  box-shadow: 0 0 0 2px var(--color-primary), 0 8px 28px rgba(191,94,34,.18);
}

.btn-ticketone {
  background: #202867;
  color: var(--color-white);
  box-shadow: var(--shadow-btn);
}
.btn-ticketone:hover {
  box-shadow: 0 0 0 2px #3448c5, 0 8px 28px rgba(32,40,103,.35);
}

.btn-outline {
  background: transparent;
  color: var(--color-white);
  border: 2px solid var(--color-primary);
  transition:
    border-color 0.26s cubic-bezier(0.23, 1, 0.32, 1),
    box-shadow   0.30s cubic-bezier(0.23, 1, 0.32, 1),
    transform    0.30s cubic-bezier(0.23, 1, 0.32, 1);
}
/* Outline::before: orange gradient fill (overrides dark inversion) */
.btn-outline::before {
  inset: 0;
  background: var(--gradient-cta);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s cubic-bezier(0.23, 1, 0.32, 1);
}
.btn-outline:hover::before { transform: scaleX(1); }
.btn-outline:hover {
  border-color: transparent;
  box-shadow: 0 0 0 2px rgba(191,94,34,.65), 0 8px 28px rgba(191,94,34,.18);
}

/* Ripple al click */
.btn-ripple {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  translate: -50% -50%;
  pointer-events: none;
  transform-origin: center;
}

/* ====================================================
   NAVBAR
   ==================================================== */

.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 18px 0;
  transition: background 0.3s ease, padding 0.3s cubic-bezier(0.23, 1, 0.32, 1), backdrop-filter 0.3s ease;
}

.navbar.scrolled {
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 10px 0;
}

.navbar-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.navbar-logo { flex-shrink: 0; }
.navbar-logo img { height: 72px; width: auto; transform: scale(1); transform-origin: left center; transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1); }
.navbar.scrolled .navbar-logo img { transform: scale(0.722); }

.navbar-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 108px; /* matches navbar: logo 72px + padding 18px*2 */
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  z-index: 1001;
  pointer-events: none;
  transition: height var(--transition);
}
.navbar-nav a { pointer-events: auto; }

/* Sync height with scrolled navbar — solo desktop */
@media (min-width: 769px) {
  .navbar.scrolled + .navbar-nav { height: 92px; }
}

.navbar-nav a {
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-white);
  transition: color var(--transition);
  position: relative;
}
.navbar-nav a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transition: transform 0.22s cubic-bezier(0.23, 1, 0.32, 1);
}
.navbar-nav a:hover { color: var(--color-primary); }
.navbar-nav a:hover::after { transform: scaleX(1); }
.navbar-nav a.active { color: var(--color-primary); }
.navbar-nav a.active::after { transform: scaleX(1); }

.navbar-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.navbar-search { opacity: 0.75; transition: opacity var(--transition); cursor: pointer; }
.navbar-search:hover { opacity: 1; }
.navbar-search img { width: 18px; height: 18px; }

.navbar-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.navbar-toggle span { display: block; width: 24px; height: 2px; background: var(--color-white); border-radius: 2px; transition: all 0.3s; }
.navbar-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggle.open span:nth-child(2) { opacity: 0; }
.navbar-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ====================================================
   FOOTER
   ==================================================== */

.footer {
  position: relative;
  overflow: hidden;
  background: #892d00;
}

.footer-wave {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.footer-wave img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

/* Partner strip */
.footer-partner-strip {
  position: relative;
  z-index: 1;
  border-bottom: 1px solid rgba(255,255,255,.12);
  padding: 26px 24px;
}
.footer-partner-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-partner-strip-text {
  font-family: 'Barlow', sans-serif;
  font-size: clamp(14px, 1.8vw, 18px);
  font-weight: 700;
  color: rgba(255,255,255,.88);
  letter-spacing: .01em;
}
.footer-partner-strip-cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  border: 1.5px solid rgba(255,255,255,.78);
  border-radius: 100px;
  font-family: 'Barlow', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  transition: background .18s, border-color .18s;
}
.footer-partner-strip-cta:hover {
  background: rgba(255,255,255,.12);
  border-color: #fff;
}

/* Main content area */
.footer-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 24px 36px;
}

/* 4-col grid */
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-logo { width: 140px; margin-bottom: 16px; }
.footer-logo img { width: 100%; }

.footer-contact-placeholder {
  font-style: italic;
  opacity: .6;
}

.footer-social {
  display: flex;
  gap: 12px;
}
.footer-social a {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 50%;
  color: rgba(255,255,255,.88);
  text-decoration: none;
  transition: background .18s, border-color .18s, color .18s;
}
.footer-social a:hover {
  background: rgba(255,255,255,.15);
  border-color: #fff;
  color: #fff;
}

.footer-col-title {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.62);
  margin-bottom: 18px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover { color: #fff; }

.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.footer-contact-list li svg {
  flex-shrink: 0;
  margin-top: 1px;
  color: rgba(255,255,255,.9);
}
.footer-contact-list li a,
.footer-contact-list li span {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  line-height: 1.45;
  transition: color .15s;
}
.footer-contact-list li a:hover { color: #fff; }

/* Bottom bar */
.footer-divider { width: 100%; height: 1px; background: rgba(255,255,255,.22); margin-bottom: 20px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.55);
}

.footer-legal {
  display: flex;
  gap: 20px;
}
.footer-legal a {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 12px;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .15s;
}
.footer-legal a:hover { color: rgba(255,255,255,.88); }

.footer-legal-data {
  width: 100%;
  padding-top: 14px;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 11px;
  line-height: 1.65;
  color: rgba(255,255,255,.38);
  border-top: 1px solid rgba(255,255,255,.08);
  margin-top: 14px;
}
.footer-legal-data a {
  color: rgba(255,255,255,.38);
  text-decoration: none;
  transition: color .15s;
}
.footer-legal-data a:hover { color: rgba(255,255,255,.7); }

/* Info utili column */
.footer-info-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-info-label {
  font-family: 'Barlow', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}

.footer-info-value {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,.65);
}

.footer-info-divider {
  height: 1px;
  background: rgba(255,255,255,.1);
  margin: 6px 0;
}

.footer-info-link {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  transition: color .15s;
}
.footer-info-link:hover { color: #fff; }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-col-brand { grid-column: 1 / -1; }
  .footer-tagline { max-width: none; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-partner-strip-inner { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ====================================================
   PAGE HERO (inner pages)
   ==================================================== */

.page-hero {
  position: relative;
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  padding-top: 100px;
}

.page-hero-bg {
  position: absolute; inset: 0;
}
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.55);
}

.page-hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 40px;
}
.page-hero-content .page-label {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 14px;
}
.page-hero-content .page-title {
  font-size: clamp(52px, 8vw, 96px);
  font-weight: 900;
  color: var(--color-white);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.page-hero-content .page-sub {
  font-size: clamp(13px, 1.6vw, 16px);
  font-weight: 500;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ====================================================
   HOME — HERO
   ==================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; will-change: transform; }
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.65) 100%);
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center;
  padding: 120px 40px 80px;
  display: flex; flex-direction: column; align-items: center; gap: 24px;
}

.hero-title {
  font-size: clamp(52px, 8vw, 110px);
  font-weight: 900;
  color: var(--color-white);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  text-align: center;
}

.hero-line-mask {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
}
.hero-line { display: block; }

.hero-subtitle {
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 500;
  color: var(--color-white);
  max-width: 430px;
  line-height: 1.45;
  text-align: center;
}

/* ====================================================
   HOME — EVENTS PREVIEW
   ==================================================== */

.home-eventi {
  padding: 80px 0 100px;
  background: var(--color-bg);
}

.home-eventi .inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 60px;
}

.home-eventi-header { margin-bottom: 36px; }

.events-swiper {
  width: 100%;
  padding-bottom: 44px !important;
}

.events-swiper .swiper-slide {
  height: auto;
}

.events-swiper .swiper-pagination-bullet {
  background: var(--color-primary);
  opacity: 0.4;
}
.events-swiper .swiper-pagination-bullet-active {
  opacity: 1;
  background: var(--color-primary);
}

.events-swiper-outer {
  position: relative;
}

.events-nav-btn {
  position: absolute;
  /* vertically centred with the image strip, not the full card (image + text + pagination) */
  /* below-image area ≈ 58px text + 44px swiper pagination = 102px */
  top: 0;
  bottom: 102px;
  margin: auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.18);
  background: transparent;
  color: var(--color-white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), border-color var(--transition), opacity var(--transition);
  z-index: 10;
}
.events-prev { left:  -56px; }
.events-next { right: -56px; }
.events-nav-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.events-nav-btn.swiper-button-disabled {
  opacity: 0.25;
  pointer-events: none;
}

.ev-card-sm {
  display: block;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1);
}
.ev-card-sm:hover { transform: translateY(-4px); }

.ev-card-sm-img {
  aspect-ratio: 289/220;
  border-radius: var(--radius-card-sm);
  overflow: hidden;
  background: #222;
  margin-bottom: 12px;
}
.ev-card-sm-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
  will-change: transform;
  transform: scale(1);
}
.ev-card-sm:hover .ev-card-sm-img img { transform: scale(1.05); }

.ev-card-sm-date {
  font-size: 14px; font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}

.ev-card-sm-name {
  font-size: 20px; font-weight: 800;
  color: var(--color-white);
  line-height: 1.2;
}

/* ====================================================
   HOME — ARENA STATS
   ==================================================== */

.home-arena {
  position: relative;
  overflow: hidden;
  padding: 0;
}

.home-arena-bg { position: absolute; inset: 0; }
.home-arena-bg img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.home-arena-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.7); }

.home-arena-inner {
  position: relative; z-index: 2;
  text-align: center;
  padding: 90px 40px;
}

.home-arena-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 900px;
  margin: 56px auto 48px;
}

.stat-card { text-align: center; }

.stat-icon {
  width: 111px; height: 111px;
  margin: 0 auto 20px;
  overflow: hidden;
}
.stat-icon img { width: 100%; height: 100%; object-fit: contain; }

.stat-number {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.25;
  margin-bottom: 10px;
}

.stat-desc {
  font-size: 15px; font-weight: 400;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
  max-width: 180px;
  margin: 0 auto;
}

/* ====================================================
   HOME — CONTATTI PREVIEW
   ==================================================== */

.home-contatti {
  padding: 90px 0;
  background: var(--color-bg);
}

.home-contatti-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.home-contatti-text .body-text { margin-bottom: 24px; }

.home-contatti-map { margin-top: 30px; }
.home-contatti-map .map-label {
  font-size: 14px; font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 908/371;
  border-radius: var(--radius-card-sm);
  overflow: hidden;
  background: #1a1a1a;
}
.map-frame iframe {
  width: 100%; height: 100%; border: none; display: block;
}

/* ====================================================
   EVENTI PAGE
   ==================================================== */

.eventi-body {
  padding: 60px 0 90px;
  background: var(--color-bg);
}

.eventi-body .container { max-width: 1360px; }

.eventi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* Full event card */
.ev-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  background: #0d0d0d;
  cursor: pointer;
  position: relative;
  transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s ease;
}
.ev-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
/* Linea arancione che scorre dal basso */
.ev-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  z-index: 3;
}
.ev-card:hover::after { transform: scaleX(1); }

.ev-card-img {
  position: relative;
  aspect-ratio: 384/350;
  overflow: hidden;
}
.ev-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.23, 1, 0.32, 1), filter 0.4s ease;
  will-change: transform;
  transform: scale(1);
}
.ev-card:hover .ev-card-img img { transform: scale(1.06); }
/* Overlay scuro appare sull'hover */
.ev-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 50%);
  opacity: 0;
  transition: opacity 0.4s ease;
  z-index: 1;
}
.ev-card:hover .ev-card-img::after { opacity: 1; }

.ev-date-badge {
  position: absolute;
  top: 14px; left: 14px;
  background: var(--color-white);
  border-radius: 6px;
  padding: 6px 12px;
  text-align: center;
  min-width: 60px;
  z-index: 2;
}
.ev-date-badge .day { font-size: 28px; font-weight: 800; color: #000; line-height: 1; }
.ev-date-badge .month { font-size: 18px; font-weight: 700; color: #000; line-height: 1.2; }

.ev-card-footer {
  background: rgba(0,0,0,0.88);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex: 1;
}
.ev-card-info .ev-date-label {
  font-size: 13px; font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 3px;
  letter-spacing: 0.04em;
}
.ev-card-info .ev-name {
  font-size: 20px; font-weight: 800;
  color: var(--color-white);
}

/* ====================================================
   SINGOLO EVENTO PAGE
   ==================================================== */

.singolo-hero {
  position: relative;
  margin-top: 108px;
  min-height: 600px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 70px;
  overflow: hidden;
}
.singolo-hero-bg { position: absolute; inset: 0; }
.singolo-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.singolo-hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.75) 70%, rgba(0,0,0,0.9) 100%);
}
.singolo-hero-content { position: relative; z-index: 2; text-align: center; }
.singolo-hero-date { font-size: clamp(18px, 2.5vw, 28px); font-weight: 700; letter-spacing: 0.02em; color: var(--color-primary); margin-bottom: 10px; }
.singolo-hero-title { font-size: clamp(40px, 6vw, 78px); font-weight: 900; letter-spacing: -0.03em; line-height: 0.95; color: var(--color-white); }

.singolo-back {
  display: inline-block;
  padding: 60px 0 0 0;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  padding-left: 40px;
  font-size: 14px; font-weight: 600;
  color: var(--color-primary);
  text-decoration: underline;
  transition: opacity var(--transition);
}
.singolo-back:hover { opacity: 0.75; }

.singolo-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 40px 80px;
}

.singolo-main {
  display: grid;
  grid-template-columns: 487fr 460fr;
  gap: 60px;
  margin-bottom: 80px;
  position: relative;
}

.singolo-pittogramma {
  position: absolute;
  top: 0; width: 280px; opacity: 0.08;
  pointer-events: none;
}
.singolo-pittogramma.left { left: -100px; }
.singolo-pittogramma.right { right: -100px; }

.singolo-artist-img {
  border-radius: var(--radius-card-lg);
  overflow: hidden;
  aspect-ratio: 487/435;
  background: #111;
}
.singolo-artist-img img { width: 100%; height: 100%; object-fit: cover; }

.singolo-info { padding-top: 10px; }
.singolo-info .section-title { letter-spacing: -0.025em; }
.singolo-info .body-text { margin: 20px 0 36px; }

.singolo-tickets {
  display: flex; flex-direction: row; gap: 12px 20px;
  align-items: center; flex-wrap: wrap;
}
.singolo-tickets .or-text {
  font-size: 14px; color: rgba(255,255,255,0.5);
  font-style: italic;
}

.singolo-details {
  text-align: center;
  padding: 60px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.singolo-details-row {
  display: flex; align-items: flex-start; justify-content: center; gap: 80px;
  margin: 40px 0;
}

.detail-item { text-align: center; }
.detail-item-icon { width: 50px; height: 50px; margin: 0 auto 12px; }
.detail-item-icon img { width: 100%; }
.detail-item-label { font-size: 16px; font-weight: 800; color: var(--color-white); margin-bottom: 4px; }
.detail-item-value { font-size: 16px; color: rgba(255,255,255,0.75); }

.singolo-map {
  position: relative;
  margin-top: 50px;
  border-radius: 12px; overflow: hidden;
  height: 400px;
  background: #1a1a1a;
}
.singolo-map iframe { width: 100%; height: 100%; border: none; display: block; }

/* ====================================================
   ARENA PAGE
   ==================================================== */

.arena-mission {
  padding: 90px 0;
  background: var(--color-bg);
}

.arena-mission-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.arena-mission-text .section-title { margin-bottom: 20px; }
.arena-mission-text .body-text + .body-text { margin-top: 16px; }

.arena-mission-img {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.arena-mission-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Green section */
.arena-green {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
  text-align: center;
}
.arena-green-bg { position: absolute; inset: 0; }
.arena-green-bg img { width: 100%; height: 100%; object-fit: cover; }
.arena-green-bg::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,0.68);
}

.arena-green-inner {
  position: relative; z-index: 2;
  max-width: 650px; margin: 0 auto; padding: 0 40px;
}
.arena-green-icon { width: 280px; height: auto; margin: 0 auto 28px; }
.arena-green-icon img { width: 100%; height: auto; }
.arena-green-inner .section-title { margin-bottom: 20px; }
.arena-green-inner .body-text { font-size: 17px; }

/* Gallery */
.arena-gallery { padding: 80px 0 90px; }
.arena-gallery-header { max-width: 1200px; margin: 0 auto; padding: 0 40px 36px; }

.gallery-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

/* Mobile: Swiper gallery */
.gallery-swiper--mobile { display: none !important; }

.gallery-swiper {
  padding: 0 20px 44px !important;
}
.gallery-swiper .swiper-slide.gallery-item {
  aspect-ratio: 404/361;
  border-radius: 4px;
  overflow: hidden;
}
.gallery-swiper .gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
}
.gallery-swiper .swiper-pagination-bullet {
  background: var(--color-primary); opacity: 0.4;
}
.gallery-swiper .swiper-pagination-bullet-active {
  opacity: 1; background: var(--color-primary);
}

.gallery-item {
  aspect-ratio: 404/361;
  overflow: hidden;
  background: #111;
  border-radius: 4px;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}
.gallery-item:hover img { transform: scale(1.06); }

/* ====================================================
   CONTATTI PAGE
   ==================================================== */

.contatti-body {
  padding: 60px 0 90px;
  background: transparent;
}

.faq-section { padding: 0 0 70px; text-align: center; }
.faq-section .label { margin-bottom: 16px; }
.faq-section .section-title { margin-bottom: 32px; }

.faq-list { max-width: 732px; margin: 0 auto; }

.faq-item {
  overflow: hidden;
  margin-bottom: 8px;
}

.faq-question {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 4px;
  padding: 16px 20px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 15px; font-weight: 500;
  color: var(--color-white);
  text-align: left;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}
.faq-question:hover { background: rgba(255,255,255,0.09); border-color: rgba(191,94,34,0.4); }
.faq-item.open .faq-question { border-color: rgba(191,94,34,0.6); background: rgba(191,94,34,0.08); }

.faq-arrow {
  width: 22px; height: 22px; flex-shrink: 0;
  transition: transform 0.3s;
  color: rgba(255,255,255,.85);
}
.faq-item.open .faq-arrow { transform: rotate(180deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.38s cubic-bezier(0.23, 1, 0.32, 1);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-top: none;
  border-radius: 0 0 4px 4px;
}
.faq-item.open .faq-answer {
  max-height: 500px;
}
.faq-answer > * {
  padding: 14px 20px;
  font-size: 15px;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
}

/* Contact form */
.contatti-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.form-section-title { font-size: clamp(24px, 2.5vw, 34px); font-weight: 900; letter-spacing: -0.02em; color: var(--color-white); margin-bottom: 28px; }

.contact-form { display: flex; flex-direction: column; gap: 10px; }

.form-field {
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 4px;
  padding: 14px 18px;
  font-size: 15px; color: var(--color-white);
  transition: border-color var(--transition), background var(--transition);
  resize: none;
}
.form-field::placeholder { color: rgba(255,255,255,0.35); }
.form-field:focus { outline: none; border-color: var(--color-primary); background: rgba(191,94,34,0.06); }

.form-message {
  font-family: var(--font-secondary);
  font-size: 14px;
  margin-top: 10px;
  padding: 12px 16px;
  border-radius: 6px;
  display: none;
}
.form-message.success {
  display: block;
  background: rgba(57, 131, 152, 0.12);
  border: 1px solid rgba(57, 131, 152, 0.35);
  color: #7fcfdf;
}
.form-message.error {
  display: block;
  background: rgba(191, 60, 34, 0.12);
  border: 1px solid rgba(191, 60, 34, 0.35);
  color: #f08070;
}

.contatti-map-wrap {
  position: relative;
  margin-top: 8px;
  border-radius: 12px; overflow: hidden;
  height: 360px;
  background: #111;
}
.contatti-map-wrap iframe { width: 100%; height: 100%; border: none; display: block; }

/* ── Map open link ──────────────────────────────────────────────────────── */
.map-open-link {
  position: absolute;
  bottom: 10px;
  left: 12px;
  z-index: 2;
  background: rgba(0,0,0,.72);
  color: rgba(255,255,255,.9);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  text-decoration: none;
  transition: background var(--transition);
  letter-spacing: .02em;
}
.map-open-link:hover { background: var(--color-primary); color: #fff; }

/* ====================================================
   PARTNER PAGE
   ==================================================== */

.partner-top {
  padding: 60px 0 90px;
  background: var(--color-bg);
}

.partner-top-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}

.partner-title {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 800;
  color: var(--color-white);
  line-height: 0.95;
  margin-bottom: 20px;
}
.partner-title .accent { color: var(--color-primary); }

.partner-sub { font-size: clamp(20px, 2vw, 28px); font-weight: 700; color: var(--color-white); margin-bottom: 20px; }

.partner-img {
  display: flex;
  align-items: center;
  justify-content: center;
}
.partner-img img { width: 100%; max-width: 480px; display: block; }

.partner-logos-section {
  position: relative;
  overflow: hidden;
  padding: 90px 0;
}

.partner-logos-section-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.partner-logos-section-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center;
}
.partner-logos-section-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.72);
}

.partner-logos-section .container {
  position: relative;
  z-index: 1;
}

.partner-logos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 800px;
  margin: 40px auto 0;
}

.partner-logo-cell {
  display: flex; align-items: center; justify-content: center;
  padding: 28px 20px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  min-height: 100px;
  background: rgba(255,255,255,0.03);
  font-size: 16px; font-weight: 700;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase; letter-spacing: 0.1em;
  transition: border-color var(--transition), background var(--transition);
}
.partner-logo-cell:hover { border-color: rgba(191,94,34,0.4); background: rgba(191,94,34,0.05); }

.partner-form-section { padding: 70px 0; border-top: 1px solid rgba(255,255,255,0.08); }

.partner-form-inner {
  max-width: 730px;
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}
.partner-form-inner .form-section-title { margin-bottom: 36px; }
.partner-contact-form { display: flex; flex-direction: column; gap: 10px; text-align: left; }

/* ====================================================
   SCROLL ANIMATIONS
   ==================================================== */

[data-anim] {
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1), transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-anim="fade-up"]     { transform: translateY(40px); }
[data-anim="fade-in"]     { transform: none; }
[data-anim="fade-left"]   { transform: translateX(-40px); }
[data-anim="fade-right"]  { transform: translateX(40px); }
[data-anim="scale-up"]    { transform: scale(0.92); }

[data-anim].animated {
  opacity: 1;
  transform: none !important;
}

[data-delay="1"] { transition-delay: 0.1s; }
[data-delay="2"] { transition-delay: 0.2s; }
[data-delay="3"] { transition-delay: 0.3s; }
[data-delay="4"] { transition-delay: 0.4s; }
[data-delay="5"] { transition-delay: 0.5s; }
[data-delay="6"] { transition-delay: 0.6s; }

/* ====================================================
   PAGE LOADER
   ==================================================== */

/* ====================================================
   BACK TO TOP
   ==================================================== */

.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 500;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-primary);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease, background var(--transition);
  pointer-events: none;
  box-shadow: 0 4px 20px rgba(191,94,34,0.4);
}
.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.back-to-top:hover { background: var(--color-primary-dark); }

/* ====================================================
   EVENTI — FILTER
   ==================================================== */

.eventi-filters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding-bottom: 28px;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.filter-group-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  white-space: nowrap;
  flex-shrink: 0;
  width: 32px;
}

.filter-group-btns {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}
.filter-group-btns::-webkit-scrollbar { display: none; }
.filter-group-btns.scroll-fade {
  -webkit-mask-image: linear-gradient(to right, black 82%, transparent 100%);
  mask-image: linear-gradient(to right, black 82%, transparent 100%);
}

.filter-btn {
  flex-shrink: 0;
  padding: 7px 18px;
  border-radius: var(--radius-btn);
  border: 1.5px solid rgba(255,255,255,0.15);
  background: transparent;
  color: rgba(255,255,255,0.45);
  font-family: var(--font-primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.filter-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}
.filter-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}
.ev-card.ev-hidden { display: none; }

.ev-category-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  pointer-events: none;
  z-index: 2;
}

/* ====================================================
   COUNTDOWN
   ==================================================== */

.countdown-section {
  background: #0a0a0a;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 28px 40px;
  text-align: center;
}
.countdown-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 12px;
}
.countdown-blocks {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
}
.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}
.countdown-num {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 900;
  color: var(--color-white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}
.countdown-unit {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  margin-top: 5px;
}
.countdown-sep {
  font-size: clamp(24px, 3.5vw, 44px);
  font-weight: 900;
  color: var(--color-primary);
  line-height: 1;
  padding-bottom: 14px;
}
.countdown-expired {
  font-size: 18px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
}

/* ====================================================
   SKELETON LOADER
   ==================================================== */

@keyframes sk-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.ev-card-img.sk-loading,
.ev-card-sm-img.sk-loading {
  background: linear-gradient(90deg, #1c1c1c 25%, #2d2d2d 50%, #1c1c1c 75%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.6s ease-in-out infinite;
}
.ev-card-img.sk-loading img,
.ev-card-sm-img.sk-loading img {
  opacity: 0;
  filter: blur(12px);
  transform: scale(1.06);
}
.ev-card-img img,
.ev-card-sm-img img {
  transition: opacity 0.45s ease, filter 0.4s ease, transform 0.55s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ====================================================
   SEARCH BAR
   ==================================================== */

.search-bar {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  z-index: 999;
  background: rgba(18,18,18,0.99);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 2px solid var(--color-primary);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  transform: translateY(-100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: calc(100dvh - 108px);
  overflow-y: auto;
  pointer-events: none;
}
.search-bar.open {
  transform: translateY(108px);
  pointer-events: auto;
}
.navbar.scrolled ~ .search-bar.open {
  transform: translateY(72px);
}

.search-bar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 48px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--color-white);
  font-family: var(--font-primary);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  caret-color: var(--color-primary);
}
.search-input::placeholder { color: rgba(255,255,255,0.25); font-weight: 500; }

.search-close {
  background: none;
  border: none;
  cursor: pointer;
  width: 36px; height: 36px;
  position: relative;
  flex-shrink: 0;
  opacity: 0.6;
  transition: opacity var(--transition);
}
.search-close:hover { opacity: 1; }
.search-close span {
  position: absolute;
  top: 50%; left: 50%;
  width: 22px; height: 2px;
  background: var(--color-white);
  border-radius: 2px;
}
.search-close span:nth-child(1) { transform: translate(-50%,-50%) rotate(45deg); }
.search-close span:nth-child(2) { transform: translate(-50%,-50%) rotate(-45deg); }

.search-results { padding: 8px 48px 28px; }

.search-results-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  padding: 14px 0 6px;
}
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.search-result-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--color-white);
  transition: background var(--transition);
}
.search-result-item:hover { background: rgba(255,255,255,0.06); }
.search-result-thumb {
  width: 72px; height: 52px;
  border-radius: 7px;
  overflow: hidden;
  flex-shrink: 0;
}
.search-result-thumb img { width: 100%; height: 100%; object-fit: cover; }
.search-result-date {
  font-size: 11px;
  color: var(--color-primary);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.search-result-name { font-size: 15px; font-weight: 700; }
.search-no-results {
  margin-top: 20px;
  color: rgba(255,255,255,0.35);
  font-size: 15px;
  font-style: italic;
}

/* ====================================================
   RESPONSIVE — 1024px
   ==================================================== */

@media (max-width: 1024px) {
  .home-arena-stats         { grid-template-columns: repeat(2, 1fr); }
  .home-contatti-inner      { grid-template-columns: 1fr; gap: 40px; }
  .eventi-grid              { grid-template-columns: repeat(2, 1fr); }
  .singolo-main             { grid-template-columns: 1fr; }
  .arena-mission-inner      { grid-template-columns: 1fr; gap: 40px; }
  .gallery-grid             { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .contatti-split           { grid-template-columns: 1fr; gap: 50px; }
  .partner-top-inner        { grid-template-columns: 1fr; gap: 40px; }
  .partner-logos-grid       { grid-template-columns: repeat(3, 1fr); }
}

/* ====================================================
   RESPONSIVE — 768px
   ==================================================== */

@media (max-width: 768px) {
  :root { --radius-card-lg: 14px; }

  .navbar-nav {
    display: flex;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100vh; height: 100dvh;
    background: rgba(4,4,4,0.96);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0 clamp(28px, 9vw, 56px);
    gap: 0;
    z-index: 1001;
    counter-reset: nav-counter;
    transition: opacity 0.35s ease, visibility 0.35s ease;
    border-right: 1px solid rgba(191,94,34,0.15);
  }
  .navbar-nav.open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
  .navbar-nav a {
    font-size: clamp(30px, 9vw, 52px);
    font-weight: 900;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    opacity: 0;
    transform: translateX(-18px);
    transition: opacity 0.35s ease, transform 0.35s ease, color 0.2s;
    width: 100%;
  }
  .navbar-nav a::before {
    counter-increment: nav-counter;
    content: counter(nav-counter, decimal-leading-zero);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--color-primary);
    flex-shrink: 0;
    transform: translateY(1px);
  }
  .navbar-nav a::after { display: none; }
  .navbar-nav a:hover { color: var(--color-white); }
  .navbar-nav.open a { opacity: 1; transform: translateX(0); }
  .navbar-nav.open a:nth-child(1) { transition-delay: 0.07s; }
  .navbar-nav.open a:nth-child(2) { transition-delay: 0.12s; }
  .navbar-nav.open a:nth-child(3) { transition-delay: 0.17s; }
  .navbar-nav.open a:nth-child(4) { transition-delay: 0.22s; }
  .navbar-nav.open a:nth-child(5) { transition-delay: 0.27s; }
  .navbar-nav.open a:nth-child(6) { transition-delay: 0.32s; }
  .navbar-toggle { display: flex; position: relative; z-index: 1002; }

  .home-eventi .inner { padding: 0 20px; }
  .home-contatti-inner { padding: 0 20px; }

  .home-arena-stats  {
    grid-template-columns: repeat(2, 1fr);
    max-width: 100%;
    gap: 16px;
  }
  .home-arena-stats .stat-icon { width: 64px; height: 64px; margin-bottom: 12px; }
  .home-arena-stats .stat-number { font-size: clamp(22px, 6vw, 32px); }

  .eventi-grid       { grid-template-columns: 1fr; gap: 12px; }

  /* Horizontal card layout on mobile */
  .ev-card           { display: flex; flex-direction: row; height: 100px; }
  .ev-card-img       { width: 110px; flex-shrink: 0; aspect-ratio: unset; height: 100%; border-radius: var(--radius-card-lg) 0 0 var(--radius-card-lg); }
  .ev-date-badge     { display: none; }
  /* footer keeps its native row layout: info left, btn right */
  .ev-card-footer    { flex: 1; flex-direction: row; align-items: center; justify-content: space-between; padding: 0 14px; gap: 10px; border-radius: 0 var(--radius-card-lg) var(--radius-card-lg) 0; }
  .ev-card-info .ev-name       { font-size: 14px; line-height: 1.2; }
  .ev-card-info .ev-date-label { font-size: 11px; margin-bottom: 4px; }
  .ev-card-footer .btn         { flex-shrink: 0; padding: 8px 16px; font-size: 11px; letter-spacing: 0.04em; }

  .events-nav-btn { display: none; }
  .gallery-grid--desktop { display: none !important; }
  .gallery-swiper--mobile { display: block !important; }
  .partner-logos-grid{ grid-template-columns: repeat(2, 1fr); }

  .hero-title { letter-spacing: -0.01em; }
  .section   { padding: 60px 0; }

  .singolo-details-row { flex-direction: column; gap: 40px; align-items: center; }
  .singolo-pittogramma { display: none; }

  .container { padding: 0 20px; }
  .contatti-split { padding: 0 20px; }
  .partner-form-inner { padding: 0 20px; }

  .search-bar-inner { padding: 16px 20px; gap: 14px; }
  .search-results { padding: 8px 20px 24px; }

  /* ---- Footer mobile -------------------------------- */
  .footer-partner-strip { padding: 18px 20px; }

  .footer-content { padding: 32px 20px 20px; }

  /* Colonna singola — no griglia */
  .footer-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 24px;
  }

  /* Brand: logo sx, social dx, separatore sotto */
  .footer-col-brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .footer-col-brand .footer-logo { margin-bottom: 0; width: 110px; }

  /* Nasconde i titoli di colonna su mobile — i contenuti parlano da soli */
  .footer-col-title { display: none; }

  /* Navigazione: link orizzontali */
  .footer-col:nth-child(2) {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
  }
  .footer-links a {
    font-size: 13px;
    color: rgba(255,255,255,0.55);
  }

  /* Contatti: lista compatta */
  .footer-col:nth-child(3) {
    padding-bottom: 18px;
    margin-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
  }
  .footer-contact-list { gap: 10px; }
  .footer-contact-list li a,
  .footer-contact-list li span { font-size: 13px; }

  /* Info Utili: link orizzontali */
  .footer-info-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    padding-bottom: 0;
  }
  .footer-info-list li { padding: 0; border: none; }

  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
}

@media (max-width: 480px) {
  .section-title     { font-size: 24px; }

}

/* ====================================================
   SHARE BAR (singolo evento)
   ==================================================== */

.share-bar { margin-top: 28px; }

.share-label {
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: 10px;
}

.share-btns { display: flex; flex-wrap: wrap; gap: 10px; }

.share-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px; border-radius: 8px;
  font-family: var(--font-primary); font-size: 13px; font-weight: 700;
  transition: opacity .2s, transform .2s;
  border: none; cursor: pointer; text-decoration: none;
}
.share-btn:hover { opacity: .85; transform: translateY(-2px); }

.share-btn-wa   { background: #25D366; color: #fff; }
.share-btn-fb   { background: #1877F2; color: #fff; }
.share-btn-copy { background: rgba(255,255,255,.1); color: var(--color-white); border: 1px solid rgba(255,255,255,.15); }
.share-btn.copied { background: rgba(76,175,121,.2); color: #4caf79; border-color: rgba(76,175,121,.3); }

/* ====================================================
   FAQ SINGOLO EVENTO
   ==================================================== */

.singolo-faq-section {
  padding: 60px 0 70px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── Related events ──────────────────────────────────────────────────────── */
.related-events-section {
  padding: 70px 0 90px;
  border-top: 1px solid rgba(255,255,255,0.08);
  background: var(--color-bg);
}
.related-grid {
  margin-top: 40px;
}

.singolo-faq-inner {
  max-width: 760px; margin: 0 auto; padding: 0 40px;
}

/* ====================================================
   GALLERIA PAGE
   ==================================================== */

.galleria-section { padding: 60px 0 90px; }

.galleria-container {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
}

.galleria-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.galleria-item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  background: #111;
}
.galleria-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
.galleria-item:hover img { transform: scale(1.06); }

.galleria-item-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff; font-size: 13px; font-weight: 600;
  padding: 28px 14px 10px;
  opacity: 0; transition: opacity .25s;
}
.galleria-item:hover .galleria-item-caption { opacity: 1; }

/* ── Lightbox ────────────────────────────────────────────────────────────────── */

.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .28s;
}
.lightbox.open { opacity: 1; pointer-events: all; }

.lightbox-content {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.lightbox-img {
  display: block;
  width: min(90vw, 1400px);
  height: min(82vh, 900px);
  object-fit: contain;
  border-radius: 8px;
}
.lightbox-caption {
  font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,.75);
}

.lightbox-close {
  position: absolute; top: 20px; right: 20px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background .18s;
}
.lightbox-close:hover { background: rgba(255,255,255,.2); }

.lightbox-prev,
.lightbox-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.1); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #fff; transition: background .18s;
}
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,.2); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

@media (max-width: 768px) {
  .galleria-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .singolo-faq-inner { padding: 0 20px; }
  .share-btns { gap: 8px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}

@media (max-width: 480px) {
  .galleria-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Skip to content (accessibility) ────────────────────────────────────── */

.skip-link {
  position: fixed;
  top: -100%;
  left: 16px;
  z-index: 9999;
  padding: 10px 20px;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-primary);
  font-weight: 700;
  font-size: 14px;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  transition: top .18s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
}
.skip-link:focus {
  top: 0;
  outline: 2px solid #fff;
  outline-offset: -4px;
}

/* ── Contact info row (contatti.html) ───────────────────────────────────── */

.contatti-info-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 56px 0 64px;
}

.contatti-info-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 28px 24px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  text-decoration: none;
  transition: background .2s, border-color .2s;
}

a.contatti-info-item:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(191,94,34,.45);
}

.contatti-info-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent, #bf5e22);
}

.contatti-info-icon svg { width: 28px; height: 28px; }

.contatti-info-label {
  font-family: 'Barlow', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
}

.contatti-info-value {
  font-family: 'Instrument Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  word-break: break-word;
}

@media (max-width: 900px) {
  .contatti-info-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .contatti-info-row { grid-template-columns: 1fr; }
}

/* ── Partner email hint ──────────────────────────────────────────────────── */

.partner-contact-hint {
  text-align: center;
  font-family: 'Instrument Sans', sans-serif;
  font-size: 14px;
  color: rgba(255,255,255,.45);
  margin-bottom: 28px;
}

.partner-contact-hint a {
  color: var(--clr-accent, #bf5e22);
  text-decoration: none;
}

.partner-contact-hint a:hover { text-decoration: underline; }

/* ── Scroll fade-in (IntersectionObserver) ──────────────────────────────── */

.fade-in { opacity: 0; }

.fade-in.visible {
  opacity: 1;
  animation: fi-up 0.5s cubic-bezier(0.23, 1, 0.32, 1) backwards;
  animation-delay: calc(var(--i, 0) * 80ms);
}

@keyframes fi-up {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ====================================================
   CURTAIN — transizione tra pagine
   ==================================================== */

#curtain {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: var(--color-bg);
  transform: translateY(-100%);
  pointer-events: none;
  will-change: transform;
}
#curtain::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
}

/* ── Cookie Consent Banner ───────────────────────────────────────────────── */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  transform: translateY(110%);
  transition: transform 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
}
.cookie-banner.cb-visible {
  transform: translateY(0);
  pointer-events: all;
}
.cookie-banner-wrap {
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(18px, 2.5vw, 28px) clamp(20px, 6vw, 80px);
}
.cookie-banner-main {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-text {
  flex: 1;
  min-width: 240px;
}
.cookie-banner-text p {
  font-family: var(--font-secondary);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin: 0;
}
.cookie-banner-text a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  flex-shrink: 0;
}

/* Settings panel */
.cookie-settings {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 22px;
}
.cookie-settings-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.cookie-settings-header span {
  font-family: var(--font-primary);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cb-btn-text {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-secondary);
  font-size: 12px;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s ease;
}
.cb-btn-text:hover { color: rgba(255, 255, 255, 0.7); }

.cookie-category {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.cookie-category:last-child { border-bottom: none; }
.cookie-cat-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cookie-cat-name {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.cookie-cat-desc {
  font-family: var(--font-secondary);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.55;
  max-width: 520px;
}
.cookie-cat-always {
  font-family: var(--font-secondary);
  font-size: 10px;
  color: rgba(255, 255, 255, 0.28);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 3px;
  flex-shrink: 0;
}

/* Toggle switch */
.cb-toggle-wrap {
  position: relative;
  display: inline-flex;
  cursor: pointer;
  flex-shrink: 0;
}
.cb-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.cb-toggle-slider {
  width: 40px;
  height: 22px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 11px;
  transition: background 0.22s ease;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.cb-toggle-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  transition: transform 0.22s ease, background 0.22s ease;
}
.cb-toggle-input:checked + .cb-toggle-slider {
  background: var(--color-primary);
  border-color: var(--color-primary);
}
.cb-toggle-input:checked + .cb-toggle-slider::after {
  transform: translateX(18px);
  background: #fff;
}

.cookie-settings-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Buttons */
.cb-btn {
  font-family: var(--font-primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 10px 16px;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
  line-height: 1;
}
.cb-btn:active { transform: scale(0.97); }
.cb-btn-settings {
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.cb-btn-settings:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}
.cb-btn-reject {
  background: transparent;
  color: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.cb-btn-reject:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}
.cb-btn-accept,
.cb-btn-save {
  background: var(--color-primary);
  color: #fff;
  border: 1px solid var(--color-primary);
}
.cb-btn-accept:hover,
.cb-btn-save:hover { opacity: 0.86; }

/* Map consent placeholder */
.map-consent-placeholder {
  width: 100%;
  height: 100%;
  min-height: 320px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
}
.map-consent-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.map-consent-inner p {
  font-family: var(--font-secondary);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  max-width: 320px;
  margin: 0;
}

@media (max-width: 600px) {
  .cookie-banner-main { flex-direction: column; gap: 14px; }
  .cookie-banner-actions { width: 100%; }
  .cb-btn-settings { display: none; }
  .cookie-settings-actions { flex-direction: column; }
  .cookie-settings-actions .cb-btn { width: 100%; text-align: center; }
}

/* ── Reduced motion ─────────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  [data-anim] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    clip-path: none !important;
  }
  .fade-in          { opacity: 1 !important; }
  .fade-in.visible  { animation: none !important; }
  .hero-line        { transform: none !important; }
  .home-arena-bg img { will-change: auto; }
  .btn::before, .btn::after { display: none !important; }
  .btn, .btn-outline { transition: box-shadow 0.1s ease !important; }
  .btn:hover  { transform: none !important; }
  .btn:active { transform: none !important; }
  #curtain { display: none !important; }
  .ev-card, .ev-card-sm, .gallery-item, .galleria-item {
    transition: none !important;
    transform: none !important;
  }
  .ev-card::after { transition: none !important; }
  .faq-answer { transition: none !important; }
  .faq-item.open .faq-answer { max-height: 500px; }
}
