:root{
  --esn-orange: #f47b20;
  --esn-cyan: #00aeef;
  --esn-magenta: #ec008c;
  --esn-green: #7ac143;
  --esn-blue: #2e3192;
  --support-white: #ffffff;
  --support-black: #121318;
  --font-body: "Lato", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-heading: "Oswald", "Francois One", "Arial Narrow", sans-serif;
  --ink: var(--support-black);
  --muted: #5d6174;
  --line: rgba(46,49,146,.14);
  --bg: #f7f9fd;
  --surface: var(--support-white);
  --surface-muted: #f3f6fb;
  --brand: var(--esn-magenta);
  --brand-strong: var(--esn-blue);
  --mint: var(--esn-green);
  --rose: var(--esn-orange);
  --sky: var(--esn-cyan);
  --topbar: var(--esn-blue);
  --brand-soft: rgba(236,0,140,.14);
  --brand-soft-strong: rgba(236,0,140,.22);
  --brand-border: rgba(236,0,140,.38);
  --brand-border-strong: rgba(236,0,140,.55);
  --blue-soft: rgba(46,49,146,.08);
  --blue-soft-strong: rgba(46,49,146,.16);
  --sky-soft: rgba(0,174,239,.18);
  --sky-soft-strong: rgba(0,174,239,.35);
  --mint-soft: rgba(122,193,67,.18);
  --mint-soft-strong: rgba(122,193,67,.4);
  --rose-soft: rgba(244,123,32,.18);
  --rose-soft-strong: rgba(244,123,32,.4);
  --shadow-sm: 0 10px 24px rgba(46,49,146,.08);
  --shadow-md: 0 16px 36px rgba(46,49,146,.12);
  --shadow-lg: 0 24px 56px rgba(46,49,146,.16);
  --radius-xl: 24px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
}

*{
  box-sizing: border-box;
}

html{
  scroll-behavior: smooth;
  overflow-x: clip;
}

body{
  color: var(--ink);
  background:
    repeating-linear-gradient(135deg, rgba(0,174,239,.04) 0 2px, transparent 2px 22px),
    linear-gradient(180deg, #f9fbff 0%, #f9fbff 60%, #eef3fb 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  line-height: 1.6;
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.container{
  width: 100%;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}
@media (min-width: 576px){
  .container{
    max-width: 459px;
    padding-left: 12px;
    padding-right: 12px;
  }
}
@media (min-width: 768px){
  .container{
    max-width: 612px;
  }
}
@media (min-width: 992px){
  .container{
    max-width: 816px;
  }
}
@media (min-width: 1200px){
  .container{
    max-width: 969px;
  }
}
@media (min-width: 1400px){
  .container{
    max-width: 1122px;
  }
}

main{
  flex: 1 0 auto;
}

html.first-load main{
  animation: page-in .5s ease-out;
}

img{
  max-width: 100%;
  height: auto;
}
::view-transition-old(root),
::view-transition-new(root){
  animation: none;
}
a{
  color: var(--brand-strong);
  text-decoration-color: rgba(46,49,146,.35);
  transition: all 0.3s ease-in-out;
}
a:hover{
  color: var(--brand);
  text-decoration-color: rgba(236,0,140,.7);
}

a:focus-visible{
  outline: 3px solid var(--sky-soft-strong);
  outline-offset: 2px;
  border-radius: 6px;
}

h1, h2, h3, h4, .brand-name{
  font-family: var(--font-heading);
  letter-spacing: .3px;
}

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

.text-muted{
  color: var(--muted) !important;
}

:is(.card, .hero-card, .step-card, .payment-card, .cta-card, .event-map-card, .reg-card, .empty-card, .cookie-inner, .toast-message){
  position: relative;
  overflow: hidden;
}

.btn{
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  min-height: 44px;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
}
.btn-sm{
  padding: 8px 14px;
  min-height: 40px;
  font-size: .85rem;
}
.btn-tight{
  padding: 6px 6px;
  min-height: 34px;
}
.btn:hover{
  transform: translateY(-1px) scale(1.02);
  box-shadow: var(--shadow-sm);
}
.btn:active{
  transform: scale(1);
}
.btn:focus-visible{
  box-shadow: 0 0 0 3px var(--sky-soft-strong);
}

.btn-dark{
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px rgba(236,0,140,.18);
}
.btn-dark:hover,
.btn-dark:focus,
.btn-brand:hover,
.btn-brand:focus{
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: #fff;
}

.btn-outline-dark{
  border-color: var(--brand-strong);
  color: var(--brand-strong);
  background: rgba(46,49,146,.04);
}
.btn-outline-dark:hover,
.btn-outline-dark:focus{
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: #fff;
}

.btn-brand{
  background: var(--brand);
  border: 1px solid var(--brand);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 22px rgba(236,0,140,.18);
}

.brand-name{
  font-weight: 600;
  letter-spacing: .8px;
  color: var(--brand-strong);
  text-transform: uppercase;
}

.nav-link{
  font-weight: 500;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 16px;
  transition: all 0.3s ease-in-out;
  transform-origin: center;
}
.nav-link:hover,
.nav-link:focus{
  color: var(--brand-strong);
  background: var(--blue-soft);
  transform: scale(1.02);
}
.nav-link.is-active{
  color: var(--brand-strong);
  background: linear-gradient(90deg, rgba(46,49,146,.08), rgba(0,174,239,.1));
  box-shadow: inset 0 0 0 1px rgba(46,49,146,.08);
}

.navbar.bg-white{
  background: rgba(255,255,255,.94) !important;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(46,49,146,.04);
  overflow: hidden;
  padding: 0;
}

.navbar.bg-white::after{
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--sky), var(--brand), transparent);
}

.navbar .container{
  position: relative;
  display: flex;
  align-items: center;
  min-height: 64px;
  min-width: 0;
}

.navbar-toggler{
  border-radius: var(--radius-sm);
  border-color: var(--line);
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}
.navbar-toggler:focus,
.navbar-toggler:focus-visible{
  box-shadow: none;
  outline: none;
}
.navbar-expand-lg .navbar-toggler{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.navbar-nav-centered{
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.brand-logo{
  height: 34px;
  width: auto;
  filter: drop-shadow(0 8px 16px rgba(46,49,146,.12));
  padding-bottom: 2px;
}

.brand-logo--wordmark{
  height: 60px;
}

.navbar.bg-white .navbar-brand,
.navbar.bg-white .brand-name{
  color: var(--brand-strong);
}

.navbar.bg-white .navbar-brand{
  padding: 0;
  margin-right: 0;
  line-height: 0;
}

.navbar.bg-white .navbar-toggler{
  border-color: var(--line);
  color: var(--brand-strong);
}

.navbar.bg-white .navbar-toggler-icon{
  filter: none;
}

.topbar{
  background: var(--topbar);
  color: #fff;
  padding: 8px 0;
  position: relative;
  z-index: 1050;
  box-shadow: inset 0 -1px 0 rgba(255,255,255,.08);
}

.topbar-link{
  color: #fff;
  text-decoration: none;
  opacity: .92;
  transition: all 0.3s ease-in-out;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  line-height: 1;
  background: transparent;
}
.topbar-link--support{
  font-weight: 600;
}
.topbar-link__icon{
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.5);
  font-size: .78rem;
  font-weight: 700;
}
.topbar-left,
.topbar-right{
  min-width: 0;
}
.topbar-link:hover,
.topbar-link:focus{
  opacity: 1;
  text-decoration: none;
  background: rgba(255,255,255,.08);
  transform: scale(1.02);
}
.topbar-link:focus-visible{
  box-shadow: 0 0 0 3px rgba(255,255,255,.18);
}
.topbar-greeting{
  color: rgba(255,255,255,.92);
  font-weight: 600;
  font-size: 0.9rem;
  display: none;
}
.topbar-greeting::after{
  content: "|";
  opacity: .45;
  margin-left: 10px;
}
@media (min-width: 992px){
  .topbar-greeting{
    display: inline-flex;
    align-items: center;
  }
}
.sep{ opacity: .5; margin: 0 8px; }

.hero{
  padding: var(--space-4) 0;
}

.hero-grid{
  display: grid;
  grid-template-columns: 1.1fr 1.2fr;
  gap: var(--space-4);
  align-items: center;
}

.hero-title{
  font-weight: 600;
  font-size: 3.375rem;
  line-height: 1;
  color: var(--brand-strong);
  margin: 0 0 var(--space-2) 0;
  text-wrap: balance;
  hyphens: auto;
}

.hero-text{
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin: 0 0 var(--space-2) 0;
  max-width: none;
  width: 100%;
  grid-area: text;
}

.hero-actions{
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.hero-card{
  border: 1px solid var(--brand-soft);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  background:
    radial-gradient(circle at 12% 18%, rgba(0,174,239,.1), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(243,246,251,.95));
  box-shadow: none;
}
.hero-card-content{
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "title"
    "text"
    "actions";
  gap: var(--space-1) var(--space-3);
  align-items: start;
  justify-items: center;
}
.hero-headline{
  grid-area: title;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  text-align: center;
  width: 100%;
}
.hero-card .hero-text{
  text-align: center;
}
.hero-actions{
  grid-area: actions;
  justify-content: center;
}

.media-frame{
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--brand-strong);
  box-shadow: var(--shadow-lg);
}

.media-content{
  width: 100%;
  height: 100%;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.cta-card{
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(243,246,251,.95));
  box-shadow: var(--shadow-sm);
}

.cta-title{
  margin: 0 0 var(--space-1) 0;
}
.cta-text{
  color: var(--muted);
  margin: 0 0 var(--space-2) 0;
}

.section-title{
  font-weight: 600;
  margin-bottom: var(--space-2);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-title::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(84px, 100%);
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-strong), var(--brand) 62%, var(--sky));
}

.section-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
}

.events-carousel{
  position: relative;
}
.events-carousel-track{
  display: flex;
  gap: var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 10px 14px 14px;
  padding-left: 10px;
  scrollbar-width: none;
}
.events-carousel-track::-webkit-scrollbar{
  display: none;
}
.events-carousel-track .event-card{
  flex: 0 0 calc((100% - (3 * var(--space-3))) / 4);
  scroll-snap-align: start;
}
.carousel-btn{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--brand-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease-in-out;
  z-index: 2;
}
.carousel-btn svg{
  width: 20px;
  height: 20px;
}
.carousel-btn:hover,
.carousel-btn:focus{
  background: var(--blue-soft);
  border-color: var(--brand-border);
  color: var(--brand-strong);
}
.carousel-btn--prev{ left: -18px; }
.carousel-btn--next{ right: -18px; }
.carousel-btn.is-hidden{
  opacity: 0;
  pointer-events: none;
}

.events-grid{
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.event-card{
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: none;
  transition: all 0.3s ease-in-out;
}
.event-card:hover{
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 28px rgba(46,49,146,.08);
  border-color: var(--brand-border-strong);
}
.event-card:active{
  transform: translateY(-1px) scale(1);
}
.event-card:focus-visible{
  outline: 3px solid var(--sky-soft-strong);
  outline-offset: 2px;
}

.event-card-body{
  padding: var(--space-2);
  background: var(--surface);
}
.event-card-title{
  margin: 0 0 var(--space-1) 0;
  font-size: 1.05rem;
  font-weight: 600;
}
.event-card-meta{
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
}
.empty-card{
  border: 1px dashed var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  color: var(--muted);
  background: var(--surface);
}

.steps-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}
.step-card{
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(243,246,251,.95));
  box-shadow: var(--shadow-sm);
}
.step-number{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-strong), var(--brand));
  color: #fff;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.site-footer{
  border-top: 0;
  padding: var(--space-3) 0;
  background: linear-gradient(90deg, rgba(46,49,146,.98), rgba(46,49,146,.94));
  color: #fff;
  margin-top: auto;
  position: relative;
}
.site-footer::before{
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sky), var(--brand), var(--rose));
}
.site-footer::after{
  content: "";
  position: absolute;
  right: -52px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,174,239,.2), transparent 68%);
  pointer-events: none;
}
.site-footer-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  flex-wrap: wrap;
}
.site-footer-brand{
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: .6px;
  text-transform: uppercase;
}
.site-footer-links{
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: .95rem;
}
.site-footer-links a{
  color: rgba(255,255,255,.9);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.site-footer-links a:hover{
  text-decoration: underline;
  color: #fff;
  transform: scale(1.02);
}
.site-footer-meta{
  color: rgba(255,255,255,.72);
  font-size: .9rem;
}

.card{
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(243,246,251,.95));
  box-shadow: var(--shadow-sm);
}

.about-card{
  border-radius: var(--radius-md);
}

.about-photo{
  max-width: 100%;
  height: auto;
}

.payment-amount{
  font-size: 1.1em;
  font-family: var(--font-heading);
  letter-spacing: .2px;
  color: var(--brand-strong);
}

.msg{
  margin-bottom: var(--space-2);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.msg--success{
  background: var(--mint-soft);
  border-color: rgba(122,193,67,.45);
  color: #32541a;
}

.msg--danger{
  background: var(--rose-soft);
  border-color: rgba(244,123,32,.48);
  color: #7a3a09;
}

.breadcrumb-wrap{
  margin-bottom: var(--space-2);
}
.breadcrumb{
  margin-bottom: 0;
  font-size: .92rem;
}
.breadcrumb a{
  text-decoration: none;
  color: var(--brand-strong);
}
.breadcrumb .breadcrumb-item + .breadcrumb-item::before{
  color: var(--muted);
}
.breadcrumb .breadcrumb-item.active{
  color: var(--muted);
}

.event-detail-grid{
  display: grid;
  grid-template-columns: minmax(300px, 1.2fr) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}
.event-detail-grid > *{
  min-width: 0;
}
.vt-card-active .event-detail-media .media-frame{
  view-transition-name: event-card-active;
}
.event-detail-media .media-frame{
  background: transparent;
  border: 0;
  padding: 0;
  overflow: visible;
  height: auto;
  min-height: 0;
}
.event-media{
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}
.event-detail-text{
  color: var(--ink);
  line-height: 1.7;
  min-width: 0;
  overflow-wrap: anywhere;
}
.event-detail-text a{
  overflow-wrap: anywhere;
  word-break: break-word;
}
.event-detail-text ul,
.event-detail-text ol{
  margin: 0.6rem 0 0.8rem 1.2rem;
  padding: 0;
}
.event-detail-text ol li::marker{
  font-weight: 700;
}
.event-detail-text li{
  margin: 0.2rem 0;
}
.event-detail-meta{
  display: grid;
  gap: var(--space-1);
  margin: var(--space-2) 0 var(--space-3);
}
.event-detail-optionals{
  display: grid;
  gap: 4px;
}
.event-detail-optionals-list{
  display: grid;
  gap: 2px;
  padding-left: 12px;
}
.event-detail-meta-row{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.event-meta-value{
  color: var(--ink);
  min-width: 0;
  overflow-wrap: anywhere;
}
.event-meta-action{
  width: 25px;
  min-width: 25px;
  height: 25px;
  min-height: 25px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
}
.event-meta-action span{
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.event-meta-action__icon{
  width: 18px;
  height: 18px;
  display: block;
  position: relative;
  top : 2px;
}
.event-detail-actions{
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}
.qr-card{
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: fit-content;
  max-width: 100%;
  border-radius: 18px;
}
.qr-image{
  width: 220px;
  max-width: 100%;
  height: auto;
  display: block;
}
.qr-actions{
  justify-content: center;
}
.qr-actions .qr-download{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.qr-actions .qr-download svg{
  width: 18px;
  height: 18px;
}
.event-map-card{
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  background: var(--surface);
  margin-bottom: var(--space-3);
}
.event-map-title{
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.event-map-frame{
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(243,246,251,.96));
}
.event-map-frame iframe{
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
}
.event-map-placeholder{
  min-height: 240px;
  padding: 24px 22px;
  display: grid;
  align-content: center;
  gap: 12px;
}
.event-map-placeholder__icon{
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,174,239,.12);
  color: #126fb5;
}
.event-map-placeholder__icon svg{
  width: 24px;
  height: 24px;
}
.event-map-placeholder__title{
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}
.event-map-placeholder__text{
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.event-map-placeholder__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.event-map-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  color: var(--brand-strong);
  text-decoration: none;
  font-weight: 600;
}
.event-map-link:hover{
  color: var(--brand-strong);
  text-decoration: none;
  transform: translateY(-1px);
}
.event-map-embed[hidden]{
  display: none !important;
}

.payment-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-3);
}
.payment-card{
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(243,246,251,.95));
  box-shadow: var(--shadow-sm);
}
.wallet-badges{
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  margin-bottom: var(--space-2);
}
.wallet-badge{
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: .78rem;
  color: var(--muted);
  background: var(--surface-muted);
}
.wallet-badge--logo{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 50px;
  padding: 0;
  background: #fff;
  flex: 0 0 84px;
}
.wallet-badge-logo{
  display: block;
  width: 64px;
  height: 24px;
  object-fit: contain;
  object-position: center;
}
.wallet-badge-logo--paypal{
  width: 70px;
  height: 26px;
}
.wallet-badge-logo--apple-pay,
.wallet-badge-logo--google-pay{
  width: 60px;
}
.wallet-badge-logo--revolut-pay,
.wallet-badge-logo--satispay{
  width: 70px;
}
.form-legend{
  color: var(--muted);
  font-size: .9rem;
  margin-bottom: var(--space-2);
}
.page-loader{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(247,249,253,.58);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
  z-index: 12000;
}
.page-loader.is-active{
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}
.page-loader__spinner{
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 4px solid rgba(46,49,146,.2);
  border-top-color: var(--brand-strong);
  background: rgba(255, 255, 255, 0.662);
  box-shadow: 0 12px 28px rgba(46,49,146,.16);
  animation: page-loader-spin 0.9s linear infinite;
}

.form-control,
.form-select,
.form-check-input{
  border-radius: var(--radius-sm);
  border-color: var(--line);
}
.form-control:focus,
.form-select:focus,
.form-check-input:focus{
  border-color: var(--sky);
  box-shadow: 0 0 0 3px var(--sky-soft);
}
.form-control::placeholder{
  color: rgba(93,93,102,.7);
}

.bank-details{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--space-1);
}
.bank-detail{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--space-1) var(--space-2);
  background: var(--surface-muted);
}
.bank-label{
  min-width: 110px;
  font-weight: 600;
  font-size: .9rem;
}
.bank-value{
  flex: 1;
  min-width: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .9rem;
  word-break: break-word;
}
.copy-btn{
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  flex: 0 0 auto;
  transition: all 0.3s ease-in-out;
}
.copy-btn:hover{
  transform: scale(1.02);
  background: var(--surface-muted);
}
.copy-btn--copied{
  background: var(--mint);
  border-color: var(--mint);
  color: #264a10;
}
.copy-icon{
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.registrations-filter-panel{
  border: 1px solid rgba(46,49,146,.24);
  border-radius: 24px;
  padding: var(--space-2);
  background: linear-gradient(180deg, rgba(255,255,255,.98) 0%, rgba(248,250,255,.98) 100%);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.registrations-filter-summary{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  border-radius: 16px;
  min-height: 54px;
  padding: 4px 6px;
  background: var(--surface);
  transition: border-color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.registrations-filter-summary::-webkit-details-marker{
  display: none;
}
.registrations-filter-summary:hover{
  background: var(--surface-muted);
}
.registrations-filter-panel[open] .registrations-filter-summary{
  background: var(--surface);
}
.registrations-filter-summary:focus-visible{
  outline: none;
  box-shadow: 0 0 0 4px var(--blue-soft);
}
.registrations-filter-summary__icon{
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--brand-strong);
  color: var(--brand-strong);
  background: rgba(46,49,146,.04);
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.registrations-filter-summary:hover .registrations-filter-summary__icon,
.registrations-filter-summary:focus-visible .registrations-filter-summary__icon,
.registrations-filter-panel[open] .registrations-filter-summary__icon{
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: #fff;
}
.registrations-filter-summary__icon svg{
  width: 16px;
  height: 16px;
  transition: transform .2s ease;
}
.registrations-filter-panel[open] .registrations-filter-summary__icon svg{
  transform: rotate(180deg);
}
.registrations-filter-kicker{
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink);
}
.registrations-filter-copy{
  font-size: .95rem;
  color: var(--ink);
}
.registrations-filter-form{
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(46,49,146,.12);
}
.registrations-filter-grid{
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
}
.registrations-filter-grid > *{
  min-width: 0;
}
.registrations-filter-search{
  flex: 1.8 1 280px;
}
.registrations-filter-field{
  flex: 1 1 180px;
}
.registrations-filter-field--checkin{
  flex: 0 1 156px;
  max-width: 156px;
}
.registrations-filter-sort{
  flex: 0 0 auto;
}
.reg-filter-search-shell .input-group-text,
.reg-filter-search-shell .form-control,
.reg-filter-select,
.reg-filter-action,
.reg-sort-toggle{
  min-height: 54px;
  border-radius: 15px;
}
.reg-filter-search-shell .input-group-text,
.reg-filter-search-shell .form-control,
.reg-filter-select,
.reg-sort-toggle{
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}
.reg-filter-search-shell .input-group-text{
  padding: 0 16px;
  border-right: 0;
  color: var(--muted);
}
.reg-filter-search-shell .form-control{
  border-left: 0;
  padding-right: 16px;
}
.reg-filter-search-shell .form-control:focus{
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}
.reg-filter-search-shell .form-control::placeholder{
  color: var(--muted);
}
.reg-filter-search-shell svg,
.reg-sort-toggle svg{
  width: 18px;
  height: 18px;
}
.reg-filter-select{
  padding-left: 16px;
  padding-right: 44px;
  color: var(--ink);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='rgba(18,19,24,0.74)' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-size: 16px 16px;
  background-repeat: no-repeat;
}
.reg-filter-select--placeholder{
  color: var(--muted);
}
.reg-filter-select-wrap{
  position: relative;
}
.reg-filter-select-wrap--prefixed{
  display: flex;
  align-items: center;
  min-height: 54px;
  padding: 0 12px 0 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
  cursor: pointer;
  width: fit-content;
  max-width: 100%;
}
.reg-filter-select-prefix{
  flex: 0 0 auto;
  margin-right: 10px;
  color: var(--muted);
  font-weight: 400;
  pointer-events: none;
  white-space: nowrap;
}
.reg-filter-select-wrap--prefixed:focus-within{
  border-color: rgba(46,49,146,.48);
  box-shadow: 0 0 0 4px var(--blue-soft);
}
.reg-filter-select--embedded{
  flex: 1 1 auto;
  min-width: 0;
  min-height: auto;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: 0;
  padding-right: 28px;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: right 2px center;
  box-shadow: none;
}
.reg-filter-select-wrap--prefixed .reg-filter-select:focus{
  border-color: transparent;
  box-shadow: none;
}
.reg-filter-select--prefix-only{
  color: transparent;
  text-shadow: none;
}
.reg-filter-select:focus,
.reg-filter-search-shell .form-control:focus,
.reg-filter-action:focus-visible,
.reg-sort-toggle:focus-visible{
  border-color: rgba(46,49,146,.48);
  box-shadow: 0 0 0 4px var(--blue-soft);
}
.reg-filter-select option{
  color: #101828;
}
.registrations-sort-group{
  display: grid;
  grid-template-columns: auto 54px;
  gap: 12px;
  width: fit-content;
  max-width: 100%;
}
.reg-sort-toggle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-color: rgba(46,49,146,.35);
  background: var(--surface);
  color: var(--brand-strong);
}
.reg-sort-toggle svg{
  transition: transform .2s ease;
}
.reg-sort-toggle[data-direction="desc"] svg{
  transform: rotate(180deg);
}
.reg-filter-action{
  flex: 0 0 auto;
  min-width: 108px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(46,49,146,.35);
  background: var(--surface);
  color: var(--brand-strong);
  box-shadow: none;
}
.reg-filter-action--ghost{
  color: var(--ink);
}
.reg-filter-action:hover,
.reg-sort-toggle:hover{
  background: var(--surface-muted);
  color: var(--brand-strong);
}
.registration-closed-cta{
  gap: 8px;
}
.registration-closed-cta__icon{
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  color: var(--esn-magenta);
}

.reg-cards{
  display: grid;
  gap: var(--space-2);
}
.reg-card{
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-2) var(--space-3);
  background: var(--surface);
}
.reg-card-title{
  font-weight: 600;
  margin-bottom: var(--space-1);
}
.reg-card-row{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-1);
  font-size: .92rem;
}
.reg-card-label{
  color: var(--muted);
}
.reg-card-value{
  flex: 1;
  min-width: 0;
  text-align: right;
  word-break: break-word;
}
.reg-actions{
  white-space: nowrap;
}
.sticky-table{
  --sticky-col-1: 96px;
  --sticky-col-2: 112px;
  --sticky-col-actions: 104px;
  --sticky-header-offset: 0px;
  --sticky-header-height: 0px;
  overflow-x: auto;
  overflow-y: visible;
  position: relative;
}
.sticky-table__table{
  min-width: 980px;
  border-collapse: separate;
  border-spacing: 0;
  position: relative;
  z-index: 2;
  background: transparent;
}
.sticky-table__table thead{
  position: relative;
  z-index: 6;
  background: var(--surface);
}

.sticky-table__table thead th{
  position: sticky;
  top: var(--sticky-header-offset);
  background: var(--surface);
  z-index: 8;
  box-shadow: 0 1px 0 var(--line);
  background-clip: padding-box;
}

.sticky-table__table th,
.sticky-table__table td{
  white-space: nowrap;
  padding: 12px 12px;
}
.sticky-table__table tbody{
  position: relative;
  z-index: 1;
}
.sticky-table__table tbody tr:first-child td{
  border-top: 0;
}
.sticky-col{
  position: sticky;
  background: var(--surface);
}
.sticky-col--first{
  left: 0;
  min-width: var(--sticky-col-1);
  z-index: 5;
  box-shadow: none;
}
.sticky-col--second{
  left: var(--sticky-col-1);
  min-width: var(--sticky-col-2);
  z-index: 5;
  box-shadow: none;
}
.sticky-col--actions{
  right: 0;
  min-width: var(--sticky-col-actions);
  z-index: 5;
  box-shadow: none;
}
.sticky-table__table th.sticky-col--first,
.sticky-table__table td.sticky-col--first{
  padding-left: 16px;
}
.sticky-table__table th.sticky-col--actions,
.sticky-table__table td.sticky-col--actions{
  padding-right: 16px;
}
.col-phone,
.col-dietary,
.col-extra{
  min-width: 180px;
}

.sticky-table__table th.sticky-col,
.sticky-table__table td.sticky-col{
  position: sticky;       
  background: var(--surface);
  z-index: 5;       
}
.sticky-table__table th.sticky-col{
  z-index: 9;
}
/* Ombra sul bordo destro di Cognome quando has-scroll-left */
.sticky-table.has-scroll-left .sticky-col--second::after{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  right: -1px; 
  width: 16px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.16), rgba(0,0,0,0));
}

/* Ombra sul bordo sinistro di Azioni quando has-scroll-right */
.sticky-table.has-scroll-right .sticky-col--actions::before{
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -8px;
  width: 16px;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0), rgba(0,0,0,.16));
}
 

.scroll-anchor{
  scroll-margin-top: calc(var(--sticky-header-offset) + 24px);
}
.scroll-top-btn{
  position: fixed;
  right: 20px;
  bottom: 24px;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(46,49,146,.18);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1080;
}
.scroll-top-btn svg{
  width: 18px;
  height: 18px;
}
.scroll-top-btn.is-visible{
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.reg-action-stack{
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.reg-action-btn{
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.reg-action-btn svg{
  width: 18px;
  height: 18px;
}
.reg-action-btn--active{
  background: var(--mint-soft);
  border-color: rgba(122,193,67,.8);
  color: #32541a;
}
.reg-action-btn--danger{
  background: var(--rose-soft);
  border-color: rgba(244,123,32,.75);
  color: #7a3a09;
}
.reg-note-btn--active{
  background: var(--brand-soft);
  border-color: var(--brand-border-strong);
  color: var(--brand-strong);
}
.reg-note-dot{
  position: absolute;
  top: 5px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  border: 2px solid var(--surface);
}
.reg-card-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--space-2);
}
.reg-card-actions .reg-action-btn{
  width: auto;
  height: auto;
  padding: 6px 12px;
  gap: 8px;
}
.reg-card-actions .reg-action-btn svg{
  width: 16px;
  height: 16px;
}
.notes-list{
  display: grid;
  gap: 10px;
}
.notes-modal-body{
  max-height: 260px;
  overflow-y: auto;
}
.note-item{
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  background: var(--surface-muted);
}
.note-meta{
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: .78rem;
  color: var(--muted);
}
.note-body{
  margin-top: 6px;
  font-size: .9rem;
  color: var(--ink);
}
.new-action-toggle{
  width: 40px;
  height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}
.new-action-toggle::after{
  display: none;
}
.payment-link-trigger{
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 8px 8px 18px rgba(31,31,33,.18), 3px 2px 4px rgba(31,31,33,.12);
  transition: transform .2s ease, box-shadow .2s ease;
}
.payment-link-trigger:hover{
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(31,31,33,.2), 0 4px 8px rgba(31,31,33,.14);
}
.payment-link-trigger:focus-visible{
  outline: 3px solid var(--sky-soft-strong);
  outline-offset: 2px;
}
.payment-link-qr-wrap{
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: var(--space-2);
}
.payment-link-qr{
  width: 180px;
  height: 180px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(31,31,33,.14);
  padding: 10px;
}
.proof-thumb{
  width: 44px;
  height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-muted);
  color: var(--muted);
  font-size: .7rem;
  text-transform: uppercase;
}
.proof-thumb--pdf{
  display: inline-flex;
}
.proof-trigger{
  padding: 0;
  border: 0;
  background: transparent;
}
.proof-link{
  display: inline-flex;
}
.proof-modal-sm{
  max-width: 520px;
}
.proof-preview-body{
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 240px;
  overflow: auto;
}
.proof-preview-image{
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  transform-origin: center center;
  transition: transform 0.2s ease-in-out;
  cursor: grab;
  user-select: none;
  touch-action: none;
  will-change: transform;
}
.proof-preview-image.is-dragging{
  cursor: grabbing;
}
.proof-preview-frame{
  width: 100%;
  height: 70vh;
  border: 0;
  border-radius: var(--radius-sm);
}
.proof-preview-pdf{
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.proof-preview-pdf-icon{
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--brand-soft);
  border: 1px solid var(--brand-border);
  color: var(--brand-strong);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  letter-spacing: .6px;
}
.proof-zoom-controls{
  display: inline-flex;
  gap: 8px;
  margin-left: 10px;
}
.proof-zoom-controls .btn{
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.proof-zoom-controls svg{
  width: 18px;
  height: 18px;
}

.qr-scan-grid{
  display: grid;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  gap: var(--space-2);
  align-items: start;
  justify-content: center;
}
.qr-scan-modal-dialog{
  max-width: 760px;
}
.qr-video{
  width: min(100%, 300px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--brand-strong);
  justify-self: center;
}
.qr-scan-sidebar{
  min-width: 0;
}
.qr-result-card{
  display: flex;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--line);
}
.qr-result-body{
  flex: 1;
  padding: var(--space-2);
  background: var(--surface-muted);
}
.qr-result-name{
  font-weight: 700;
  margin-bottom: 2px;
}
.qr-result-email{
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: var(--space-1);
}
.qr-result-row{
  display: flex;
  justify-content: space-between;
  gap: var(--space-2);
  font-size: .95rem;
  padding: 2px 0;
  align-items: flex-start;
}
.qr-result-label{
  color: var(--muted);
}
.qr-result-value{
  text-align: right;
}
.qr-result-note{
  margin-top: 6px;
  font-size: .85rem;
  color: var(--muted);
}
.qr-result-icon{
  width: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
  font-weight: 800;
}
.qr-result-card--success{
  border-color: rgba(122,193,67,.8);
}
.qr-result-card--success .qr-result-body{
  background: var(--mint-soft);
}
.qr-result-card--success .qr-result-icon{
  background: var(--mint);
  color: #264a10;
}
.qr-result-card--already{
  border-color: rgba(244,123,32,.72);
}
.qr-result-card--already .qr-result-body{
  background: rgba(244,123,32,.14);
}
.qr-result-card--already .qr-result-icon{
  background: rgba(244,123,32,.24);
  color: #7a3a09;
}
.qr-result-card--danger{
  border-color: rgba(244,123,32,.8);
}
.qr-result-card--danger .qr-result-body{
  background: var(--rose-soft);
}
.qr-result-card--danger .qr-result-icon{
  background: var(--rose);
  color: #7a3a09;
}
.qr-result-card--warning{
  border-color: var(--brand-border-strong);
}
.qr-result-card--warning .qr-result-body{
  background: var(--brand-soft);
}
.qr-result-card--warning .qr-result-icon{
  background: var(--brand);
  color: #fff;
}

.menu-link{
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: rgba(255,255,255,.56);
  font-weight: 600;
  transition: all 0.3s ease-in-out;
}
.menu-link::after{
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  opacity: .28;
  flex: 0 0 auto;
}
.menu-link:hover,
.menu-link:focus{
  background: var(--blue-soft);
  color: var(--brand-strong);
  transform: scale(1.02);
}
.menu-link.is-active{
  background: linear-gradient(90deg, rgba(46,49,146,.09), rgba(0,174,239,.12));
  border-color: rgba(46,49,146,.12);
  color: var(--brand-strong);
}

.cookie-banner{
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  padding-top: max(18px, env(safe-area-inset-top));
  z-index: 9999;
  display: block;
  pointer-events: none;
}
.cookie-banner[hidden],
.cookie-settings-trigger[hidden]{
  display: none !important;
}
.cookie-inner{
  width: min(640px, 100%);
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,.995), rgba(248,250,253,.98));
  border: 1px solid rgba(46,49,146,.12);
  border-radius: 22px;
  padding: 14px 16px 16px;
  box-shadow: 0 18px 40px rgba(31,31,33,.16), 0 8px 18px rgba(46,49,146,.1);
  max-height: calc(100dvh - max(36px, env(safe-area-inset-top)) - max(18px, env(safe-area-inset-bottom)));
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  pointer-events: auto;
}
.cookie-shell{
  display: grid;
  gap: 12px;
}
.cookie-summary{
  display: grid;
  gap: 10px;
}
.cookie-summary__head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.cookie-summary__title-wrap{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.cookie-summary__icon{
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,174,239,.12), rgba(46,49,146,.18));
  color: var(--brand-strong);
  flex: 0 0 auto;
}
.cookie-summary__icon-image{
  width: 26px;
  height: 26px;
  display: block;
}
.cookie-close{
  width: 34px;
  height: 34px;
  border: 1px solid rgba(18,19,24,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: var(--ink);
  font-size: 1.2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.cookie-close:hover,
.cookie-close:focus{
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(31,31,33,.12);
  background: #fff;
}
.cookie-title{
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.18rem;
  line-height: 1.1;
}
.cookie-copy{
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.5;
}
.cookie-details{
  display: grid;
  gap: 10px;
  padding-top: 4px;
  border-top: 1px solid rgba(18,19,24,.08);
}
.cookie-category{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(18,19,24,.08);
  border-radius: 16px;
  background: rgba(247,249,253,.92);
}
.cookie-category__main{
  min-width: 0;
  flex: 1 1 auto;
}
.cookie-category__summary{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}
.cookie-category__summary:hover{
  color: var(--brand-strong);
}
.cookie-category__summary[aria-expanded="true"] .cookie-category__chevron{
  transform: rotate(180deg);
}
.cookie-category__chevron{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  color: var(--brand-strong);
  transition: transform .2s ease;
}
.cookie-category__chevron svg{
  width: 16px;
  height: 16px;
}
.cookie-category__title{
  margin: 0;
  font-size: .98rem;
  font-weight: 700;
  color: var(--ink);
}
.cookie-category__body{
  margin-top: 10px;
}
.cookie-category__text{
  margin: 0;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.45;
}
.cookie-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: .76rem;
  font-weight: 700;
  color: var(--brand-strong);
  background: rgba(46,49,146,.08);
}
.cookie-chip--required{
  color: #2b7b37;
  background: rgba(122,193,67,.16);
}
.cookie-toggle-field{
  position: relative;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
.cookie-toggle-input{
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.cookie-toggle-button{
  width: 54px;
  height: 32px;
  border-radius: 999px;
  border: 0;
  padding: 4px;
  background: rgba(18,19,24,.18);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  transition: background .2s ease, transform .2s ease;
}
.cookie-toggle-button__thumb{
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 7px rgba(31,31,33,.18);
  transition: transform .2s ease;
}
.cookie-toggle-input:checked + .cookie-toggle-button,
.cookie-toggle-button.is-on{
  background: linear-gradient(135deg, var(--brand-strong), var(--sky));
}
.cookie-toggle-input:checked + .cookie-toggle-button .cookie-toggle-button__thumb,
.cookie-toggle-button.is-on .cookie-toggle-button__thumb{
  transform: translateX(22px);
}
.cookie-toggle-input:focus-visible + .cookie-toggle-button,
.cookie-toggle-button:focus-visible{
  outline: 3px solid var(--sky-soft-strong);
  outline-offset: 2px;
}
.cookie-toggle-button.is-locked{
  cursor: pointer;
}
.cookie-actions{
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.cookie-actions .btn{
  width: 100%;
  min-width: 0;
  min-height: 46px;
  border-radius: 14px;
  font-weight: 700;
}
.cookie-actions .btn-outline-dark{
  background: rgba(46,49,146,.04);
  border-color: var(--brand-strong);
  color: var(--brand-strong);
}
.cookie-actions .btn-outline-dark:hover,
.cookie-actions .btn-outline-dark:focus,
.cookie-actions .btn-outline-dark:focus-visible{
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: #fff;
}
.cookie-actions .is-save-mode{
  background: var(--brand-strong);
  color: #fff;
  border-color: var(--brand-strong);
}
.cookie-actions .is-save-mode:hover,
.cookie-actions .is-save-mode:focus,
.cookie-actions .is-save-mode:focus-visible{
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: #fff;
}
.cookie-banner.is-expanded .cookie-inner{
  width: min(680px, 100%);
}
.cookie-settings-trigger{
  position: fixed;
  left: max(18px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 9998;
}
.cookie-settings-button{
  width: 54px;
  height: 54px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand-strong), #2d89e4);
  box-shadow: 0 18px 34px rgba(31,31,33,.2), 0 6px 16px rgba(46,49,146,.18);
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.cookie-settings-button:hover,
.cookie-settings-button:focus{
  color: #fff;
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 22px 38px rgba(31,31,33,.24), 0 10px 22px rgba(46,49,146,.2);
}
.cookie-settings-button__icon{
  width: 34px;
  height: 34px;
  display: block;
}
.cookie-modal{
  background: #2f3137;
  color: #fff;
  border: 0;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(18,19,24,.28);
}
.cookie-dialog{
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  pointer-events: auto;
}
.cookie-dialog__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(18,19,24,.46);
  backdrop-filter: blur(3px);
}
.cookie-dialog__panel{
  position: relative;
  width: min(460px, 100%);
  padding: 28px 24px 20px;
  background: #2f3137;
  color: #fff;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(18,19,24,.32);
}
.cookie-dialog__actions{
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
.cookie-modal__title{
  margin: 0 0 12px;
  font-size: 1.25rem;
  font-weight: 700;
}
.cookie-modal__text{
  margin: 0;
  color: rgba(255,255,255,.86);
  line-height: 1.55;
}
.cookie-modal__button{
  min-width: 92px;
  border-radius: 999px;
}

.flag-btn{
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  line-height: 1;
  transition: all 0.3s ease-in-out;
}
.flag-btn:hover{ background: rgba(255,255,255,.08); transform: scale(1.02); }
.lang-dropdown{
  margin: 0;
}
.lang-btn{
  border: 1px solid rgba(255,255,255,.25);
  background: transparent;
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.3s ease-in-out;
}
.lang-btn:hover,
.lang-btn:focus{
  background: rgba(255,255,255,.08);
  color: #fff;
  transform: scale(1.02);
}
.lang-flag{
  font-size: 1rem;
  line-height: 1;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}
.lang-text{
  font-size: .9rem;
  font-weight: 600;
}
.lang-menu .dropdown-item{
  display: flex;
  align-items: center;
  gap: 8px;
}
.lang-menu{
  z-index: 1060;
}
.topbar .dropdown-menu{
  z-index: 1060;
}

.alert{
  border-radius: var(--radius-md);
  border: 1px solid transparent;
}
.alert-success{
  background: var(--mint-soft);
  border-color: rgba(122,193,67,.6);
  color: #32541a;
}
.alert-danger{
  background: var(--rose-soft);
  border-color: rgba(244,123,32,.6);
  color: #7a3a09;
}
.alert-warning{
  background: var(--brand-soft);
  border-color: var(--brand-border);
  color: var(--brand-strong);
}
.alert-info{
  background: var(--sky-soft);
  border-color: rgba(0,174,239,.45);
  color: #124867;
}
.alert-banner{
  border-left: 4px solid var(--mint);
  padding: 12px 16px;
}
.alert-banner .alert-icon{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mint);
  color: #264a10;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.alert-banner .alert-icon svg{
  width: 18px;
  height: 18px;
}
.toast-stack{
  position: fixed;
  bottom: 56px;
  left: 0;
  right: 0;
  margin-left: 0;
  margin-right: 0;
  z-index: 1080;
  display: grid;
  justify-items: center;
  gap: 10px;
  width: 100%;
  padding: 0 16px;
  box-sizing: border-box;
  pointer-events: none;
}
.toast-message{
  pointer-events: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(31,31,33,.16);
  background: var(--surface);
  overflow: hidden;
  width: fit-content;
  max-width: calc(100vw - 32px);
}
.toast-body{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  font-size: .95rem;
  color: var(--ink);
}
.toast-icon{
  width: 28px;
  height: 28px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
  background: rgba(18,19,24,.08);
  color: var(--ink);
  flex: 0 0 auto;
}
.toast-text{
  flex: 1;
}
.toast-close{
  filter: none;
  opacity: .6;
}
.toast-close:hover{
  opacity: 1;
}
.toast--success .toast-icon{
  background: var(--mint-soft-strong);
  color: #264a10;
}
.toast--danger .toast-icon{
  background: var(--rose-soft-strong);
  color: #7a3a09;
}
.toast--warning .toast-icon{
  background: var(--brand-soft-strong);
  color: var(--brand-strong);
}
.toast--info .toast-icon{
  background: var(--sky-soft-strong);
  color: #124867;
}

@keyframes page-in{
  from{ opacity: 0; transform: translateY(20px); }
  to{ opacity: 1; transform: translateY(0); }
}
@keyframes page-loader-spin{
  from{ transform: rotate(0deg); }
  to{ transform: rotate(360deg); }
}

@view-transition{
  navigation: auto;
}

@keyframes fade-in{
  from{ opacity: 0; }
  to{ opacity: 1; }
}
@keyframes fade-out{
  from{ opacity: 1; }
  to{ opacity: 0; }
}

::view-transition-old(event-card-active),
::view-transition-new(event-card-active){
  animation-fill-mode: both;    /* importante per evitare glitch tra keyframes */
  transform-origin: center;
}

@keyframes card-zoom-out{
  from{ transform: scale(1); opacity: 1; }
  to{ transform: scale(1.1); opacity: .1; }
}
@keyframes card-zoom-in{
  from{ transform: scale(.92); opacity: 0; }
  to{ transform: scale(1); opacity: 1; }
}
html.vt-card-active .event-hero-media{
  view-transition-name: event-card-active;
}
.event-hero-media,
.event-hero-media img{
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.event-card-media{
  background: var(--surface);
  display: block;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
}
.event-card-media img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
/* responsive */
@media (max-width: 991px){
  .hero-grid{
    grid-template-columns: 1fr;
  }
  .hero{
    padding: var(--space-4) 0;
  }
  .hero-title{
    font-size: 2.875rem;
  }
  .events-grid{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .events-carousel-track .event-card{
    flex-basis: calc((100% - var(--space-3)) / 2);
  }
  .carousel-btn--prev{ left: -10px; }
  .carousel-btn--next{ right: -10px; }
  .steps-grid{
    grid-template-columns: 1fr;
  }
  .event-detail-grid{
    grid-template-columns: 1fr;
  }
  .payment-grid{
    grid-template-columns: 1fr;
  }
  .event-map-frame iframe{
    height: 200px;
  }
  .qr-scan-grid{
    grid-template-columns: 1fr;
  }
  .qr-video{
    width: min(100%, 280px);
  }
  .site-footer-row{
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 600px){
  .registrations-filter-panel{
    padding: var(--space-2);
    border-radius: 20px;
  }
  .registrations-filter-grid{
    flex-direction: column;
  }
  .registrations-filter-search,
  .registrations-filter-field,
  .registrations-filter-sort,
  .reg-filter-action{
    flex: 1 1 auto;
    width: 100%;
  }
  .registrations-filter-field--checkin{
    max-width: none;
  }
  .reg-filter-action{
    min-width: 0;
  }
  .navbar .container{
    min-height: 58px;
  }
  .topbar .container{
    flex-wrap: wrap;
  }
  .brand-logo--wordmark{
    height: 50px;
  }
  .hero-card-content{
    text-align: center;
    justify-items: center;
  }
  .hero-title{
    font-size: 2.25rem;
    line-height: 1.04;
  }
  .hero-card,
  .hero-text{
    text-align: center;
  }
  .hero-actions{
    justify-content: center;
  }
  .section-head{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .section-head .btn{
    width: 100%;
    max-width: 280px;
  }
  .breadcrumb{
    justify-content: center;
  }
  .event-detail-actions{
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
  }
  .event-detail-actions .btn,
  .event-detail-actions .alert{
    width: 100%;
  }
  .qr-card{
    width: 100%;
  }
  .qr-image{
    margin-left: auto;
    margin-right: auto;
  }
  .qr-video{
    width: min(100%, 240px);
  }
  .qr-result-icon{
    width: 72px;
  }
  .site-footer-row{
    align-items: center;
    text-align: center;
  }
  .site-footer-links{
    justify-content: center;
  }
  .events-grid{
    grid-template-columns: 1fr;
  }
  .events-carousel-track .event-card{
    flex-basis: 85%;
  }
  .carousel-btn{
    width: 38px;
    height: 38px;
  }
  .payment-card .btn,
  .modal-footer .btn{
    width: 100%;
  }
  .modal-footer{
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .modal-footer > *{
    margin: 0;
  }
  .bank-detail{
    align-items: flex-start;
  }
  .bank-label{
    min-width: 0;
    width: 100%;
  }
  .copy-btn{
    margin-left: auto;
  }
  .reg-card{
    padding: var(--space-2);
  }
  .reg-card-row{
    flex-direction: column;
  }
  .reg-card-value{
    text-align: left;
  }
  .cookie-banner{
    left: max(12px, env(safe-area-inset-left));
    right: max(12px, env(safe-area-inset-right));
    bottom: max(12px, env(safe-area-inset-bottom));
    padding-top: max(12px, env(safe-area-inset-top));
  }
  .cookie-inner{
    padding: 14px;
    border-radius: 18px;
    max-height: calc(100dvh - max(24px, env(safe-area-inset-top)) - max(12px, env(safe-area-inset-bottom)));
  }
  .cookie-title{
    font-size: 1.05rem;
  }
  .cookie-actions{
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }
  .cookie-category{
    flex-direction: column;
  }
  .cookie-category__summary{
    width: 100%;
  }
  .cookie-toggle-field,
  .cookie-toggle-button.is-locked{
    align-self: flex-start;
  }
  .cookie-actions .btn,
  .event-map-placeholder__actions .btn,
  .event-map-link{
    width: 100%;
  }
  .cookie-settings-trigger{
    left: max(12px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
  }
  .cookie-settings-button{
    width: 50px;
    height: 50px;
  }
  .event-map-placeholder{
    padding: 20px 16px;
  }
  .event-map-placeholder__actions{
    flex-direction: column;
    align-items: stretch;
  }
  .cookie-dialog{
    padding: 16px;
  }
  .cookie-dialog__panel{
    padding: 22px 18px 18px;
    border-radius: 20px;
  }
}
@media (max-width: 400px){
  .cookie-summary__title-wrap{
    flex-direction: column;
    align-items: flex-start;
  }
}
/* reduce motion 
@media (prefers-reduced-motion: reduce){
  *{
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  ::view-transition-old(root),
  ::view-transition-new(root){
    animation-duration: 0.01ms !important;
  }
  main{
    animation: none;
  }
}*/

.password-toggle .password-toggle-btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.75rem;
}

.password-toggle .password-toggle-icon{
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.password-toggle-btn .password-toggle-icon--off{
  display: none;
}

.password-toggle-btn.is-active .password-toggle-icon--on{
  display: none;
}

.password-toggle-btn.is-active .password-toggle-icon--off{
  display: inline;
}

.mobile-menu{
  --bs-offcanvas-width: min(340px, 86vw);
  --bs-offcanvas-zindex: 1095;
  background:
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(244,247,253,.98)),
    repeating-linear-gradient(135deg, rgba(0,174,239,.04) 0 2px, transparent 2px 20px);
  border-left: 1px solid rgba(46,49,146,.12);
  overflow: hidden;
  z-index: var(--bs-offcanvas-zindex);
}

.offcanvas-backdrop{
  z-index: 1090;
}

.mobile-menu .offcanvas-header{
  padding-bottom: 6px;
}

.mobile-menu .offcanvas-body{
  padding-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-menu .offcanvas-body hr{
  margin: 0;
  opacity: .14;
}

.mobile-menu__section{
  display: grid;
  gap: 8px;
}

@media (min-width: 992px){
  .mobile-menu__section--primary,
  .mobile-menu__divider--primary{
    display: none;
  }
}

.feedback-modal{
  width: max-content;
  max-width: 95vw;
}

.feedback-scale{
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(46,49,146,.22);
  background: linear-gradient(
    90deg,
    rgba(46,49,146,.08),
    rgba(0,174,239,.14)
  );
  overflow-x: hidden;
  width: max-content;
}

.feedback-scale .form-check{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.feedback-scale .form-check-input{
  margin-top: 0;
  accent-color: var(--brand);
}

.feedback-scale .form-check-label{
  font-weight: 600;
  color: var(--brand-strong);
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

.feedback-scale .form-check-input:checked + .form-check-label{
  background: var(--sky-soft);
  border-color: rgba(0,174,239,.55);
  color: var(--brand-strong);
}

@media (max-width: 768px){
  .feedback-modal{
    width: 100%;
    max-width: 100%;
  }

  .feedback-scale{
    flex-direction: column-reverse;
    align-items: flex-start;
    overflow-x: visible;
    width: 100%;
  }
}
