/* ═══════════════════════════════════════ TOKENS */
:root {
  --red:    #980f08;
  --red-l:  #c41309;
  --black:  #000000;
  --dark:   #080d14;
  --ink:    #0d1b2a;
  --muted:  #5b728a;
  --sand:   #f2efe8;
  --white:  #ffffff;
  --water:  #0a4f7a;
  --water-l:#1a8cb8;
  --gold:   #edda56;
  --teal:   #3be5b2;
  --radius: 18px;
  --max:    1200px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--dark);
  color: var(--white);
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--red); }

/* ═══════════════════════════════════════ NAV */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(0,0,0,.92);
  backdrop-filter: blur(10px) saturate(160%);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav-inner {
  max-width: var(--max); margin: auto;
  padding: 0 20px;
  display: flex; align-items: center; justify-content: space-between;
  height: 62px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--white);
}
.brand-m {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 32px;
  color: var(--red);
  line-height: 1;
}
.brand-txt { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.brand-txt span { color: var(--muted); font-weight: 400; }

.nav-links {
  display: none; flex-direction: column;
  position: absolute; top: 62px; left: 0; right: 0;
  background: #000; padding: 16px 20px; gap: 0;
  list-style: none;
}
.nav-links.open { display: flex; }
.nav-links li { border-bottom: 1px solid rgba(255,255,255,.07); }
.nav-links a {
  display: block; padding: 12px 0;
  color: rgba(255,255,255,.8); text-decoration: none;
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase;
  transition: color .2s;
}
.nav-links a:hover { color: var(--red); }

.btn-cta {
  display: inline-block;
  background: var(--red); color: var(--white);
  padding: 9px 22px; border-radius: 999px;
  font-weight: 700; font-size: 13px; letter-spacing: .05em;
  text-decoration: none; text-transform: uppercase;
  transition: background .2s, transform .15s;
}
.btn-cta:hover { background: var(--red-l); transform: translateY(-1px); }

.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  background: none; border: 1px solid rgba(255,255,255,.2);
  color: white; width: 40px; height: 40px;
  border-radius: 10px; font-size: 18px; cursor: pointer;
}

@media (min-width: 861px) {
  .nav-links {
    display: flex; flex-direction: row; align-items: center;
    position: static; background: none; padding: 0; gap: 28px;
  }
  .nav-links li { border-bottom: none; }
  .nav-links a { display: inline; padding: 0; }
  .nav-toggle { display: none; }
}

/* ═══════════════════════════════════════ HERO */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
}

/* Animated water background */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-color: #0a1a2e;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.55), rgba(10,26,46,.65)),
    image-set(
      url('/assets/img/viverone_mobile.webp') type('image/webp')
    );
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
@media (min-width: 768px) {
  .hero-bg {
    background-image:
      linear-gradient(180deg, rgba(0,0,0,.55), rgba(10,26,46,.65)),
      image-set(
        url('/assets/img/viverone.webp') type('image/webp')
      );
  }
}

/* Water ripple rings */
.ripple {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(26, 140, 184, .18);
  animation: rippleGrow 6s ease-out infinite;
  pointer-events: none;
}
.ripple:nth-child(1) { width: 300px; height: 300px; left: 50%; top: 55%; transform: translate(-50%,-50%); animation-delay: 0s; }
.ripple:nth-child(2) { width: 600px; height: 300px; left: 50%; top: 55%; transform: translate(-50%,-50%); animation-delay: 1.5s; }
.ripple:nth-child(3) { width: 900px; height: 450px; left: 50%; top: 55%; transform: translate(-50%,-50%); animation-delay: 3s; }
.ripple:nth-child(4) { width: 1200px; height: 600px; left: 50%; top: 55%; transform: translate(-50%,-50%); animation-delay: 4.5s; }

@keyframes rippleGrow {
  0%   { opacity: .6; transform: translate(-50%,-50%) scale(.3); }
  100% { opacity: 0;  transform: translate(-50%,-50%) scale(1); }
}

/* Wave line at bottom */
.hero-wave {
  position: absolute; bottom: -7px; left: 0; right: 0; z-index: 2;
}

.hero-content { position: relative; z-index: 3; padding: 40px 20px; max-width: 860px; }

.hero-kicker {
  display: inline-block;
  background: rgba(152,15,8,.15);
  border: 1px solid rgba(152,15,8,.4);
  color: #ff6b63;
  font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px;
  margin-bottom: 28px;
  animation: fadeUp .8s ease both;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(72px, 15vw, 160px);
  line-height: .9;
  letter-spacing: .02em;
  margin-bottom: 10px;
  animation: fadeUp .8s .15s ease both;
}
.hero-title .m { color: var(--red); display: inline-block; }
.hero-title .swim { color: var(--white); }
.hero-title .challenge { color: rgba(255,255,255,.35); font-size: 55%; display: block; letter-spacing: .08em; }

.hero-sub {
  font-size: clamp(15px, 2.5vw, 19px);
  font-weight: 300; color: rgba(255,255,255,.7);
  line-height: 1.6; margin-bottom: 36px;
  animation: fadeUp .8s .3s ease both;
}
.hero-sub strong { color: var(--white); font-weight: 600; }

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  margin-bottom: 40px;
  animation: fadeUp .8s .45s ease both;
}
.badge {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
}
.badge .dot { width: 8px; height: 8px; border-radius: 50%; }

.hero-actions {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: fadeUp .8s .6s ease both;
}
.btn-outline {
  display: inline-block;
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white); padding: 11px 26px;
  border-radius: 999px; font-weight: 600; font-size: 14px;
  text-decoration: none; text-transform: uppercase; letter-spacing: .04em;
  transition: border-color .2s, background .2s;
}
.btn-outline:hover { border-color: white; background: rgba(255,255,255,.07); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Countdown */
.countdown {
  position: absolute; bottom: 80px; left: auto; transform: translateX(-50%);
  display: flex; gap: 24px; z-index: 3;
  animation: fadeUp .8s .8s ease both;
}
.count-item { text-align: center; }
.count-num {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px; line-height: 1;
  color: var(--white);
}
.count-lbl { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.count-sep { font-family: 'Bebas Neue'; font-size: 48px; color: var(--red); line-height: 1; padding-top: 0; }

/* ═══════════════════════════════════════ SECTIONS */
section { padding: 56px 20px; }
@media (min-width: 768px) { section { padding: 80px 20px; } }
.container { max-width: var(--max); margin: auto; }

.section-label {
  display: inline-block; font-size: 11px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--red); margin-bottom: 12px;
}
.section-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(40px, 7vw, 72px);
  letter-spacing: .03em; line-height: 1;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 16px; font-weight: 300; color: rgba(255,255,255,.65);
  line-height: 1.75; max-width: 680px;
}

/* ═══════════════════════════════════════ ABOUT */
#about { background: var(--dark); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px; align-items: center;
  margin-top: 56px;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
}
.about-text h3 {
  font-family: 'Bebas Neue'; font-size: 36px; color: var(--red);
  letter-spacing: .04em; margin-bottom: 14px;
}
.about-text p { font-size: 15px; font-weight: 300; line-height: 1.8; color: rgba(255,255,255,.7); margin-bottom: 16px; }

/* M course SVG visual */
.m-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.m-svg-wrap {
  background: rgba(10, 79, 122, .12);
  border: 1px solid rgba(26,140,184,.2);
  border-radius: 24px;
  padding: 40px;
  position: relative;
}
.m-svg-wrap::before {
  content: 'PERCORSO';
  position: absolute; top: 16px; left: 20px;
  font-size: 10px; font-weight: 700; letter-spacing: .15em;
  color: var(--water-l); opacity: .6;
}

/* ═══════════════════════════════════════ PERCORSO */
#percorso { background: #020a12; }
.percorso-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px; margin-top: 56px;
}
@media (min-width: 768px) {
  .percorso-grid { grid-template-columns: repeat(3, 1fr); }
}
.leg-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative; overflow: hidden;
  transition: border-color .3s, transform .3s;
}
.leg-card:hover { border-color: rgba(255,255,255,.2); transform: translateY(-4px); }
.leg-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
}
.leg-card.leg1::before { background: var(--gold); }
.leg-card.leg2::before { background: var(--teal); }
.leg-card.leg3::before { background: var(--red); }

.leg-num {
  font-family: 'Bebas Neue'; font-size: 56px; line-height: 1;
  opacity: .08; position: absolute; right: 20px; top: 16px;
}
.leg-km {
  font-family: 'Bebas Neue'; font-size: 52px; line-height: 1;
  margin-bottom: 4px;
}
.leg-card.leg1 .leg-km { color: var(--gold); }
.leg-card.leg2 .leg-km { color: var(--teal); }
.leg-card.leg3 .leg-km { color: var(--red); }

.leg-label { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.leg-title { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.leg-desc { font-size: 14px; font-weight: 300; line-height: 1.7; color: rgba(255,255,255,.6); }

/* ═══════════════════════════════════════ CATEGORIE */
#categorie { background: var(--dark); }
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-top: 48px;
}
.cat-card {
  background: rgba(152,15,8,.07);
  border: 1px solid rgba(152,15,8,.25);
  border-radius: var(--radius); padding: 24px 20px;
  text-align: center;
  transition: background .2s, border-color .2s;
}
.cat-card:hover { background: rgba(152,15,8,.14); border-color: rgba(152,15,8,.5); }
.cat-icon { font-size: 32px; margin-bottom: 10px; }
.cat-name { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.cat-age { font-size: 13px; color: var(--muted); }

/* ═══════════════════════════════════════ INFO */
#info { background: #020a12; }
.info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px; margin-top: 48px;
}
.info-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 28px 24px;
}
.info-icon { font-size: 28px; margin-bottom: 14px; }
.info-title { font-weight: 700; font-size: 17px; margin-bottom: 8px; }
.info-text { font-size: 14px; font-weight: 300; color: rgba(255,255,255,.6); line-height: 1.7; }
.info-text strong { color: var(--white); font-weight: 600; }

/* ═══════════════════════════════════════ ISCRIZIONI */
#iscrizioni { background: var(--dark); }
.form-wrap {
  max-width: 740px; margin: 56px auto 0;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px; padding: 24px 18px;
}
@media (min-width: 600px) {
  .form-wrap { padding: 40px; }
}

.form-section-title {
  font-family: 'Bebas Neue'; font-size: 22px; letter-spacing: .06em;
  color: var(--red); margin: 28px 0 16px;
  padding-bottom: 8px; border-bottom: 1px solid rgba(152,15,8,.2);
}
.form-section-title:first-child { margin-top: 0; }

.form-row { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) {
  .form-row { grid-template-columns: 1fr 1fr; }
}
.form-group { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }

label {
  font-size: 12px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(255,255,255,.55);
}
label .req { color: var(--red); margin-left: 2px; }

input[type="text"],
input[type="email"],
input[type="date"],
input[type="tel"],
select,
textarea {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--white);
  padding: 12px 14px; border-radius: 10px;
  font-family: 'Poppins', sans-serif; font-size: 14px;
  transition: border-color .2s, background .2s;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--red);
  background: rgba(152,15,8,.06);
}
select option { background: #111; }
textarea { resize: vertical; min-height: 90px; }

/* Taglia canotta */
.size-group { display: flex; gap: 10px; flex-wrap: wrap; }
.size-btn {
  padding: 8px 18px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,.15);
  background: transparent; color: rgba(255,255,255,.7);
  font-family: 'Poppins'; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.size-btn:hover, .size-btn.active {
  border-color: var(--red); color: var(--white);
  background: rgba(152,15,8,.15);
}
input[name="taglia_canotta"] { display: none; }

/* Noleggi */
.noleggio-grid { display: flex; gap: 12px; flex-wrap: wrap; }
.noleggio-item {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 10px 16px;
  cursor: pointer; transition: all .2s;
}
.noleggio-item:hover { border-color: rgba(255,255,255,.25); }
.noleggio-item input[type="checkbox"] { accent-color: var(--red); width: 16px; height: 16px; }
.noleggio-item span { font-size: 14px; font-weight: 600; }

/* Checkbox consensi */
.check-group { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.check-group input[type="checkbox"] { accent-color: var(--red); width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.check-group .check-label { font-size: 13px; font-weight: 400; color: rgba(255,255,255,.65); text-transform: none; letter-spacing: 0; }
.check-group .check-label a { color: var(--red); }

/* Pagamento */
.pay-grid { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.pay-btn {
  flex: 1; min-width: 140px;
  padding: 14px 16px; border-radius: 12px;
  border: 2px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  color: var(--white); cursor: pointer;
  font-family: 'Poppins'; font-weight: 600; font-size: 14px;
  text-align: center; transition: all .2s;
}
.pay-btn:hover, .pay-btn.active {
  border-color: var(--red); background: rgba(152,15,8,.1);
}
.pay-icon { font-size: 22px; display: block; margin-bottom: 4px; }
.giftcard-row { display: none; }
.giftcard-row.visible { display: block; }

.btn-submit {
  width: 100%; padding: 16px;
  background: var(--red); color: var(--white);
  border: none; border-radius: 12px;
  font-family: 'Bebas Neue'; font-size: 22px; letter-spacing: .08em;
  cursor: pointer; transition: background .2s, transform .15s;
  margin-top: 10px;
}
.btn-submit:hover { background: var(--red-l); transform: translateY(-1px); }

.form-note {
  font-size: 12px; color: var(--muted); text-align: center; margin-top: 14px; line-height: 1.6;
}

.minor-section { display: none; }
.minor-section.visible { display: block; }
.form-row.minor-section.visible { display: grid; }

.price-box {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(152,15,8,.1);
  border: 1px solid rgba(152,15,8,.3);
  border-radius: 12px; padding: 16px 20px; margin: 20px 0;
}
.price-label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); }
.price-val { font-family: 'Bebas Neue'; font-size: 36px; color: var(--white); letter-spacing: .04em; }
.price-sub { font-size: 11px; color: var(--muted); }

/* ═══════════════════════════════════════ LOCATION */
#location { background: #020a12; }
.location-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 36px; align-items: center; margin-top: 56px;
}
@media (min-width: 768px) {
  .location-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
}
.location-map {
  border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  height: 320px; background: rgba(10,79,122,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--muted);
  position: relative;
}
.location-map iframe { width: 100%; height: 100%; border: 0; }
.location-details h3 { font-family: 'Bebas Neue'; font-size: 36px; margin-bottom: 20px; }
.location-item {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 18px;
}
.location-item .li-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.location-item .li-text strong { display: block; font-size: 14px; margin-bottom: 2px; }
.location-item .li-text span { font-size: 13px; color: var(--muted); }

/* ═══════════════════════════════════════ FAQ */
#faq { background: var(--dark); }
.faq-list { max-width: 760px; margin: 48px auto 0; }
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,.08); overflow: hidden;
}
.faq-q {
  width: 100%; background: none; border: none; color: var(--white);
  font-family: 'Poppins'; font-size: 15px; font-weight: 600;
  padding: 20px 0; text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.faq-q::after {
  content: '+'; font-size: 22px; color: var(--red);
  flex-shrink: 0; transition: transform .3s;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  font-size: 14px; font-weight: 300; color: rgba(255,255,255,.6);
  line-height: 1.8; max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .3s;
  padding: 0 0 0;
}
.faq-item.open .faq-a { max-height: 400px; padding: 0 0 20px; }

/* ═══════════════════════════════════════ FOOTER */
footer {
  background: var(--black);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 48px 20px 32px;
}
.footer-inner {
  max-width: var(--max); margin: auto;
  display: grid; grid-template-columns: 1fr;
  gap: 32px;
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
}
.footer-brand .brand-m { font-size: 42px; }
.footer-brand p { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.7; }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,.7); text-decoration: none; font-size: 14px; margin-bottom: 8px; transition: color .2s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom {
  max-width: var(--max); margin: 32px auto 0;
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 24px;
  display: flex; flex-direction: column; align-items: flex-start;
  flex-wrap: wrap; gap: 12px;
  font-size: 12px; color: var(--muted);
}
@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); text-decoration: none; font-size: 15px;
  transition: background .2s, border-color .2s;
}
.social-link:hover { background: rgba(152,15,8,.3); border-color: var(--red); }

/* ═══════════════════════════════════════ SCROLL REVEAL */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ═══════════════════════════════════════ ALERT */
.alert {
  padding: 14px 18px; border-radius: 10px; margin-bottom: 20px;
  font-size: 14px; display: none;
}
.alert.ok { background: #052e16; color: #bbf7d0; border: 1px solid #166534; display: block; }
.alert.err { background: #450a0a; color: #fecaca; border: 1px solid #7f1d1d; display: block; }

/* ═══════════════════════════════════════ SPOTS COUNTDOWN */
.spots-countdown {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-radius: 12px; margin-bottom: 20px;
  font-size: 16px; font-weight: 600;
  background: linear-gradient(135deg, var(--water), var(--water-l));
  color: var(--white);
  box-shadow: 0 4px 12px rgba(10, 79, 122, 0.3);
}
.spots-countdown.spots-full {
  background: linear-gradient(135deg, var(--red), var(--red-l));
  box-shadow: 0 4px 12px rgba(152, 15, 8, 0.3);
}
.spots-icon {
  font-size: 24px;
}
.spots-text {
  flex: 1;
}

/* Waving water decoration */
.wave-divider { position: relative; height: 60px; overflow: hidden; }
.wave-divider svg { position: absolute; bottom: 0; }

/* Spaziatura tra le righe (gli UL) */
.sponsor-group--plain .logo-grid{
  margin: 18px 0;      /* spazio sopra/sotto ogni ul */
  padding: 0;          /* reset default */
  list-style: none;    /* niente pallini */
}

/* opzionale: niente margini extra sul primo/ultimo */
.sponsor-group--plain .logo-grid:first-child{ margin-top: 0; }
.sponsor-group--plain .logo-grid:last-child{ margin-bottom: 0; }


/* Sponsor grid “plain”: niente bordi, niente tagli */
.logo-grid--plain{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));
  gap:18px;
  align-items:center;
  justify-items:center;
}

/* Sponsor grid “plain”: niente bordi, niente tagli */
.logo-grid--plain{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));
  gap:18px;
  align-items:center;
  justify-items:center;
}

/* niente card/bordo/ratio */
.logo-grid--plain .logo{
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
  aspect-ratio:auto;
  width:100%;
  max-width:220px; /* evita colonne enormi su schermi larghi */
  overflow:visible;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* controlli l’altezza “riga loghi” qui */
.logo-grid--plain .logo a{
  display:flex;
  width:100%;
  height:96px;
  align-items:center;
  justify-content:center;
}

/* mai tagliati */
.logo-grid--plain .logo img{
  width:auto;
  height:100%;
  max-height:96px;
  max-width:100%;
  object-fit:contain;
  filter:none;
  opacity:1;
  transform:none;
}

/* mobile */
@media (max-width:480px){
  .logo-grid--plain{ grid-template-columns:repeat(3, minmax(90px, 1fr)); gap:10px; }
  .logo-grid--plain .logo a{ height:64px; }
  .logo-grid--plain .logo img{ max-height:64px; }
}

/* Spaziatura tra le righe (gli UL) */
.sponsor-group--plain .logo-grid{
  margin: 18px 0;      /* spazio sopra/sotto ogni ul */
  padding: 0;          /* reset default */
  list-style: none;    /* niente pallini */
}

/* opzionale: niente margini extra sul primo/ultimo */
.sponsor-group--plain .logo-grid:first-child{ margin-top: 0; }
.sponsor-group--plain .logo-grid:last-child{ margin-bottom: 0; }


/* Sponsor grid “plain”: niente bordi, niente tagli */
.logo-grid--plain{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(140px, 1fr));
  gap:18px;
  align-items:center;
  justify-items:center;
}

/* niente card/bordo/ratio */
.logo-grid--plain .logo{
  background:transparent;
  border:none;
  box-shadow:none;
  padding:0;
  aspect-ratio:auto;
  width:100%;
  max-width:220px; /* evita colonne enormi su schermi larghi */
  overflow:visible;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* controlli l’altezza “riga loghi” qui */
.logo-grid--plain .logo a{
  display:flex;
  width:100%;
  height:96px;
  align-items:center;
  justify-content:center;
}

/* mai tagliati */
.logo-grid--plain .logo img{
  width:auto;
  height:100%;
  max-height:96px;
  max-width:100%;
  object-fit:contain;
  filter:none;
  opacity:1;
  transform:none;
}

/* mobile */
@media (max-width:480px){
  .logo-grid--plain{ grid-template-columns:repeat(3, minmax(90px, 1fr)); gap:10px; }
  .logo-grid--plain .logo a{ height:64px; }
  .logo-grid--plain .logo img{ max-height:64px; }
}

/* Spaziatura tra le righe (gli UL) */
.sponsor-group--plain .logo-grid{
  margin: 18px 0;      /* spazio sopra/sotto ogni ul */
  padding: 0;          /* reset default */
  list-style: none;    /* niente pallini */
}

/* ══════════════════════════ COOKIE BANNER */
.cookie-banner{
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  display: none;
  justify-content: center;
  pointer-events: none;
}

.cookie-banner.show{
  display: flex;
}

.cookie-card{
  width: 100%;
  max-width: 980px;
  background: rgba(2,10,18,.96);
  color: #fff;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,.38);
  backdrop-filter: blur(12px);
  padding: 20px;
  pointer-events: auto;
}

.cookie-top{
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.cookie-copy{
  flex: 1;
  min-width: 0;
}

.cookie-kicker{
  display: inline-block;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #980f08;
}

.cookie-title{
  margin: 0 0 8px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 34px;
  line-height: 1;
  letter-spacing: .02em;
}

.cookie-text{
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.6;
  max-width: 760px;
}

.cookie-text a{
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 18px;
}

.cookie-btn{
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .18s ease, opacity .18s ease, background .18s ease, border-color .18s ease;
}

.cookie-btn:hover{
  transform: translateY(-1px);
}

.cookie-btn.primary{
  background: #980f08;
  color: #fff;
}

.cookie-btn.primary:hover{
  background: #b51209;
}

.cookie-btn.secondary{
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
}

.cookie-btn.secondary:hover{
  border-color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.04);
}

.cookie-btn.ghost{
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.92);
}

.cookie-prefs{
  display: none;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.cookie-prefs.open{
  display: block;
}

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

.cookie-option{
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 14px;
}

.cookie-option-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.cookie-option-title{
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.cookie-option-text{
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,.72);
  line-height: 1.55;
}

.cookie-switch{
  position: relative;
  width: 48px;
  height: 28px;
  flex: 0 0 auto;
}

.cookie-switch input{
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.cookie-slider{
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  transition: .2s;
}

.cookie-slider:before{
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: #fff;
  transition: .2s;
}

.cookie-switch input:checked + .cookie-slider{
  background: #980f08;
}

.cookie-switch input:checked + .cookie-slider:before{
  transform: translateX(20px);
}

.cookie-switch input:disabled + .cookie-slider{
  opacity: .7;
  cursor: not-allowed;
}

.cookie-meta{
  margin-top: 14px;
  font-size: 12px;
  color: rgba(255,255,255,.56);
}

@media (max-width: 768px){
  .cookie-banner{
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-card{
    padding: 16px;
    border-radius: 18px;
  }

  .cookie-title{
    font-size: 28px;
  }

  .cookie-grid{
    grid-template-columns: 1fr;
  }

  .cookie-actions{
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-btn{
    width: 100%;
    justify-content: center;
  }
}


