:root{
  --ink: #1f1f21;
  --muted: #5d5d66;
  --line: #e2e2ea;
  --bg: #EBEBEB;
  --surface: #ffffff;
  --surface-muted: #f2f2f7;
  --brand: #B28CF0;
  --brand-strong: #000241;
  --mint: #9FE8C3;
  --rose: #F5A3B1;
  --sky: #8CCCF0;
  --topbar: #000241;
  --shadow-sm: 0 8px 20px rgba(0,0,0,.06);
  --shadow-md: 0 14px 32px rgba(0,0,0,.08);
  --shadow-lg: 0 22px 55px rgba(0,0,0,.12);
  --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;
}

body{
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(178,140,240,.16), transparent 60%),
    radial-gradient(800px 380px at 92% 0%, rgba(140,204,240,.16), transparent 60%),
    linear-gradient(180deg, #EBEBEB 0%, #EBEBEB 62%, #e6e9f5 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Sora", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  line-height: 1.6;
}

.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(0, 2, 65, .35);
  transition: all 0.3s ease-in-out;
}
a:hover{
  color: var(--brand);
  text-decoration-color: rgba(178, 140, 240, .7);
}

a:focus-visible{
  outline: 3px solid rgba(140,204,240,.55);
  outline-offset: 2px;
  border-radius: 6px;
}

h1, h2, h3, h4, .brand-name{
  font-family: "Oswald", "Sora", system-ui, sans-serif;
  letter-spacing: .2px;
}

.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 rgba(140,204,240,.55);
}

.btn-dark{
  background: var(--brand-strong);
  border-color: var(--brand-strong);
  color: #fff;
}
.btn-dark:hover,
.btn-dark:focus{
  background: #11135c;
  border-color: #11135c;
  color: #fff;
}

.btn-outline-dark{
  border-color: var(--brand-strong);
  color: var(--brand-strong);
  background: transparent;
}
.btn-outline-dark:hover,
.btn-outline-dark:focus{
  background: var(--brand);
  border-color: var(--brand);
  color: var(--brand-strong);
}

.btn-brand{
  background: var(--brand);
  border: 1px solid var(--brand);
  color: var(--brand-strong);
  font-weight: 600;
}
.btn-brand:hover{
  filter: brightness(.97);
}

.brand-name{
  font-weight: 600;
  letter-spacing: .6px;
  color: var(--brand-strong);
}

.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: rgba(178,140,240,.16);
  transform: scale(1.02);
}

.navbar.bg-white{
  background: rgba(235,235,235,.92) !important;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.navbar .container{
  position: relative;
}

.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;
}

.topbar{
  background: var(--topbar);
  color: #fff;
  padding: 8px 0;
  position: relative;
  z-index: 1050;
}

.topbar-link{
  color: #fff;
  text-decoration: none;
  opacity: .92;
  transition: all 0.3s ease-in-out;
  display: inline-flex;
  align-items: center;
}
.topbar-link:hover{ opacity: 1; text-decoration: underline; transform: scale(1.02); }
.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: clamp(42px, 5vw, 84px);
  line-height: .95;
  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 rgba(178,140,240,.25);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  background: var(--surface);
}
.hero-card-content{
  display: grid;
  grid-template-columns: minmax(120px, 180px) 1fr;
  grid-template-areas:
    "brand title"
    "text text"
    "actions actions";
  gap: var(--space-1) var(--space-3);
  align-items: start;
}
.hero-brand{
  display: flex;
  align-items: flex-start;
  flex: 0 0 auto;
  grid-area: brand;
}
.hero-brand-img{
  width: 100%;
  max-width: 180px;
  height: auto;
  display: block;
}
.hero-headline{
  grid-area: title;
  display: flex;
  align-items: flex-start;
}
.hero-actions{
  grid-area: actions;
  justify-content: flex-start;
}

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

.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: var(--surface);
}

.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);
}

.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: 4px 2px 8px;
  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: rgba(178,140,240,.2);
  border-color: rgba(178,140,240,.6);
  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: var(--shadow-sm);
  transition: all 0.3s ease-in-out;
}
.event-card:hover{
  transform: translateY(-3px) scale(1.02);
  box-shadow: var(--shadow-md);
  border-color: rgba(178,140,240,.55);
}
.event-card:active{
  transform: translateY(-1px) scale(1);
}
.event-card:focus-visible{
  outline: 3px solid rgba(140,204,240,.55);
  outline-offset: 2px;
}

.event-card-body{
  padding: var(--space-2);
}
.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: var(--surface);
}
.step-number{
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--brand-strong);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-2);
}

.site-footer{
  border-top: 1px solid var(--line);
  padding: var(--space-3) 0;
  background: var(--surface-muted);
  margin-top: auto;
}
.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;
}
.site-footer-links{
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  font-size: .95rem;
}
.site-footer-links a{
  color: var(--ink);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.site-footer-links a:hover{
  text-decoration: underline;
  color: var(--brand-strong);
  transform: scale(1.02);
}
.site-footer-meta{
  color: var(--muted);
  font-size: .9rem;
}

.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: 1.2fr 1fr;
  gap: var(--space-4);
  align-items: start;
}
.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;
}
.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-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);
}
.event-map-frame iframe{
  width: 100%;
  height: 240px;
  border: 0;
  display: block;
}

.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: var(--surface);
}
.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);
}
.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(235, 235, 235, 0.448);
  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(0, 2, 65, 0.2);
  border-top-color: var(--brand-strong);
  background: rgba(255, 255, 255, 0.662);
  box-shadow: 0 12px 28px rgba(31, 31, 33, 0.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 rgba(140,204,240,.35);
}
.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;
  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;
  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;
  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: #0b3b2a;
}
.copy-icon{
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.advisor-card{
  border: 1px solid rgba(178,140,240,.35);
  border-left: 4px solid var(--brand);
  border-radius: var(--radius-md);
  padding: var(--space-2);
  background: #fcfbff;
}
.advisor-title{
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: 4px;
}
.advisor-text{
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.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;
  justify-content: space-between;
  gap: var(--space-1);
  font-size: .92rem;
}
.reg-card-label{
  color: var(--muted);
}
.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: #1f1f21;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 26px rgba(31,31,33,.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: rgba(159,232,195,.35);
  border-color: rgba(159,232,195,.8);
  color: #0b3b2a;
}
.reg-action-btn--danger{
  background: rgba(245,163,177,.25);
  border-color: rgba(245,163,177,.7);
  color: #4a0f1c;
}
.reg-note-btn--active{
  background: rgba(178,140,240,.22);
  border-color: rgba(178,140,240,.55);
  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 rgba(140,204,240,.55);
  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;
}
.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: rgba(178,140,240,.2);
  border: 1px solid rgba(178,140,240,.5);
  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: 1.2fr 1fr;
  gap: var(--space-3);
  align-items: start;
}
.qr-video{
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: #0f0f14;
}
.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;
}
.qr-result-label{
  color: var(--muted);
}
.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(159,232,195,.8);
}
.qr-result-card--success .qr-result-body{
  background: rgba(159,232,195,.22);
}
.qr-result-card--success .qr-result-icon{
  background: var(--mint);
  color: #0b3b2a;
}
.qr-result-card--danger{
  border-color: rgba(245,163,177,.8);
}
.qr-result-card--danger .qr-result-body{
  background: rgba(245,163,177,.22);
}
.qr-result-card--danger .qr-result-icon{
  background: var(--rose);
  color: #4a0f1c;
}
.qr-result-card--warning{
  border-color: rgba(178,140,240,.7);
}
.qr-result-card--warning .qr-result-body{
  background: rgba(178,140,240,.2);
}
.qr-result-card--warning .qr-result-icon{
  background: var(--brand);
  color: var(--brand-strong);
}

.menu-link{
  text-decoration: none;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease-in-out;
}
.menu-link:hover,
.menu-link:focus{
  background: rgba(178,140,240,.18);
  color: var(--brand-strong);
  transform: scale(1.02);
}

.cookie-banner{
  position: fixed;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: block;
}
.cookie-inner{
  max-width: 1100px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-2) var(--space-3);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}
.cookie-text{ color: var(--ink); }
.cookie-actions{ display: flex; gap: var(--space-2); }

.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: rgba(159,232,195,.25);
  border-color: rgba(159,232,195,.6);
  color: #0a3d2c;
}
.alert-danger{
  background: rgba(245,163,177,.25);
  border-color: rgba(245,163,177,.6);
  color: #6b1020;
}
.alert-warning{
  background: rgba(178,140,240,.2);
  border-color: rgba(178,140,240,.5);
  color: #3c2a66;
}
.alert-info{
  background: rgba(140,204,240,.22);
  border-color: rgba(140,204,240,.6);
  color: #163147;
}
.alert-banner{
  border-left: 4px solid rgba(159,232,195,.9);
  padding: 12px 16px;
}
.alert-banner .alert-icon{
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mint);
  color: #0b3b2a;
  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(31,31,33,.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: rgba(159,232,195,.4);
  color: #0b3b2a;
}
.toast--danger .toast-icon{
  background: rgba(245,163,177,.45);
  color: #4a0f1c;
}
.toast--warning .toast-icon{
  background: rgba(178,140,240,.35);
  color: #3c2a66;
}
.toast--info .toast-icon{
  background: rgba(140,204,240,.35);
  color: #163147;
}

@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: transparent;
  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;
  }
  .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;
  }
  .site-footer-row{
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 600px){
  .hero-card-content{
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "title"
      "text"
      "actions";
    text-align: center;
    justify-items: center;
  }
  .hero-card,
  .hero-text{
    text-align: center;
  }
  .hero-actions{
    justify-content: center;
  }
  .section-head{
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .breadcrumb{
    justify-content: center;
  }
  .event-detail-actions{
    justify-content: center;
  }
  .qr-card{
    width: 100%;
  }
  .qr-image{
    margin-left: auto;
    margin-right: auto;
  }
  .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;
  }
  .cookie-inner{ flex-direction: column; align-items: stretch; }
  .cookie-actions{ justify-content: stretch; }
  .cookie-actions .btn{ width: 100%; }
}
/* 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(300px, 80vw);
}

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

.mobile-menu .offcanvas-body{
  padding-top: 4px;
}

.mobile-menu .offcanvas-body hr{
  margin: 10px 0;
}

.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(178, 140, 240, 0.35);
  background: linear-gradient(
    90deg,
    rgba(159, 232, 195, 0.25),
    rgba(140, 204, 240, 0.2),
    rgba(178, 140, 240, 0.18)
  );
  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: rgba(159, 232, 195, 0.6);
  border-color: rgba(159, 232, 195, 0.9);
  color: var(--ink);
}

@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%;
  }
}
