:root {
  --primary: #6a0dad;
  --primary-light: #8e44ad;
  --bg: #fdfdfd;
  --card-bg: #222;       
  --text: #eee;
  --text-light: #bbb;
  --radius: 12px;
  --gap: 1.5rem;
  --transition: 0.3s ease;
}
html {
  scrollbar-width: thin;
  scrollbar-color: var(--primary) transparent;
  scroll-behavior: smooth;
}

/* sempre visibile */
body {
  overflow-y: scroll;
  overflow-x: hidden;
}

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

img,
video,
iframe,
svg {
  max-width: 100%;
  height: auto;
}

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

form {
  width: 100%;
}

section,
.wrapper,
.container,
.panel {
  min-width: 0;
}

button {
  touch-action: manipulation;
}

/* Scroll-to-Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #FFD700;
    color: #6A1B9A;
    font-size: 24px;
    font-weight: bold;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
}

.scroll-to-top:hover {
    transform: scale(1.1);
    background-color: #6A1B9A;
    color: #FFD700;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
}

.profile-menu {
  position: relative;
  margin-left: auto;
}

.profile-trigger {
  min-height: 46px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(135deg, rgba(255,255,255,0.16), rgba(255,255,255,0.1));
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 26px rgba(58, 16, 94, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  position: relative;
  isolation: isolate;
  white-space: nowrap;
}

.profile-trigger:hover {
  border-color: rgba(255,255,255,0.32);
  background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(255,255,255,0.14));
  box-shadow: 0 12px 26px rgba(58, 16, 94, 0.2);
}

.profile-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(196, 112, 255, 0.24), 0 14px 30px rgba(58, 16, 94, 0.22);
}

.profile-trigger-user {
  padding-right: 10px;
}

.profile-trigger-guest {
  padding-right: 14px;
  max-width: 220px;
}

.profile-trigger-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.16);
  flex: 0 0 auto;
}

.profile-trigger .profile-avatar {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 999px;
  display: block;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,0.35);
}

.profile-trigger-meta,
.profile-trigger-copy {
  display: grid;
  line-height: 1.05;
  text-align: left;
}

.profile-trigger-name,
.profile-trigger-title {
  font-weight: 800;
  font-size: 0.92rem;
}

.profile-trigger-role,
.profile-trigger-subtitle {
  font-size: 0.75rem;
  opacity: 0.82;
}

.profile-trigger-chevron {
  font-size: 0.72rem;
  opacity: 0.9;
  transition: transform 0.25s ease;
  margin-left: 2px;
}

.profile-trigger::before {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255,255,255,0.18), transparent 35%, rgba(255,255,255,0.08));
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
  z-index: 0;
}

.profile-trigger:hover::before,
.profile-trigger:focus-visible::before {
  opacity: 1;
}

.profile-trigger > * {
  position: relative;
  z-index: 1;
}

.profile-menu.open .profile-trigger-chevron {
  transform: rotate(180deg);
}

.profile-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 250px;
  display: none;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(106, 13, 173, 0.16);
  border-radius: 16px;
  padding: 10px;
  box-shadow: 0 18px 40px rgba(106, 13, 173, 0.18);
  z-index: 1200;
  backdrop-filter: blur(16px);
  transform-origin: top right;
  animation: profileDropdownIn 0.22s ease;
}

.profile-menu.open .profile-dropdown {
  display: block;
}

@keyframes profileDropdownIn {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.profile-head {
  padding: 10px 10px 12px;
  color: #6a0dad;
  font-weight: 700;
  border-bottom: 1px solid rgba(106, 13, 173, 0.1);
  margin-bottom: 8px;
}

.profile-dropdown a,
.profile-dropdown button {
  width: 100%;
  display: block;
  text-align: left;
  color: #3d2552;
  background: transparent;
  border: 0;
  border-radius: 12px;
  padding: 11px 12px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  transition: background 0.2s ease, transform 0.2s ease, color 0.2s ease;
}

.profile-dropdown a:hover,
.profile-dropdown button:hover {
  background: linear-gradient(135deg, rgba(106, 13, 173, 0.1), rgba(196, 112, 255, 0.12));
  transform: translateX(2px);
  color: #5b2389;
}

.presence-section {
  padding: 22px 18px;
}

.presence-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  max-width: 860px;
  margin: 0 auto;
}

.presence-card {
  background: #ffffff;
  border: 1px solid rgba(106, 13, 173, 0.18);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(106, 13, 173, 0.14);
  padding: 16px;
}

.presence-card h3 {
  margin: 0 0 10px;
  color: #5b2389;
  font-size: 1.35rem;
}

.presence-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}

.presence-list li {
  background: #f8f0ff;
  border-radius: 10px;
  padding: 8px 10px;
  color: #3b2a55;
  font-weight: 700;
}

.presence-list li .role {
  margin-left: 8px;
  color: #7a5e99;
  font-weight: 600;
}

.presence-empty {
  color: #7a5e99;
  font-weight: 600;
}

.presence-total {
  margin: 12px 0 0;
  color: #4e2d72;
  font-weight: 700;
}

.auth-page,
.account-page {
  max-width: 760px;
  margin: 28px auto;
  padding: 20px;
  background: linear-gradient(135deg, rgba(255,255,255,0.5) 0%, rgba(243,232,255,0.3) 100%);
  min-height: calc(100vh - 200px);
  border-radius: 0;
}

.auth-card,
.account-card {
  background: #ffffff;
  border-radius: 14px;
  border: 1px solid rgba(106, 13, 173, 0.18);
  box-shadow: 0 8px 28px rgba(106, 13, 173, 0.12);
  padding: 20px;
}

.auth-card h1,
.account-card h1 {
  color: #5b2389;
}

.auth-lead {
  color: #6e5a87;
}

.auth-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 14px;
}

.auth-tab {
  flex: 1;
  border: 1px solid rgba(106, 13, 173, 0.24);
  background: #ffffff;
  color: #5f3d7e;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  cursor: pointer;
}

.auth-tab.active {
  background: linear-gradient(135deg, #6a0dad, #8e44ad);
  color: #ffffff;
  border-color: transparent;
}

.auth-form {
  display: grid;
  gap: 10px;
}

.auth-form input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid rgba(106, 13, 173, 0.2);
  background: #ffffff;
  color: #3d2552;
}

.auth-form input:focus {
  outline: none;
  border-color: #8e44ad;
  box-shadow: 0 0 0 3px rgba(142, 68, 173, 0.15);
}

.auth-msg {
  min-height: 1.2rem;
  color: #b22f47;
  font-weight: 600;
}

.account-meta {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.account-label {
  color: #8467a4;
  font-size: 0.9rem;
}

.account-value {
  color: #4b2e6f;
  font-weight: 700;
}

.account-value.username {
  font-size: 1.2rem;
}

.account-value.email {
  font-size: 1.06rem;
}

.account-actions {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.btn.account-logout {
  background: linear-gradient(135deg, #fff0f4, #ffdce8);
  border: 1px solid rgba(170, 28, 88, 0.32);
  color: #8f1544;
  box-shadow: 0 12px 28px rgba(170, 28, 88, 0.16);
}

.btn.account-logout:hover {
  background: linear-gradient(135deg, #ffe8ef, #ffd2e2);
}

.account-page-modern {
  max-width: 1120px;
  position: relative;
  isolation: isolate;
}

.account-page-modern::before {
  content: '';
  position: absolute;
  inset: -30px -20px auto;
  height: 320px;
  z-index: -1;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 203, 0, 0.22), transparent 42%),
    radial-gradient(circle at 78% 14%, rgba(0, 188, 212, 0.26), transparent 43%),
    radial-gradient(circle at 52% 68%, rgba(255, 255, 255, 0.58), transparent 55%);
  filter: blur(10px);
  pointer-events: none;
}

.account-hero-shell {
  --acc-tilt-x: 0px;
  --acc-tilt-y: 0px;
  position: relative;
  min-height: 340px;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 28px 72px rgba(56, 8, 93, 0.32), 0 0 60px rgba(142, 68, 173, 0.15);
  background: linear-gradient(135deg, #6a0dad 0%, #8e44ad 50%, #7b2ebf 100%);
  background-size: cover;
  background-position: center;
  transition: box-shadow 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.account-hero-shell:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 36px 84px rgba(56, 8, 93, 0.4), 0 0 80px rgba(142, 68, 173, 0.25);
}

.account-hero-shell::before {
  content: '';
  position: absolute;
  width: 330px;
  height: 330px;
  right: -90px;
  top: -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.35), rgba(255,255,255,0) 62%);
  pointer-events: none;
}

.account-hero-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(13, 8, 24, 0.84) 16%, rgba(13, 8, 24, 0.52) 50%, rgba(13, 8, 24, 0.24) 86%),
    radial-gradient(circle at right top, rgba(255,255,255,0.16), transparent 38%);
  pointer-events: none;
}

.account-hero-content {
  position: absolute;
  inset: 0;
  padding: 26px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(270px, 320px);
  align-items: stretch;
  gap: 20px;
  z-index: 1;
  transform: translate3d(var(--acc-tilt-x), 0, 0);
  transition: transform 0.16s ease-out;
}

.account-avatar-wrap {
  align-self: end;
}

.account-hero-text {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.account-hero-side {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  width: 100%;
  align-self: end;
}

.account-reservations-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
}

.account-reservations-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.account-reservations-head h2 {
  margin: 0;
  color: #5b2389;
}

.account-reservation-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.account-reservation-filter {
  border: 1.5px solid rgba(106, 13, 173, 0.24);
  background: #fff;
  color: #5f3d7e;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.account-reservation-filter.active {
  background: linear-gradient(135deg, #6a0dad, #8e44ad);
  color: #fff;
  border-color: transparent;
}

.account-reservations-summary {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.account-reservation-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(106, 13, 173, 0.12), rgba(255, 215, 0, 0.14));
  color: #5b2389;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(106, 13, 173, 0.1);
}

.account-reservations-list {
  display: grid;
  gap: 12px;
}

.account-reservation-item {
  border: 1.5px solid rgba(106, 13, 173, 0.18);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbf7ff 100%);
  padding: 18px;
  box-shadow: 0 12px 32px rgba(106, 13, 173, 0.1);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.account-reservation-item:hover {
  transform: translateY(-4px);
  border-color: rgba(106, 13, 173, 0.28);
  box-shadow: 0 18px 48px rgba(106, 13, 173, 0.16);
}

.account-reservation-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.account-reservation-title {
  margin: 0;
  color: #4a148c;
  font-size: 1.1rem;
}

.account-reservation-meta {
  color: #6e5a87;
  font-size: 0.92rem;
  margin-top: 4px;
}

.account-reservation-badge {
  padding: 9px 13px;
  border-radius: 999px;
  background: #f4e9ff;
  color: #5f2c87;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(106, 13, 173, 0.1);
}

.account-reservation-details {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  color: #4b2e6f;
}

.account-reservation-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.account-reservation-empty {
  padding: 18px;
  border-radius: 14px;
  border: 1px dashed rgba(106, 13, 173, 0.24);
  color: #6e5a87;
  background: rgba(255, 255, 255, 0.72);
}

.account-glow-card {
  width: min(320px, 100%);
  padding: 20px 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.1));
  border: 1.5px solid rgba(255,255,255,0.35);
  color: #fff;
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.24), inset 0 1px 1px rgba(255,255,255,0.4);
  animation: accountFloatCard 4.2s ease-in-out infinite;
}

.account-hero-pills {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.account-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.14);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.account-pill.is-success {
  background: rgba(32, 201, 151, 0.24);
  border-color: rgba(117, 247, 209, 0.5);
}

@keyframes accountFloatCard {
  0%, 100% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(-8px) scale(1.01); }
}

.account-glow-label {
  display: inline-flex;
  margin-bottom: 8px;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
}

.account-glow-card strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.account-glow-card p {
  margin: 0;
  line-height: 1.45;
  color: rgba(255,255,255,0.9);
}

.account-avatar-lg {
  width: 128px;
  height: 128px;
  border-radius: 26px;
  border: 5px solid rgba(255, 255, 255, 0.95);
  object-fit: cover;
  background: #f4e9ff;
  box-shadow: 0 26px 48px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.4);
}

.account-hero-text h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  line-height: 1.02;
}

.account-hero-text p {
  margin: 6px 0 0;
  color: rgba(255, 255, 255, 0.92);
  max-width: none;
  max-height: none;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding-right: 6px;
}

.account-quick-meta {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.chip.account-role-chip {
  background: var(--account-role-color, rgba(255,255,255,0.2));
  color: var(--account-role-text, #fff);
  box-shadow: 0 10px 24px color-mix(in srgb, var(--account-role-color, #6a0dad) 40%, transparent);
}

.chip.account-role-chip.is-dark {
  color: #111;
}

.account-layout {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 22px;
}

.account-layout .account-card {
  background:
    radial-gradient(circle at top right, rgba(196,112,255,0.18), transparent 40%),
    linear-gradient(180deg, rgba(255,255,255,0.99) 0%, rgba(249,243,255,0.99) 100%);
  border: 1px solid rgba(106, 13, 173, 0.16);
  box-shadow: 0 32px 56px rgba(106, 13, 173, 0.14), 0 0 40px rgba(142, 68, 173, 0.08);
  border-radius: 24px;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.35s ease;
}

.account-layout .account-card:hover {
  transform: translateY(-8px) scale(1.01);
  border-color: rgba(106, 13, 173, 0.3);
  box-shadow: 0 42px 72px rgba(106, 13, 173, 0.22), 0 0 60px rgba(142, 68, 173, 0.14);
}

.account-card {
  position: relative;
  overflow: hidden;
}

.account-card::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #6a0dad 0%, #8e44ad 50%, #c470ff 100%);
}

.account-form-card,
.account-media-card {
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.account-form-card .auth-lead,
.account-media-card .auth-lead {
  margin: 0 0 2px;
}

.account-media-card h2,
.account-form-card h2 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 1.7rem;
  line-height: 1.05;
  color: #4c1f73;
}

.account-media-card h3 {
  margin: 0;
  color: #52247c;
  font-size: 1.08rem;
}

.account-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 2px;
}

.account-form-card label,
.account-media-box {
  display: grid;
  gap: 8px;
  margin-bottom: 0;
}

.account-grid-2 > label,
.account-link-grid > label {
  padding: 14px;
  border-radius: 16px;
  border: 1.5px solid rgba(106, 13, 173, 0.14);
  background: rgba(255,255,255,0.8);
  transition: all 0.25s ease;
}

.account-grid-2 > label:hover,
.account-link-grid > label:hover {
  border-color: rgba(106, 13, 173, 0.22);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 6px 16px rgba(106, 13, 173, 0.08);
  transform: translateY(-2px);
}

.account-media-box {
  padding: 16px;
  border-radius: 16px;
  border: 1.5px solid rgba(106, 13, 173, 0.14);
  background: rgba(255,255,255,0.85);
  transition: all 0.25s ease;
}

.account-media-box:hover {
  border-color: rgba(106, 13, 173, 0.22);
  background: rgba(255,255,255,0.95);
  box-shadow: 0 6px 16px rgba(106, 13, 173, 0.08);
}

.account-media-box + .account-media-box {
  margin-top: 2px;
}

.account-form-card label > span {
  color: #5e477c;
  font-size: 0.9rem;
  font-weight: 700;
}

.account-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-label-row small {
  font-weight: 700;
  color: #8d6ab1;
  background: rgba(141, 106, 177, 0.12);
  border: 1px solid rgba(141, 106, 177, 0.18);
  border-radius: 999px;
  padding: 2px 8px;
  min-width: 64px;
  text-align: center;
}

.account-links-section {
  margin-top: 14px;
  padding: 20px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(241,231,255,0.98));
  border: 1.5px solid rgba(106, 13, 173, 0.2);
  box-shadow: inset 0 1.5px 3px rgba(255,255,255,0.9), 0 6px 16px rgba(106, 13, 173, 0.06);
}

.account-links-section h3 {
  margin: 0 0 6px;
  color: #4e1c77;
  font-size: 1.08rem;
}

.account-link-grid {
  margin-top: 12px;
}

.account-form-card > label {
  margin-top: 2px;
}

.account-form-card input,
.account-form-card textarea,
.account-media-card input {
  width: 100%;
  box-sizing: border-box;
  border: 1.5px solid rgba(106, 13, 173, 0.22);
  border-radius: 14px;
  padding: 13px 15px;
  color: #351d4d;
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(249,242,255,0.98));
  box-shadow: inset 0 1.5px 3px rgba(0,0,0,0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.account-form-card input:focus,
.account-form-card textarea:focus,
.account-media-card input:focus {
  outline: none;
  border-color: rgba(106, 13, 173, 0.68);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(106, 13, 173, 0.18), 0 12px 24px rgba(106, 13, 173, 0.12), inset 0 1px 3px rgba(106, 13, 173, 0.08);
  transform: translateY(-2px);
}

.account-form-card textarea {
  min-height: 110px;
  resize: vertical;
}

.account-rich-field {
  border: 1.5px solid rgba(106, 13, 173, 0.22);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255,255,255,0.99), rgba(249,242,255,0.98));
  box-shadow: inset 0 1.5px 3px rgba(0,0,0,0.04);
}

.account-rich-toolbar {
  border-bottom: 1.5px solid rgba(106, 13, 173, 0.16);
  background: linear-gradient(180deg, rgba(241, 231, 255, 0.7), rgba(241, 231, 255, 0.4));
}

.account-rich-editor {
  min-height: 140px;
  max-height: 260px;
}

.account-rich-editor-signature {
  min-height: 110px;
  max-height: 170px;
}

.account-rich-field:focus-within {
  border-color: rgba(106, 13, 173, 0.68);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(106, 13, 173, 0.18), 0 12px 24px rgba(106, 13, 173, 0.12), inset 0 1px 3px rgba(106, 13, 173, 0.08);
  transform: translateY(-2px);
}

.upload-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.upload-row .account-btn {
  min-width: 132px;
}

.account-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  min-height: 48px;
  padding: 0 14px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  position: relative;
  overflow: hidden;
}

.account-btn::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.34), transparent);
  transform: skewX(-20deg);
  transition: left 0.45s ease;
}

.account-btn:hover,
.account-btn:focus-visible {
  transform: translateY(-3px) scale(1.02);
  filter: saturate(1.12);
}

.account-btn:hover::after,
.account-btn:focus-visible::after {
  left: 130%;
}

.account-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(106, 13, 173, 0.16);
}

.account-btn-primary {
  background: linear-gradient(120deg, #5c1d8c 0%, #7b2ebf 45%, #a04de0 100%);
  border: 1px solid rgba(103, 31, 160, 0.65);
  color: #fff;
  box-shadow: 0 18px 42px rgba(106, 13, 173, 0.38), inset 0 1px 0 rgba(255,255,255,0.2);
}

.account-btn-secondary {
  background: linear-gradient(120deg, #ffffff, #f3e8ff);
  border: 1px solid rgba(106, 13, 173, 0.2);
  color: #51257b;
}

.account-btn-danger {
  background: linear-gradient(135deg, #fff0f4, #ffe7ef);
  border: 1px solid rgba(201, 48, 110, 0.28);
  color: #8f1544;
}

.account-btn-danger:hover,
.account-btn-danger:focus-visible {
  box-shadow: 0 14px 28px rgba(201, 48, 110, 0.2);
}

.btn.account-ghost {
  background: linear-gradient(120deg, #ffffff, #f3e8ff);
  border: 1px solid rgba(106, 13, 173, 0.2);
  color: #5b2389;
}

.btn.account-ghost:hover {
  background: linear-gradient(120deg, #ffffff, #ead8ff);
}

.account-msg {
  min-height: 1.2rem;
  margin: 8px 0 12px;
  color: #5b2389;
  font-weight: 700;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px solid rgba(106, 13, 173, 0.18);
  background: linear-gradient(180deg, rgba(106, 13, 173, 0.12), rgba(106, 13, 173, 0.07));
}

.account-ghost,
.auth-submit {
  min-height: 44px;
}

.auth-page-modern {
  max-width: 1180px;
}

.auth-shell {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: stretch;
}

.auth-story {
  border-radius: 18px;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.16), transparent 38%),
    linear-gradient(135deg, #4d0c7f 0%, #6a0dad 48%, #9c4dcb 100%);
  box-shadow: 0 18px 40px rgba(106, 13, 173, 0.22);
  position: relative;
  overflow: hidden;
}

.auth-story:hover {
  transform: translateY(-2px);
}

.auth-story::after {
  content: '';
  position: absolute;
  inset: auto -30px -60px auto;
  width: 220px;
  height: 220px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
}

.auth-story-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.22);
  font-weight: 700;
  letter-spacing: .02em;
}

.auth-story h1 {
  margin: 16px 0 12px;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
}

.auth-story p {
  max-width: 54ch;
  color: rgba(255,255,255,0.92);
  font-size: 1.05rem;
}

.auth-story-points {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.auth-story-points div {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
}

.auth-story-points strong {
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-story-points span {
  color: rgba(255,255,255,0.88);
}

.auth-card-modern {
  border-radius: 18px;
  box-shadow: 0 18px 40px rgba(106, 13, 173, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #fbf8ff 100%);
  position: relative;
  overflow: hidden;
}

.auth-card-modern::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(196, 112, 255, 0.12), transparent 28%),
    radial-gradient(circle at bottom left, rgba(106, 13, 173, 0.08), transparent 32%);
  pointer-events: none;
}

.auth-card-modern > * {
  position: relative;
  z-index: 1;
}

.auth-card-modern h1 {
  margin-bottom: 6px;
}

.auth-card-modern .auth-tabs {
  margin-top: 16px;
  padding: 6px;
  background: #f4e9ff;
  border-radius: 14px;
  display: flex;
  gap: 8px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.auth-card-modern .auth-tab {
  border: 0;
  background: transparent;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.auth-card-modern .auth-tab.active {
  background: linear-gradient(135deg, #6a0dad, #8e44ad);
  box-shadow: 0 8px 18px rgba(106, 13, 173, 0.18);
}

.auth-card-modern .auth-tab:hover {
  transform: translateY(-1px);
}

.auth-card-modern .auth-form input {
  background: #fff;
  border-radius: 12px;
  min-height: 48px;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.auth-card-modern .auth-form input:focus {
  transform: translateY(-1px);
}

.auth-card-modern .auth-submit {
  border-radius: 12px;
  border: none;
  outline: none;
  appearance: none;
  box-shadow: 0 12px 28px rgba(106, 13, 173, 0.22), inset 0 1px 0 rgba(255,255,255,0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  min-height: 50px;
  letter-spacing: 0.02em;
}

.auth-card-modern .auth-submit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.22) 38%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

.auth-card-modern .auth-submit:hover::after,
.auth-card-modern .auth-submit:focus-visible::after {
  transform: translateX(120%);
}

.auth-card-modern .auth-submit:hover,
.auth-card-modern .auth-submit:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 32px rgba(106, 13, 173, 0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}

.auth-card-modern .auth-submit i {
  font-size: 0.95rem;
}

.auth-card-modern .auth-msg {
  min-height: 1.2rem;
}

.auth-card-modern .auth-form {
  gap: 12px;
}

.auth-recovery-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(106, 13, 173, 0.08), rgba(196, 112, 255, 0.08));
  border: 1px solid rgba(106, 13, 173, 0.14);
  padding: 10px 12px;
}

.auth-recovery-cta span {
  color: #5c3e7f;
  font-weight: 700;
  font-size: 0.9rem;
}

.auth-recovery-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(91, 35, 137, 0.22);
  background: linear-gradient(135deg, #ffffff 0%, #f2e6ff 100%);
  color: #4f1e79;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.84rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-recovery-btn:hover,
.auth-recovery-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(106, 13, 173, 0.16);
  background: linear-gradient(135deg, #ffffff 0%, #ead8ff 100%);
  outline: none;
}

.reset-page {
  max-width: 1140px;
  margin: 28px auto;
  padding: 20px;
}

.reset-shell {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.reset-story {
  border-radius: 18px;
  padding: 30px;
  color: #fff;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.16), transparent 38%),
    linear-gradient(135deg, #4d0c7f 0%, #6a0dad 48%, #9c4dcb 100%);
  box-shadow: 0 18px 42px rgba(49, 20, 82, 0.3);
  position: relative;
  overflow: hidden;
}

.reset-story::after {
  content: '';
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  right: -70px;
  bottom: -88px;
  background: rgba(255, 255, 255, 0.14);
}

.reset-story-badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.reset-story h1 {
  margin: 14px 0 10px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.98;
}

.reset-story p {
  margin: 0;
  max-width: 52ch;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.02rem;
}

.reset-story-points {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.reset-story-points div {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.reset-story-points strong {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
}

.reset-story-points span {
  color: rgba(255, 255, 255, 0.92);
}

.reset-card {
  border-radius: 18px;
  border: 1px solid rgba(106, 13, 173, 0.18);
  background:
    radial-gradient(circle at top right, rgba(196, 112, 255, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #fbf8ff 100%);
  box-shadow: 0 18px 40px rgba(106, 13, 173, 0.2);
  padding: 26px;
}

.reset-card-head h2 {
  margin: 0;
  color: #4f1e79;
  font-size: 1.7rem;
}

.reset-card-head p {
  margin: 8px 0 16px;
  color: #6e5a87;
}

.reset-form {
  display: grid;
  gap: 10px;
}

.reset-form label {
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #5f3d7e;
}

.reset-form input {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(106, 13, 173, 0.2);
  background: #fff;
  color: #3d2552;
  padding: 11px 12px;
}

.reset-form input:focus {
  outline: none;
  border-color: #8e44ad;
  box-shadow: 0 0 0 4px rgba(142, 68, 173, 0.12);
}

.reset-submit {
  margin-top: 6px;
  min-height: 50px;
  box-shadow: 0 12px 28px rgba(106, 13, 173, 0.22);
}

.reset-submit:hover,
.reset-submit:focus-visible {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 18px 32px rgba(106, 13, 173, 0.28), inset 0 1px 0 rgba(255,255,255,0.18);
}

.reset-footer-links {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.reset-footer-links a {
  color: #532a7f;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(106, 13, 173, 0.14);
  background: rgba(255, 255, 255, 0.74);
}

.reset-card .auth-msg {
  margin: 2px 0 0;
}

.reset-footer-links a:hover,
.reset-footer-links a:focus-visible {
  background: #fff;
  box-shadow: 0 8px 20px rgba(106, 13, 173, 0.16);
  outline: none;
}

.auth-card-modern .auth-form input::placeholder {
  color: #9a86b2;
}

.auth-card-modern .auth-form input:focus {
  border-color: #8e44ad;
  box-shadow: 0 0 0 4px rgba(142, 68, 173, 0.12);
}

.auth-card-modern #panelLogin,
.auth-card-modern #panelRegister {
  animation: authPanelFade 0.35s ease;
}

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

/* ===== ACCOUNT PAGE V2 - NEW DESIGN ===== */

.account-page-v2 {
  max-width: 1000px;
  margin: 0 auto;
  padding: 28px 20px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.9) 0%, rgba(243,232,255,0.5) 100%);
  min-height: calc(100vh - 200px);
}

/* Hero V2 Section */
.account-hero-v2 {
  position: relative;
  min-height: 360px;
  margin-bottom: 40px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(106, 13, 173, 0.15);
}

.account-hero-banner {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 50%, #16213e 100%);
  background-size: cover;
  background-position: center;
  border-radius: 28px;
}

.account-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.2) 40%, rgba(0,0,0,0.05) 100%);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: flex-end;
  padding: 32px 40px;
  z-index: 2;
  border-radius: 28px;
}

.account-hero-left {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  min-width: fit-content;
}

.account-avatar-v2 {
  width: 140px;
  height: 140px;
  border-radius: 24px;
  border: 5px solid rgba(255,255,255,0.95);
  object-fit: cover;
  background: #f4e9ff;
  box-shadow: 0 16px 40px rgba(0,0,0,0.4);
  flex-shrink: 0;
}

.account-hero-username-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: center;
  width: 140px;
}

.account-username-hero {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
  word-break: break-word;
}

.account-role-badge {
  padding: 6px 14px;
  background: #e74c3c;
  border-radius: 12px;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: capitalize;
  box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
}

.account-hero-center {
  display: none;
}

.account-bio-hero {
  margin: 0;
  font-size: 1.02rem;
  color: rgba(255,255,255,0.95);
  line-height: 1.65;
  text-align: center;
  max-width: 500px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.account-hero-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  justify-self: end;
  min-width: fit-content;
}

.account-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.account-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  background: rgba(106, 13, 173, 0.3);
  border: 1.5px solid rgba(255,255,255,0.3);
  border-radius: 14px;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  backdrop-filter: blur(8px);
  white-space: nowrap;
  text-align: right;
}

.account-status-badge:first-of-type {
  background: rgba(255, 68, 68, 0.85);
  border-color: rgba(255, 100, 100, 0.6);
}

.account-hero-bio-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 75%;
  max-width: 650px;
  text-align: center;
  color: #fff;
  z-index: 3;
  font-size: 1.05rem;
  line-height: 1.7;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* Tab Navigation */
.account-tabs-container {
  display: flex;
  gap: 0;
  margin-bottom: 32px;
  background: rgba(255,255,255,0.6);
  border-radius: 18px;
  padding: 4px;
  box-shadow: 0 4px 12px rgba(106,13,173,0.08);
}

.account-tab-btn {
  flex: 1;
  padding: 14px 20px;
  border: none;
  background: transparent;
  color: #6e5a87;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 14px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.account-tab-btn i {
  font-size: 1.1rem;
}

.account-tab-btn:hover {
  transform: translateY(-2px);
}

.account-tab-btn.active {
  background: linear-gradient(135deg, #6a0dad, #8e44ad);
  color: #fff;
  box-shadow: 0 8px 20px rgba(106,13,173,0.22);
}

/* Card V2 */
.account-card-v2 {
  background: rgba(255,255,255,0.85);
  border-radius: 24px;
  border: 1.5px solid rgba(106, 13, 173, 0.12);
  padding: 36px;
  box-shadow: 0 8px 32px rgba(106,13,173,0.08);
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.account-card-v2:hover {
  border-color: rgba(106, 13, 173, 0.2);
  box-shadow: 0 16px 48px rgba(106,13,173,0.12);
}

.account-card-header {
  margin-bottom: 28px;
}

.account-card-header h2 {
  margin: 0 0 8px;
  font-size: 1.8rem;
  color: #4c1f73;
  display: flex;
  align-items: center;
  gap: 12px;
}

.account-card-header h2 i {
  color: #8e44ad;
  font-size: 1.5rem;
}

.account-card-header p {
  margin: 0;
  color: #8d6ab1;
  font-size: 0.95rem;
  font-weight: 500;
}

/* Tab Content */
.account-tab-content {
  display: none;
  animation: fadeInTab 0.35s ease;
}

.account-tab-content.active {
  display: block;
}

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

/* Form V2 */
.account-form-v2 {
  max-width: 100%;
}

.account-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.account-input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.account-input-group label {
  font-size: 0.9rem;
  font-weight: 700;
  color: #5e477c;
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-input-group label i {
  color: #8e44ad;
}

.account-input-group input {
  padding: 12px 16px;
  border: 1.5px solid rgba(106,13,173,0.18);
  border-radius: 12px;
  background: linear-gradient(180deg, #fff 0%, #fbf8ff 100%);
  color: #351d4d;
  font-weight: 500;
  transition: all 0.25s ease;
  font-family: inherit;
}

.account-input-group input::placeholder {
  color: #a99abf;
}

.account-input-group input:focus {
  outline: none;
  border-color: rgba(106,13,173,0.4);
  background: #fff;
  box-shadow: 0 0 0 5px rgba(106,13,173,0.1), 0 8px 16px rgba(106,13,173,0.08);
  transform: translateY(-2px);
}

/* Form Sections */
.account-form-section {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1.5px solid rgba(106,13,173,0.08);
}

.account-form-section:last-child {
  border-bottom: none;
}

.account-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.account-section-title h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #4e1c77;
  display: flex;
  align-items: center;
  gap: 10px;
}

.account-section-title h3 i {
  color: #8e44ad;
  font-size: 1.1rem;
}

.account-section-title small {
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(106,13,173,0.1), rgba(196,112,255,0.08));
  border-radius: 8px;
  color: #6e5a87;
  font-weight: 700;
  font-size: 0.8rem;
  border: 1px solid rgba(106,13,173,0.12);
}

.account-section-desc {
  margin: 8px 0 0;
  color: #8d6ab1;
  font-size: 0.9rem;
}

/* Social Links Grid */
.account-grid-v2-social {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* Media Grid */
.account-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}

.account-media-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.account-media-preview {
  width: 100%;
  height: 200px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(106,13,173,0.1), rgba(196,112,255,0.08));
  border: 2px dashed rgba(106,13,173,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(106,13,173,0.3);
  transition: all 0.3s ease;
}

.account-media-preview.has-image {
  border: none;
  background: no-repeat center / cover;
}

.account-media-item h3 {
  margin: 0;
  color: #4e1c77;
  font-size: 1.1rem;
}

.account-media-item p {
  margin: 0;
  color: #8d6ab1;
  font-size: 0.85rem;
}

.account-upload-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}

.account-upload-row input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid rgba(106,13,173,0.18);
  border-radius: 10px;
  background: #fff;
  color: #351d4d;
  font-size: 0.9rem;
  transition: all 0.25s ease;
}

.account-upload-row input:focus {
  outline: none;
  border-color: rgba(106,13,173,0.4);
  box-shadow: 0 0 0 4px rgba(106,13,173,0.1);
}

.account-btn-upload {
  padding: 10px 16px;
  background: linear-gradient(135deg, #8e44ad, #a04de0);
  border: none;
  border-radius: 10px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-btn-upload:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(106,13,173,0.22);
}

/* Reservations Controls */
.account-reservations-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.account-reservation-filter {
  padding: 10px 18px;
  border: 1.5px solid rgba(106,13,173,0.22);
  background: rgba(255,255,255,0.7);
  color: #5f3d7e;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.account-reservation-filter:hover {
  transform: translateY(-2px);
  border-color: rgba(106,13,173,0.35);
  box-shadow: 0 6px 14px rgba(106,13,173,0.1);
}

.account-reservation-filter.active {
  background: linear-gradient(135deg, #6a0dad, #8e44ad);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(106,13,173,0.22);
}

/* Rich Editor */
.account-rich-field {
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(106,13,173,0.18);
  background: linear-gradient(180deg, #fff 0%, #fbf8ff 100%);
  transition: all 0.25s ease;
}

.account-rich-field:focus-within {
  border-color: rgba(106,13,173,0.4);
  box-shadow: 0 0 0 5px rgba(106,13,173,0.1), 0 8px 16px rgba(106,13,173,0.08);
}

.account-rich-toolbar {
  border-bottom: 1.5px solid rgba(106,13,173,0.12);
  background: linear-gradient(180deg, rgba(241,231,255,0.7), rgba(241,231,255,0.3));
  padding: 10px 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.account-rich-toolbar button {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 8px;
  background: rgba(106,13,173,0.08);
  color: #6a0dad;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-weight: 700;
}

.account-rich-toolbar button:hover {
  background: rgba(106,13,173,0.18);
  transform: scale(1.1) translateY(-1px);
  color: #8e44ad;
}

.discussion-editor {
  min-height: 140px;
  max-height: 280px;
  padding: 14px 16px;
  overflow-y: auto;
  color: #351d4d;
  line-height: 1.6;
}

.account-rich-editor-signature {
  min-height: 100px;
  max-height: 180px;
}

/* Buttons */
.account-form-actions {
  display: flex;
  gap: 12px;
  margin-top: 28px;
}

.account-btn-save {
  flex: 1;
  max-width: 280px;
  padding: 14px 24px;
  background: linear-gradient(135deg, #6a0dad, #8e44ad);
  border: none;
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(106,13,173,0.22);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.account-btn-save:hover {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 18px 40px rgba(106,13,173,0.3);
}

.account-btn-logout {
  padding: 14px 24px;
  background: linear-gradient(135deg, #fff0f4, #ffdce8);
  border: 1.5px solid rgba(170,28,88,0.25);
  border-radius: 12px;
  color: #8f1544;
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 8px;
}

.account-btn-logout:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(170,28,88,0.16);
  background: linear-gradient(135deg, #ffecf2, #ffd2e2);
}

.account-btn-back {
  padding: 12px 20px;
  background: linear-gradient(135deg, #f3e8ff, #ead8ff);
  border: 1.5px solid rgba(106,13,173,0.2);
  border-radius: 12px;
  color: #5b2389;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.account-btn-back:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(106,13,173,0.15);
  background: linear-gradient(135deg, #ead8ff, #dcc8ff);
}

/* Footer Action */
.account-footer-action {
  text-align: center;
  margin-top: 40px;
  padding-top: 28px;
}

/* Message Box */
.account-msg {
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid rgba(106,13,173,0.16);
  background: linear-gradient(180deg, rgba(106,13,173,0.12), rgba(106,13,173,0.06));
  color: #5b2389;
  font-weight: 700;
  font-size: 0.95rem;
  margin: 16px 0;
  min-height: 20px;
}

/* Advanced animations for account page */
@keyframes slideUpIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.account-page-modern .account-card {
  animation: slideUpIn 0.6s ease-out forwards;
  opacity: 0;
}

.account-page-modern .account-card:nth-child(1) {
  animation-delay: 0.1s;
}

.account-page-modern .account-card:nth-child(2) {
  animation-delay: 0.2s;
}

.account-page-modern .account-card:nth-child(3) {
  animation-delay: 0.3s;
}

.account-form-card label {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.account-form-card label:focus-within {
  transform: scale(1.01);
}

.discussion-toolbar button {
  transition: all 0.2s ease;
}

.discussion-toolbar button:hover {
  transform: scale(1.08) translateY(-2px);
  color: #6a0dad;
}

@media (max-width: 980px) {
  .auth-shell,
  .account-layout {
    grid-template-columns: 1fr;
  }

  .account-hero-content {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: flex-end;
    padding: 20px;
    gap: 14px;
  }

  .account-hero-side {
    grid-column: 1 / -1;
    width: 100%;
  }

  .account-glow-card {
    width: 100%;
    animation: none;
  }

  .account-hero-content {
    transform: none;
  }

  .account-hero-text h1 {
    font-size: 1.7rem;
  }

  .account-avatar-lg {
    width: 106px;
    height: 106px;
  }
}

/* Account Page V2 Responsive */
@media (max-width: 980px) {
  .account-hero-overlay {
    grid-template-columns: auto 1fr;
    gap: 20px;
  }

  .account-hero-right {
    grid-column: 2;
    align-items: stretch;
  }

  .account-hero-center {
    grid-column: 1 / -1;
    margin-top: 16px;
  }

  .account-avatar-v2 {
    width: 120px;
    height: 120px;
  }

  .account-grid-v2 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

  .account-card-v2 {
    padding: 24px;
  }

  .account-media-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .account-page-v2 {
    padding: 12px;
  }

  .account-hero-v2 {
    min-height: 320px;
    margin-bottom: 20px;
    border-radius: 20px;
  }

  .account-hero-overlay {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 16px;
    align-items: center;
    justify-items: center;
    border-radius: 20px;
  }

  .account-hero-left {
    width: 100%;
    align-items: center;
    gap: 8px;
  }

  .account-avatar-v2 {
    width: 90px;
    height: 90px;
    border-radius: 14px;
    border-width: 3px;
  }

  .account-hero-username-badge {
    width: 100%;
    align-items: center;
    gap: 6px;
  }

  .account-username-hero {
    font-size: 1rem;
    margin: 0;
  }

  .account-role-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
  }

  .account-hero-center {
    display: none;
  }

  .account-bio-hero {
    display: none;
  }

  .account-hero-right {
    width: 100%;
    align-items: center;
  }

  .account-hero-actions {
    width: 100%;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
  }

  .account-status-badge {
    padding: 7px 14px;
    font-size: 0.7rem;
    min-width: 0;
    text-align: center;
    width: auto;
    max-width: 90%;
  }

  .account-tabs-container {
    margin-bottom: 16px;
    border-radius: 12px;
  }

  .account-tab-btn {
    padding: 10px 8px;
    font-size: 0.75rem;
  }

  .account-tab-btn i {
    font-size: 0.85rem;
  }

  .account-card-v2 {
    padding: 14px;
    border-radius: 16px;
  }

  .account-card-header h2 {
    font-size: 1.3rem;
  }

  .account-card-header p {
    font-size: 0.85rem;
  }

  .account-grid-v2 {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .account-grid-v2-social {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .account-form-actions {
    flex-direction: column;
    gap: 8px;
  }

  .account-btn-save {
    max-width: none;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .account-btn-logout {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.9rem;
  }

  .account-media-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .account-media-preview {
    height: 150px;
  }

  .account-form-section {
    margin-bottom: 12px;
    padding-bottom: 12px;
  }

  .account-rich-field {
    border-radius: 10px;
  }

  .discussion-editor {
    min-height: 80px;
    max-height: 180px;
  }

  .account-upload-row {
    flex-direction: column;
    gap: 8px;
  }

  .account-upload-row input {
    width: 100%;
    font-size: 0.85rem;
  }

  .account-btn-upload {
    width: 100%;
    padding: 10px;
  }

  .account-section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .account-section-title small {
    font-size: 0.7rem;
  }

  .account-reservations-controls {
    gap: 6px;
  }

  .account-reservation-filter {
    padding: 8px 12px;
    font-size: 0.75rem;
  }
}

@media (max-width: 768px) {
  .auth-tabs {
    flex-direction: column;
  }

  .auth-tab {
    width: 100%;
  }

  .auth-recovery-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .reset-page {
    padding: 14px;
  }

  .reset-shell {
    grid-template-columns: 1fr;
  }

  .reset-story,
  .reset-card {
    padding: 20px;
  }

  .account-grid-2,
  .account-link-grid {
    grid-template-columns: 1fr;
  }

  .upload-row {
    grid-template-columns: 1fr;
  }

  .account-form-card,
  .account-media-card {
    padding: 18px;
    gap: 12px;
  }

  .account-grid-2 {
    gap: 10px;
  }

  .account-actions {
    grid-template-columns: 1fr;
  }

  .account-actions .account-btn {
    width: 100%;
  }

  .account-reservations-head {
    flex-direction: column;
    align-items: stretch;
  }

  .account-reservation-filters {
    width: 100%;
  }

  .account-reservation-filter {
    flex: 1 1 100%;
  }

  .account-label-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .account-label-row small {
    align-self: flex-start;
  }
}

@media (max-width: 900px) {
  .presence-grid {
    grid-template-columns: 1fr;
    margin: 0 auto;
    max-width: 92%;
  }
}

::selection {
    background-color: #FFD700;
    color: #6A1B9A;
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    color: #333;
}

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

ul {
    padding: 0;
    list-style: none;
}

/* Header */
/* Header */
header nav {
    display:flex;
    justify-content:space-between;
    align-items:center;
    background-color:var(--accent-purple);
    padding:10px 20px;
    box-shadow:0 4px 8px rgba(0,0,0,0.2);
    position:relative;
    z-index:110;
    font-family:var(--montserrat);
    font-size: 1.15rem;
}

/* Logo */
.logo { 
    height:60px; 
    transition:transform .6s ease; 
}
.logo:hover { 
    transform:scale(1.06); 
}

/* Desktop menu */
.desktop-menu {
    display:flex;
    gap:14px;
    align-items:center;
    list-style:none;
    margin:0;
    padding:0;
    font-size: 1.15rem;
}
.desktop-menu li { position:relative; }
.desktop-menu a, .dropdown-toggle {
    font-weight:700;
    color:#fff;
    padding:8px 12px;
    border-radius:6px;
    text-decoration:none;
    background:none;
    border:none;
    cursor:pointer;
    font-family:var(--montserrat);
    transition: color .4s ease, transform .4s ease, box-shadow .4s ease;
    font-size: 1.15rem;
    position: relative;
}

/* ★ NEW UNDERLINE DESKTOP */
.desktop-menu a::after,
.dropdown-toggle::after {
    content:'';
    position:absolute;
    left:50%;
    bottom:3px;
    width:0;
    height:3px;
    background:linear-gradient(90deg, #f9d65c, #ffcc33, #f9d65c);
    border-radius:4px;
    box-shadow:0 0 8px rgba(255, 204, 51, 0.7);
    filter:blur(0.3px);
    transition:
        width .45s cubic-bezier(0.22, 1, 0.36, 1),
        left .45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow .45s ease;
}
.desktop-menu a:hover::after,
.dropdown-toggle:hover::after {
    width:100%;
    box-shadow:0 0 12px rgba(255, 204, 51, 1);
  left:0;
}

.desktop-menu a:hover, .dropdown-toggle:hover, 
.desktop-menu a:focus, .dropdown-toggle:focus {
    color: var(--accent-gold);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    outline:none;
}

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  min-width: 220px;
  background: #fff;
  color: #4A148C;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  padding: 8px;
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity .45s ease, transform .45s ease, visibility .45s ease;
  z-index: 1200; /* ensure dropdown is above other page elements */
  font-size: 1.15rem;
}
.dropdown li a {
    display:block;
    padding: 6px 12px;
    font-size: 0.65rem;
    text-decoration:none;
  color: #4A148C;
    font-weight:600;
    border-radius:6px;
    font-size: 1.15rem;
}
.dropdown li a:hover, .dropdown li a:focus {
    background:#f3e8ff;
    color:#6a0dad;
    transform: translateX(4px);
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}
.has-dropdown .dropdown-toggle[aria-expanded="true"] + .dropdown {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

/* Ensure the trigger stays clickable above nearby elements */
.dropdown-toggle {
  position: relative;
  z-index: 1300;
}

/* CTA Button */
.btn.cta-btn {
    background: var(--accent-gold);
    color: #4A148C;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-family: var(--montserrat);
    font-size: 1.15rem;
    display: inline-block;
    transition: background-color .45s ease, color .45s ease, transform .45s ease, box-shadow .45s ease;
}
.btn.cta-btn:hover {
    background: #4A148C;
    color: var(--accent-gold);
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Social sidebar */
.social-sidebar {
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 140;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.social-sidebar a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  background: linear-gradient(135deg, #6a0dad, #8e44ad);
  box-shadow: 0 8px 18px rgba(106, 13, 173, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.social-sidebar a:focus-visible {
  outline: 3px solid rgba(255,255,255,0.12);
  outline-offset: 3px;
}

.social-sidebar a i {
  font-size: 1rem;
  line-height: 1;
}

.social-sidebar a:hover,
.social-sidebar a:focus-visible {
  transform: translateX(4px) scale(1.06);
  box-shadow: 0 12px 24px rgba(106, 13, 173, 0.28);
  filter: saturate(1.05);
  outline: none;
}

.social-sidebar a.discord { background: linear-gradient(135deg, #5865f2, #404eed); }
.social-sidebar a.instagram { background: linear-gradient(135deg, #f58529, #dd2a7b 55%, #8134af); }
.social-sidebar a.youtube { background: linear-gradient(135deg, #ff4d4d, #d90429); }
.social-sidebar a.tiktok { background: linear-gradient(135deg, #111, #272727); }
.social-sidebar a.telegram { background: linear-gradient(135deg, #2aabee, #179cde); }
.social-sidebar a.mail { background: linear-gradient(135deg, #6a0dad, #8e44ad); }

/* Desktop centered-left positioning already set. Responsive behavior below */
@media (max-width: 900px) {
  .social-sidebar {
    left: 10px;
    gap: 10px;
    transform: translateY(-50%);
  }
  .social-sidebar a {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 600px) {
  /* Move to bottom center as a compact horizontal bar on small screens */
  .social-sidebar {
    top: auto;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    background: transparent;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 30px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
  }
  .social-sidebar a {
    width: 46px;
    height: 46px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  }
}

/* Mobile: rimuovo underline CTA */
@media (max-width:768px) {
    .mobile-contact a.btn.cta-btn::after {
        content: none !important;
    }
}

/* MOBILE ICON */
.mobile-menu-icon {
    display:none;
    cursor:pointer;
    background:transparent;
    border:none;
    padding:0;
    position: relative;
    width: 30px;
    height: 24px;
    transition: transform 0.4s ease;
}
.bar {
    display: block;
    width: 100%;
    height: 4px;
    background: #fff;
    position: absolute;
    left: 0;
    border-radius: 2px;
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
.bar:nth-child(1) { top: 0; }
.bar:nth-child(2) { top: 10px; }
.bar:nth-child(3) { top: 20px; }
.mobile-menu-icon.open .bar:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.mobile-menu-icon.open .bar:nth-child(2) { opacity: 0; transform: translateX(-20px); }
.mobile-menu-icon.open .bar:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }
.mobile-menu-icon:hover { transform: scale(1.1); }

/* ==========================================
   MOBILE MENU (FIX: non sfocato + cliccabile)
   ========================================== */
.mobile-menu {
    display:block;
    position:fixed;
    top:0;
    right:0;
    width:100%;
    height:100vh;
    background:linear-gradient(180deg, rgba(106,13,173,0.98), rgba(106,13,173,0.95));

    /* ❌ iOS: questo spesso fa apparire "sfocato" e crea bug di click */
    backdrop-filter: none;
    -webkit-backdrop-filter: none;

    padding:90px 25px;
    box-sizing:border-box;
    transform:translateX(100%);
    opacity:0;

    /* ✅ quando è chiuso non deve prendere click */
    pointer-events:none;

    transition:transform 0.7s cubic-bezier(0.22, 0.9, 0.25, 1), opacity 0.6s ease;

    /* ✅ sopra a social/cookie/etc */
    z-index:9999;

    overflow:auto;
    font-size: 1.15rem;
    box-shadow: -10px 0 30px rgba(0,0,0,0.3);
}
.mobile-menu::before {
    content:'';
    position:absolute;
    inset:0;
    background:linear-gradient(135deg, rgba(255,255,255,0.05), transparent 50%);
    pointer-events:none;
}
.mobile-menu.active {
    transform:translateX(0);
    opacity:1;
    pointer-events:auto; /* ✅ ora è cliccabile */
}

/* ✅ Forza clic su link/bottoni dentro menu (se qualcosa copre) */
.mobile-menu a,
.mobile-menu button {
    pointer-events:auto;
    position:relative;
    z-index:10000;
}

/* Mobile list */
.mobile-list { 
    list-style:none; 
    margin:0; 
    padding:0; 
    display:flex; 
    flex-direction:column; 
    gap:12px; 
    font-size: 1.15rem;
}
.mobile-list li {
    margin:0;
    opacity:0;
    transform:translateX(20px) scale(0.95);
    transition:opacity 0.7s ease, transform 0.7s cubic-bezier(0.25, 0.8, 0.25, 1);
    transition-delay: calc( (var(--i,1) * 0.06s) + 0.1s );
}
.mobile-menu.active .mobile-list li {
    opacity:1;
    transform:translateX(0) scale(1);
}
.mobile-list a {
    display:inline-block;
    color:#fff;
    font-size:1.15rem;
    padding:12px 16px;
    text-decoration:none;
    font-weight:800;
    border-radius:10px;
    position:relative;
    transition: transform 0.5s ease, color 0.5s ease, background-color 0.5s ease;
}

/* ★ NEW UNDERLINE MOBILE */
.mobile-list a::after,
.mobile-submenu li a::after {
    content:'';
    position:absolute;
    left:50%;
    bottom:4px;
    width:0;
    height:3px;
    background:linear-gradient(90deg, #f9d65c, #ffcc33, #f9d65c);
    box-shadow:0 0 7px rgba(255, 204, 51, 0.7);
    filter:blur(0.3px);
    border-radius:4px;
    transition:
        width .45s cubic-bezier(0.22, 1, 0.36, 1),
        left .45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow .45s ease;
}
.mobile-list a:hover::after,
.mobile-submenu li a:hover::after {
    width:100%;
    left:0;
    box-shadow:0 0 12px rgba(255, 204, 51, 1);
}

.mobile-list a:hover { 
    transform:translateX(8px) scale(1.02); 
    color: var(--accent-gold);
    background: rgba(255,255,255,0.05);
}

.mobile-contact {
  margin-top: 8px;
}

.mobile-contact .btn.cta-btn {
  display: inline-block;
  width: auto;
  margin: 0;
  text-align: left;
  background: transparent;
  color: #fff;
  padding: 12px 16px;
  border-radius: 10px;
  font-weight: 800;
  box-shadow: none;
  transform: none;
}

.mobile-contact .btn.cta-btn:hover,
.mobile-contact .btn.cta-btn:focus {
  background: rgba(255,255,255,0.05);
  color: var(--accent-gold);
  transform: translateX(8px) scale(1.02);
}

/* Mobile dropdown */
.mobile-has-dropdown { margin: 8px 0; }

.mobile-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    font-family: var(--montserrat);
    font-weight: 700;
    font-size: 1.15rem;
    padding: 12px 16px;
    cursor: pointer;
    position: relative;
    border-radius: 10px;
    transition: color 0.4s ease, background-color 0.4s ease, transform 0.4s ease;
}
.mobile-dropdown-toggle:hover {
    color: var(--accent-gold);
    background: rgba(255,255,255,0.05);
    transform: translateX(4px);
}
.mobile-dropdown-toggle::after {
    content: '▼';
    font-size: 1rem;
    transition: transform 0.4s ease;
}
.mobile-has-dropdown.open .mobile-dropdown-toggle::after {
    transform: rotate(180deg);
}

.mobile-submenu {
    max-height:0;
    overflow:hidden;
    padding:0 10px;
    margin:0 0 10px 0;
    transition:max-height 0.6s ease, opacity 0.5s ease, padding 0.6s ease;
    opacity:0;
    font-size: 1.15rem;
}
.mobile-has-dropdown.open .mobile-submenu {
    max-height:400px;
    opacity:1;
    padding:10px 10px;
}
.mobile-submenu li a {
    display:block;
    padding:10px 14px;
    color:#fff;
    font-weight:700;
    font-size:1.15rem;
    text-decoration:none;
    border-radius:8px;
    position: relative;
    transition: transform 0.4s ease, color 0.4s ease, background-color 0.4s ease, box-shadow 0.4s ease;
}
.mobile-submenu li a:hover { 
    color:var(--accent-gold); 
    transform:translateX(8px) scale(1.02); 
    background: rgba(255,255,255,0.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* ==========================================
   FIX: elementi fissi (social/cookie) sotto al menu
   (se usi altre classi/ID, aggiungile qui)
   ========================================== */
.social-bar,
.social-sidebar,
.social-floating,
#social-bar,
#social-sidebar,
#cookie-tab,
#cookie-popup,
#cookie-preferences {
    z-index: 500 !important;
}

/* (opzionale ma utile) quando menu aperto, disattiva click sotto */
body.menu-open > *:not(header) { pointer-events:none; }
body.menu-open .mobile-menu,
body.menu-open .mobile-menu * { pointer-events:auto; }

/* Responsive */
@media (max-width:768px){
  header nav {
    padding: 10px 14px;
    gap: 10px;
  }

  .logo {
    height: 48px;
  }

    .desktop-menu { display:none; }
  .mobile-menu-icon {
    display:block;
    position:absolute;
    left:50%;
    top:50%;
    transform:translate(-50%, -50%);
    z-index: 111;
  }
  .mobile-menu-icon:hover { transform: translate(-50%, -50%) scale(1.1); }
  .profile-menu { margin-left:auto; }

  footer {
    padding: 30px 14px 76px;
  }

  .discussion-toolbar {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 12px;
  }

  .discussion-toolbar button,
  .discussion-color-picker {
    flex: 0 0 auto;
  }
}
@media (min-width:769px){
  header nav {
    display:grid;
    grid-template-columns:auto 1fr auto;
    align-items:center;
  }
    .mobile-menu { display:none; }
    .mobile-menu-icon { display:none; }
  .desktop-menu { justify-self:center; }
  .profile-menu { justify-self:end; margin-left:0; }
}

@media (max-width: 768px) {
  .social-sidebar {
    top: 76px;
    left: 10px;
    gap: 8px;
  }

  .social-sidebar a {
    width: 34px;
    height: 34px;
  }
}

/* Hero Section */
.hero {
    text-align: center;
    background: linear-gradient(135deg, #6a0dad, #8e44ad);
    color: #fff;
    padding: 60px 20px;
    margin-bottom: 30px;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.hero button {
    background: #FFD700;
    color: #4A148C;
    padding: 10px 20px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: bold;
    transition: 0.3s ease;
    cursor: pointer;
}

.hero button:hover {
    background: #4A148C;
    color: #FFD700;
}

.hero::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    animation: float 5s infinite;
}

/* Keyframes */
@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* Sections */
section {
    padding: 30px;
    margin: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

section h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

section ul li {
    margin-bottom: 10px;
    font-size: 1rem;
}

/* What is D&D Section */
.what-is-dd {
    background: linear-gradient(135deg, #6A1B9A, #4A148C);
    color: #fff;
    padding: 80px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.what-is-dd .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.what-is-dd h2 {
    font-size: 2.8rem;
    color: #fff;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.what-is-dd .dd-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.what-is-dd .image-container {
    flex: 1;
    text-align: center;
    max-width: 400px;
}

.what-is-dd img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.what-is-dd img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.what-is-dd .text-container {
    flex: 2;
    text-align: left;
    line-height: 1.8;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.what-is-dd .text-container p {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.what-is-dd .text-container ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.what-is-dd .text-container ul li {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFD700;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.what-is-dd .text-container ul li span {
    font-size: 1.5rem;
}

.what-is-dd .learn-more-btn {
    display: inline-block;
    margin: 10px auto 0;
    padding: 10px 15px;
    background-color: #FFD700;
    color: #6a0dad;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.what-is-dd .learn-more-btn:hover {
    background-color: #6a0dad;
    color: #FFD700;
    transform: scale(1.05);
}

.text-content {
    max-width: 500px;
    text-align: left;
}

.text-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.text-content ul {
    list-style-type: none;
    padding: 0;
}

.text-content li {
    font-size: 1.1rem;
    color: #333;
    margin: 10px 0;
}

@media (max-width: 768px) {
    .what-is-dd {
        padding: 40px 10px;
    }

    .what-is-dd .dd-content {
        flex-direction: column;
        text-align: center;
    }

    .text-content {
        max-width: 90%;
    }

    .what-is-dd img {
        max-width: 250px;
    }
}

/* FAQ Section */
.faq {
    padding: 60px 20px;
    background-color: #6a0dad;
    color: #fff;
    text-align: center;
  }
  
.faq .container {
    max-width: 800px;
    margin: 0 auto;
}
  
.faq h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
}
  
.faq-list {
    text-align: left;
}
  
.faq-item {
    border-bottom: 1px solid rgba(255,255,255,0.3);
}
  
.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: #fff;
    padding: 1rem 0;
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: color 0.3s;
}
  
.faq-question .icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
}
  
.faq-question[aria-expanded="true"] .icon {
    transform: rotate(45deg);
}
  
.faq-question:hover,
.faq-question:focus {
    color: #f0e68c;
    outline: none;
}
  
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease, padding 0.5s ease;
    padding: 0 0;
}
  
.faq-answer p {
    margin: 0;
    padding: 0 0 1rem;
    color: #f0f0f0;
}
  
.faq-item.open .faq-answer {
    max-height: 200px;
    padding: 0.5rem 0 1rem;
}

/* Wiki Section */
.wiki-section {
    background: linear-gradient(135deg, #6a0dad, #8e44ad);
    color: #fff;
    padding: 80px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.wiki-section .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.wiki-section h2 {
    font-size: 2.8rem;
    color: #fff;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.wiki-section .wiki-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.wiki-section .image-container {
    flex: 1;
    text-align: center;
    max-width: 400px;
}

.wiki-section img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.wiki-section img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.wiki-section .text-container {
    flex: 2;
    text-align: left;
    line-height: 1.8;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.wiki-section .text-container p {
    font-size: 1.3rem;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.wiki-section .text-container ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.wiki-section .text-container ul li {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFD700;
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

.wiki-section .text-container ul li span {
    font-size: 1.5rem;
}

.wiki-section .wiki-btn {
    display: inline-block;
    margin: 10px auto 0;
    padding: 10px 15px;
    background-color: #FFD700;
    color: #6a0dad;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wiki-section .wiki-btn:hover {
    background-color: #6a0dad;
    color: #FFD700;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .wiki-section {
        padding: 40px 10px;
    }

    .wiki-section .wiki-content {
        flex-direction: column;
        text-align: center;
    }

    .wiki-section img {
        max-width: 250px;
    }
}

/* ====== SEZIONE MANUALI - Stile premium 2025 ====== */
.manuali-section {
    padding: 100px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    text-align: center;
}

.manuali-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Titolo con linea gialla che parte dal centro (come Chi Siamo) */
.manuali-section .section-title {
    font-size: 4rem;
    font-weight: 900;
    color: #4A148C;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.manuali-section .section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 8px;
    background: #FFD700;
    border-radius: 4px;
    transform: translateX(-50%);
    transition: width 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.manuali-section .section-title:hover::after {
    width: 100%;
}

.manuali-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;
}

.manuale-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.manuale-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(74, 20, 140, 0.2);
}

.manuale-img-wrapper {
    height: 380px;
    overflow: hidden;
    background: #f0f0f0;
}

.manuale-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.manuale-card:hover img {
    transform: scale(1.08);
}

.manuale-card h3 {
    font-size: 1.4rem;
    color: #2d1b4e;
    margin: 1.2rem 0 1rem;
    font-weight: 700;
}

.btn-manual {
    display: inline-block;
    background: #FFD700;
    color: #4A148C;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
}

.btn-manual:hover {
    background: #4A148C;
    color: #FFD700;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(74, 20, 140, 0.4);
}

/* Badge "In arrivo" */
.coming-soon {
    opacity: 0.75;
    pointer-events: none;
}

.coming-soon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    border-radius: 16px;
}

.coming-soon-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFD700;
    color: #4A148C;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 1.3rem;
    z-index: 2;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}

/* Responsive */
@media (max-width: 992px) {
    .manuali-section .section-title { font-size: 3.5rem; }
    .manuali-grid { gap: 2rem; }
}

@media (max-width: 768px) {
    .manuali-section {
        padding: 80px 15px;
    }
    .manuali-section .section-title {
        font-size: 3rem;
        margin-bottom: 3rem;
    }
    .manuale-img-wrapper { height: 340px; }
}

@media (max-width: 480px) {
    .manuali-section .section-title { font-size: 2.6rem; }
    .manuale-img-wrapper { height: 300px; }
}

/* ====== RISORSE EXTRA – Versione finale (bottone originale + griglia pro) ====== */
.risorse-clean-pro {
    padding: 120px 20px;
    background: #faf8ff;
    text-align: center;
}

.risorse-clean-pro .container {
    max-width: 1100px;
    margin: 0 auto;
}

/* Titolo identico al tuo originale */
.section-title {
    font-size: 3.6rem;
    font-weight: 900;
    color: #4A148C;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 8px;
    background: #FFD700;
    border-radius: 4px;
    transform: translateX(-50%);
    transition: width 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.section-title:hover::after {
    width: 100%;
}

/* Lead migliorato ma sobrio */
.risorse-lead {
    font-size: 1.22rem;
    color: #444;
    max-width: 820px;
    margin: 0 auto 4rem;
    line-height: 1.75;
}

/* Griglia elegante (sostituisce i pillolini) */
.risorse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 20px;
    max-width: 1000px;
    margin: 0 auto 4rem;
}

.risorse-item {
    background: white;
    color: #4A148C;
    padding: 22px 16px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 1.05rem;
    border: 2px solid #e9e0ff;
    transition: all 0.35s ease;
}

.risorse-item:hover {
    border-color: #FFD700;
    background: #fffdf0;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(74, 20, 140, 0.1);
}

/* BOTTONE 100% IDENTICO ALLA TUA VERSIONE ORIGINALE */
.btn-manual {
    background: #FFD700;
    color: #4A148C;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
    transition: all 0.4s ease;
    box-shadow: 0 6px 15px rgba(255, 215, 0, 0.3);
    text-decoration: none;
    display: inline-block;
    font-size: 1.05rem;
}

.btn-manual:hover {
    background: #4A148C;
    color: #FFD700;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 25px rgba(74, 20, 140, 0.4);
}

/* Responsive (come prima) */
@media (max-width: 768px) {
    .section-title { font-size: 3rem; }
    .risorse-lead { font-size: 1.15rem; }
    .risorse-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 480px) {
    .section-title { font-size: 2.6rem; }
    .risorse-item { padding: 18px 12px; font-size: 1rem; }
}

/* Guarda D&D in Azione - Sezione Video */
.video-section {
    background-color: #6a0dad;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.video-section h2 {
  display: inline-block;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin: 0 auto 1.1rem;
  padding: 0.62rem 1rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(24, 8, 50, 0.55), rgba(81, 20, 146, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #ffe285;
  line-height: 1.14;
  text-shadow:
    0 2px 0 rgba(42, 12, 83, 0.95),
    0 8px 18px rgba(0, 0, 0, 0.34);
  box-shadow: 0 12px 26px rgba(13, 3, 33, 0.28);
}

.video-section .video-heading-wrap {
  max-width: 860px;
  margin: 0 auto 1.1rem;
}

.video-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    color: #ddd;
    line-height: 1.6;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.video-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

.video-container iframe {
    width: 100%;
    height: 450px;
    border: none;
}

@media (max-width: 768px) {
  .video-section {
    padding: 46px 14px;
  }

  .video-section h2 {
    padding: 0.55rem 0.82rem;
    border-radius: 12px;
    margin-bottom: 0.9rem;
  }

  .video-section p {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 22px;
  }

  .video-container iframe {
    height: 280px;
  }
}

@media (max-width: 480px) {
  .video-section {
    padding: 38px 11px;
  }

  .video-section h2 {
    font-size: clamp(1.45rem, 6.2vw, 1.9rem);
    letter-spacing: 0.6px;
  }

  .video-container iframe {
    height: 220px;
  }
}

.play-button-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.5);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.play-button-overlay:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.play-button-overlay svg {
    fill: #ffcc00;
    width: 50px;
    height: 50px;
}

/* Chi Siamo */
#chi-siamo {
    background: var(--bg-light);
    padding: 6rem 1.5rem;
    position: relative;
    overflow: hidden;
    background-image: url('data:image/svg+xml,%3Csvg width="6" height="6" viewBox="0 0 6 6" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="%239C92AC" fill-opacity="0.1" fill-rule="evenodd"%3E%3Cpath d="M5 0h1L0 6V5zm1 6v-1L1 0h1z"/%3E%3C/g%3E%3C/svg%3E');
    background-repeat: repeat;
    background-size: 6px 6px;
}

#chi-siamo .wrapper {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

/* Titolo grande con linea che parte dal centro */
#chi-siamo .section-title {
    font-size: 4.2rem;
    font-weight: 900;
    color: #4A148C;
    margin-bottom: 2.5rem;
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
    line-height: 1.1;
}

#chi-siamo .section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 8px;
    background: #FFD700;
    border-radius: 4px;
    transform: translateX(-50%);
    transition: width 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

#chi-siamo .section-title:hover::after {
    width: 100%;
}

/* Il resto del tuo CSS originale (immagine, paragrafo, responsive) */
#chi-siamo p {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 400;
}

#chi-siamo .image-wrapper {
    perspective: 1000px;
    transform-style: preserve-3d;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    border-radius: var(--radius-large, 15px);
    overflow: hidden;
    transition: box-shadow 0.4s ease;
}

#chi-siamo .image-wrapper:hover {
    box-shadow: 0 25px 60px rgba(0,0,0,0.35);
}

#chi-siamo .image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-large, 15px);
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.parallax-active #chi-siamo .image-wrapper img {
    transform: translateZ(50px) translateY(-20px) scale(1.05);
}

/* Responsive */
@media (max-width: 992px) {
    #chi-siamo .section-title { font-size: 3.6rem; }
}

@media (max-width: 768px) {
    #chi-siamo { padding: 4rem 1rem; }
    #chi-siamo .wrapper {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    #chi-siamo .image-wrapper {
        max-width: 400px;
        margin: 0 auto;
    }
    #chi-siamo .section-title {
        font-size: 3.2rem;
        padding-bottom: 16px;
    }
    #chi-siamo .section-title::after { height: 6px; }
}

@media (max-width: 480px) {
    #chi-siamo .section-title {
        font-size: 2.6rem;
        padding-bottom: 14px;
    }
    #chi-siamo .section-title::after { height: 5px; }
}

/* ====== SERVICES SECTION ====== */
.services-section {
    background: var(--services-bg);
    padding: 4rem 1rem;
    text-align: center;
}

.services-container {
    max-width: 1000px;
    margin: 0 auto;
}

.services-title {
    font-size: 3.5rem; /* Larger heading for impact, consistent with Chi Siamo */
    color: var(#4A148C);
    margin-bottom: 2rem; /* Adjusted margin */
    position: relative;
    padding-bottom: 0.5rem; /* Space for the underline */
    display: inline-block; /* Essential for span underline width */
}

/* Updated underline for Services title */
.services-title span {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0; /* Starts hidden */
    height: 6px; /* Thicker underline */
    background: var(--services-primary, #4A148C); /* Use a variable or direct color */
    border-radius: 3px;
    transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); /* Smooth transition */
}

.services-title:hover span {
    width: 100%; /* Expands to full width on hover */
}

.services-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--services-gap);
}

.service-card {
    background: var(--services-card-bg);
    border: 1px solid var(--services-border);
    border-radius: var(--services-radius);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.service-card:hover {
    transform: translateY(-10px) rotate(-1deg);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

.service-icon {
    width: 60px;
    margin-bottom: 1rem;
}

.service-heading {
    margin: 0.5rem 0;
    color: var(--services-text);
    font-size: 1.25rem;
}

.service-text {
    flex-grow: 1;
    color: var(--services-text);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.service-btn {
    background: #FFD700;
    color: #4A148C;
    padding: 12px 25px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background 0.4s ease-in-out,
                color 0.4s ease-in-out,
                transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.4s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.service-btn:hover {
    background: #4A148C;
    color: #FFD700;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(74, 20, 140, 0.6);
}

.hero-section .btn {
    background: #FFD700;
    color: #4A148C;
    padding: 12px 25px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: bold;
    text-decoration: none;
    display: inline-block;
    transition: background 0.4s ease-in-out,
                color 0.4s ease-in-out,
                transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
                box-shadow 0.4s ease-in-out;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.hero-section .btn:hover {
    background: #4A148C;
    color: #FFD700;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(74, 20, 140, 0.6);
}

/* ====== MEDIA QUERIES (SERVICES SECTION) ====== */
@media (max-width: 768px) {
    .services-title {
        font-size: 2.5rem; /* Adjust font size for mobile */
        padding-bottom: 0.3rem;
    }
    .services-title span {
        height: 4px;
        left: 50%;
        transform: translateX(-50%);
    }
    .services-title:hover span {
        width: calc(100% - 20px);
        left: 50%;
        transform: translateX(-50%);
    }
}

@media (max-width: 480px) {
    .services-title {
        font-size: 2rem;
    }
    .services-title span {
        height: 3px;
    }
}

/* ====== COLLABORAZIONI SECTION (PRO / LIGHT) ====== */
.clienti-section{
  text-align: center;
  padding: 90px 20px;
  background: #fff;
  color: #222;
}

.clienti-header{
  max-width: 980px;
  margin: 0 auto 22px;
}

.clienti-header h2{
  font-size: 38px;
  font-weight: 900;
  margin: 0 0 10px;
  color: #40148C;
  position: relative;
  display: inline-block;
  letter-spacing: .4px;
}

.clienti-header h2 span{
  display: block;
  width: 0;
  height: 4px;
  background: #FFD700;
  margin: 12px auto 0;
  transition: width .25s ease;
  border-radius: 999px;
}

.clienti-header h2:hover span{
  width: 100%;
}

.clienti-subtitle{
  margin: 10px auto 0;
  max-width: 720px;
  font-size: 15.5px;
  line-height: 1.45;
  color: rgba(0,0,0,.62);
}

/* Slider container */
.clienti-slider{
  position: relative;
  max-width: 1200px;
  margin: 34px auto 0;

  /* importante per il drag */
  overflow-x: hidden;
  overflow-y: visible;

  padding: 18px 6px 26px;
  border-radius: 22px;

  /* leggero stacco tipo "card area" */
  background: linear-gradient(180deg, rgba(64,20,140,.06), rgba(255,255,255,0));
  border: 1px solid rgba(0,0,0,.06);
}

/* focus accessibile (tastiera) */
.clienti-slider:focus{
  outline: none;
}
.clienti-slider:focus-visible{
  box-shadow: 0 0 0 4px rgba(255,215,0,.22);
}

/* Track */
.clienti-track{
  display: flex;
  gap: 26px;
  cursor: grab;
  user-select: none;
  will-change: transform;
  transition: transform .45s cubic-bezier(.22,.8,.2,1);
  padding: 30px 16px 20px; /* spazio per logo che “sborda” */
}

.clienti-track.is-dragging{
  cursor: grabbing;
  transition: none;
}

/* Card */
.cliente-card{
  min-width: 270px;
  flex-shrink: 0;
  text-align: center;

  padding: 56px 22px 22px;
  border-radius: 22px;

  background: linear-gradient(145deg, #ffffff, #fafafa);
  border: 1px solid rgba(64,20,140,.14);
  box-shadow: 0 10px 22px rgba(0,0,0,.08);

  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
  position: relative;
}

.cliente-card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 22px;
  pointer-events:none;
  box-shadow: inset 0 0 0 1px rgba(255,215,0,.0);
  transition: box-shadow .22s ease;
}

.cliente-card:hover{
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 18px 40px rgba(0,0,0,.14);
  border-color: rgba(255,215,0,.65);
}

.cliente-card:hover::after{
  box-shadow: inset 0 0 0 2px rgba(255,215,0,.45);
}

/* Logo bubble */
.cliente-logo{
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: #fff;

  border: 3px solid #FFD700;
  box-shadow: 0 14px 22px rgba(0,0,0,.12);

  margin: -78px auto 18px;

  display:flex;
  align-items:center;
  justify-content:center;

  overflow:hidden;
  transition: transform .22s ease;
}

.cliente-card:hover .cliente-logo{
  transform: scale(1.06);
}

.cliente-logo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .22s ease;
}

.cliente-card:hover .cliente-logo img{
  transform: scale(1.08);
}

/* Text */
.cliente-card h3{
  font-size: 22px;
  font-weight: 900;
  margin: 8px 0 6px;
  color: #111;
}

.cliente-card p{
  margin: 0;
  font-size: 15.5px;
  color: rgba(64,20,140,.75);
  font-weight: 700;
}

/* Dots */
.slider-dots{
  margin-top: 18px;
  display:flex;
  justify-content:center;
  gap: 10px;
}

.slider-dots button{
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(0,0,0,.18);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, width .2s ease;
}

.slider-dots button:hover{
  transform: scale(1.2);
}

.slider-dots button.active{
  background: #FFD700;
  width: 26px; /* pill */
  transform: scale(1.05);
}

/* Responsive */
@media (max-width: 768px){
  .clienti-section{ padding: 70px 16px; }

  .clienti-header h2{ font-size: 30px; }

  .clienti-track{
    gap: 18px;
    padding: 28px 12px 18px;
  }

  .cliente-card{
    min-width: 240px;
    padding: 52px 18px 18px;
  }

  .cliente-logo{
    width: 94px;
    height: 94px;
    margin: -72px auto 16px;
  }
}

/* ====== STAFF SECTION ====== */
.staff-section {
    background:
      radial-gradient(circle at 15% 20%, rgba(255, 215, 0, 0.18), transparent 40%),
      radial-gradient(circle at 90% 85%, rgba(255, 255, 255, 0.12), transparent 36%),
      linear-gradient(145deg, #3c0f73 0%, #5a179f 45%, #3f1379 100%);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    padding: 86px 20px;
}

.staff-section-heading {
    max-width: 860px;
  margin: 0 auto 2.1rem;
  padding: 1.2rem 1.3rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(24, 8, 50, 0.52), rgba(81, 20, 146, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 16px 34px rgba(13, 3, 33, 0.35);
  backdrop-filter: blur(3px);
}

.staff-section .section-title {
    font-size: clamp(2rem, 4vw, 2.7rem);
    margin: 0;
  color: #ffe285;
  line-height: 1.1;
  text-shadow:
    0 2px 0 rgba(42, 12, 83, 0.95),
    0 8px 18px rgba(0, 0, 0, 0.35);
}

.staff-intro {
    margin: 0.9rem auto 0;
    max-width: 720px;
  color: rgba(255, 255, 255, 0.98);
    font-size: 1.03rem;
  line-height: 1.65;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

/* ====== FILTRO CATEGORIE ====== */
.staff-filter {
    margin-bottom: 1.4rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    padding: 0 1rem;
}

.staff-filter .filter-btn {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    padding: 0.7em 1.4em;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.26s ease-in-out;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.staff-filter .filter-btn:hover {
    background: #FFD700;
    color: #4A148C;
    border-color: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
}

.staff-filter .filter-btn.active {
    background: #FFD700;
    color: #4A148C;
    border-color: #FFD700;
    box-shadow: 0 8px 18px rgba(255, 215, 0, 0.34);
    transform: translateY(0);
}

.staff-toolbar {
  width: min(1060px, 100%);
  margin: 0 auto 2.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.staff-search {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.68rem 0.95rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
  min-width: 310px;
}

.staff-search i {
  color: rgba(255, 255, 255, 0.88);
}

.staff-search input {
  width: 100%;
  border: none;
  background: transparent;
  color: #fff;
  font-family: inherit;
  font-size: 0.95rem;
}

.staff-search input::placeholder {
  color: rgba(255, 255, 255, 0.68);
}

.staff-search input:focus {
  outline: none;
}

.staff-results {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
  letter-spacing: 0.01em;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  column-gap: 2.4rem;
  row-gap: 2.1rem;
  max-width: 1060px;
  align-items: stretch;
  padding: 0 0.4rem;
  margin: 0 auto;
}

.staff-member {
    position: relative;
    overflow: hidden;
    background: linear-gradient(165deg, #ffffff 0%, #fbf7ff 56%, #f4e8ff 100%);
    color: #4A148C;
  border-radius: 16px;
  padding: 1rem 1.05rem;
  text-align: left;
  cursor: pointer;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 1rem;
  row-gap: 0.22rem;
  min-height: 108px;
  width: 100%;
  border: 1px solid rgba(106, 27, 154, 0.2);
  box-shadow: 0 10px 20px rgba(40, 16, 67, 0.13);
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}

.staff-member::before {
  content: '';
  position: absolute;
  left: -70px;
  top: -70px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.28), rgba(255, 215, 0, 0));
  pointer-events: none;
}

.staff-member:hover {
  transform: translateY(-7px) scale(1.01);
  box-shadow: 0 20px 34px rgba(32, 11, 57, 0.26);
  border-color: rgba(106, 27, 154, 0.45);
}

.staff-member:focus-visible {
  outline: 3px solid #ffd34f;
  outline-offset: 2px;
}

.staff-member .avatar {
  width: 58px;
  height: 58px;
  grid-column: 1;
  grid-row: 1 / span 2;
  flex-shrink: 0;
  border-radius: 14px;
  object-fit: cover;
  border: 2px solid #ffffff;
  box-shadow: 0 6px 14px rgba(39, 13, 66, 0.24);
  margin-bottom: 0;
}

.staff-member .name {
  grid-column: 2;
  grid-row: 1;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  margin: 0;
  line-height: 1.26;
  align-self: end;
  justify-self: start;
}

.staff-member .role {
  grid-column: 2;
  grid-row: 2;
  font-size: 0.83rem;
  font-weight: 700;
  color: #5a148f;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(106, 27, 154, 0.12);
  border: 1px solid rgba(106, 27, 154, 0.26);
  border-radius: 999px;
  padding: 0.24rem 0.62rem;
  align-self: start;
  justify-self: start;
}

.staff-empty {
  margin: 2rem auto 0;
  width: fit-content;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  padding: 0.8rem 1.05rem;
  border-radius: 12px;
  font-weight: 600;
}

.badge {
  font-size: 0.8rem;
  padding: 0.3em 0.6em;
  margin: 0.2em;
  border-radius: 4px;
  background: #6A1B9A;
  color: #fff;
  font-weight: bold;
  display: inline-block;
}

/* ====== MODAL ====== */
.modal {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.7);
    display: none;
    align-items: center; justify-content: center;
    z-index: 1000;
}
.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 450px;
  max-height: min(88vh, 720px);
  overflow-y: auto;
    animation: fadeIn .4s ease-out;
    position: relative;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to   { opacity: 1; transform: translateY(0); }
}
.close {
    position: absolute; top: 0.8rem; right: 0.8rem;
    background: #6A1B9A;
    color: #fff; border: none;
    font-size: 1.4rem; line-height: 1;
    width: 32px; height: 32px;
    border-radius: 50%;
    cursor: pointer;
    transition: background .2s;
}
.close:hover { background: #6A1B9A; }
.modal-header {
  display: flex; align-items: center;
  padding: 1.5rem; background: linear-gradient(135deg, #6a0dad, #8e44ad);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
  position: relative;
  overflow: hidden;
}
.modal-avatar {
    width: 70px; height: 70px;
    border-radius: 50%;
    border: 3px solid #fff;
    margin-right: 1rem;
  position: relative;
  z-index: 2;
}
.modal-info h3,
.modal-info p {
    margin: 0; color: #fff;
  position: relative;
  z-index: 2;
}
.modal-body {
    padding: 1.5rem; text-align: left; color: #333;
}
.modal-description {
    font-style: italic; margin-bottom: 1rem;
}
.modal-description-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: -0.25rem 0 1rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid #c89eea;
  border-radius: 999px;
  background: linear-gradient(135deg, #f4eaff, #ead8ff);
  color: #4a148c;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.modal-description-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(106, 13, 173, 0.14);
  background: linear-gradient(135deg, #f7efff, #f0e3ff);
}
.modal-description-toggle:focus-visible {
  outline: 2px solid #6a0dad;
  outline-offset: 2px;
}
.modal-roles { margin-bottom: 1rem; }
.social-links {
    text-align: center; margin-bottom: 1rem;
}
.social-icon {
    font-size: 1.4rem; margin: 0 0.5rem;
    color: #4A148C; transition: transform .2s;
}
.social-icon:hover { transform: scale(1.2); }
.modal-body hr {
    border: none; border-top: 1px solid #ddd;
    margin: 1rem 0;
}

.modal-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(0,0,0,0.18), transparent 60%);
  z-index: 1;
}

/* ====== MEDIA QUERIES (STAFF SECTION) ====== */
@media (max-width: 768px) {
  .staff-section {
    padding: 76px 12px;
  }

    .staff-filter {
        gap: 0.6rem;
    margin-bottom: 1.1rem;
    }

    .staff-filter .filter-btn {
        padding: 0.6em 1.2em;
        font-size: 0.9rem;
    }

  .staff-toolbar {
    margin: 0 auto 1.6rem;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    width: 100%;
  }

  .staff-section-heading {
    padding: 1rem 1rem;
  }

  .staff-search {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
  }

  .staff-results {
    width: 100%;
    text-align: center;
  }

    .staff-grid {
      grid-template-columns: 1fr;
      column-gap: 0;
      row-gap: 1rem;
      padding: 0;
      width: 100%;
    }

    #staff-modal {
      padding: 12px;
      align-items: flex-end;
    }

    #staff-modal .modal-content {
      width: min(100%, 560px);
      max-width: 100%;
      border-radius: 16px;
      margin: 0 auto;
    }

    #staff-modal .modal-header {
      padding: 1rem 1rem 0.95rem;
      border-top-left-radius: 16px;
      border-top-right-radius: 16px;
    }

    #staff-modal .modal-avatar {
      width: 56px;
      height: 56px;
      margin-right: 0.7rem;
    }

    #staff-modal .modal-body {
      padding: 1rem 1rem 1.1rem;
    }

    #staff-modal .modal-description {
      font-size: 0.96rem;
      line-height: 1.55;
    }

    #staff-modal .modal-description-toggle {
      font-size: 0.88rem;
      padding: 0.4rem 0.8rem;
    }

    #staff-modal .close {
      top: 0.55rem;
      right: 0.55rem;
      width: 30px;
      height: 30px;
      font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
  .staff-intro {
    font-size: 0.97rem;
  }

  .staff-section-heading {
    border-radius: 14px;
  }

    .staff-filter {
        flex-direction: row;
        gap: 0.5rem;
    margin-bottom: 1rem;
        padding: 0 0.5rem;
    }

    .staff-filter .filter-btn {
        padding: 0.5em 1em;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .staff-grid {
      grid-template-columns: 1fr;
      row-gap: 0.9rem;
      column-gap: 0;
      width: 100%;
    }

    .staff-member {
      grid-template-columns: 52px minmax(0, 1fr);
      min-height: 86px;
      padding: 0.68rem 0.72rem;
      column-gap: 0.75rem;
      width: 100%;
      max-width: 100%;
      margin: 0;
    }

    .staff-member .avatar {
      width: 46px;
      height: 46px;
      border-radius: 12px;
    }

    .staff-member .name {
      font-size: 0.95rem;
      line-height: 1.24;
    }

    .staff-member .role {
      font-size: 0.74rem;
      padding: 0.2rem 0.5rem;
    }

    #staff-modal {
      padding: 10px;
    }

    #staff-modal .modal-content {
      max-height: 90vh;
      border-radius: 14px;
    }

    #staff-modal .modal-header {
      padding: 0.82rem 0.82rem 0.78rem;
    }

    #staff-modal .modal-body {
      padding: 0.88rem;
    }

    #staff-modal .modal-avatar {
      width: 50px;
      height: 50px;
    }

    #staff-modal .modal-info h3 {
      font-size: 1rem;
    }

    #staff-modal .modal-info p {
      font-size: 0.9rem;
    }

    #staff-modal .social-icon {
      font-size: 1.22rem;
      margin: 0 0.35rem;
    }
}

@media (max-width: 768px) {
  .staff-section .container {
    width: min(calc(100vw - 32px), 420px);
    max-width: 420px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .staff-section .staff-filter,
  .staff-section .staff-toolbar,
  .staff-section .staff-grid,
  .staff-section .staff-empty {
    width: 100%;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }

  .staff-section .staff-filter {
    justify-content: center;
    padding-inline: 0;
  }

  .staff-section .staff-toolbar {
    padding-inline: 0;
  }

  .staff-section .staff-search {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .staff-section .staff-grid {
    padding: 0;
  }

  .staff-section .staff-member {
    width: 100%;
    max-width: 100%;
    margin: 0;
  }
}

/* ====== RECRUITMENT SECTION ====== */
.recruit-section {
    position: relative;
    background: linear-gradient(135deg, #6A1B9A, #4A148C);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    text-align: center;
    padding: 100px 20px;
    overflow: hidden;
}

.recruit-section canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.recruit-overlay {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.recruit-overlay h2 {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.recruit-overlay p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    color: #f1f1f1;
}

.recruit-btn {
    display: inline-block;
    background: #FFD700;
    color: #4A148C;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(0,0,0,0.25);
}

.recruit-btn i {
    margin-right: 0.6rem;
}

.recruit-btn:hover {
    background: #4A148C;
    color: #FFD700;
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

/*MODAL EVENTI*/
/* Nascondi il modal all’avvio */
#eventModal {
  display: none;
  position: fixed;
  z-index: 1000;
  inset: 0; /* top/right/bottom/left */
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Contenuto del modal */
#eventModal .event-modal-content {
  background-color: #fff;
  color: #333;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  margin: auto;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  position: relative;
  overflow-y: auto;
  animation: animatetop 0.4s ease-out;
}

/* Pulsante di chiusura */
#eventModal .close-button {
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 38px;
  color: #888;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
}
#eventModal .close-button:hover,
#eventModal .close-button:focus {
  color: #6a0dad;
}

/* Animazione del modal */
@keyframes animatetop {
  from { transform: translateY(-300px); opacity: 0; }
  to   { transform: translateY(0);       opacity: 1; }
}

/* Header interno del modal */
#eventModal .modal-event-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}
#eventModal .modal-event-image {
  width: 150px;
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid #6a0dad;
}
#eventModal .modal-event-title-area {
  flex-grow: 1;
}
#eventModal .modal-event-title-area h2 {
  font-size: 2.2em;
  color: #6a0dad;
  margin: 0 0 10px;
}
#eventModal .modal-event-meta,
#eventModal .modal-event-stats {
  font-size: 0.9em;
  color: #666;
}
#eventModal .modal-event-stats span {
  margin-right: 15px;
}
#eventModal .modal-event-stats strong {
  color: #333;
}

/* Dettagli testo */
#eventModal .modal-event-details {
  padding-top: 10px;
}
#eventModal .modal-event-details p {
  font-size: 1.1em;
  line-height: 1.6;
  color: #444;
  margin-bottom: 15px;
}
#eventModal .modal-event-details strong {
  color: #333;
}

#eventModal .modal-event-image {
  cursor: zoom-in;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

#eventModal .modal-event-image:hover {
  transform: scale(1.03);
  box-shadow: 0 16px 36px rgba(106, 13, 173, 0.18);
  filter: saturate(1.05);
}

.event-image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(18, 8, 34, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.event-image-lightbox.is-open {
  display: flex;
  animation: eventLightboxFadeIn 0.24s ease-out;
}

.event-image-lightbox-panel {
  position: relative;
  width: min(96vw, 1120px);
  max-height: 94vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.4);
}

.event-image-lightbox-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

.event-image-lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: rgba(46, 16, 73, 0.82);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, background 0.2s ease;
}

.event-image-lightbox-close:hover,
.event-image-lightbox-close:focus-visible {
  transform: scale(1.06);
  background: rgba(106, 13, 173, 0.96);
  outline: none;
}

@keyframes eventLightboxFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Lista attività */
#eventModal .modal-activities-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  border-top: 1px solid #eee;
  padding-top: 15px;
}
#eventModal .modal-activities-list li {
  display: flex;
  align-items: flex-start;
  margin-bottom: 10px;
  font-size: 1em;
  color: #555;
}
#eventModal .modal-activities-list li i {
  color: #4CAF50;
  margin-right: 10px;
  font-size: 1.2em;
  flex-shrink: 0;
}

/* Pulsante di join */
#eventModal #modalEventJoinLink {
  display: inline-block;
  margin-top: 25px;
  background: #FFD700;
  color: #4A148C;
  padding: 10px 20px;
  border-radius: 50px;
  text-transform: uppercase;
  font-weight: bold;
  text-decoration: none;
  transition: 
    background 0.3s ease, 
    color 0.3s ease, 
    transform 0.2s ease, 
    box-shadow 0.4s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  animation: pulse-shadow 2s infinite ease-in-out 0.5s;
}

#eventModal #modalEventJoinLink:hover {
  background: #4A148C;
  color: #FFD700;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.event-booking-line {
  margin: 10px 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(106, 13, 173, 0.12), rgba(255, 215, 0, 0.14));
  border: 1px solid rgba(106, 13, 173, 0.16);
  color: #5b2389;
  font-size: 0.86rem;
  font-weight: 700;
}

.booking-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1100;
  background:
    radial-gradient(circle at top left, rgba(255, 215, 0, 0.18), transparent 30%),
    rgba(8, 6, 14, 0.72);
  backdrop-filter: blur(5px);
  padding: 18px;
}

.booking-modal.open {
  display: flex;
}

.booking-modal-content {
  position: relative;
  width: min(720px, 100%);
  max-height: 92vh;
  overflow: auto;
  background: linear-gradient(180deg, #ffffff 0%, #fbf6ff 100%);
  border-radius: 24px;
  border: 1px solid rgba(106, 13, 173, 0.16);
  box-shadow: 0 28px 72px rgba(10, 8, 20, 0.34);
  padding: 26px;
}

.booking-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(106, 13, 173, 0.16);
  background: #fff;
  color: #6a0dad;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}

.booking-modal-header {
  display: grid;
  gap: 4px;
  padding-right: 44px;
}

.booking-modal-kicker {
  color: #8e44ad;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.booking-modal-header h3 {
  margin: 0;
  color: #4a148c;
  font-size: 1.8rem;
}

.booking-modal-header p {
  margin: 0;
  color: #6e5a87;
}

.booking-modal-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.booking-summary-card {
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f7efff 100%);
  border: 1px solid rgba(106, 13, 173, 0.12);
  box-shadow: 0 10px 24px rgba(106, 13, 173, 0.08);
}

.booking-summary-label {
  display: block;
  margin-bottom: 6px;
  color: #7f649a;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.booking-summary-card strong {
  color: #351d4d;
  font-size: 1.1rem;
}

.booking-modal-form {
  display: grid;
  gap: 14px;
}

.booking-modal-message {
  min-height: 1.2rem;
  margin: 0;
  color: #5b2389;
  font-weight: 700;
}

.booking-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.booking-grid label {
  display: grid;
  gap: 6px;
  color: #4a148c;
  font-weight: 700;
}

.booking-grid label span {
  font-size: 0.9rem;
}

.booking-grid input,
.booking-grid textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(106, 13, 173, 0.18);
  border-radius: 14px;
  background: #fff;
  color: #3d2552;
  padding: 12px 14px;
  font: inherit;
}

.booking-grid textarea {
  min-height: 110px;
  resize: vertical;
}

.booking-grid input:focus,
.booking-grid textarea:focus {
  outline: none;
  border-color: rgba(106, 13, 173, 0.5);
  box-shadow: 0 0 0 4px rgba(106, 13, 173, 0.1);
}

.booking-full {
  grid-column: 1 / -1;
}

.booking-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.booking-secondary-btn {
  border: 1px solid rgba(106, 13, 173, 0.16);
  background: #fff;
  color: #6a0dad;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.booking-secondary-btn:hover {
  background: #f7efff;
}

@keyframes pulse-shadow {
  0% { box-shadow: 0 0 0 rgba(0,0,0,0); }
  50% { box-shadow: 0 0 15px rgba(255,215,0,0.5); }
  100% { box-shadow: 0 0 0 rgba(0,0,0,0); }
}


/* ==========================
     SEZIONE FORUM / EVENTI
   ========================== */

/* Contenitore principale */
.forum-section {
  background-color: #f9f9f9;
  max-width: 1300px;
  margin: 40px auto;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Header forum */
.forum-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #ddd;
}
.forum-header h2 {
  font-size: 2.2em;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
  color: #333;
}

/* Bottone crea discussione */
.create-discussion-btn {
  background-color: #6a0dad;
  color: #fff;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
}
.create-discussion-btn:hover {
  background-color: #570c9e;
}

/* Lista eventi */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Singolo evento */
.event-forum-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 20px;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.event-forum-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Meta sinistra */
.event-meta-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 80px;
  text-align: center;
}
.event-author-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.user-avatar {
  width: 60px;
  height: 60px;
  object-fit: cover;
  margin-bottom: 8px;
  border: 2px solid #6a0dad;
  border-radius: 50%;
}
.event-author {
  font-size: 0.9em;
  color: #3f3f3f;
  font-weight: 700;
}
.event-author-role {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78em;
  color: #6a0dad;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(106, 13, 173, 0.12);
  border: 1px solid rgba(106, 13, 173, 0.22);
}

/* Dettagli principali */
.event-details-main {
  flex: 1;
}
.event-details-main .event-title {
  font-size: 1.5em;
  margin: 0 0 10px;
}
.event-details-main .event-link {
  color: #6a0dad;
  text-decoration: none;
  transition: color 0.3s;
}
.event-details-main .event-link:hover {
  color: #FFD700;
}
.event-info {
  font-size: 0.85em;
  color: #777;
  margin-bottom: 10px;
}
.event-info .event-date {
  margin-right: 15px;
}
.event-description-short {
  font-size: 1em;
  line-height: 1.6;
  color: #555;
  margin-bottom: 15px;
}

/* Statistiche */
.event-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  min-width: 80px;
  text-align: right;
  border-left: 1px solid #ddd;
  padding-left: 20px;
  gap: 5px;
}
.stat-value {
  font-size: 1.4em;
  font-weight: bold;
  color: #333;
}
.stat-label {
  font-size: 0.8em;
  color: #777;
}

/* Stato sold out */
.event-forum-item.sold-out {
  opacity: 0.6;
  position: relative;
}

/* Stato Annullato */
.event-forum-item.annullato {
  opacity: 0.6;
  position: relative;
}

.event-forum-item.annullato::before {
  content: "EVENTO ANNULLATO";
  position: absolute;
  top: 15px;
  right: -25px;
  transform: rotate(10deg);
  background: linear-gradient(135deg, #d40000, #ff4d4d);
  color: #fff;
  font-weight: bold;
  padding: 8px 18px;
  font-size: 0.9rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 5;
}

.event-forum-item.sold-out::before {
  content: "POSTI ESAURITI";
  position: absolute;
  top: 15px;
  right: -25px;
  transform: rotate(10deg);
  background: linear-gradient(135deg, #d40000, #ff4d4d);
  color: #fff;
  font-weight: bold;
  padding: 8px 18px;
  font-size: 0.9rem;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  text-transform: uppercase;
  letter-spacing: 1px;
  z-index: 5;
}

/* Nota rossa — lista eventi */
.event-warning-inline {
  display: inline-block;
  margin-left: 8px;
  color: #d40000;
  font-weight: bold;
  font-size: 0.9em;
}

/* Nota rossa — popup evento */
.event-warning {
  background: #ffe5e5;
  color: #b30000;
  border-left: 4px solid #d40000;
  padding: 10px 14px;
  margin-top: 15px;
  margin-bottom: 10px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 0.95em;
}

/* Guide button */
.guide-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  background: #f3e8ff;
  border: 2px solid #6a0dad;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.3s;
}
.guide-button::before {
  content: "📖";
}
.guide-button:hover {
  background: #6a0dad;
  color: #fff;
  transform: scale(1.05);
}


/* =========================================================
   MODIFICHE ARCHIVIO / HEADER VECCHI EVENTI / SELECT FIX
   ========================================================= */

/* Header con titolo a sinistra e bottone a destra */
.forum-header-with-actions{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* Blocco titolo + descrizione */
.forum-title-wrap{
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 70%;
}

/* Sottotitolo leggibile (bianco su viola) */
.forum-subtitle{
  margin: 0;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}

/* Wrapper azioni a destra */
.forum-actions{
  flex-shrink: 0;
}

/* Bottone Archivio (giallo/viola stile hero btn) */
.archive-btn{
  background: #FFD700;
  color: #4A148C;
  padding: 12px 26px;
  border-radius: 50px;
  text-transform: uppercase;
  font-weight: bold;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.4s ease-in-out,
              color 0.4s ease-in-out,
              transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1),
              box-shadow 0.4s ease-in-out;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
}
.archive-btn:hover{
  background: #4A148C;
  color: #FFD700;
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 10px 20px rgba(74, 20, 140, 0.6);
}
.archive-btn i{
  font-size: 1rem;
}

/* Toolbar archivio */
.archive-toolbar{
  display:flex;
  align-items:center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Search pill */
.archive-search{
  display:flex;
  align-items:center;
  gap:10px;
  padding: 12px 16px;
  border-radius: 999px;
  background:#fff;
  border: 1px solid #e7e7e7;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.archive-search i{ color:#6a0dad; }
.archive-search input{
  border:none;
  outline:none;
  width:min(320px, 70vw);
  font-size: 0.95rem;
  background: transparent;
}

/* Select pill fix */
.archive-filter{
  position: relative;
  display:flex;
  align-items:center;
  gap:10px;
  padding: 12px 18px;
  border-radius: 999px;
  background:#fff;
  border: 2px solid #c9a7f5;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.archive-filter i{ color:#6a0dad; }

.archive-filter select{
  border:none;
  outline:none;
  background: transparent;
  font-size: 0.95rem;
  font-weight: 600;
  color:#2f2f2f;
  cursor:pointer;
  padding-right: 26px;

  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* Freccia custom */
.archive-filter::after{
  content:"";
  position:absolute;
  right: 18px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #6a0dad;
  border-bottom: 2px solid #6a0dad;
  transform: rotate(45deg);
  pointer-events: none;
}

/* Focus elegante */
.archive-search:focus-within,
.archive-filter:focus-within{
  border-color: #6a0dad;
  box-shadow: 0 0 0 4px rgba(106,13,173,0.18);
}

/* Modelli  */

:root{
  --accent-purple: #6a0dad;
  --accent-gold: #FFD700;
  --muted-bg: #fbf8ff;
}
.models-section.artistic {
  background: linear-gradient(180deg, var(--muted-bg) 0%, #fff 100%);
  padding: 70px 18px;
  position: relative;
  overflow: visible;
}
.models-wrap {
  max-width:1200px;
  margin:0 auto;
  text-align:center;
}
.models-subtitle {
  color: #555;
  margin-bottom:30px;
  font-size:1.05rem;
}
.art-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 22px;
  align-items: start;
}
.art-card {
  grid-column: span 6;
  background: linear-gradient(180deg, #fff 0%, #fbf7ff 100%);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  transform-origin: center;
  box-shadow: 0 12px 40px rgba(106,13,173,0.12);
  transition: transform 0.45s cubic-bezier(.2,.9,.2,1), box-shadow 0.35s;
  cursor: pointer;
  min-height: 240px;
  display: flex;
  flex-direction: column;
}
.art-card.alt { grid-column: 7 / span 6; transform: rotate(-2deg); }
.art-card.tall { grid-column: 3 / span 6; grid-row: span 1; min-height: 360px; transform: rotate(1.5deg); }
.art-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display:block;
  transition: transform 0.6s cubic-bezier(.2,.9,.2,1);
  clip-path: polygon(0 0,100% 0,100% 88%,0 100%);
}
.art-card figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  backdrop-filter: blur(6px);
  background: linear-gradient(180deg, rgba(10,6,10,0.08), rgba(10,6,10,0.12));
  border-radius: 12px;
  display:flex;
  flex-direction:column;
  gap:8px;
}
.caption-top { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.ribbon {
  display:inline-block;
  font-weight:700;
  color:#fff;
  background: var(--accent-purple);
  padding:6px 10px;
  border-radius:6px;
  transform: rotate(-12deg);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  font-size:0.8rem;
}
.ribbon.orange { background:#ff7a59; }
.ribbon.purple { background:#8a4ae2; }
.model-name {
  color:#fff;
  font-weight:700;
  text-shadow:0 3px 12px rgba(0,0,0,0.35);
  font-size:1rem;
}
.caption-bottom { display:flex; justify-content:space-between; align-items:center; gap:10px; }
.product-name { color: rgba(255,255,255,0.95); font-weight:600; }
.cta-small {
  background: linear-gradient(90deg, var(--accent-gold), #ffdf66);
  color: var(--accent-purple);
  padding:8px 12px;
  border-radius:999px;
  text-decoration:none;
  font-weight:700;
  box-shadow: 0 6px 18px rgba(106,13,173,0.12);
  font-size:0.9rem;
}
.art-card:hover { transform: translateY(-8px) rotate(0deg); box-shadow: 0 24px 60px rgba(106,13,173,0.18); }
.art-card:hover img { transform: scale(1.06) translateY(-6px); }
@media (max-width:1100px){
  .art-grid { gap:18px; }
  .art-card { grid-column: span 12; transform: none; min-height:260px; }
  .art-card.alt, .art-card.tall { grid-column: span 12; }
}
.art-lightbox {
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(6,4,10,0.72);
  z-index:9999;
  opacity:0;
  pointer-events:none;
  transition: opacity .25s ease;
  padding:24px;
}
.art-lightbox[aria-hidden="false"] { opacity:1; pointer-events:auto; }
.art-lightbox .lb-content { max-width:1100px; width:100%; max-height:90vh; display:flex; gap:18px; align-items:center; justify-content:center; }
.art-lightbox img { max-width:65%; max-height:80vh; object-fit:contain; border-radius:12px; box-shadow: 0 20px 60px rgba(0,0,0,0.6); }
.lb-caption { color:#fff; max-width:35%; text-align:left; }
.lb-caption h3 { margin:0 0 6px; font-size:1.6rem; color:var(--accent-gold); }
.lb-caption p { margin:0; font-size:1rem; color:rgba(255,255,255,0.9); }
.lb-close, .lb-prev, .lb-next {
  position:absolute;
  top:20px;
  background:transparent;
  border:none;
  color:#fff;
  font-size:1.6rem;
  cursor:pointer;
  padding:10px;
  border-radius:8px;
}
.lb-close { right:20px; font-size:1.3rem; background: rgba(0,0,0,0.25); }
.lb-prev { left:20px; top:50%; transform:translateY(-50%); font-size:2.4rem; background: rgba(0,0,0,0.15); }
.lb-next { right:20px; top:50%; transform:translateY(-50%); font-size:2.4rem; background: rgba(0,0,0,0.15); }
.art-card:focus { outline: 3px solid rgba(255,215,0,0.22); transform: translateY(-6px); }
@media (max-width:600px){
  .lb-caption { display:none; }
  .art-lightbox img { max-width:100%; }
  .cta-small { padding:6px 10px; font-size:0.85rem; }
}

/* ==========================
   3. TEMA SCURO EVENTI PASSATI
   ========================== */
.past-events-dark-theme {
  background: linear-gradient(135deg, #4A148C, #6A1B9A);
  color: #fff;
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
  border-radius: 10px;
}
.past-events-dark-theme .forum-header h2 {
  color: #FFD700;
  text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}
.past-events-dark-theme .forum-header {
  border-bottom-color: rgba(255,255,255,0.2);
}
.past-events-dark-theme .event-forum-item {
  background-color: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.past-events-dark-theme .event-forum-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.4);
}
.past-events-dark-theme .user-avatar {
  border-color: #FFD700;
}
.past-events-dark-theme .event-author,
.past-events-dark-theme .event-info,
.past-events-dark-theme .event-description-short,
.past-events-dark-theme .stat-value,
.past-events-dark-theme .stat-label,
.past-events-dark-theme .event-link {
  color: #f0f0f0;
}
.past-events-dark-theme .event-author-role {
  color: #f8f8f8;
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.22);
}
.past-events-dark-theme .event-link:hover {
  color: #FFD700;
}
.past-events-dark-theme .event-stats {
  border-left-color: rgba(255,255,255,0.2);
}

@media (max-width: 768px) {

  /* Contenitore Modal */
  #eventModal {
    padding: 12px;
  }
  #eventModal .event-modal-content {
    width: 100%;
    margin: 0 auto;
    padding: 16px;
    border-radius: 8px;
  }
  #eventModal .close-button {
    font-size: 26px;
    top: 8px;
    right: 8px;
  }
  #eventModal .modal-event-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding-bottom: 8px;
  }
  #eventModal .modal-event-image {
    width: 80px;
    height: 80px;
    margin: 0 auto 8px;
  }

  .event-image-lightbox {
    padding: 12px;
  }

  .event-image-lightbox-panel {
    width: min(100%, 1000px);
    padding: 12px;
    border-radius: 18px;
  }

  .event-image-lightbox-image {
    max-height: 82vh;
    border-radius: 14px;
  }

  .event-image-lightbox-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 1.7rem;
  }

  #eventModal .modal-event-title-area h2 {
    font-size: 1.5em;
    margin-bottom: 4px;
  }
  #eventModal .modal-event-meta,
  #eventModal .modal-event-stats {
    font-size: 0.85em;
  }
  #eventModal .modal-event-details p {
    font-size: 0.95em;
    line-height: 1.4;
  }
  #eventModal .modal-activities-list li {
    font-size: 0.9em;
    margin-bottom: 4px;
  }
  #eventModal #modalEventJoinLink {
    display: block;
    width: 100%;
    padding: 12px 0;
    font-size: 1em;
    margin-top: 16px;
    border-radius: 50px;
    text-align: center;
  }

  #eventModal .event-modal-content.event-modal-forum {
    max-width: 100%;
    border-radius: 12px;
  }

  #eventModal .event-forum-panel {
    padding: 16px;
  }

  #eventModal .event-forum-panel-head {
    flex-direction: column;
    align-items: flex-start;
  }

  #eventModal .forum-status-pill {
    width: 100%;
  }

  #eventModal .compose-grid {
    grid-template-columns: 1fr;
  }

  #eventModal .discussion-card-header,
  #eventModal .comment-compose-actions,
  #eventModal .compose-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  #eventModal .discussion-comment {
    flex-direction: column;
  }

  /* Sezione Forum */
  .forum-section {
    margin: 20px 8px;
    padding: 20px 12px;
    border-radius: 6px;
  }
  .forum-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 10px;
  }
  .forum-header h2 {
    font-size: 1.8em;
    line-height: 1.2;
  }
  .create-discussion-btn {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 0;
    padding: 10px 0;
    font-size: 1em;
    border-radius: 6px;
  }

  /* Lista Eventi */
  .event-list {
    gap: 16px;
  }

  /* Evento Singolo */
  .event-forum-item {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }
  .event-forum-item:hover {
    transform: none;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  }

  /* Meta Sinistra (Avatar + Autore) */
  .event-meta-left {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    min-width: auto;
    text-align: left;
  }
  .user-avatar {
    width: 50px;
    height: 50px;
  }
  .event-author {
    font-size: 0.85em;
  }
  .event-author-wrap {
    align-items: flex-start;
  }

  /* Dettagli Principali */
  .event-details-main .event-title {
    font-size: 1.3em;
    margin-bottom: 6px;
  }
  .event-info {
    font-size: 0.8em;
    margin-bottom: 6px;
  }
  .event-description-short {
    font-size: 0.95em;
    margin-bottom: 10px;
    line-height: 1.5;
  }

  /* Statistiche Evento */
  .event-stats {
    flex-direction: row;
    justify-content: space-between;
    border-left: none;
    border-top: 1px solid #eee;
    padding-top: 12px;
    margin-top: 12px;
  }
  .past-events-dark-theme .event-stats {
    border-top-color: rgba(255,255,255,0.2);
  }
  .stat-value {
    font-size: 1.2em;
  }
  .stat-label {
    font-size: 0.75em;
  }

  /* Badge “Sold Out” */
  .badge-sold-out {
    top: 8px;
    left: 8px;
    font-size: 14px;
    padding: 6px 12px;
  }

  /* Guide Button */
  .guide-button {
    padding: 6px 12px;
    font-size: 0.85rem;
  }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #6A1B9A, #4A148C);
    color: #fff;
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-size: 3rem;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.hero-section p {
    font-size: 1.3rem;
    margin-bottom: 30px;
}

.hero-section .btn {
    background: #FFD700;
    color: #4A148C;
    padding: 10px 20px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: bold;
    transition: 0.3s ease;
}

.hero-section .btn:hover {
    background: #4A148C;
    color: #FFD700;
}

/* Event Cards */
.event-card {
    display: flex;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.event-card:hover {
    transform: scale(1.05);
}

.event-image img {
    width: 300px;
    height: auto;
    object-fit: cover;
}

.event-details {
    padding: 20px;
    background: #f7f7f7;
    flex: 1;
}

.event-details h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.event-details p {
    margin-bottom: 10px;
}

/* Past Events */
.past-event {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
}

.past-event img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.past-event .event-overlay {
    position: absolute;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    width: 100%;
    padding: 20px;
    text-align: center;
}

/* Call to Action Section */
.cta-section {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #6a0dad, #8e44ad);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.cta-section h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: fadeInUp 1s ease-out;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    animation: fadeInUp 1.5s ease-out;
}

.cta-btn {
    background: #FFD700;
    color: #4A148C;
    padding: 15px 30px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.1rem;
    transition: transform 0.3s ease, background-color 0.3s ease;
    position: relative;
    z-index: 1;
}

.cta-btn:hover {
    background: #4A148C;
    color: #FFD700;
    transform: translateY(-5px);
}

.cta-section::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 300px;
    height: 300px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.event-img-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.purchase-btn {
    display: block;
    background: #FFD700;
    color: #4A148C;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: bold;
    text-decoration: none;
    margin-top: 15px;
    transition: 0.3s ease;
}

.purchase-btn:hover {
    background: #FFC107;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-30px) scale(1.1);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .cta-section h2 {
        font-size: 2rem;
    }

    .cta-section p {
        font-size: 1rem;
    }

    .cta-btn {
        font-size: 1rem;
        padding: 12px 25px;
    }
}

/* GDR SECTION */
.what-is-gdr {
    background: linear-gradient(135deg, #4A148C, #6A1B9A);
    color: #fff;
    padding: 80px 20px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.what-is-gdr .container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.what-is-gdr h2 {
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
    color: #fff;
}

.what-is-gdr .intro-text {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 40px;
}

.what-is-gdr .gdr-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.what-is-gdr .image-container {
    flex: 1;
    max-width: 400px;
    text-align: center;
}

.what-is-gdr img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.what-is-gdr img:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.what-is-gdr .text-container {
    flex: 2;
    text-align: left;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    line-height: 1.8;
}

.what-is-gdr .text-container h3 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
}

.what-is-gdr .text-container p {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: #fff;
}

.what-is-gdr .text-container ul {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
}

.what-is-gdr .text-container ul li {
    font-size: 1.2rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFD700;
}

.what-is-gdr .text-container ul li span {
    font-size: 1.5rem;
}

.what-is-gdr .learn-more-btn {
    display: inline-block;
    padding: 12px 18px;
    background-color: #FFD700;
    color: #4A148C;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.what-is-gdr .learn-more-btn:hover {
    background-color: #4A148C;
    color: #FFD700;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .what-is-gdr {
        padding: 40px 10px;
    }

    .what-is-gdr .gdr-content {
        flex-direction: column;
        text-align: center;
    }

    .what-is-gdr .text-container {
        text-align: center;
    }

    .what-is-gdr img {
        max-width: 250px;
    }
}

/* Tipologie di GDR */
.gdr-types {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #4A148C, #6A1B9A);
    color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.gdr-types h2 {
    font-size: 2.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.5);
}

.gdr-types .intro-text {
    font-size: 1.4rem;
    margin-bottom: 40px;
    color: #fff;
}

.gdr-grid {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.gdr-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    width: 280px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gdr-card img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.gdr-card:hover img {
    transform: scale(1.05);
}

.gdr-card h3 {
    font-size: 1.5rem;
    margin: 15px 0;
    color: #FFD700;
}

.gdr-card p {
    font-size: 1.1rem;
    color: #fff;
    line-height: 1.6;
}

.gdr-card:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #FFD700;
}

@media (max-width: 768px) {
    .gdr-grid {
        flex-direction: column;
        align-items: center;
    }

    .gdr-card {
        width: 90%;
    }
}

/* ===============================
   SERVICES SECTION – MythicMaster
   Tema chiaro / Premium + Mobile airy
   =============================== */

.services-section{
  padding: 90px 18px;
  text-align: center;
  background: #ffffff;
}

.services-container{
  max-width: 1120px;
  margin: 0 auto;
}

/* ===== TITOLO SERVIZI ===== */
.services-title{
  display: inline-block;
  position: relative;

  font-size: 38px;
  font-weight: 900;
  letter-spacing: .4px;
  color: #40148C;

  margin: 0 auto 16px;
}

/* linea gialla */
.services-title span{
  display: block;
  width: 0;
  height: 4px;

  background: #FFD700;
  border-radius: 999px;

  margin: 12px auto 0;
  transition: width .25s ease;
}

.services-title:hover span{
  width: 100%;
}

/* ===== GRID ===== */
.services-cards{
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  align-items: stretch;
}

/* ===== CARD ===== */
.service-card{
  position: relative;
  overflow: hidden;

  background: linear-gradient(145deg, #ffffff, #fafafa);
  border: 1px solid rgba(64,20,140,.14);
  border-radius: 22px;

  padding: 30px 24px 24px;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  box-shadow: 0 12px 24px rgba(0,0,0,.08);
  transition:
    transform .22s ease,
    box-shadow .22s ease,
    border-color .22s ease;
}

/* luce decorativa */
.service-card::before{
  content:"";
  position:absolute;
  top:-40%;
  left:-60%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(255,215,0,.20), rgba(255,215,0,0) 60%);
  transform: rotate(15deg);
  opacity: .6;
  pointer-events:none;
  transition: transform .22s ease, opacity .22s ease;
}

/* bordo interno glow */
.service-card::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 22px;
  pointer-events:none;
  box-shadow: inset 0 0 0 2px rgba(255,215,0,0);
  transition: box-shadow .22s ease;
}

.service-card:hover{
  transform: translateY(-10px);
  box-shadow: 0 22px 45px rgba(0,0,0,.14);
  border-color: rgba(255,215,0,.65);
}

.service-card:hover::before{
  transform: translate(18px, 18px) rotate(15deg);
  opacity: .85;
}

.service-card:hover::after{
  box-shadow: inset 0 0 0 2px rgba(255,215,0,.40);
}

/* ===== ICONA (badge) ===== */
.service-icon{
  width: 58px;
  height: 58px;
  object-fit: contain;

  padding: 13px;
  border-radius: 18px;

  background: #ffffff;
  border: 2px solid rgba(255,215,0,.75);
  box-shadow: 0 12px 18px rgba(0,0,0,.10);

  margin-bottom: 16px;

  transition: transform .22s ease, box-shadow .22s ease;
}

.service-card:hover .service-icon{
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 18px 26px rgba(0,0,0,.14);
}

/* ===== TESTI ===== */
.service-heading{
  margin: 8px 0 10px;
  color: #40148C;
  font-size: 21px;
  font-weight: 900;
}

.service-text{
  flex-grow: 1;

  margin: 0 0 20px;
  max-width: 40ch;

  font-size: 15.6px;
  line-height: 1.55;
  color: rgba(0,0,0,.62);
}

/* ===== BUTTON ===== */
.service-btn{
  position: relative;
  isolation: isolate;

  background: linear-gradient(135deg, #FFD700, rgba(255,215,0,.88));
  color: #40148C;

  padding: 12px 22px;
  border-radius: 999px;

  font-weight: 900;
  font-size: 12.5px;
  letter-spacing: .6px;
  text-transform: uppercase;

  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 210px;
  box-shadow: 0 12px 22px rgba(0,0,0,.12);

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    background .18s ease,
    color .18s ease,
    filter .18s ease;
}

/* sheen */
.service-btn::before{
  content:"";
  position:absolute;
  inset:0;
  border-radius: 999px;
  background: linear-gradient(
    120deg,
    rgba(255,255,255,0),
    rgba(255,255,255,.35),
    rgba(255,255,255,0)
  );
  transform: translateX(-120%);
  transition: transform .55s ease;
  z-index: -1;
}

.service-btn:hover{
  background: #40148C;
  color: #FFD700;
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 18px 34px rgba(64,20,140,.30);
}

.service-btn:hover::before{
  transform: translateX(120%);
}

.service-btn:active{
  transform: translateY(0) scale(.99);
}

.service-btn:focus-visible{
  outline: none;
  box-shadow:
    0 0 0 4px rgba(255,215,0,.25),
    0 18px 34px rgba(0,0,0,.14);
}

/* ==========================================
   MOBILE: più aria, meno “schiacciato”
   ========================================== */
@media (max-width: 768px){
  .services-section{
    padding: 78px 16px;
    background: linear-gradient(180deg, rgba(64,20,140,.06), #ffffff 55%);
  }

  .services-container{
    max-width: 560px;
  }

  .services-title{
    font-size: 32px;
    margin-bottom: 18px;
  }

  .services-cards{
    margin-top: 26px;
    gap: 18px;
  }

  .service-card{
    padding: 34px 22px 26px;   /* più aria */
    border-radius: 24px;
  }

  /* su mobile riduco l’hover “desktop” (tanto non si usa) */
  .service-card:hover{
    transform: none;
    box-shadow: 0 12px 26px rgba(0,0,0,.10);
  }

  .service-icon{
    width: 64px;
    height: 64px;
    padding: 14px;
    border-radius: 18px;
    margin-bottom: 18px;
  }

  .service-heading{
    font-size: 22px;
    margin: 8px 0 12px;
  }

  .service-text{
    font-size: 16px;
    line-height: 1.6;
    max-width: 42ch;
    margin-bottom: 22px;
  }

  .service-btn{
    width: 100%;
    max-width: 320px;
    min-width: 0;
    padding: 13px 18px;
  }
}

/* EXTRA SMALL (telefoni stretti) */
@media (max-width: 380px){
  .services-section{ padding: 68px 14px; }
  .services-title{ font-size: 30px; }
  .service-card{ padding: 32px 18px 24px; }
  .service-text{ font-size: 15.6px; }
}

/* Sezione CONTATTACI */

#contatti {
    background: var(--bg);
    padding: 4rem 1rem;
    color: var(--text-dark);
}

#contatti .wrapper {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.contatti-title {
    font-size: 2.5rem;
    color: var(--text-dark);
    text-transform: uppercase;
    margin-bottom: 1rem;
    position: relative;
}

.contatti-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: var(--radius);
    margin: 0.5rem auto 2rem;
}

.contact-form {
    background-color: var(--form-bg, #ffffff);
    padding: 2.5rem;
    border-radius: var(--radius-large, 10px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.contact-form .fields {
    width: 100%;
    max-width: 400px;
    margin-bottom: 1.5rem;
}

.contact-form .field {
    margin-bottom: 1.5rem;
    text-align: left;
    position: relative;
    width: 100%;
}

.contact-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    text-align: center;
}

.contact-form label .fas {
    margin-right: 8px;
    color: var(--primary);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border-color, #ddd);
    border-radius: var(--radius);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    background-color: var(--input-bg, #f8f8f8);
    color: var(--text-dark);
    text-align: center;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    text-align: center;
    color: rgba(var(--text-dark-rgb, 50,50,50), 0.6);
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 20, 140, 0.2);
}

.contact-form textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-cta {
    background: #FFD700;
    color: #4A148C;
    padding: 12px 25px;
    border-radius: 50px;
    text-transform: uppercase;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    margin-top: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
}

.btn-cta:hover {
    transform: translateY(-2px) scale(1.03);
    background: #4A148C;
    color: #FFD700;
    box-shadow: 0 8px 16px rgba(74, 20, 140, 0.4);
}

.btn-cta:disabled {
  opacity: 0.72;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.contact-status {
  min-height: 1.2rem;
  margin: 0.85rem 0 0;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
}

.contact-status.info {
  color: #4A148C;
}

.contact-status.success {
  color: #0f7a3f;
}

.contact-status.error {
  color: #b72323;
}

.contact-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.contact-recaptcha-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.2rem;
}

#contactRecaptcha {
  min-height: 78px;
}

#contactRecaptcha > div {
  margin: 0 auto;
}

@media (max-width: 480px) {
  #contactRecaptcha {
    transform: scale(0.92);
    transform-origin: center;
  }
}

@media (max-width: 768px) {
    #contatti {
        padding: 3rem 0.5rem;
    }

    #contatti .wrapper {
        max-width: 98%;
    }

    .contatti-title {
        font-size: 2.2rem;
    }

    .contact-form {
        padding: 2rem 1rem;
    }

    .contact-form .fields {
        max-width: 320px;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.8rem 0.8rem;
        font-size: 0.95rem;
    }

    .contact-form label {
        font-size: 0.9rem;
    }

    .btn-cta {
        padding: 10px 20px;
        font-size: 0.95rem;
        margin-top: 1rem;
        max-width: 320px;
    }

    .popup {
      width: min(100%, 420px);
      padding: 22px 16px;
    }

    #purchase-form button {
      max-width: 100%;
    }

    .booking-form {
      padding: 28px 18px;
      margin: 40px auto;
    }

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

    .booking-modal-form {
      gap: 12px;
    }
}

@media (max-width: 480px) {
    #contatti {
        padding: 2rem 0.2rem;
    }

    #contatti .wrapper {
        max-width: 100%;
        padding: 0 0.5rem;
    }

    .contatti-title {
        font-size: 1.7rem;
        margin-bottom: 1.2rem;
    }

    .contatti-title::after {
        width: 45px;
        height: 3px;
        margin: 0.3rem auto 0.8rem;
    }

    .contact-form {
        padding: 1.2rem 0.8rem;
        border-radius: var(--radius);
        box-shadow: none;
        border: 1px solid var(--border-color, #eee);
    }

    .contact-form .fields {
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .contact-form .field {
        margin-bottom: 1rem;
    }

    .contact-form label {
        font-size: 0.8rem;
        text-align: center;
    }

    .contact-form input,
    .contact-form textarea {
        padding: 0.6rem 0.7rem;
        font-size: 0.85rem;
        text-align: center;
    }

    .contact-form textarea {
        min-height: 70px;
    }

    .btn-cta {
        padding: 8px 16px;
        font-size: 0.85rem;
        margin-top: 0.8rem;
        box-shadow: none;
        max-width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-cta:hover {
        transform: none;
        box-shadow: none;
    }
}

/* ==========================
    STORE PAGE CUSTOM STYLES
    ========================== */

/* Hero Store Section */
.hero {
     background: linear-gradient(135deg, #6a0dad, #8e44ad);
     color: #fff;
     text-align: center;
     padding: 70px 20px 50px 20px;
     border-radius: 12px;
     margin-bottom: 40px;
     box-shadow: 0 8px 30px rgba(106,13,173,0.10);
     position: relative;
     overflow: hidden;
}
.hero h1 {
     font-size: 2.8rem;
     margin-bottom: 18px;
     font-weight: 700;
     letter-spacing: 1px;
}
.hero p {
     font-size: 1.25rem;
     margin-bottom: 28px;
     color: #ffe9ff;
}
.hero .cta-btn {
     font-size: 1.1rem;
     padding: 13px 32px;
     border-radius: 50px;
     background: #FFD700;
     color: #6a0dad;
     font-weight: bold;
     text-transform: uppercase;
     transition: background 0.3s, color 0.3s, transform 0.2s;
     box-shadow: 0 4px 16px rgba(0,0,0,0.10);
}
.hero .cta-btn:hover {
     background: #6a0dad;
     color: #FFD700;
     transform: scale(1.05);
}

/* Store Products Section */
.services-section {
     background: #faf7ff;
     padding: 60px 0 70px 0;
     border-radius: 18px;
     margin-bottom: 40px;
     box-shadow: 0 8px 32px rgba(106,13,173,0.07);
}
.services-title {
     font-size: 2.3rem;
     color: #4A148C;
     margin-bottom: 2.5rem;
     font-weight: 700;
     letter-spacing: 1px;
     position: relative;
     display: inline-block;
}
.services-title span {
     display: block;
     height: 5px;
     width: 0;
     background: #FFD700;
     border-radius: 3px;
     transition: width 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
     margin-top: 6px;
}
.services-title:hover span {
     width: 100%;
}
.services-cards {
     display: flex;
     flex-wrap: wrap;
     gap: 32px;
     justify-content: center;
}
.service-card {
     background: #fff;
     border-radius: 16px;
     box-shadow: 0 6px 24px rgba(106,13,173,0.10);
     padding: 2.2rem 1.5rem 2rem 1.5rem;
     max-width: 320px;
     min-width: 260px;
     flex: 1 1 260px;
     display: flex;
     flex-direction: column;
     align-items: center;
     transition: transform 0.5s cubic-bezier(0.25,0.8,0.25,1), box-shadow 0.5s;
    opacity: 1;
    transform: translateY(0) scale(1);
     will-change: transform, opacity;
}
.service-card.visible {
     opacity: 1;
     transform: translateY(0) scale(1);
     transition: transform 0.7s cubic-bezier(0.25,0.8,0.25,1), opacity 0.7s;
}
.service-card:hover {
     transform: translateY(-10px) scale(1.04) rotate(-1deg);
     box-shadow: 0 16px 40px rgba(106,13,173,0.18);
}
.service-icon {
     width: 70px;
     height: 70px;
     margin-bottom: 1.2rem;
     object-fit: contain;
     border-radius: 12px;
     background: #f3e8ff;
     box-shadow: 0 2px 8px rgba(106,13,173,0.07);
     padding: 10px;
}
.service-heading {
     font-size: 1.3rem;
     color: #4A148C;
     font-weight: 700;
     margin-bottom: 0.7rem;
     text-align: center;
}
.service-text {
     color: #555;
     font-size: 1.05rem;
     margin-bottom: 1.5rem;
     text-align: center;
     flex-grow: 1;
}
.service-btn {
     background: #FFD700;
     color: #4A148C;
     padding: 12px 28px;
     border-radius: 50px;
     text-transform: uppercase;
     font-weight: bold;
     text-decoration: none;
     font-size: 1rem;
     transition: background 0.3s, color 0.3s, transform 0.2s;
     box-shadow: 0 2px 8px rgba(106,13,173,0.10);
     margin-top: 10px;
}
.service-btn:hover {
     background: #4A148C;
     color: #FFD700;
     transform: scale(1.07);
}

/* Titoli di categoria prodotti */
.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #6a0dad;
    margin: 30px 0 15px;
    text-align: center;
    position: relative;
}
.category-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: #FFD700;
    margin: 6px auto 0 auto;
    border-radius: 2px;
}

/* Badge Offerte Speciali */
.special-offer {
    position: relative;
    overflow: hidden; /* di default per desktop */
}
.discount-badge {
    position: absolute;
    top: 15px;
    right: -35px;
    background: #ff3b3b;
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    padding: 6px 40px;
    transform: rotate(45deg);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* Fix per mobile */
@media (max-width: 768px) {
    .special-offer {
        overflow: visible; /* permette al badge di uscire senza tagliarsi */
    }
    .discount-badge {
        right: -20px;       /* rientra un po’ */
        font-size: 0.75rem; /* testo più piccolo */
        padding: 4px 28px;  /* meno larghezza */
    }
}

/* ===== RECENSIONI SEZIONE ===== */
.reviews-section {
  padding: 100px 0;
  background: linear-gradient(180deg, #fdf7ff 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.reviews-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -150px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255,215,0,0.25), transparent 70%);
  filter: blur(70px);
  z-index: 0;
}

.reviews-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
  z-index: 2;
}

/* ===== TITOLO ===== */
.services-title {
  font-size: 2.3rem;
  color: #4A148C;
  margin: 0 auto 2.5rem auto;  /* centrato con margin auto */
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  display: block;              /* blocco per centratura perfetta */
  text-align: center;
  cursor: default;
}

/* Linea dorata sotto il titolo */
.services-title span {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -10px;              /* distanza dal titolo */
  transform: translateX(-50%);
  width: 60px;                 /* linea corta */
  height: 4px;
  background: #FFD700;
  border-radius: 3px;
  transition: width 0.4s ease;
}

.services-title:hover span {
  width: 100px;                /* espansione al passaggio del mouse */
}

/* Assicura la centratura anche nel contenitore */
.services-container,
.services-section {
  text-align: center;
}


/* ===== CARD GRID ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
}

/* ===== CARD ===== */
.review-card {
  background: #fff;
  border: 1px solid rgba(106, 13, 173, 0.1);
  border-left: 6px solid var(--accent);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  transform: translateY(40px);
  opacity: 0;
  transition: all 0.6s ease;
}

.review-card.visible {
  transform: translateY(0);
  opacity: 1;
}

.review-card::after {
  content: "“”";
  position: absolute;
  font-size: 8rem;
  font-family: serif;
  color: rgba(106, 13, 173, 0.05);
  top: 10px;
  right: 20px;
  pointer-events: none;
}

/* ===== HEADER ===== */
.review-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.2rem;
}

.review-avatar {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-right: 15px;
  box-shadow: 0 4px 10px rgba(106, 13, 173, 0.3);
}

.review-info h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 4px;
}

.review-info p {
  color: var(--accent);
  font-size: 0.9rem;
}

/* ===== TESTO ===== */
.review-text {
  color: #555;
  font-style: italic;
  line-height: 1.7;
  font-size: 1.05rem;
}

/* ===== HOVER EFFECT ===== */
.review-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(106, 13, 173, 0.15);
  border-left-color: var(--primary);
  transition: all 0.4s ease;
}

.discount-badge.vip {
  background: #c470ff;
}
.discount-badge.vip-plus {
  background: #FFD700;
  color: #6a0dad;
}

/* Responsive Store Page */
@media (max-width: 1024px) {
     #info-store .wrapper {
          flex-direction: column-reverse;
          gap: 30px;
          align-items: center;
          text-align: center;
     }
     #info-store .image-wrapper {
          margin-left: 0;
          max-width: 220px;
     }
}
@media (max-width: 900px) {
     .services-cards {
          gap: 18px;
     }
     .service-card {
          min-width: 210px;
          max-width: 260px;
          padding: 1.5rem 1rem 1.3rem 1rem;
     }
}
@media (max-width: 768px) {
     .hero {
          padding: 40px 10px 30px 10px;
          border-radius: 10px;
     }
     .hero h1 {
          font-size: 2rem;
     }
     .services-section {
          padding: 30px 0 40px 0;
          border-radius: 10px;
     }
     .services-title {
          font-size: 1.5rem;
     }
     .services-cards {
          flex-direction: column;
          gap: 18px;
     }
     .service-card {
          max-width: 98%;
          min-width: 0;
          margin: 0 auto;
     }
}
@media (max-width: 480px) {
     .hero {
          padding: 25px 2px 18px 2px;
          border-radius: 7px;
     }
     .hero h1 {
          font-size: 1.2rem;
     }
     .services-section {
          padding: 15px 0 20px 0;
          border-radius: 7px;
     }
     .services-title {
          font-size: 2rem;
     }
     .service-card {
          padding: 1rem 0.5rem 1rem 0.5rem;
          border-radius: 7px;
     }
}

/* ===========================
   Popup Overlay
=========================== */
.popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.popup-overlay.active {
    display: flex;
    opacity: 1;
}

/* ===========================
   Popup Box
=========================== */
.popup {
    background: #ffffff;
    padding: 30px 25px;
    max-width: 450px;
    width: 95%;
    border-radius: 15px;
    box-shadow: 0 12px 25px rgba(0,0,0,0.2);
    position: relative;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.popup-overlay.active .popup {
    transform: translateY(0);
    opacity: 1;
}

.popup h2 {
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: #6a0dad; /* viola del sito */
    text-align: center;
}

/* ===========================
   Close Button
=========================== */
.popup-close {
    position: absolute;
    top: 12px;
    right: 15px;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.popup-close:hover {
    color: #6a0dad;
}

/* ===========================
   Form Styling
=========================== */
#purchase-form label {
    display: block;
    margin-top: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #333;
}

#purchase-form input,
#purchase-form select,
#purchase-form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 5px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

#purchase-form input:focus,
#purchase-form select:focus,
#purchase-form textarea:focus {
    border-color: #6a0dad;
    box-shadow: 0 0 8px rgba(196,112,255,0.15);
    outline: none;
}

/* ===========================
   Submit Button Migliorato
=========================== */
#purchase-form button {
    display: block; /* forza il bottone a occupare lo spazio centrato */
    width: 100%;
    max-width: 200px; /* mantiene proporzionato */
    margin: 20px auto 0; /* centrato orizzontalmente */
    padding: 10px 15px;
    background-color: #FFD700;
    color: #6a0dad;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    border: none; /* rimuove contorni indesiderati */
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#purchase-form button:hover {
    background-color: #6a0dad;
    color: #FFD700;
    transform: scale(1.05);
}


/* ===========================
   Textarea
=========================== */
#purchase-form textarea {
    resize: vertical;
    min-height: 80px;
}

/* ===========================
   Scrollbar per textarea (opzionale)
=========================== */
#purchase-form textarea::-webkit-scrollbar {
    width: 6px;
}

#purchase-form textarea::-webkit-scrollbar-thumb {
    background: #6a0dad;
    border-radius: 3px;
}

#purchase-form textarea::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

/* Footer */
footer {
    background-color: #6a0dad;
    color: #fff;
    padding: 40px 20px;
    margin-top: 30px;
    position: relative;
    overflow: hidden;
    font-size: 0.9rem;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, yellow, #cf8cff);
    animation: gradientMove 3s infinite linear;
}

@keyframes gradientMove {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

footer .footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 20px;
}

footer .about, footer .quick-links, footer .social-icons {
    flex: 1 1 200px;
    max-width: 300px;
}

footer h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    text-transform: uppercase;
    border-bottom: 2px solid #fff;
    display: inline-block;
    padding-bottom: 5px;
}

footer .about p {
    font-size: 0.9rem;
    line-height: 1.5;
}

footer .quick-links ul, footer .social-icons ul {
    list-style: none;
    padding: 0;
}

footer .quick-links ul li, footer .social-icons ul li {
    margin-bottom: 10px;
}

footer .quick-links ul li a, footer .social-icons ul li a {
    color: #fff;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

footer .quick-links ul li a:hover, footer .social-icons ul li a:hover {
    color: yellow;
}

footer .copyright {
    text-align: center;
    margin-top: 20px;
    font-size: 0.8rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    footer .footer-container {
        flex-direction: column; 
        align-items: center;
        gap: 15px;
    }

    footer .about, footer .quick-links, footer .social-icons {
        max-width: 100%; 
        text-align: center;
    }

    footer h3 {
        font-size: 1rem;
    }

    footer .quick-links ul li, footer .social-icons ul li {
        margin-bottom: 8px;
    }

    footer .copyright {
        font-size: 0.75rem; 
        margin-top: 15px;
    }
}

/* Stili per il Popup */
#popup {
    position: fixed;
    bottom: 25px;
    right: 25px;
    max-width: 340px;
    width: calc(100% - 50px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    padding: 0;
    border-radius: 20px;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.25);
    text-align: center;
    overflow: hidden;
    opacity: 0;
    transform: translateY(60px) scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.show-popup {
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.popup-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 20px 20px 0 0;
    margin-bottom: 0;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.4s ease-out;
}

.popup-img:hover {
    transform: scale(1.03);
}

.popup-content {
    padding: 25px 20px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.popup-content h2 {
    font-size: 1.8rem;
    color: #5E35B1;
    margin: 0 0 10px;
    position: relative;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.popup-content h2::before {
    content: '✨';
    position: absolute;
    left: -32px;
    top: 0;
    font-size: 1.6rem;
    transform: rotate(-10deg);
}

.popup-content p {
    font-size: 1.05rem;
    color: #444;
    margin: 0 0 20px;
    line-height: 1.5;
}

/* =========================
   Discussione eventi modal
   ========================= */
.event-discussion-root {
  margin-top: 18px;
  padding: 18px;
  border-top: 1px solid rgba(106, 13, 173, 0.12);
  border-radius: 18px;
  background:
    radial-gradient(circle at top left, rgba(106, 13, 173, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.event-discussion-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.event-discussion-head h3 {
  margin: 0;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  color: #111827;
}

.event-discussion-head p {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 0.92rem;
}

.event-discussion-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discussion-status-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}

.discussion-status-badge.open {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.18);
}

.discussion-status-badge.closed {
  background: rgba(239, 68, 68, 0.10);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.18);
}

.discussion-mod-btn {
  border: 1px solid rgba(106, 13, 173, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(243, 232, 255, 0.95));
  color: #6a0dad;
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(106, 13, 173, 0.10);
}

.discussion-comments-list {
  display: grid;
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 12px;
}

.discussion-empty {
  border: 1px dashed rgba(106, 13, 173, 0.18);
  border-radius: 16px;
  color: #6b7280;
  padding: 16px;
  font-size: 0.92rem;
  background: rgba(255, 255, 255, 0.82);
}

.discussion-comment {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 13px 14px 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.06);
}

.discussion-comment.is-deleted {
  border-color: rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96), rgba(241, 245, 249, 0.96));
  opacity: 1;
}

.discussion-comment-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.discussion-comment-author {
  display: flex;
  align-items: center;
  gap: 8px;
}

.discussion-comment-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(106, 13, 173, 0.22);
  box-shadow: 0 6px 12px rgba(15, 23, 42, 0.10);
}

.discussion-comment-role {
  display: inline-flex;
  margin-left: 7px;
  font-size: 0.72rem;
  border-radius: 999px;
  padding: 2px 8px;
  background: rgba(106, 13, 173, 0.10);
  color: #6a0dad;
}

.discussion-comment-time {
  font-size: 0.75rem;
  color: #6b7280;
}

.discussion-comment-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.discussion-comment-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  background: rgba(239, 68, 68, 0.10);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.18);
}

.discussion-comment-body {
  font-size: 0.93rem;
  line-height: 1.5;
  color: #1f2937;
  word-break: break-word;
}

.discussion-comment-body p {
  margin: 0 0 8px;
}

.discussion-comment-body blockquote {
  margin: 8px 0;
  padding: 8px 10px;
  border-left: 3px solid rgba(106, 13, 173, 0.74);
  background: rgba(106, 13, 173, 0.06);
  border-radius: 8px;
}

.discussion-comment-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: rgba(106, 13, 173, 0.08);
  border-radius: 4px;
  padding: 1px 5px;
}

.discussion-comment-hidden {
  margin-top: 10px;
  border: 1px dashed rgba(148, 163, 184, 0.30);
  border-radius: 10px;
  padding: 9px;
  background: rgba(241, 245, 249, 0.95);
}

.discussion-comment-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
}

.discussion-action-btn {
  border-radius: 999px;
  font-size: 0.76rem;
  padding: 6px 10px;
  cursor: pointer;
  border: 1px solid transparent;
}

.discussion-action-btn.ghost {
  background: rgba(255, 255, 255, 0.95);
  color: #334155;
  border-color: rgba(148, 163, 184, 0.30);
}

.discussion-action-btn.danger {
  background: rgba(254, 226, 226, 0.95);
  border-color: rgba(248, 113, 113, 0.42);
  color: #b91c1c;
}

.discussion-composer {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
}

.discussion-toolbar {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(248, 250, 252, 0.95);
}

.discussion-toolbar button {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: #ffffff;
  color: #475569;
  cursor: pointer;
}

.discussion-toolbar button:hover {
  background: rgba(106, 13, 173, 0.08);
  border-color: rgba(106, 13, 173, 0.30);
  color: #6a0dad;
}

.discussion-color-picker {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 10px;
  overflow: hidden;
  width: 37px;
  height: 35px;
}

.discussion-color-picker input {
  width: 100%;
  height: 100%;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.discussion-editor {
  min-height: 140px;
  max-height: 240px;
  overflow-y: auto;
  padding: 14px;
  color: #111827;
  line-height: 1.5;
  background: #fff;
}

.discussion-editor:focus {
  outline: none;
}

.discussion-editor[contenteditable="false"] {
  opacity: 0.72;
  background: #f8fafc;
}

.discussion-editor:empty::before {
  content: attr(data-placeholder);
  color: #94a3b8;
}

.discussion-composer-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.20);
  background: rgba(248, 250, 252, 0.95);
}

.event-discussion-root .discussion-composer-actions .cta-btn,
.event-discussion-root .discussion-composer-actions button.cta-btn {
  border: none;
  appearance: none;
  box-shadow: 0 10px 18px rgba(106, 13, 173, 0.14);
  padding: 12px 18px;
  font-size: 0.96rem;
  background: linear-gradient(135deg, #6a0dad, #8b5cf6);
  color: #fff;
}

.event-discussion-root .discussion-composer-actions .cta-btn:hover,
.event-discussion-root .discussion-composer-actions button.cta-btn:hover {
  background: linear-gradient(135deg, #5b0b93, #7c3aed);
  color: #fff;
  transform: translateY(-1px);
}

.event-discussion-root .discussion-composer-actions .cta-btn:disabled,
.event-discussion-root .discussion-composer-actions .cta-btn.is-disabled {
  cursor: not-allowed;
  transform: none;
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  color: #94a3b8;
  box-shadow: none;
  border: 1px solid rgba(148, 163, 184, 0.32);
  opacity: 0.92;
}

.event-discussion-root .discussion-composer-actions .cta-btn:disabled:hover,
.event-discussion-root .discussion-composer-actions .cta-btn.is-disabled:hover {
  background: linear-gradient(135deg, #e2e8f0, #f1f5f9);
  color: #94a3b8;
  transform: none;
}

.discussion-composer-hint {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
}

@media (max-width: 760px) {
  .event-discussion-head {
    flex-direction: column;
  }

  .event-discussion-head-actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .discussion-comments-list {
    max-height: 240px;
  }

  .discussion-composer-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

.popup-btn {
    display: inline-block;
    background: linear-gradient(135deg, #7B1FA2, #9C27B0);
    color: #fff;
    text-decoration: none;
    padding: 14px 30px;
    font-weight: 600;
    font-size: 1.05rem;
    border-radius: 50px;
    box-shadow: 0 8px 25px rgba(123, 31, 162, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    width: calc(100% - 40px);
    max-width: 250px;
    box-sizing: border-box;
}

.popup-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(123, 31, 162, 0.6);
}

#close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.75);
    border: none;
    border-radius: 50%;
    font-size: 1.6rem;
    color: #888;
    cursor: pointer;
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
    z-index: 1001;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#close-popup:hover {
    background: #fff;
    color: #5E35B1;
    transform: rotate(90deg);
}

.hide-popup {
    opacity: 0 !important;
    transform: translateY(60px) scale(0.9) !important;
}

@media (max-width: 768px) {
    #popup {
        bottom: 15px;
        left: 15px;
        right: 15px;
        width: auto;
        max-width: calc(100% - 30px);
        border-radius: 18px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .popup-img {
        height: 160px;
        border-radius: 18px 18px 0 0;
    }

    .popup-content {
        padding: 20px 15px 15px;
    }

    .popup-content h2 {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .popup-content h2::before {
        left: -28px;
        font-size: 1.4rem;
    }

    .popup-content p {
        font-size: 0.95rem;
        margin-bottom: 15px;
    }

    .popup-btn {
        padding: 12px 0;
        font-size: 1rem;
        width: calc(100% - 30px);
        max-width: 280px;
    }

    #close-popup {
        top: 10px;
        right: 10px;
        width: 32px;
        height: 32px;
        font-size: 1.4rem;
    }
}

/* =========================
   Privacy Section – colori netti
========================= */
.section {
    position: relative;
    max-width: 980px;
    margin: 22px auto;
    padding: 34px 30px;
    border-radius: 14px;
    background: #fff;
    border: 3px solid #FFD700; /* solo oro */
    box-shadow: 0 8px 24px rgba(0,0,0,.1);
    transition: transform .28s ease, box-shadow .28s ease;
}
.section:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0,0,0,.14);
}

/* Titoli in viola con underline oro */
.section h2 {
    color: #4A148C;
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 18px;
    position: relative;
    padding-bottom: 6px;
}
.section h2::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 82px;
    border-radius: 999px;
    background: #FFD700; /* solo oro */
}

/* Liste con bullet oro */
.section ul {
    list-style: none;
    padding-left: 0;
}
.section ul li {
    position: relative;
    padding: 10px 0 10px 34px;
    font-size: 1.04rem;
    line-height: 1.65;
}
.section ul li + li {
    border-top: 1px dashed rgba(74, 20, 140, .25);
}
.section ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #FFD700;
}

/* Bottone Acconsento */
.btn-consenso {
    background: #FFD700;
    color: #4A148C;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.15rem;
    display: inline-block;
    transition: background-color .3s ease, color .3s ease, transform .3s ease;
    box-shadow: 0 6px 16px rgba(74, 20, 140, .18);
}
.btn-consenso:hover {
    background: #4A148C;
    color: #FFD700;
    transform: scale(1.05);
}

/* =========================
   COOKIE (LIGHT THEME - MythicMaster)
   ========================= */

:root{
  /* UI tokens coerenti con tema chiaro */
  --ck-radius: 18px;
  --ck-shadow: 0 18px 45px rgba(0,0,0,.16);
  --ck-shadow-soft: 0 10px 24px rgba(0,0,0,.12);

  --ck-bg: rgba(255,255,255,.92);      /* vetro chiaro */
  --ck-bg-solid: #ffffff;              /* pieno */
  --ck-border: rgba(0,0,0,.08);

  --ck-text: #1f2328;
  --ck-muted: rgba(31,35,40,.72);

  --ck-blur: 14px;
  --ck-focus: 0 0 0 4px rgba(255, 215, 0, .25); /* focus giallo soft */
}

/* =========================
   Tab laterale (launcher)
   ========================= */
#cookie-tab{
  position: fixed;
  left: 0;
  bottom: 22px;

  width: 52px;
  height: 52px;

  display: grid;
  place-items: center;

  background: linear-gradient(135deg, var(--accent-gold), rgba(255,215,0,.82));
  color: var(--accent-purple);

  border-radius: 0 16px 16px 0;
  box-shadow: 0 16px 28px rgba(0,0,0,.18);

  cursor: pointer;
  z-index: 10000;

  transition: transform .18s ease, filter .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}

#cookie-tab:hover{
  background: var(--accent-purple);
  color: var(--accent-gold);
  transform: translateX(6px);
  filter: saturate(1.05);
  box-shadow: 0 18px 34px rgba(0,0,0,.22);
}

#cookie-tab:active{
  transform: translateX(4px) scale(.98);
}

#cookie-tab i{
  font-size: 1.1rem;
  transition: transform .22s ease;
}

#cookie-tab:hover i{
  transform: translateX(2px);
}

/* =========================
   Popup (main + preferences)
   ========================= */
#cookie-popup,
#cookie-preferences{
  display: none;
  position: fixed;

  left: 18px;
  bottom: 92px;

  width: min(370px, calc(100vw - 36px));
  max-width: 370px;

  padding: 18px 18px 14px;

  background: var(--ck-bg);
  border: 1px solid var(--ck-border);
  border-radius: var(--ck-radius);

  box-shadow: var(--ck-shadow);
  backdrop-filter: blur(var(--ck-blur));
  -webkit-backdrop-filter: blur(var(--ck-blur));

  z-index: 10001;
  font-family: var(--montserrat);

  transform-origin: bottom left;
  animation: ck-pop .24s ease both;
}

@keyframes ck-pop{
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Titoli */
#cookie-popup h3,
#cookie-preferences h3{
  display: flex;
  align-items: center;
  gap: 10px;

  margin: 0 0 8px;
  font-size: 1.08rem;
  letter-spacing: .2px;
  color: var(--accent-purple);
}

#cookie-popup h3::before,
#cookie-preferences h3::before{
  content: "🍪";
  font-size: 1.05rem;
  line-height: 1;
  transform: translateY(-1px);
}

/* Testo popup principale */
#cookie-popup p{
  margin: 0 0 14px;
  font-size: .92rem;
  line-height: 1.4;
  color: var(--ck-muted);
}

/* Divider (se non lo hai in HTML non rompe nulla) */
#cookie-popup .ck-divider,
#cookie-preferences .ck-divider{
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,0,0,.10), transparent);
  margin: 12px 0;
  opacity: .8;
}

/* =========================
   Buttons
   ========================= */
.cookie-btn{
  appearance: none;
  border: 0;
  outline: none;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  padding: 11px 14px;
  margin: 6px 0;

  border-radius: 999px;
  font-weight: 800;
  font-size: .92rem;
  letter-spacing: .2px;

  cursor: pointer;
  user-select: none;

  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease, background .14s ease, color .14s ease, border-color .14s ease;
}

.cookie-btn:focus-visible{
  box-shadow: var(--ck-focus);
}

/* Accetta (primary oro) */
.accept{
  background: linear-gradient(135deg, var(--accent-gold), rgba(255,215,0,.80));
  color: var(--accent-purple);
  box-shadow: var(--ck-shadow-soft);
}
.accept:hover{
  filter: brightness(1.02);
  transform: translateY(-1px);
}
.accept:active{
  transform: translateY(0) scale(.99);
}

/* Rifiuta (secondary chiaro) */
.reject{
  background: rgba(0,0,0,.04);
  color: var(--ck-text);
  border: 1px solid rgba(0,0,0,.10);
}
.reject:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,.06);
}
.reject:active{
  transform: translateY(0) scale(.99);
}

/* Personalizza (outline viola) */
.customize{
  background: rgba(128, 0, 255, .04);
  color: var(--accent-purple);
  border: 2px solid rgba(128, 0, 255, .28);
}
.customize:hover{
  background: rgba(128, 0, 255, .08);
  transform: translateY(-1px);
  border-color: rgba(128, 0, 255, .38);
}
.customize:active{
  transform: translateY(0) scale(.99);
}

/* Layout bottoni un po' più compatto su schermi larghi */
@media (min-width: 420px){
  #cookie-popup .cookie-btn{
    width: auto;
    margin: 6px 6px 0 0;
  }
}

/* =========================
   Preferenze (toggle moderni)
   ========================= */
.pref-option{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;

  padding: 10px 12px;
  margin: 8px 0;

  border-radius: 14px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

.pref-option label{
  font-weight: 800;
  font-size: .92rem;
  color: var(--ck-text);
}

/* checkbox -> toggle (stessa struttura HTML) */
.pref-option input[type="checkbox"]{
  appearance: none;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  position: relative;

  background: rgba(0,0,0,.12);
  border: 1px solid rgba(0,0,0,.14);

  cursor: pointer;
  margin: 0;

  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.pref-option input[type="checkbox"]::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);

  width: 20px;
  height: 20px;
  border-radius: 50%;

  background: var(--ck-bg-solid);
  box-shadow: 0 8px 16px rgba(0,0,0,.14);

  transition: left .18s ease, transform .18s ease;
}

.pref-option input[type="checkbox"]:checked{
  background: rgba(255,215,0,.85);
  border-color: rgba(255,215,0,.70);
}

.pref-option input[type="checkbox"]:checked::after{
  left: 22px;
}

.pref-option input[type="checkbox"]:focus-visible{
  box-shadow: var(--ck-focus);
}

/* =========================
   (Legacy) #cookie-btn
   Se nel sito esiste ancora, lo rendiamo coerente e non invasivo
   ========================= */
#cookie-btn{
  position: fixed;
  bottom: 30px;
  left: 20px;

  background: linear-gradient(135deg, var(--accent-gold), rgba(255,215,0,.82));
  color: var(--accent-purple);

  padding: 10px 20px;
  border-radius: 999px;

  font-weight: 800;
  font-family: var(--montserrat);
  font-size: 1rem;

  cursor: pointer;
  box-shadow: 0 12px 22px rgba(0,0,0,.16);

  transition: transform .18s ease, filter .18s ease;
  z-index: 9999;
}

#cookie-btn:hover{
  transform: translateY(-1px);
  filter: brightness(1.02);
}

#cookie-btn:active{
  transform: translateY(0) scale(.99);
}

/* Form Pagamento */

.booking-form {
  background-color: #fff;
  border-radius: var(--radius);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  padding: 40px 50px;
  max-width: 700px;
  margin: 80px auto;
  text-align: left;
}

.booking-form h2 {
  text-align: center;
  color: var(--primary);
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.form-desc {
  text-align: center;
  color: #555;
  margin-bottom: 40px;
}

.styled-form .form-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.styled-form label {
  font-weight: 600;
  color: #4A148C;
  margin-bottom: 6px;
}

.styled-form input,
.styled-form select,
.styled-form textarea {
  padding: 12px 14px;
  border: 2px solid #ddd;
  border-radius: var(--radius);
  font-family: 'Montserrat', sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.styled-form input:focus,
.styled-form select:focus,
.styled-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 6px rgba(106, 13, 173, 0.3);
  outline: none;
}

.btn-submit {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 50px;
  background: var(--primary);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn-submit:hover {
  background: var(--primary-light);
  transform: scale(1.04);
}

/* ===== PAYPAL SECTION ===== */
.payment-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 30px 0;
}

.payment-button {
  flex: 1 1 250px;
  min-width: 220px;
  text-align: center;
}

.paypal-fallback {
  text-align: center;
  margin: 20px 0 30px;
}

.paypal-fallback p {
  color: #444;
  margin-bottom: 10px;
}

.paypal-link {
  display: inline-block;
  background-color: #ffc439;
  color: #111;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s;
}

/* ====== VIOLET SECTIONS POLISH (CONSISTENT WITH STAFF) ====== */
.what-is-dd .container > h2,
.what-is-gdr .container > h2,
.gdr-types .container > h2,
.wiki-section .container > h2,
.cta-section > h2,
.faq .container > h2,
.past-events-dark-theme .forum-header h2 {
  display: inline-block;
  margin-left: auto;
  margin-right: auto;
  padding: 0.62rem 1rem;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(24, 8, 50, 0.55), rgba(81, 20, 146, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #ffe285;
  line-height: 1.14;
  text-shadow:
    0 2px 0 rgba(42, 12, 83, 0.95),
    0 8px 18px rgba(0, 0, 0, 0.34);
  box-shadow: 0 12px 26px rgba(13, 3, 33, 0.28);
}

.what-is-gdr .intro-text,
.gdr-types .intro-text,
.cta-section p,
.faq .faq-answer p {
  color: rgba(255, 255, 255, 0.97);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.what-is-dd .text-container,
.what-is-gdr .text-container,
.wiki-section .text-container {
  background: linear-gradient(155deg, rgba(25, 7, 49, 0.52), rgba(16, 7, 31, 0.34));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 28px rgba(11, 5, 22, 0.3);
  backdrop-filter: blur(2px);
}

.gdr-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #ffffff 0%, #fbf7ff 56%, #f4e8ff 100%);
  border: 1px solid rgba(106, 27, 154, 0.22);
  border-radius: 16px;
  padding: 1rem 1rem 1.1rem;
  box-shadow: 0 12px 24px rgba(40, 16, 67, 0.16);
  transition: transform .26s ease, box-shadow .26s ease, border-color .26s ease;
}

.gdr-card::before {
  content: '';
  position: absolute;
  left: -70px;
  top: -70px;
  width: 130px;
  height: 130px;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.28), rgba(255, 215, 0, 0));
  pointer-events: none;
}

.gdr-card img {
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(39, 13, 66, 0.2);
}

.gdr-card h3 {
  color: #4A148C;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1.25;
}

.gdr-card p {
  color: #5b2a8f;
  font-size: 1rem;
  line-height: 1.55;
}

.gdr-card:hover {
  transform: translateY(-7px) scale(1.01);
  border-color: rgba(106, 27, 154, 0.44);
  box-shadow: 0 22px 34px rgba(32, 11, 57, 0.3);
}

.gdr-card:hover img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .what-is-dd,
  .what-is-gdr,
  .gdr-types,
  .wiki-section,
  .cta-section,
  .faq,
  .past-events-dark-theme {
    margin: 14px 8px;
    border-radius: 14px;
  }

  .what-is-dd,
  .what-is-gdr,
  .gdr-types,
  .wiki-section,
  .cta-section,
  .faq {
    padding: 46px 14px;
  }

  .what-is-dd .container > h2,
  .what-is-gdr .container > h2,
  .gdr-types .container > h2,
  .wiki-section .container > h2,
  .cta-section > h2,
  .faq .container > h2,
  .past-events-dark-theme .forum-header h2 {
    font-size: clamp(1.45rem, 6.3vw, 2rem);
    letter-spacing: 0.6px;
    padding: 0.55rem 0.82rem;
    border-radius: 12px;
  }

  .what-is-dd .intro-text,
  .what-is-gdr .intro-text,
  .gdr-types .intro-text,
  .cta-section p {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
  }

  .what-is-dd .text-container,
  .what-is-gdr .text-container,
  .wiki-section .text-container {
    padding: 0.95rem;
    line-height: 1.6;
  }

  .what-is-dd .text-container p,
  .what-is-gdr .text-container p,
  .wiki-section .text-container p {
    font-size: 0.98rem;
  }

  .what-is-dd .text-container ul li,
  .what-is-gdr .text-container ul li,
  .wiki-section .text-container ul li {
    font-size: 0.95rem;
  }

  .gdr-grid {
    gap: 14px;
  }

  .gdr-card {
    width: 100%;
    max-width: 420px;
    padding: 0.92rem;
  }
}

@media (max-width: 480px) {
  .what-is-dd,
  .what-is-gdr,
  .gdr-types,
  .wiki-section,
  .cta-section,
  .faq,
  .past-events-dark-theme {
    margin: 10px 6px;
    border-radius: 12px;
  }
  .what-is-dd,
  .what-is-gdr,
  .gdr-types,
  .wiki-section,
  .cta-section,
  .faq {
    padding: 38px 11px;
  }
}

.paypal-link:hover {
  background-color: #ffb347;
  transform: scale(1.05);
}

/* ===== CHRISTMAS SNOW EFFECT ===== */
.snowflakes {
    position: fixed;
    top: -10%;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999; /* Above everything */
    overflow: hidden;
}

.snowflake {
    color: #fff;
    font-size: 1.5em;
    position: absolute;
    top: -10%;
    animation: fall linear infinite;
    opacity: 0.8;
}

/* FINAL STAFF LAYOUT OVERRIDE */
.staff-section .staff-grid {
  justify-content: center !important;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
  justify-items: center !important;
}

.staff-section .staff-member {
  width: 100% !important;
  max-width: 300px !important;
}

@media (max-width: 768px) {
  .staff-section .container {
    width: min(calc(100vw - 24px), 340px) !important;
    max-width: 340px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .staff-section .staff-filter,
  .staff-section .staff-toolbar,
  .staff-section .staff-grid,
  .staff-section .staff-empty {
    width: 100% !important;
    max-width: 340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .staff-section .staff-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .staff-section .staff-search {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .staff-section .staff-grid {
    grid-template-columns: 1fr !important;
    gap: 0.85rem !important;
    justify-content: center !important;
    justify-items: stretch !important;
  }

  .staff-section .staff-member {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
  }
}

@media (max-width: 480px) {
  .staff-section {
    padding: 70px 8px !important;
  }

  .staff-section .container {
    width: min(calc(100vw - 16px), 320px) !important;
    max-width: 320px !important;
  }

  .staff-section .staff-filter,
  .staff-section .staff-toolbar,
  .staff-section .staff-grid,
  .staff-section .staff-empty {
    max-width: 320px !important;
  }

  .staff-section .staff-filter {
    gap: 0.42rem !important;
  }

  .staff-section .filter-btn {
    padding: 0.46em 0.82em !important;
    font-size: 0.78rem !important;
  }

  .staff-section .staff-search {
    padding: 0.58rem 0.78rem !important;
  }

  .staff-section .staff-grid {
    grid-template-columns: 1fr !important;
    gap: 0.75rem !important;
    justify-content: center !important;
    justify-items: stretch !important;
  }

  .staff-section .staff-member {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 80px !important;
    padding: 0.62rem 0.66rem !important;
    margin: 0 auto !important;
  }

  .staff-section .staff-member .avatar {
    width: 44px !important;
    height: 44px !important;
  }

  .staff-section .staff-member .name {
    font-size: 0.88rem !important;
  }

  .staff-section .staff-member .role {
    font-size: 0.68rem !important;
  }
}

@media (max-width: 480px) {
  .staff-section {
    padding: 70px 8px !important;
  }

  .staff-section .container {
    width: min(calc(100vw - 16px), 340px) !important;
    max-width: 340px !important;
    padding: 0 !important;
    margin: 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  .staff-section .staff-filter,
  .staff-section .staff-toolbar,
  .staff-section .staff-grid,
  .staff-section .staff-empty {
    width: 100% !important;
    max-width: 340px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  .staff-section .staff-filter {
    justify-content: center !important;
    padding: 0 !important;
    gap: 0.42rem !important;
  }

  .staff-section .filter-btn {
    padding: 0.46em 0.82em !important;
    font-size: 0.78rem !important;
  }

  .staff-section .staff-toolbar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0.8rem !important;
    margin: 0 auto 1.2rem !important;
  }

  .staff-section .staff-search {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    padding: 0.58rem 0.78rem !important;
    border-radius: 11px !important;
    box-sizing: border-box !important;
  }

  .staff-section .staff-results {
    text-align: center !important;
  }

  .staff-section .staff-grid {
    padding: 0 !important;
    row-gap: 0.78rem !important;
  }

  .staff-section .staff-member {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    min-height: 80px !important;
    padding: 0.62rem 0.66rem !important;
    column-gap: 0.62rem !important;
    border-radius: 14px !important;
  }

  .staff-section .staff-member .avatar {
    width: 44px !important;
    height: 44px !important;
    border-radius: 11px !important;
  }

  .staff-section .staff-member .name {
    font-size: 0.88rem !important;
  }

  .staff-section .staff-member .role {
    font-size: 0.68rem !important;
  }
}

/* ===== VERY SMALL SCREEN WARNING ===== */
.viewport-warning {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  background: rgba(14, 8, 27, 0.82);
  backdrop-filter: blur(3px);
}

.viewport-warning.active {
  display: flex;
}

.viewport-warning-box {
  width: min(100%, 420px);
  background: linear-gradient(155deg, #ffffff 0%, #f8f2ff 100%);
  border: 1px solid rgba(106, 27, 154, 0.28);
  border-radius: 16px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
  padding: 1rem 1rem 0.95rem;
  text-align: center;
}

.viewport-warning-box h2 {
  margin: 0 0 0.48rem;
  color: #4A148C;
  font-size: 1.2rem;
  line-height: 1.25;
}

.viewport-warning-box p {
  margin: 0;
  color: #5b2a8f;
  font-size: 0.96rem;
  line-height: 1.45;
}

@keyframes fall {
    to {
        transform: translateY(110vh);
    }
}

.snowflake:nth-child(1) { left: 5%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 10%; animation-duration: 12s; animation-delay: 2s; font-size: 1em; }
.snowflake:nth-child(3) { left: 15%; animation-duration: 9s; animation-delay: 4s; }
.snowflake:nth-child(4) { left: 20%; animation-duration: 11s; animation-delay: 1s; font-size: 2em; }
.snowflake:nth-child(5) { left: 25%; animation-duration: 13s; animation-delay: 3s; }
.snowflake:nth-child(6) { left: 30%; animation-duration: 10s; animation-delay: 5s; font-size: 1.2em; }
.snowflake:nth-child(7) { left: 35%; animation-duration: 14s; animation-delay: 0s; }
.snowflake:nth-child(8) { left: 40%; animation-duration: 8s; animation-delay: 2s; font-size: 1.8em; }
.snowflake:nth-child(9) { left: 45%; animation-duration: 12s; animation-delay: 4s; }
.snowflake:nth-child(10) { left: 50%; animation-duration: 11s; animation-delay: 1s; font-size: 1em; }
.snowflake:nth-child(11) { left: 55%; animation-duration: 9s; animation-delay: 3s; }
.snowflake:nth-child(12) { left: 60%; animation-duration: 13s; animation-delay: 5s; font-size: 2em; }
.snowflake:nth-child(13) { left: 65%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(14) { left: 70%; animation-duration: 14s; animation-delay: 2s; font-size: 1.5em; }
.snowflake:nth-child(15) { left: 75%; animation-duration: 8s; animation-delay: 4s; }
.snowflake:nth-child(16) { left: 80%; animation-duration: 12s; animation-delay: 1s; font-size: 1.2em; }
.snowflake:nth-child(17) { left: 85%; animation-duration: 11s; animation-delay: 3s; }
.snowflake:nth-child(18) { left: 90%; animation-duration: 9s; animation-delay: 5s; font-size: 1.8em; }
.snowflake:nth-child(19) { left: 95%; animation-duration: 13s; animation-delay: 0s; }
.snowflake:nth-child(20) { left: 0%; animation-duration: 10s; animation-delay: 2s; font-size: 1em; }
.snowflake:nth-child(21) { left: 5%; animation-duration: 12s; animation-delay: 4s; }
.snowflake:nth-child(22) { left: 10%; animation-duration: 9s; animation-delay: 1s; font-size: 2em; }
.snowflake:nth-child(23) { left: 15%; animation-duration: 11s; animation-delay: 3s; }
.snowflake:nth-child(24) { left: 20%; animation-duration: 13s; animation-delay: 5s; font-size: 1.2em; }
.snowflake:nth-child(25) { left: 25%; animation-duration: 10s; animation-delay: 0s; }
.snowflake:nth-child(26) { left: 30%; animation-duration: 14s; animation-delay: 2s; font-size: 1.8em; }
.snowflake:nth-child(27) { left: 35%; animation-duration: 8s; animation-delay: 4s; }
.snowflake:nth-child(28) { left: 40%; animation-duration: 12s; animation-delay: 1s; font-size: 1em; }
.snowflake:nth-child(29) { left: 45%; animation-duration: 11s; animation-delay: 3s; }
.snowflake:nth-child(30) { left: 50%; animation-duration: 9s; animation-delay: 5s; font-size: 2em; }

/* ===== STAFF MODAL POLISH ===== */
#staff-modal.modal {
  background: radial-gradient(circle at 22% 18%, rgba(153, 91, 221, 0.34), rgba(16, 8, 29, 0.85));
  backdrop-filter: blur(4px);
}

#staff-modal .modal-content {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(165deg, #ffffff 0%, #f9f3ff 100%);
  box-shadow: 0 26px 56px rgba(14, 6, 30, 0.45);
  animation: staffModalIn 0.34s ease-out;
}

@keyframes staffModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

#staff-modal .modal-header {
  position: relative;
  padding: 1.25rem 1.2rem 1.05rem;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.24), transparent 45%),
    linear-gradient(145deg, #5c179f 0%, #3f0f7d 100%);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
}

#staff-modal .modal-header::after {
  content: '';
  position: absolute;
  left: 1.2rem;
  right: 1.2rem;
  bottom: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
}

#staff-modal .modal-avatar {
  width: 74px;
  height: 74px;
  border-radius: 16px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 20px rgba(16, 8, 30, 0.3);
}

#staff-modal .modal-name {
  font-size: 1.28rem;
  letter-spacing: 0.01em;
}

#staff-modal .modal-role {
  display: inline-block;
  margin-top: 0.3rem;
  padding: 0.2rem 0.56rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.34);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

#staff-modal .close {
  top: 0.7rem;
  right: 0.7rem;
  width: 36px;
  height: 36px;
  background: rgba(28, 10, 53, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.52);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 8px 16px rgba(11, 5, 22, 0.35);
}

#staff-modal .close:hover {
  background: rgba(28, 10, 53, 0.9);
  background: rgba(28, 10, 53, 0.9);
}

#staff-modal .modal-body {
  padding: 1.15rem 1.2rem 1.2rem;
  color: #38214f;
}

#staff-modal .modal-description {
  margin-bottom: 0.9rem;
  padding: 0.72rem 0.85rem;
  border-radius: 12px;
  background: rgba(106, 27, 154, 0.08);
  border: 1px solid rgba(106, 27, 154, 0.2);
  font-style: normal;
  line-height: 1.55;
}

#staff-modal .modal-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

#staff-modal .modal-roles .badge {
  font-size: 0.8rem;
  padding: 0.3em 0.6em;
  margin: 0;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
}

#staff-modal .modal-roles .badge.badge-owner { background: #e61700; color: #fff; }
#staff-modal .modal-roles .badge.badge-manager { background: #660101; color: #fff; }
#staff-modal .modal-roles .badge.badge-sradmin { background: #ff1900; color: #fff; }
#staff-modal .modal-roles .badge.badge-admin { background: #ff4e3a; color: #fff; }
#staff-modal .modal-roles .badge.badge-gestorestaff { background: #ffcb00; color: #000; }
#staff-modal .modal-roles .badge.badge-gestorecommunity { background: #ffcb00; color: #000; }
#staff-modal .modal-roles .badge.badge-gestoresocial { background: #ffcb00; color: #000; }
#staff-modal .modal-roles .badge.badge-supporter { background: #ffcb00; color: #000; }
#staff-modal .modal-roles .badge.badge-srdeveloper { background: #00a18f; color: #fff; }
#staff-modal .modal-roles .badge.badge-developer { background: #00bcd4; color: #fff; }
#staff-modal .modal-roles .badge.badge-jrdev { background: #48eaff; color: #fff; }
#staff-modal .modal-roles .badge.badge-srmod { background: #0051dd; color: #fff; }
#staff-modal .modal-roles .badge.badge-mod { background: #3a82ff; color: #fff; }
#staff-modal .modal-roles .badge.badge-helper { background: #00aa00; color: #fff; }
#staff-modal .modal-roles .badge.badge-srbuilder { background: #aa6000; color: #fff; }
#staff-modal .modal-roles .badge.badge-builder { background: #ff8400; color: #fff; }
#staff-modal .modal-roles .badge.badge-dungeonmaster { background: #136118; color: #fff; }
#staff-modal .modal-roles .badge.badge-graphic { background: #f600ff; color: #fff; }
#staff-modal .modal-roles .badge.badge-jrgraphic { background: #f955ff; color: #fff; }
#staff-modal .modal-roles .badge.badge-editor { background: #e8aeff; color: #fff; }

#staff-modal .social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
}

#staff-modal .social-icon {
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(106, 27, 154, 0.12);
  border: 1px solid rgba(106, 27, 154, 0.26);
  color: #4a148c;
}

#staff-modal .social-icon:hover {
  transform: translateY(-2px) scale(1.06);
  background: rgba(106, 27, 154, 0.2);
}

#staff-modal .modal-body hr {
  border-top: 1px solid rgba(106, 27, 154, 0.18);
  margin: 0.85rem 0;
}

#staff-modal .modal-body > p:not(.modal-description) {
  margin: 0.45rem 0;
  padding: 0.56rem 0.65rem;
  border-radius: 10px;
  background: rgba(106, 27, 154, 0.06);
  border: 1px solid rgba(106, 27, 154, 0.16);
}

@media (max-width: 768px) {
  #staff-modal .modal-content {
    border-radius: 16px;
  }

  #staff-modal .modal-header {
    padding: 1rem 0.95rem 0.9rem;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
  }

  #staff-modal .modal-avatar {
    width: 58px;
    height: 58px;
    border-radius: 14px;
  }

  #staff-modal .modal-name {
    font-size: 1.08rem;
  }

  #staff-modal .modal-body {
    padding: 0.95rem;
  }
}

/* Responsive per neve: riduci numero e dimensione su mobile */
@media (max-width: 768px) {
    .snowflake {
        font-size: 1em;
    }
    .snowflake:nth-child(n+16) {
        display: none; /* Riduci numero fiocchi su mobile per performance */
    }
}