:root {
  --blue: #1f4e79;
  --blue-soft: #356a9a;
  --snow: #fafafa;
  --rock: #d9d9d9;
  --graphite: #24303a;
  --graphite-soft: #55697a;
  --accent: #c62828;
  --accent-soft: #ef5350;
  --warm-bg: #f1f4f7;
  --line: rgba(31, 47, 61, 0.14);
  --card: rgba(255, 255, 255, 0.96);
  --shadow: 0 14px 30px rgba(26, 42, 58, 0.12);
  --shadow-blue: 0 16px 34px rgba(11, 58, 92, 0.12);
  --radius-lg: 20px;
  --radius-md: 14px;
  --max: 1180px;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --admin-ink: #0d2d49;
  --admin-accent: #3a8fd6;
  --admin-accent-2: #f28c28;
  --admin-accent-3: #22b573;
  --admin-glow: 0 22px 46px rgba(15, 52, 84, 0.16);
  --admin-radius: 18px;
  --admin-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 779px) {
  .season-calendar-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Nessun fade da opacity:0: se il browser congela la timeline (tab in background,
   stampa, screenshot) il contenuto resterebbe invisibile. Solo movimento. */
@keyframes adminFadeInUp {
  from {
    transform: translateY(10px);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes adminGradientShift {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: linear-gradient(180deg, #f4f9ff 0%, #f7f9fa 45%, #ffffff 100%);
  color: var(--graphite);
  font-family: "Inter", sans-serif;
  scroll-behavior: smooth;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.16;
}

p {
  margin: 0;
  color: var(--graphite-soft);
  line-height: 1.6;
  font-family: "Inter", sans-serif;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 0.6rem;
  z-index: 200;
  background: var(--blue);
  color: #fff;
  padding: 0.6rem 0.9rem;
  border-radius: 10px;
  font-weight: 800;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0.6rem;
}

.container {
  width: min(100% - 1.4rem, var(--max));
  margin-inline: auto;
}

body.no-scroll {
  overflow: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 252, 255, 0.94);
  border-bottom: 1px solid rgba(31, 78, 121, 0.22);
  backdrop-filter: blur(11px);
  transition: box-shadow 0.28s ease, background 0.28s ease;
  overflow: visible;
}

@media (max-width: 779px) {
  .topbar {
    backdrop-filter: none;
  }
}

body.no-js .nav {
  flex-wrap: wrap;
  align-items: flex-start;
  row-gap: 0.45rem;
  padding-block: 0.4rem 0.55rem;
}

body.no-js .menu-button,
body.no-js .menu-overlay,
body.no-js .menu-close {
  display: none;
}

body.no-js .menu {
  position: static;
  transform: none;
  width: 100%;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 0.2rem 0 0.35rem;
  background: transparent;
}

body.no-js .menu .nav-item {
  display: block;
}

body.no-js .menu .submenu {
  display: grid;
  padding-left: 0;
}

.topbar.scrolled {
  background: rgba(250, 252, 255, 0.98);
  box-shadow: 0 10px 24px rgba(12, 35, 59, 0.16);
}

.nav {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  position: relative;
  transition: min-height 0.28s ease;
}

.nav-main {
  border-top: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
  flex: 1;
  max-width: calc(100% - 90px);
  margin-top: 0.2rem;
  z-index: 3;
}

.logo-box {
  width: 42px;
  aspect-ratio: 1;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font: 800 0.82rem/1 "Nunito", sans-serif;
  background: linear-gradient(130deg, var(--blue-soft), var(--blue));
}

.logo-img {
  max-height: 122px;
  width: auto;
  transform: translateY(30px);
  filter: drop-shadow(0 16px 22px rgba(13, 44, 71, 0.32));
  transition: max-height 0.28s ease, transform 0.28s ease;
}

.topbar.scrolled .nav {
  min-height: 66px;
}

.topbar.scrolled .logo-img {
  max-height: 52px;
  transform: translateY(0);
  filter: drop-shadow(0 7px 12px rgba(13, 44, 71, 0.18));
}

.brand-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 800;
  font-size: 0.82rem;
  font-family: "Nunito", sans-serif;
}

.brand-text small {
  display: none;
  color: var(--blue-soft);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-top: 0.1rem;
  font-family: "Nunito", sans-serif;
}

.menu-button {
  border: 1px solid rgba(31, 78, 121, 0.18);
  background: linear-gradient(160deg, #ffffff, #eef7ff);
  color: #173d5f;
  border-radius: 999px;
  padding: 0.5rem 0.72rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  flex: none;
  position: relative;
  z-index: 70;
  touch-action: manipulation;
  box-shadow: 0 8px 18px rgba(17, 50, 78, 0.1);
}

.menu-button-bar {
  position: relative;
  width: 18px;
  height: 2px;
  background: var(--graphite);
  display: inline-block;
}

.menu-button-bar::before,
.menu-button-bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--graphite);
}

.menu-button-bar::before {
  top: -6px;
}

.menu-button-bar::after {
  top: 6px;
}

.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(15, 30, 42, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.menu-close {
  justify-self: end;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--graphite);
  font-size: 1.4rem;
  line-height: 1;
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  width: 100vw;
  max-width: none;
  display: grid;
  align-content: start;
  gap: 0.2rem;
  background:
    radial-gradient(circle at 18% 0%, rgba(223, 240, 255, 0.9), transparent 34%),
    linear-gradient(180deg, #ffffff, #f5faff);
  border-left: 0;
  border-radius: 0;
  box-shadow: none;
  padding: 4.2rem 0.9rem 1.4rem;
  transform: translateX(100%);
  transition: transform 0.34s var(--ease-out);
  overflow-y: auto;
}

.menu.open {
  transform: translateX(0);
}

.nav-item {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.2rem;
}

.menu-link {
  padding: 0.85rem 0.8rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--graphite-soft);
  font-size: 1.06rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 0.48rem;
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease;
}

.menu-link i {
  width: 1.1em;
  color: #2d76aa;
  font-size: 0.95em;
  text-align: center;
  transition: color 0.22s ease, transform 0.22s ease;
}

.menu-link:hover i,
.menu-link:focus-visible i,
.menu-link.active i {
  color: #fff;
  transform: scale(1.08);
}

.menu-link:hover,
.menu-link:focus-visible,
.menu-link.active {
  background: linear-gradient(135deg, #1f4e79, #2d76aa);
  color: #fff;
  transform: translateY(-1px);
}

.submenu-toggle {
  min-width: 44px;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 800;
}

.submenu {
  grid-column: 1 / -1;
  display: none;
  gap: 0.1rem;
  padding: 0 0 0.35rem 0.2rem;
}

.nav-item.open .submenu {
  display: grid;
}

.nav-item.open .submenu-toggle {
  border-color: rgba(11, 58, 92, 0.2);
  background: #f1f8ff;
}

.submenu-link {
  margin-left: 0.4rem;
  min-height: 40px;
  padding: 0.58rem 0.7rem;
  border-radius: 10px;
  color: var(--graphite-soft);
  font-weight: 700;
}

.submenu-link:hover,
.submenu-link:focus-visible {
  background: #fff6ea;
  color: #8f4f14;
}

.section {
  padding: 3rem 0;
}

.mountain-divider {
  position: relative;
  height: 42px;
  margin: -0.4rem 0 0;
  background:
    linear-gradient(145deg, rgba(58, 110, 165, 0.08), rgba(242, 140, 40, 0.08)),
    linear-gradient(to top right, transparent 49%, rgba(58, 110, 165, 0.16) 50%, transparent 51%),
    linear-gradient(to top left, transparent 49%, rgba(242, 140, 40, 0.2) 50%, transparent 51%);
  background-size: auto, 46px 42px, 62px 42px;
  background-position: 0 0, 0 0, 28px 0;
}

.hero {
  position: relative;
  overflow: clip;
  padding: 2.4rem 0 2.9rem;
}

.hero-cinematic {
  background: linear-gradient(170deg, rgba(222, 233, 244, 0.86), rgba(250, 250, 250, 0.95));
}

.home-hero-grid {
  display: grid;
  gap: 0.9rem;
}

.home-hero-bleed {
  min-height: clamp(430px, 66vh, 650px);
  display: grid;
  align-items: end;
  position: relative;
  isolation: isolate;
  padding-top: clamp(2.2rem, 5vw, 4.2rem);
}

.home-hero-bleed::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(8, 22, 37, 0.64) 0%, rgba(11, 45, 74, 0.54) 40%, rgba(25, 67, 102, 0.34) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.18), transparent 35%);
  z-index: 1;
}

.home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.home-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.05);
  animation: heroDrift 16s ease-in-out infinite alternate;
}

.home-subtitle {
  margin: 0.3rem 0 0.7rem;
  color: var(--blue);
  font-size: clamp(1.1rem, 3.9vw, 1.7rem);
}

.home-hero-copy-wide {
  position: relative;
  z-index: 2;
  padding: 1.3rem 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(10, 35, 57, 0.42);
  backdrop-filter: blur(3px);
  border-radius: 6px;
  max-width: 840px;
}

.home-hero-copy-centered {
  margin-inline: auto;
  text-align: center;
}

.home-hero-copy-centered .lead {
  margin-inline: auto;
}

.home-hero-copy-centered .cta-row {
  justify-content: center;
}

.page-hero-about .container {
  display: grid;
  gap: 0.75rem;
}

.page-hero-about .section-title {
  font-size: clamp(1.7rem, 4.2vw, 2.6rem);
}

.page-hero-about p {
  max-width: 78ch;
}

.home-hero-copy-wide .headline,
.home-hero-copy-wide .home-subtitle,
.home-hero-copy-wide .lead {
  color: #f4f8fc;
}

.home-hero-copy-wide .home-subtitle {
  color: #d8e8fa;
}

.home-hero-media {
  display: grid;
  gap: 0.75rem;
}


.page-hero-kids,
.hero-about-formation {
  background:
    radial-gradient(110% 100% at 12% 0%, rgba(255, 255, 255, 0.34), transparent 56%),
    linear-gradient(160deg, rgba(232, 245, 255, 0.86), rgba(255, 246, 230, 0.9));
}
.home-hero-logo-wrap {
  max-width: 220px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
}

.section-spacer {
  height: clamp(1rem, 3vw, 2rem);
}

.membership-price-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 1rem;
}

.membership-price-card {
  border: 1px solid rgba(31, 78, 121, 0.16);
  border-radius: 16px;
  min-height: 150px;
  padding: 1.25rem 1.35rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 24px rgba(18, 46, 70, 0.08);
  display: grid;
  align-content: center;
  gap: 0.35rem;
  border-top: 4px solid #f28c28;
}

.membership-price-card span {
  font-size: 0.95rem;
}

.membership-price-card small {
  font-weight: 700;
}

.activity-choice-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.activity-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(31, 78, 121, 0.16);
  border-radius: 10px;
  background: rgba(247, 249, 250, 0.8);
  cursor: pointer;
}

.activity-choice:has(input:checked) {
  border-color: #f28c28;
  background: #fff5e9;
}

.activity-choice span {
  display: grid;
  gap: 0.18rem;
}

.activity-choice small {
  color: #55697a;
}

.outing-logistics-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.outing-logistics-card {
  border: 1px solid rgba(31, 78, 121, 0.16);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.outing-logistics-card .activity-choice {
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #f8fbfd;
}

.outing-logistics-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.65rem;
  padding: 0.8rem 0.9rem 0.95rem;
  border-top: 1px solid var(--line);
}

.outing-logistics-fields label {
  font-size: 0.82rem;
}

.outing-logistics-fields select {
  min-height: 40px;
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
}

.price-summary {
  display: grid;
  gap: 0.25rem;
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid #f28c28;
  background: #fff5e9;
}

.price-summary span {
  color: #55697a;
  font-weight: 800;
}

.price-summary strong {
  color: #143f62;
  font-size: 1.45rem;
}

.price-summary small {
  color: #55697a;
}

.membership-price-card span,
.membership-price-card small {
  display: block;
  color: #55697a;
  font-weight: 800;
}

.membership-price-card strong {
  display: block;
  margin: 0.15rem 0 0.25rem;
  color: #143f62;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  line-height: 1;
}

.membership-price-card.featured {
  border-color: rgba(242, 140, 40, 0.36);
  background: linear-gradient(150deg, #ffffff, #fff3e4);
}

.membership-form-panel {
  margin-top: 0;
}

.section-spacer + .membership-form-panel {
  margin-top: 1.5rem;
}

body:not(.admin-shell-page) .page-hero-about p {
  max-width: none;
}

/* Testi a piena larghezza: le griglie generiche diventano multi-colonna a
   780px, troppo presto per paragrafi brevi che finiscono per sembrare
   spezzati su tablet. Queste sezioni restano a colonna singola più a lungo. */
.chi-siamo-grid-main,
.gs-path-grid,
.formation-requirements-grid {
  grid-template-columns: 1fr !important;
}

@media (min-width: 960px) {
  .chi-siamo-grid-main,
  .formation-requirements-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .gs-path-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 700px) and (max-width: 959px) {
  .gs-path-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

.clothing-category-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.4rem;
}

.clothing-category-card {
  padding: 1.1rem 1.2rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(31, 78, 121, 0.14);
  border-top: 5px solid #1f4e79;
  box-shadow: 0 10px 22px rgba(18, 46, 70, 0.06);
}

.clothing-category-card:nth-child(3n+2) {
  border-top-color: #f28c28;
}

.clothing-category-card:nth-child(3n) {
  border-top-color: #2f7b65;
}

.clothing-category-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}

.clothing-category-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #1f4e79, #2d77ac);
  color: #fff;
  font-size: 1.05rem;
}

.clothing-category-card:nth-child(3n+2) .clothing-category-icon {
  background: linear-gradient(145deg, #f28c28, #f4a94f);
}

.clothing-category-card:nth-child(3n) .clothing-category-icon {
  background: linear-gradient(145deg, #2f7b65, #4ea486);
}

.clothing-category-head h3 {
  margin: 0;
  font-size: 1.02rem;
  color: #143f62;
}

.clothing-category-head small {
  display: block;
  margin-top: 0.1rem;
  color: #8393a0;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.clothing-item-list {
  display: grid;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.clothing-item-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  background: #f6f9fc;
  transition: background 0.18s ease;
}

.clothing-item-row:hover {
  background: #eef5fb;
}

.clothing-item-check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 2px solid rgba(31, 78, 121, 0.32);
  background: #fff;
}

.clothing-item-body {
  flex: 1 1 auto;
  min-width: 0;
  display: block;
}

.clothing-item-name {
  color: #2c3e4a;
  font-weight: 700;
  font-size: 0.9rem;
}

.clothing-item-note {
  display: block;
  margin-top: 0.1rem;
  color: #7a8994;
  font-size: 0.76rem;
  font-weight: 500;
}

.clothing-item-qty {
  flex: 0 0 auto;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: #eaf3fb;
  color: #1f4e79;
  font-weight: 800;
  font-size: 0.76rem;
  white-space: nowrap;
}

.tips-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
  margin-top: 1.2rem;
}

.camp-info-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.3rem;
}

.camp-info-card {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: 1.1rem 1.2rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(31, 78, 121, 0.14);
  border-top: 4px solid #1f4e79;
  box-shadow: 0 10px 22px rgba(18, 46, 70, 0.06);
}

.camp-info-card:nth-child(3n+2) {
  border-top-color: #f28c28;
}

.camp-info-card:nth-child(3n) {
  border-top-color: #2f7b65;
}

.camp-info-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #1f4e79, #2d77ac);
  color: #fff;
  font-size: 1rem;
}

.camp-info-card:nth-child(3n+2) .camp-info-icon {
  background: linear-gradient(145deg, #f28c28, #f4a94f);
}

.camp-info-card:nth-child(3n) .camp-info-icon {
  background: linear-gradient(145deg, #2f7b65, #4ea486);
}

.camp-info-card h3 {
  margin: 0;
  font-size: 1rem;
  color: #143f62;
}

.camp-info-card p {
  margin: 0;
  color: #405464;
  font-size: 0.9rem;
  line-height: 1.6;
}

.camp-info-card .list-clean {
  margin: 0;
}

@media (min-width: 700px) {
  .camp-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .camp-info-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.tip-card {
  display: grid;
  gap: 0.5rem;
  padding: 1.05rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(160deg, #fff, #fff8ef);
  border: 1px solid rgba(241, 135, 58, 0.22);
}

.tip-card-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #1f4e79, #2d77ac);
  color: #fff;
}

.tip-card h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #143f62;
}

.tip-card p {
  margin: 0;
  color: #55697a;
  font-size: 0.85rem;
  line-height: 1.55;
}

@media (min-width: 700px) {
  .clothing-category-grid,
  .tips-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .clothing-category-grid,
  .tips-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.statute-toolbar {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  align-items: center;
}

.statute-intro {
  margin: 0;
  padding: 0.9rem 1rem;
  border-left: 4px solid #f28c28;
  border-radius: 0 12px 12px 0;
  background: #fff7ec;
  color: #405464;
}

.statute-toc {
  scroll-margin-top: 96px;
  margin-bottom: 1.2rem;
  padding: clamp(1.1rem, 3vw, 1.6rem);
  background: linear-gradient(165deg, #f4f9fd, #eef7fc);
}

.statute-index-title {
  margin: 0 0 0.9rem;
  color: #143f62;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.statute-toc-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .statute-toc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1000px) {
  .statute-toc-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.statute-toc-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid rgba(31, 78, 121, 0.14);
  color: #2c3e4a;
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.statute-toc-link:hover,
.statute-toc-link:focus-visible,
.statute-toc-link.is-active {
  color: #b35d14;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(20, 38, 56, 0.12);
  border-color: rgba(242, 140, 40, 0.4);
}

.statute-index-num {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #1f4e79, #2d77ac);
  color: #fff;
  font: 800 0.72rem/1 "Sora", sans-serif;
}

.statute-articles {
  display: grid;
  gap: 1.1rem;
}

.statute-article {
  position: relative;
  scroll-margin-top: 96px;
  padding: 1.3rem 1.3rem 1.1rem 1.5rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid rgba(31, 78, 121, 0.14);
  border-left: 6px solid #1f4e79;
  box-shadow: 0 10px 22px rgba(18, 46, 70, 0.06);
}

.statute-article:nth-child(even) {
  border-left-color: #f28c28;
}

.statute-article-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.9rem;
}

.statute-badge {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(145deg, #1f4e79, #2d77ac);
  color: #fff;
  font: 800 1.05rem/1 "Sora", sans-serif;
}

.statute-article:nth-child(even) .statute-badge {
  background: linear-gradient(145deg, #f28c28, #f4a94f);
}

.statute-article-head h2 {
  margin: 0;
  color: #143f62;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
}

.statute-article-head h2 small {
  display: block;
  margin-top: 0.15rem;
  color: #8393a0;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.statute-section {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.65rem 0;
  border-top: 1px dashed rgba(31, 78, 121, 0.16);
}

.statute-section:nth-child(even) {
  background: rgba(244, 249, 253, 0.6);
  border-radius: 8px;
}

.statute-section:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.statute-number {
  color: #b8c3cb;
  font: 800 0.72rem/1.4 "Sora", sans-serif;
}

.statute-section p {
  margin: 0;
  color: #3a4a55;
  line-height: 1.72;
}

.statute-list {
  display: grid;
  gap: 0.4rem;
  margin: 0.55rem 0 0;
  padding: 0;
  list-style: none;
}

.statute-list li {
  position: relative;
  padding-left: 1.35rem;
  line-height: 1.6;
}

.statute-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f4e79, #f28c28);
}

.statute-article-back {
  margin: 0.9rem 0 0;
  text-align: right;
}

.statute-article-back a {
  color: #8393a0;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.statute-article-back a:hover,
.statute-article-back a:focus-visible {
  color: #b35d14;
  text-decoration: underline;
}

.statute-closing {
  margin: 1.5rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(31, 78, 121, 0.16);
  color: #6d7f8c;
  font-size: 0.85rem;
  text-align: center;
}

@media (max-width: 560px) {
  .statute-section {
    grid-template-columns: 1.8rem minmax(0, 1fr);
    gap: 0.4rem;
  }

  .statute-badge {
    width: 44px;
    height: 44px;
    font-size: 0.9rem;
  }
}

@media print {
  .topbar,
  .footer,
  .statute-toc,
  .statute-toolbar,
  .statute-article-back,
  .cookie-banner {
    display: none !important;
  }

  .statute-article {
    box-shadow: none;
    border: 1px solid #ccc;
    break-inside: avoid;
  }
}

@media (max-width: 860px) {
  .membership-price-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .membership-price-grid {
    grid-template-columns: 1fr;
  }
}

.phone-country {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: 0.25rem;
  color: #55697a;
  font-size: 0.78rem;
  font-weight: 800;
}

.form-hint {
  margin: 0.35rem 0 0;
  padding: 0.65rem 0.8rem;
  border-left: 3px solid #f28c28;
  background: #fff5e9;
  color: #55697a;
  font-size: 0.88rem;
}

.home-hero-logo {
  max-height: 72px;
  width: auto;
}

.home-hero-photo {
  min-height: 300px;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: linear-gradient(145deg, #2b6da0, #8ec8e8);
}

.home-hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-hero-photo-fallback {
  background:
    radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.58), transparent 14%),
    linear-gradient(135deg, transparent 0 46%, rgba(255, 255, 255, 0.3) 46% 48%, transparent 48%),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.02) 45%),
    linear-gradient(135deg, rgba(40, 88, 139, 0.9), rgba(110, 170, 218, 0.8));
  background-size: 130% 130%;
  animation: framePan 20s ease-in-out infinite alternate;
}

.home-hero-photo-fallback::after,
.home-join-fallback::after,
.hero-photo-fallback::after,
.slide-fallback::after,
.photo-frame-2::after,
.photo-frame-4::after {
  content: "\f7c9";
  font: var(--fa-font-solid);
  position: absolute;
  right: 1rem;
  bottom: 0.9rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.7rem, 5vw, 3rem);
  text-shadow: 0 8px 18px rgba(7, 24, 39, 0.22);
}

.home-join {
  border: 1px solid rgba(58, 110, 165, 0.18);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  display: grid;
  box-shadow: var(--shadow-blue);
}

.home-join-photo {
  min-height: 240px;
  background: linear-gradient(145deg, #2b6da0, #8ec8e8);
  position: relative;
  overflow: hidden;
}

.home-join-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}

.home-join:hover .home-join-photo img {
  transform: scale(1.04);
}

.home-join-fallback {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 0 44%, rgba(255, 255, 255, 0.26) 44% 46%, transparent 46%),
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.04) 48%),
    linear-gradient(145deg, rgba(32, 96, 147, 0.9), rgba(123, 179, 218, 0.84));
}

.home-join-copy {
  padding: 1.2rem;
  display: grid;
  gap: 0.7rem;
}

.page-hero-actions {
  justify-content: start;
  margin-top: 0.25rem;
}

.compact-info-card {
  display: grid;
  gap: 0.28rem;
  min-height: auto;
  padding: 1rem 1rem 1rem 1.05rem;
  position: relative;
  overflow: hidden;
  border-left: 4px solid rgba(47, 105, 151, 0.72);
}

.compact-info-card::after {
  content: "";
  position: absolute;
  right: -18px;
  bottom: -22px;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(242, 140, 40, 0.2), transparent 68%);
}

.compact-info-card strong {
  color: #143f62;
  font-size: 0.98rem;
}

.compact-info-card span {
  color: #55697a;
  line-height: 1.45;
  font-size: 0.9rem;
}

.activity-hero-cards {
  margin-top: 1rem;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  z-index: -1;
  filter: blur(2px);
}

.hero::before {
  width: 300px;
  height: 300px;
  right: -120px;
  top: -30px;
  background: radial-gradient(circle, rgba(241, 135, 58, 0.33), rgba(241, 135, 58, 0.02));
}

.hero::after {
  width: 280px;
  height: 280px;
  left: -130px;
  bottom: -100px;
  background: radial-gradient(circle, rgba(42, 98, 135, 0.25), rgba(42, 98, 135, 0.02));
}

.grid {
  display: grid;
  gap: 0.85rem;
}

.grid-2,
.grid-3 {
  display: grid;
  gap: 0.8rem;
}

.panel {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  box-shadow: var(--shadow);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 32px rgba(20, 38, 56, 0.15);
}

.panel-warm {
  background: linear-gradient(160deg, #fff9f2, #fff);
  border-color: rgba(242, 140, 40, 0.28);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.panel-warm:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(242, 140, 40, 0.16);
}

.headline {
  font-size: clamp(1.95rem, 6.5vw, 3.4rem);
  max-width: 16ch;
  margin-bottom: 0.65rem;
}

.lead {
  max-width: 62ch;
  margin-bottom: 1rem;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.chip {
  border-radius: 999px;
  background: #e3f3ff;
  color: var(--blue);
  border: 1px solid rgba(42, 98, 135, 0.22);
  padding: 0.29rem 0.64rem;
  font: 700 0.75rem/1 "Nunito", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cta-row {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: 1fr;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 6px;
  padding: 0.82rem 1.3rem;
  min-height: 46px;
  font: 800 0.95rem/1 "Nunito", sans-serif;
  border: 0;
  cursor: pointer;
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s ease, background 0.22s ease;
}

.btn::after {
  content: "\f061";
  font: var(--fa-font-solid);
  font-size: 0.82em;
  margin-left: 0.52rem;
  transform: translateX(0);
  transition: transform 0.22s var(--ease-out);
}

.btn:hover::after,
.btn:focus-visible::after {
  transform: translateX(3px);
}

.btn[type="submit"]::after,
.cookie-dialog__actions .btn::after,
.cookie-banner__actions .btn::after,
.menu-button::after {
  content: none;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(130deg, var(--blue-soft), var(--blue));
  box-shadow: 0 8px 16px rgba(31, 78, 121, 0.24);
}

.btn-ghost {
  border: 2px solid rgba(31, 78, 121, 0.2);
  color: var(--blue);
  background: #fff;
}

.news-grid {
  gap: 0.9rem;
}

.news-card {
  border-radius: 16px;
  border-left: 6px solid var(--accent);
  background: #ffffff;
  position: relative;
  overflow: hidden;
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 0.65rem;
  isolation: isolate;
}

.news-card::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.news-card h3 {
  color: #183d5f;
  margin-bottom: 0.45rem;
}

.news-card .btn {
  width: fit-content;
  min-height: 40px;
  padding-inline: 1rem;
}

.news-card-cover {
  border-radius: 8px;
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.news-article-cover {
  border-radius: var(--radius-lg);
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  margin-bottom: 0.8rem;
}

.news-article-body {
  margin-top: 0.6rem;
  color: var(--graphite);
  line-height: 1.7;
}

.news-article-body h2,
.news-article-body h3,
.news-article-body h4 {
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  color: #143f62;
}

.news-article-body p {
  margin-bottom: 0.7rem;
}

.news-article-body ul,
.news-article-body ol {
  padding-left: 1.3rem;
  margin-bottom: 0.7rem;
}

.news-article-body img {
  max-width: 100%;
  border-radius: 10px;
  margin: 0.6rem 0;
}

.news-article-body blockquote {
  border-left: 4px solid var(--accent);
  padding-left: 0.8rem;
  color: var(--graphite-soft);
  font-style: italic;
}

.calendar-timeline {
  display: grid;
  gap: 0.65rem;
}

.calendar-highlight {
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.3rem;
  margin-bottom: 0.9rem;
  color: #fff;
  background:
    radial-gradient(circle at 86% 18%, rgba(255, 255, 255, 0.26), transparent 17%),
    linear-gradient(135deg, #0d3f63, #1c6a97 60%, #f1873a 150%);
  box-shadow: var(--shadow-blue);
  position: relative;
  overflow: hidden;
}

.calendar-highlight::after {
  content: "\f7c9";
  font: var(--fa-font-solid);
  position: absolute;
  right: 1rem;
  bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.22);
  font-size: 3.4rem;
}

.calendar-highlight-kicker {
  margin: 0 0 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 800;
  color: #eaf6ff;
}

.calendar-highlight-main {
  margin: 0;
  font-size: 1.05rem;
  color: #fff;
}

.calendar-highlight-notes {
  margin: 0.3rem 0 0;
  color: #eaf6ff;
}

.calendar-item {
  border: 1px solid rgba(31, 78, 121, 0.2);
  border-left: 6px solid #1f4e79;
  border-radius: 14px;
  background: linear-gradient(160deg, #ffffff, #f4f8fc);
  padding: 0.8rem;
}

.calendar-item h3 {
  margin: 0.15rem 0 0.3rem;
  color: #143f62;
}

.calendar-item p {
  margin: 0;
}

.calendar-date {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: #2d6998;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tab-btn {
  border: 1px solid rgba(31, 78, 121, 0.25);
  background: #f4f9fe;
  color: #153e60;
  border-radius: 999px;
  min-height: 40px;
  padding: 0.45rem 0.75rem;
  font-weight: 800;
  font-size: 0.84rem;
}

.tab-btn.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(140deg, #1f4e79, #2f6997);
}

.tab-panel {
  margin-top: 0.8rem;
}

.calendar-carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
}

.calendar-viewport {
  overflow: hidden;
}

.calendar-track {
  display: flex;
  transition: transform 0.36s ease;
}

.calendar-track .calendar-item {
  min-width: 100%;
}

.calendar-nav {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(31, 78, 121, 0.25);
  background: #f7fbff;
  color: #1f4e79;
  font-weight: 800;
}

.hero-card {
  min-height: 270px;
  border-radius: var(--radius-lg);
  padding: 1.2rem;
  color: #fff;
  background: linear-gradient(140deg, #194f77, #0d2f4d);
  display: grid;
  align-content: end;
}

.hero-card p {
  color: #d7eaf7;
}

.hero-card-list li {
  color: #d7eaf7;
}

.hero-photo {
  min-height: 270px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, #2b6da0, #8ec8e8);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-photo-fallback {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.5), transparent 13%),
    linear-gradient(135deg, transparent 0 46%, rgba(255, 255, 255, 0.26) 46% 48%, transparent 48%),
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.02) 45%),
    linear-gradient(135deg, rgba(40, 88, 139, 0.9), rgba(110, 170, 218, 0.8));
  background-size: 130% 130%;
  animation: framePan 20s ease-in-out infinite alternate;
}

.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-photo::after {
  content: "Bambini e famiglie sulla neve";
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  color: #ffffff;
  font-weight: 800;
  font-family: "Nunito", sans-serif;
}

.welcome-strip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff;
  border: 1px solid rgba(241, 135, 58, 0.3);
  border-radius: 999px;
  padding: 0.4rem 0.9rem 0.4rem 0.4rem;
  font: 800 0.85rem/1 "Nunito", sans-serif;
  color: var(--blue);
  box-shadow: 0 8px 18px rgba(241, 135, 58, 0.16);
  margin-bottom: 1rem;
}

.welcome-strip span.avatar-dot {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 0.9rem;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
}

.story-grid {
  display: grid;
  gap: 0.9rem;
}

.value-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(241, 135, 58, 0.2);
  background: linear-gradient(160deg, #fff, #fff8ee);
  padding: 1.15rem;
  display: grid;
  gap: 0.5rem;
  box-shadow: 0 12px 24px rgba(241, 135, 58, 0.1);
}

.value-card .icon-dot {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
}

.trust-row {
  display: grid;
  gap: 0.7rem;
}

.trust-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.trust-item .icon-dot {
  width: 44px;
  height: 44px;
  flex: none;
  font-size: 1rem;
  border-radius: 12px;
}

.trust-item p {
  margin: 0;
}

.avatar-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.6rem;
}

.avatar-circle {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  color: #fff;
  font: 800 0.9rem/1 "Nunito", sans-serif;
  background: linear-gradient(135deg, var(--blue-soft), var(--blue));
  flex: none;
}

.cta-banner {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.4rem;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #0d3f63, #1c6a97 55%, #f1873a 140%);
  box-shadow: 0 24px 48px rgba(11, 58, 92, 0.28);
}

.cta-banner h2 {
  color: #fff;
}

.cta-banner p {
  color: #eaf6ff;
  max-width: 56ch;
  margin: 0.6rem auto 1.1rem;
}

.cta-banner .cta-row {
  justify-content: center;
  grid-template-columns: 1fr;
}

.cta-banner .btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.pill {
  border-radius: 999px;
  border: 1px solid rgba(42, 98, 135, 0.2);
  padding: 0.3rem 0.62rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--blue);
  background: #eff8ff;
}

.icon-grid {
  display: grid;
  gap: 0.8rem;
}

.icon-card {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 0.65rem;
  align-items: start;
}

.icon-dot {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font: 800 1.15rem/1 "Nunito", sans-serif;
  color: #fff;
  background: linear-gradient(135deg, var(--blue-soft), var(--blue));
}

.testimonial {
  border-left: 4px solid var(--accent);
  padding-left: 0.75rem;
}

.testimonial small {
  display: block;
  margin-top: 0.45rem;
  color: var(--blue);
  font-weight: 700;
}

.activity-card {
  display: grid;
  gap: 0.55rem;
}

.activity-photo {
  height: 150px;
  border-radius: 12px;
  background: linear-gradient(140deg, #0f4368, #7db6da);
  position: relative;
  overflow: hidden;
}

.activity-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.activity-photo.kids {
  background: linear-gradient(140deg, #f08c3f, #ffd5ad);
}

.activity-photo.camp {
  background: linear-gradient(140deg, #0d2f4b, #6ea4cb);
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.meta-badge {
  border-radius: 999px;
  padding: 0.25rem 0.52rem;
  background: #edf7ff;
  border: 1px solid rgba(42, 98, 135, 0.22);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.8rem;
}

.filter-row select {
  max-width: 220px;
}

.wizard {
  display: grid;
  gap: 0.7rem;
}

.wizard-steps {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.wizard-step {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--graphite-soft);
  background: #fff;
}

.wizard-step.active {
  color: var(--blue);
  border-color: rgba(42, 98, 135, 0.45);
  background: #e8f5ff;
}

.wizard-panel {
  display: grid;
  gap: 0.58rem;
}

.smart-form.wizard-ready .wizard-panel {
  display: none;
}

.smart-form.wizard-ready .wizard-panel.active {
  display: grid;
  gap: 0.58rem;
}

.wizard-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.wizard-actions .btn {
  min-width: 140px;
}

.wizard-step-note {
  font-size: 0.8rem;
  color: var(--graphite-soft);
  font-weight: 600;
}

.faq-item {
  border-top: 1px solid var(--line);
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.faq-item h4 {
  margin-bottom: 0.25rem;
}

.faq-item summary {
  cursor: pointer;
  font-family: var(--font-title, inherit);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--graphite, #173f5b);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  font-weight: 700;
  color: var(--blue);
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item summary:hover {
  color: var(--blue);
}

.faq-item p {
  margin-top: 0.5rem;
  color: var(--graphite-soft);
}

.faq-section + .faq-section {
  margin-top: 2rem;
}

.faq-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.faq-toc a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.faq-toc a:hover {
  border-color: var(--blue);
  color: var(--blue);
}

.map-box {
  border-radius: 12px;
  border: 1px solid var(--line);
  min-height: 220px;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #f1f8ff, #d9ecfa);
  color: var(--blue);
  font-weight: 700;
}

.muted {
  color: #6a7e8f;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.85rem;
  background: rgba(11, 33, 54, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-banner__content {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  gap: 0.7rem;
  color: #f2f8ff;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cookie-dialog {
  width: min(680px, calc(100% - 1.4rem));
  border: 1px solid rgba(31, 78, 121, 0.22);
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 26px 56px rgba(11, 30, 49, 0.35);
}

.cookie-dialog::backdrop {
  background: rgba(7, 23, 38, 0.6);
}

.cookie-dialog__panel {
  display: grid;
  gap: 0.7rem;
  padding: 1.1rem;
}

.cookie-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  border: 1px solid rgba(31, 78, 121, 0.18);
  background: #f6fbff;
  border-radius: 12px;
  padding: 0.62rem 0.72rem;
  font-size: 0.9rem;
}

.cookie-choice input[type="checkbox"] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  margin-top: 0.15rem;
  flex: none;
}

.cookie-choice-fixed {
  background: #edf2f7;
}

.cookie-dialog__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mt-8 {
  margin-top: 0.8rem;
}

.narrow-720 {
  max-width: 720px;
}

.narrow-760 {
  max-width: 760px;
}

.slider {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.slider-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  transition: transform 0.5s ease;
}

.slide {
  aspect-ratio: 16 / 9;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0f4368, #7db6da);
}

.slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.slide-fallback {
  position: absolute;
  inset: 0;
  background-size: 130% 130%;
  animation: framePan 19s ease-in-out infinite alternate;
}

.slide-fallback-1 {
  background-image: radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.44), transparent 14%), linear-gradient(145deg, #0f4368, #7db6da);
}

.slide-fallback-2 {
  background-image: radial-gradient(circle at 72% 20%, rgba(255, 255, 255, 0.42), transparent 14%), linear-gradient(145deg, #f08c3f, #ffd5ad);
}

.slide-fallback-3 {
  background-image: radial-gradient(circle at 74% 20%, rgba(255, 255, 255, 0.42), transparent 14%), linear-gradient(145deg, #0d2f4b, #6ea4cb);
}

.slide:nth-child(2) {
  background: linear-gradient(135deg, #f0883d, #ffcc9e);
}

.slide:nth-child(3) {
  background: linear-gradient(135deg, #0d2f4b, #5d93ba);
}

.slide p {
  position: absolute;
  left: 0.8rem;
  bottom: 0.8rem;
  color: #fff;
  font-weight: 700;
}

.inline-controls {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.inline-controls button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.stat {
  border-radius: 12px;
  border: 1px solid rgba(42, 98, 135, 0.2);
  text-align: center;
  background: linear-gradient(150deg, #fff, #eef8ff);
  padding: 0.72rem;
}

.stat strong {
  display: block;
  color: var(--blue);
  font-size: 1.25rem;
}

.section-title {
  font-size: clamp(1.5rem, 4.2vw, 2.4rem);
  margin-bottom: 0.55rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding-top: 2.2rem;
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
}

.page-hero::before {
  width: 380px;
  height: 380px;
  right: -140px;
  top: -120px;
  background: radial-gradient(circle, rgba(11, 58, 92, 0.18), rgba(11, 58, 92, 0.01));
  animation: driftBlob 11s ease-in-out infinite alternate;
}

.page-hero::after {
  width: 320px;
  height: 320px;
  left: -120px;
  bottom: -150px;
  background: radial-gradient(circle, rgba(241, 135, 58, 0.2), rgba(241, 135, 58, 0.01));
  animation: driftBlob 14s ease-in-out infinite alternate-reverse;
}

.page-hero-activities {
  background: linear-gradient(160deg, rgba(210, 235, 251, 0.35), rgba(255, 247, 233, 0.85));
}

.page-hero-membership {
  background: linear-gradient(160deg, rgba(255, 244, 224, 0.6), rgba(231, 246, 255, 0.7));
}

.page-hero-media {
  background:
    radial-gradient(120% 100% at 10% 0%, rgba(255, 255, 255, 0.28), transparent 54%),
    linear-gradient(160deg, rgba(232, 245, 255, 0.78), rgba(238, 244, 250, 0.9));
}

.page-hero-camp {
  background: linear-gradient(165deg, rgba(224, 241, 253, 0.68), rgba(255, 249, 236, 0.92));
}

.page-hero-about {
  background: linear-gradient(170deg, rgba(232, 245, 255, 0.75), rgba(255, 244, 226, 0.84));
}

.hero-about-story {
  background:
    radial-gradient(95% 130% at 10% 0%, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0) 58%),
    linear-gradient(170deg, rgba(227, 241, 255, 0.84), rgba(255, 247, 232, 0.86));
}

.hero-about-team {
  background:
    radial-gradient(95% 130% at 10% 0%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 58%),
    linear-gradient(170deg, rgba(236, 240, 255, 0.82), rgba(248, 242, 255, 0.84));
}

.hero-about-values {
  background:
    radial-gradient(95% 130% at 10% 0%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 58%),
    linear-gradient(170deg, rgba(255, 247, 232, 0.86), rgba(245, 237, 214, 0.86));
}

.about-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.95rem 0 1.25rem;
}

.about-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.52rem 0.85rem;
  color: #153e60;
  border: 1px solid rgba(31, 78, 121, 0.28);
  background: #f4f9fe;
  font-size: 0.84rem;
  font-weight: 800;
}

.about-nav a:hover,
.about-nav a:focus-visible,
.about-nav a.active {
  color: #fff;
  background: linear-gradient(140deg, #1f4e79, #2f6997);
  border-color: transparent;
}

.team-card {
  gap: 0.5rem;
}

.team-avatar {
  height: 120px;
  border-radius: 16px;
  background-image: linear-gradient(145deg, rgba(12, 43, 69, 0.74), rgba(31, 78, 121, 0.44));
  background-size: 100% 100%;
  background-position: center;
  overflow: hidden;
}

.team-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gs-path-grid {
  gap: 0.75rem;
}

.monitor-form-card {
  border-color: rgba(241, 135, 58, 0.35);
  background: linear-gradient(160deg, #fff, #fff8ee);
}

.value-hero-card {
  border-color: rgba(31, 78, 121, 0.24);
  background: linear-gradient(160deg, #f6fbff, #fff8ef);
  border-radius: 18px;
}

.value-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
}

.value-card {
  display: grid;
  gap: 0.6rem;
  border-radius: 18px;
  overflow: hidden;
}

.value-token {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 42px;
  border: 0;
  color: #1f4e79;
  font: 800 0.95rem/1 "Nunito", sans-serif;
  letter-spacing: 0.08em;
  border-radius: 999px;
  background: linear-gradient(145deg, #dff0ff, #ffffff);
  box-shadow: inset 0 0 0 1px rgba(31, 78, 121, 0.2);
}

.sponsor-cta-card {
  border: 1px solid rgba(31, 78, 121, 0.24);
  background: linear-gradient(150deg, #f4faff, #fff8ef);
}

.sponsor-cta-card .smart-form {
  margin-top: 0.7rem;
}

.sponsor-logo-grid {
  gap: 0.9rem;
}

.sponsor-logo-card {
  min-height: 220px;
  border-radius: 16px;
}

.sponsor-logo-box {
  min-height: 136px;
  border-radius: 14px;
}

.subnav-card {
  margin-top: 0.9rem;
  border: 1px solid rgba(42, 98, 135, 0.2);
  border-radius: 18px;
  padding: 0.9rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(242, 248, 253, 0.94));
  box-shadow: 0 12px 24px rgba(18, 46, 70, 0.08);
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.6rem 0 1rem;
}

.subnav-strong {
  margin-bottom: 0;
}

.subnav a {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--blue);
  border: 1px solid rgba(42, 98, 135, 0.2);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
  background: #f2f9ff;
}

.subnav-strong a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-width: 2px;
  background: linear-gradient(160deg, #f8fcff, #ebf6ff);
}

.list-clean li {
  position: relative;
  padding-left: 1.25rem;
}

.list-clean li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.64em;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #1f4e79, #f28c28);
}

.subnav-strong a:hover,
.subnav-strong a:focus-visible {
  color: #8f4f14;
  border-color: rgba(241, 135, 58, 0.45);
  background: linear-gradient(160deg, #fff8ee, #fff0de);
}

.subnav-sticky {
  position: sticky;
  top: 72px;
  z-index: 20;
  padding: 0.4rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(42, 98, 135, 0.18);
  backdrop-filter: blur(8px);
}

.subnav-sticky a.active {
  color: #8f4f14;
  border-color: rgba(241, 135, 58, 0.5);
  background: linear-gradient(165deg, #fff8ee, #ffe7cf);
}

.visual-row {
  margin-top: 1rem;
  display: grid;
  gap: 0.85rem;
}

.photo-frame {
  min-height: 180px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 14px 28px rgba(11, 58, 92, 0.14);
  background-size: 130% 130%;
  animation: framePan 18s ease-in-out infinite alternate;
  position: relative;
  overflow: hidden;
}

.photo-frame-1 {
  background-image: linear-gradient(145deg, rgba(12, 43, 69, 0.55), rgba(20, 90, 135, 0.25)), url('/assets/img/home/web_home_hero.jpeg');
  background-size: cover;
  background-position: center;
}

.photo-frame-2 {
  background-image: linear-gradient(140deg, rgba(240, 140, 63, 0.86), rgba(255, 214, 166, 0.75)), radial-gradient(circle at 80% 25%, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0));
}

.photo-frame-3 {
  background-image: linear-gradient(145deg, rgba(14, 48, 73, 0.58), rgba(31, 78, 121, 0.25)), url('/assets/img/home/web_home_join-club.jpeg');
  background-size: cover;
  background-position: center;
}

.photo-frame-4 {
  background-image: linear-gradient(140deg, rgba(11, 82, 79, 0.82), rgba(149, 203, 176, 0.72)), radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0));
}

@keyframes framePan {
  0% {
    background-position: 0% 0%;
    transform: scale(1);
  }
  100% {
    background-position: 100% 100%;
    transform: scale(1.02);
  }
}

@keyframes driftBlob {
  0% {
    transform: translateY(0) translateX(0);
  }
  100% {
    transform: translateY(18px) translateX(-14px);
  }
}

@keyframes heroDrift {
  0% {
    transform: scale(1.04) translateX(0);
  }
  100% {
    transform: scale(1.1) translateX(-1.2%);
  }
}

.list-clean {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--graphite-soft);
  line-height: 1.6;
}

.list-clean li + li {
  margin-top: 0.35rem;
}

.kicker {
  margin-top: 0.7rem;
  font-weight: 700;
  color: var(--blue);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(31, 47, 61, 0.24);
  border-radius: 10px;
  padding: 0.72rem 0.72rem;
  min-height: 46px;
  color: var(--graphite);
  font: inherit;
  font-size: 16px;
  background: #fff;
}

.amount-input-compact {
  width: 70px;
}

.alert-banner-heading {
  display: grid;
  gap: 0.15rem;
  text-align: center;
}

.alert-banner-heading .alert-banner-title,
.alert-banner-heading .alert-banner-subtitle,
.alert-banner-text {
  margin-inline: auto;
  text-align: center;
}

.alert-banner-heading .alert-banner-subtitle {
  font-weight: 800;
}

.editor-column {
  width: 50%;
  vertical-align: top;
}

.error-page-section {
  min-height: 52vh;
  display: grid;
  align-items: center;
  background: linear-gradient(145deg, #eef7fc, #fff8ed);
}

.error-page-card {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  border-top: 5px solid #f28c28;
  text-align: center;
}

.error-page-card .kicker {
  margin-top: 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.error-page-card .section-title {
  margin-inline: auto;
}

.error-page-card .cta-row {
  justify-content: center;
}

input[type="checkbox"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin: 0;
  accent-color: var(--blue);
  border-radius: 4px;
}

input[type="radio"] {
  width: 18px;
  min-width: 18px;
  height: 18px;
  min-height: 18px;
  padding: 0;
  margin: 0;
  accent-color: var(--blue);
  border-radius: 50%;
}

label {
  display: grid;
  gap: 0.2rem;
  color: var(--graphite-soft);
  font-weight: 700;
  font-size: 0.86rem;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.field-error {
  min-height: 1em;
  color: #a63820;
  font-size: 0.78rem;
}

.membership-panel {
  background: linear-gradient(160deg, #fff, #fff8ef);
  border-color: rgba(241, 135, 58, 0.26);
}

.form-block {
  margin: 0 0 0.85rem;
  border: 1px dashed rgba(42, 98, 135, 0.35);
  border-radius: 14px;
  padding: 0.8rem;
}

.form-block legend {
  font-weight: 800;
  color: var(--blue);
  font-size: 0.9rem;
  padding: 0 0.35rem;
}

.form-grid {
  display: grid;
  gap: 0.6rem;
}

.form-grid-2 {
  grid-template-columns: 1fr;
}

/* Un elemento marcato [hidden] deve restare nascosto anche se una classe come
   .form-grid imposta display:grid: le regole author hanno sempre priorita' sullo
   user-agent stylesheet, quindi serve una regola esplicita con specificita' pari o superiore. */
[data-show-when][hidden],
.smart-form [hidden] {
  display: none !important;
}

.choice-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.choice-pill {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1 1 150px;
  min-height: 2.75rem;
  margin: 0;
  padding: 0.6rem 1rem;
  border: 1px solid rgba(26, 68, 101, 0.22);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
  color: var(--graphite-soft);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.choice-pill input {
  margin: 0;
  flex: none;
}

.choice-pill:hover {
  border-color: rgba(58, 110, 165, 0.5);
}

.choice-pill:has(input:checked) {
  border-color: #3a6ea5;
  background: #eaf3fb;
  color: #1f4e79;
  box-shadow: inset 0 0 0 1px rgba(58, 110, 165, 0.35);
}

@media (max-width: 480px) {
  .choice-pill {
    flex: 1 1 100%;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.info-tip-label {
  display: flex !important;
  align-items: center;
  gap: 0.35rem;
}

.info-tip {
  position: relative;
  display: inline-flex;
}

.info-tip-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(58, 110, 165, 0.14);
  color: #3a6ea5;
  cursor: pointer;
  font-size: 0.8rem;
}

.info-tip-trigger:hover,
.info-tip-trigger:focus-visible {
  background: rgba(58, 110, 165, 0.28);
}

.info-tip-content {
  display: none;
  position: absolute;
  z-index: 5;
  top: 130%;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  max-width: min(80vw, 300px);
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #173f5b;
  color: #fff;
  font-weight: 500;
  font-size: 0.78rem;
  line-height: 1.4;
  text-transform: none;
  box-shadow: 0 12px 24px rgba(11, 32, 51, 0.28);
}

.info-tip.is-open .info-tip-content {
  display: block;
}

@media (hover: hover) {
  .info-tip:hover .info-tip-content {
    display: block;
  }
}

@media (max-width: 480px) {
  .info-tip-content {
    left: auto;
    right: -0.5rem;
    transform: none;
  }
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.status-banner {
  margin-top: 0.8rem;
  border: 1px solid rgba(42, 98, 135, 0.2);
  background: #e9f6ff;
  color: var(--blue);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.alert-banner-wrap {
  background: linear-gradient(90deg, #8a1f1f, #be3a2b);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.alert-banner {
  min-height: 56px;
  display: grid;
  align-items: center;
  gap: 0.2rem;
  padding: 0.65rem 0;
  color: #fff;
}

.alert-banner-title {
  margin: 0;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.alert-banner-text {
  margin: 0;
  color: #fff4ef;
  font-weight: 700;
}

.alert-banner-link {
  color: #fff;
  font-weight: 800;
  text-decoration: underline;
  width: fit-content;
}

.footer {
  padding: 2.6rem 0 1.6rem;
  color: #d6e4f2;
  font-size: 0.92rem;
  background:
    radial-gradient(circle at 8% 10%, rgba(76, 160, 224, 0.18), transparent 30%),
    radial-gradient(circle at 86% 16%, rgba(242, 140, 40, 0.17), transparent 31%),
    linear-gradient(180deg, #0a2b47, #0f3557 52%, #102d48);
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.footer-compact {
  padding: 1.6rem 0 1.1rem;
}

.footer-mini {
  display: grid;
  gap: 1rem;
  align-items: center;
}

.footer-mini-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-mini-logo {
  max-height: 40px;
  width: auto;
}

.footer-mini-title {
  margin: 0;
  font-weight: 800;
  color: #fff;
  font-size: 0.98rem;
}

.footer-mini-sub {
  margin: 0.1rem 0 0;
  font-size: 0.8rem;
  color: #b9d3ea;
}

.footer-mini-sub a {
  color: #cfe4f6;
  text-decoration: underline;
}

.footer-mini-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.footer-mini-links a {
  color: #d6e4f2;
  font-weight: 700;
  font-size: 0.86rem;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}

.footer-mini-links a:hover,
.footer-mini-links a:focus-visible {
  color: #fff;
  text-decoration: underline;
}

.footer-mini-social {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
}

.icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #f2f8ff;
  font: 800 0.68rem/1 "Nunito", sans-serif;
  letter-spacing: 0.02em;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: rgba(255, 255, 255, 0.2);
}

.icon-btn-text {
  width: auto;
  border-radius: 999px;
  padding: 0 0.7rem;
  font-size: 0.76rem;
}

.footer-mini-bottom {
  margin-top: 1.1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(223, 238, 255, 0.2);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #b9d3ea;
}

.footer-mini-bottom a {
  color: #cfe4f6;
}

.menu-cta {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}

.admin-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 6% 10%, rgba(58, 143, 214, 0.16), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(242, 140, 40, 0.14), transparent 35%),
    radial-gradient(circle at 50% 90%, rgba(34, 181, 115, 0.1), transparent 40%),
    linear-gradient(180deg, #eef5fc, #ffffff 48%);
  background-size: 200% 200%;
  animation: adminGradientShift 18s ease infinite;
}

.admin-page .section {
  padding: 2.4rem 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.admin-page .section-title {
  font-size: clamp(1.55rem, 3.4vw, 2.2rem);
}

.admin-page .panel {
  border-radius: var(--admin-radius);
  border-color: rgba(31, 78, 121, 0.2);
  box-shadow: var(--admin-glow);
}

.admin-page .panel h3 {
  color: #143f62;
}

.admin-page .kicker {
  color: #2f6693;
}

.admin-page .grid.grid-3,
.admin-page .grid.grid-2 {
  gap: 0.95rem;
}

.admin-eyebrow {
  margin: 0 0 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.75rem;
  color: #2e6c9a;
  font-weight: 800;
}

.admin-login-card {
  max-width: 760px;
  margin: 0 auto;
  display: grid;
  gap: 0.65rem;
  width: 100%;
}

.admin-login-modern {
  max-width: 980px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(31, 78, 121, 0.22);
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.97), rgba(245, 251, 255, 0.95));
  backdrop-filter: blur(6px);
  position: relative;
}

.admin-login-modern::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(120deg, var(--admin-accent), var(--admin-accent-2), var(--admin-accent-3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.55;
  pointer-events: none;
}

.admin-login-main {
  padding: 1.6rem 1.4rem;
  display: grid;
  gap: 0.65rem;
  position: relative;
}

.admin-login-photo {
  min-height: 210px;
  background-image:
    linear-gradient(145deg, rgba(9, 36, 58, 0.34), rgba(13, 71, 112, 0.26)),
    url('/assets/img/home/hero-family.png');
  background-size: cover;
  background-position: center;
}

.admin-login-form {
  display: grid;
  gap: 0.58rem;
}

.admin-alert {
  border: 1px solid rgba(166, 56, 32, 0.34);
  background: #fff1ee;
  color: #962f19;
  border-radius: 12px;
  padding: 0.6rem 0.72rem;
  font-weight: 700;
}

.admin-alert-warning {
  border-color: rgba(179, 130, 21, 0.4);
  background: #fff8e6;
  color: #7a5410;
}

.admin-note {
  border: 1px solid rgba(31, 78, 121, 0.22);
  background: #eef7ff;
  color: #1d4f78;
  border-radius: 12px;
  padding: 0.56rem 0.68rem;
}

.admin-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.48rem;
  margin-top: 0.35rem;
}

.admin-trust-row span {
  border-radius: 999px;
  border: 1px solid rgba(31, 78, 121, 0.24);
  background: #eff7ff;
  color: #1f4e79;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.58rem;
}

.news-editor-layout {
  display: grid;
  gap: 0.85rem;
}

.news-editor-shell {
  border: 1px solid rgba(31, 78, 121, 0.22);
  background: #fff;
  padding: 0.7rem;
  border-radius: 12px;
}

.news-editor-surface {
  min-height: 480px;
  font-size: 1rem;
  line-height: 1.65;
}

.news-helper-card {
  border: 1px dashed rgba(31, 78, 121, 0.3);
  background: #f8fbff;
  border-radius: 12px;
  padding: 0.72rem;
}

.news-helper-card h3 {
  margin-bottom: 0.35rem;
}

.news-template-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.news-template-btn {
  border: 1px solid rgba(31, 78, 121, 0.28);
  background: #fff;
  color: #1f4e79;
  border-radius: 999px;
  min-height: 34px;
  padding: 0.28rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 800;
}

.news-template-btn:hover,
.news-template-btn:focus-visible {
  background: #ebf6ff;
}

.admin-shell-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  align-items: flex-start;
}

.admin-shell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-stat-card {
  background: linear-gradient(160deg, #0f446b, #1f4e79);
  color: #eff8ff;
}

.admin-stat-card h3,
.admin-stat-card .muted {
  color: #eff8ff;
}

.admin-stat-value {
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1;
  font-weight: 800;
  margin: 0.42rem 0;
}

.admin-quick-card {
  display: grid;
  gap: 0.64rem;
}

.admin-quick-card .cta-row {
  grid-template-columns: 1fr;
}

.legal-layout {
  display: grid;
  gap: 0.85rem;
}

.legal-panel {
  display: grid;
  gap: 0.45rem;
}

.contact-card {
  display: grid;
  gap: 0.5rem;
}

.contatti-layout {
  display: grid;
  gap: 0.9rem;
}

.contatti-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 0.3rem;
}

.contatti-photo-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.contatti-social.footer-mini-social .icon-btn {
  background: #eef7ff;
  color: var(--blue);
  border-color: rgba(31, 78, 121, 0.22);
}

.contatti-social.footer-mini-social .icon-btn:hover,
.contatti-social.footer-mini-social .icon-btn:focus-visible {
  background: #dcefff;
}

.contatti-news-teaser {
  border-top: 1px dashed var(--line);
  padding-top: 0.6rem;
}

.media-card {
  display: grid;
  gap: 0.52rem;
}

.media-card-img,
.media-card-placeholder {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  margin-bottom: 0.45rem;
  object-fit: cover;
}

.media-card-placeholder {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.46), transparent 14%),
    linear-gradient(135deg, transparent 0 45%, rgba(255, 255, 255, 0.28) 45% 47%, transparent 47%),
    linear-gradient(145deg, rgba(31, 78, 121, 0.92), rgba(112, 169, 211, 0.86));
}

.media-card-video {
  background:
    radial-gradient(circle at 75% 20%, rgba(255, 255, 255, 0.46), transparent 14%),
    linear-gradient(145deg, rgba(198, 90, 37, 0.92), rgba(244, 174, 98, 0.86));
}

.media-card-placeholder::after {
  content: "\f03e";
  font: var(--fa-font-solid);
  position: absolute;
  right: 1rem;
  bottom: 0.85rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 2.2rem;
}

.media-card-video::after {
  content: "\f144";
}

.legal-hub {
  display: grid;
  gap: 0.9rem;
}

.legal-hub-intro {
  display: grid;
  gap: 0.55rem;
}

.legal-summary-list {
  border-left: 4px solid rgba(31, 78, 121, 0.35);
  background: linear-gradient(160deg, #f7fbff, #ffffff);
  border-radius: 12px;
  padding: 0.7rem 0.9rem 0.7rem 1rem;
}

.legal-doc-grid {
  gap: 0.9rem;
}

.legal-doc-card {
  display: grid;
  gap: 0.5rem;
}

.legal-doc-card h3 {
  color: #143f62;
}

.legal-doc-card .list-clean {
  margin-top: 0.05rem;
}

.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(31, 78, 121, 0.16);
  border-radius: 12px;
  margin: 0.8rem 0;
  background: #fff;
}

.legal-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.68rem 0.75rem;
  border-bottom: 1px solid rgba(31, 78, 121, 0.12);
}

.legal-table th {
  color: #143f62;
  background: #f3f8fd;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.legal-table tr:last-child td {
  border-bottom: 0;
}

.legal-hub-note {
  border-color: rgba(31, 78, 121, 0.25);
  background: linear-gradient(160deg, #f6fbff, #eef7ff);
}

.sponsor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
}

.sponsor-logo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.sponsor-logo-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 0.8rem;
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  text-align: center;
  color: inherit;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.sponsor-logo-card-featured {
  grid-column: span 2;
}

.sponsor-logo-card:hover,
.sponsor-logo-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 24px rgba(20, 38, 56, 0.14);
}

.sponsor-logo-box {
  width: 100%;
  min-height: 120px;
  border-radius: 10px;
  border: 1px solid rgba(31, 78, 121, 0.18);
  background: #fff;
  display: grid;
  place-items: center;
  padding: 0.8rem;
}

.sponsor-logo-img {
  width: 100%;
  max-height: 118px;
  object-fit: contain;
}

.sponsor-logo-fallback {
  display: inline-grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: #eef6ff;
  color: var(--blue);
  font: 800 1rem/1 "Nunito", sans-serif;
}

.sponsor-logo-name {
  margin: 0;
  font-weight: 800;
  color: #153e60;
  line-height: 1.35;
}

.sponsor-pill {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.7rem 0.35rem 0.35rem;
  font-weight: 700;
  color: var(--graphite);
}

.sponsor-pill small {
  display: block;
  color: var(--graphite-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.sponsor-pill.is-placeholder {
  border-style: dashed;
  opacity: 0.8;
}

.sponsor-mark {
  width: 30px;
  height: 30px;
  border-radius: 4px;
  display: grid;
  place-items: center;
  color: #fff;
  font: 800 0.72rem/1 "Nunito", sans-serif;
  background: linear-gradient(130deg, var(--blue-soft), var(--blue));
}

.sponsor-mark-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.66s ease, transform 0.66s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (min-width: 780px) {
  .container {
    width: min(100% - 2.2rem, var(--max));
  }

  .menu-button {
    display: none;
  }

  .menu-overlay {
    display: none;
  }

  .menu {
    position: static;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    transform: none;
    width: auto;
    padding: 0;
    overflow: visible;
    pointer-events: auto;
    display: flex;
    align-items: center;
    gap: 0.12rem;
    margin-left: auto;
  }

  .nav-item {
    position: relative;
    display: block;
    padding-block: 0.45rem;
  }

  .menu-link {
    min-height: auto;
    padding: 0.48rem 0.64rem;
    border-radius: 999px;
    font-size: 0.9rem;
    line-height: 1.1;
  }

  .brand-text {
    font-size: 0.82rem;
  }

  .brand-text small {
    display: block;
    font-size: 0.62rem;
  }

  .alert-banner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.8rem;
  }

  .alert-banner-title {
    white-space: nowrap;
  }

  .submenu-toggle {
    display: none;
  }

  .submenu {
    position: absolute;
    left: 0;
    top: calc(100% - 0.08rem);
    min-width: 240px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow-blue);
    padding: 0.5rem;
    z-index: 65;
  }

  .has-children::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 0.55rem;
  }

  .submenu-link {
    margin-left: 0;
  }

  .has-children:hover .submenu,
  .has-children:focus-within .submenu {
    display: grid;
  }

  .menu-close {
    display: none;
  }

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

  .home-hero-grid {
    grid-template-columns: 1.08fr 0.92fr;
    align-items: center;
  }

  .home-hero-copy-wide {
    max-width: 1080px;
    padding: 2.1rem 2.4rem;
  }

  .home-hero-copy-centered .headline {
    max-width: none;
    white-space: nowrap;
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .calendar-timeline {
    grid-template-columns: 1fr 1fr;
  }

  .icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .visual-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .page-hero-about .visual-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .trust-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cta-banner {
    padding: 3rem 2rem;
  }

  .cta-row {
    grid-template-columns: repeat(3, max-content);
  }

  .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .footer-mini {
    grid-template-columns: auto 1fr auto;
  }

  .legal-layout {
    grid-template-columns: 1fr 1fr;
  }

  .contatti-layout {
    grid-template-columns: 1fr 1fr;
  }

  .legal-layout > :first-child {
    grid-column: 1 / -1;
  }

  .legal-hub-note {
    grid-column: 1 / -1;
  }

  .home-join {
    grid-template-columns: 1fr 1fr;
  }

  .sponsor-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sponsor-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .value-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =====================================================================
   Admin shell v2 — sidebar, topbar, tables, tabs, editor, uploads
   ===================================================================== */

.admin-shell-page {
  background:
    radial-gradient(circle at 12% 0%, rgba(58, 143, 214, 0.16), transparent 38%),
    radial-gradient(circle at 88% 4%, rgba(242, 140, 40, 0.13), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(34, 181, 115, 0.08), transparent 40%),
    #eef3f8;
  min-height: 100vh;
}

.admin-shell {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: min(86vw, 330px);
  background: linear-gradient(190deg, #0a2338, #123a5c 55%, #0d2d49 100%);
  color: #eaf3fb;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.6rem;
  padding: 1.1rem 0.9rem;
  transform: translateX(-100%);
  transition: transform 0.32s var(--admin-ease);
  z-index: 80;
  overflow-y: auto;
  box-shadow: 12px 0 40px rgba(5, 20, 34, 0.28);
}

.admin-sidebar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58, 143, 214, 0.14), transparent 40%);
  pointer-events: none;
}

.admin-sidebar.open {
  transform: translateX(0);
}

.admin-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.3rem 0.3rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  position: relative;
}

.admin-sidebar-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3a8fd6, #1f4e79);
  font: 800 0.78rem/1 "Nunito", sans-serif;
  flex: none;
}

.admin-sidebar-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.08);
  padding: 2px;
  flex: none;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.admin-sidebar-title {
  margin: 0;
  font-weight: 800;
  font-size: 0.92rem;
  color: #fff;
}

.admin-sidebar-sub {
  margin: 0.1rem 0 0;
  font-size: 0.76rem;
  color: #9fc2e2;
}

.admin-nav {
  display: grid;
  gap: 1rem;
  align-content: start;
  overflow-y: auto;
  position: relative;
}

.admin-nav-group {
  display: grid;
  gap: 0.15rem;
}

.admin-nav-group-label {
  margin: 0 0.4rem 0.2rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-weight: 800;
  color: #7fa9cd;
}

.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.72rem;
  border-radius: 12px;
  color: #d9e8f6;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
  transition: transform 0.18s var(--admin-ease), background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.admin-nav-link i {
  width: 1.65rem;
  height: 1.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #9fc2e2;
  background: rgba(255, 255, 255, 0.06);
  text-align: center;
  transition: background 0.18s ease, color 0.18s ease;
}

.admin-nav-link.active i,
.admin-nav-link:hover i,
.admin-nav-link:focus-visible i {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.admin-nav-link:hover,
.admin-nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  transform: translateX(3px);
}

.admin-nav-link.active {
  background: linear-gradient(120deg, #3a8fd6, #1f4e79);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  box-shadow: 0 10px 22px rgba(6, 24, 41, 0.4), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.admin-sidebar-foot {
  display: grid;
  gap: 0.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 0.6rem;
}

.admin-nav-link-danger {
  color: #ffb3a7;
}

.admin-sidebar-toggle {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
  font-weight: 800;
  min-height: 40px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-sidebar-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(20, 63, 98, 0.18);
}

.admin-shell-main {
  min-width: 0;
  display: grid;
  grid-template-rows: auto 1fr;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 1rem;
  position: relative;
}

.admin-topbar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: linear-gradient(90deg, var(--admin-accent), var(--admin-accent-2), var(--admin-accent-3));
  opacity: 0.85;
}

.admin-topbar-title {
  flex: 1;
  min-width: 0;
}

.admin-topbar-title h1 {
  font-size: clamp(1.05rem, 3vw, 1.35rem);
  color: #143f62;
}

.admin-topbar-title p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
}

.admin-user-chip {
  border: 1px solid rgba(31, 78, 121, 0.22);
  background: linear-gradient(120deg, #eef7ff, #f5faff);
  color: #1f4e79;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 4px 10px rgba(31, 78, 121, 0.08);
}

.admin-content {
  padding: 1.1rem 0.9rem 2.4rem;
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.admin-flash {
  border-radius: 12px;
  padding: 0.7rem 0.9rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: opacity 0.4s ease;
  animation: adminFadeInUp 0.35s var(--admin-ease) forwards;
}

.admin-flash.is-fading {
  opacity: 0.55;
}

.admin-flash-success {
  background: #e9f8ee;
  border-color: rgba(30, 140, 80, 0.3);
  color: #1e6b3f;
}

.admin-flash-error {
  background: #fdecea;
  border-color: rgba(198, 40, 40, 0.3);
  color: #962f19;
}

.admin-grid {
  display: grid;
  gap: 0.9rem;
}

.admin-grid-2 {
  grid-template-columns: 1fr;
}

.admin-grid-3 {
  grid-template-columns: 1fr;
}

.admin-detail-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
  align-items: start;
}

.admin-detail-main,
.admin-detail-side {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.admin-detail-side {
  position: relative;
}

.admin-panel {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #ffffff, #f8fbff);
  border-radius: var(--admin-radius);
  padding: 1.2rem;
  box-shadow: 0 18px 34px rgba(18, 46, 70, 0.09);
  position: relative;
  overflow: hidden;
  animation: adminFadeInUp 0.4s var(--admin-ease) forwards;
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}

.admin-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--admin-accent), var(--admin-accent-2));
  opacity: 0;
  transition: opacity 0.22s ease;
}

.admin-panel:hover::before {
  opacity: 1;
}

.admin-panel:hover {
  box-shadow: 0 22px 42px rgba(18, 46, 70, 0.13);
}

.admin-medical-panel {
  border-color: #f2b8ac;
  background: linear-gradient(160deg, #fff8f6, #fff);
}

.admin-medical-alert {
  display: grid;
  gap: 0.2rem;
  padding: 0.75rem 0.95rem;
  border-left: 4px solid #d64545;
  border-radius: 0 10px 10px 0;
  background: #fff0ee;
  margin-bottom: 0.75rem;
}

.admin-medical-alert dt {
  color: #b3261e;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-medical-alert dd {
  margin: 0;
  color: #5c2018;
  font-weight: 600;
}

.admin-member-link-form {
  display: grid;
  gap: 0.5rem;
}

.admin-member-search {
  position: relative;
}

.admin-member-search-results {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(31, 47, 61, 0.24);
  border-radius: 10px;
  box-shadow: 0 18px 34px rgba(18, 46, 70, 0.16);
  max-height: 260px;
  overflow-y: auto;
}

.admin-member-search-results li {
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--graphite);
}

.admin-member-search-results li:hover,
.admin-member-search-results li.is-active {
  background: rgba(31, 109, 154, 0.12);
}

.admin-member-search-empty {
  color: var(--graphite-soft);
  cursor: default !important;
}

.admin-member-search-empty:hover {
  background: transparent !important;
}

.admin-btn-link {
  justify-self: start;
  background: none;
  border: none;
  padding: 0;
  color: #a63820;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

.admin-shell-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.9rem;
  background: linear-gradient(135deg, #0f3f63, #1f6d9a 70%, #f28c28 160%);
  color: #fff;
  position: relative;
  isolation: isolate;
}

.admin-shell-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 92% -10%, rgba(255, 255, 255, 0.22), transparent 46%);
  pointer-events: none;
  z-index: -1;
}

.admin-shell-head h2,
.admin-shell-head p,
.admin-shell-head .muted,
.admin-shell-head .admin-eyebrow,
.admin-panel.admin-shell-head h2,
.admin-panel.admin-shell-head h3,
.admin-shell-head h2 i,
.admin-shell-head .admin-eyebrow i {
  color: #fff;
}

.admin-shell-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.admin-shell-head-identity {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.admin-shell-avatar {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: none;
  font: 800 1.05rem/1 "Nunito", sans-serif;
  color: #0f3f63;
  background: linear-gradient(150deg, #fff, #dcecfb);
  box-shadow: 0 8px 18px rgba(6, 24, 41, 0.28);
}

.admin-quick-card {
  display: grid;
  gap: 0.6rem;
  align-content: start;
  min-height: 190px;
}

.admin-quick-card h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.admin-quick-card h3 i {
  width: 2.1rem;
  height: 2.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(140deg, var(--admin-accent-2), #d9720f);
  font-size: 0.85em;
  flex: none;
}

.admin-quick-card .cta-row {
  align-self: end;
}

.admin-panel h2,
.admin-panel h3 {
  color: #143f62;
}

.admin-panel-title-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
  border-radius: 999px;
  padding: 0.24rem 0.62rem;
  font-size: 0.74rem;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform 0.15s ease;
}

.admin-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.admin-badge-success {
  background: #e9f8ee;
  color: #1e6b3f;
  border-color: rgba(30, 140, 80, 0.28);
}

.admin-badge-warning {
  background: #fff6e6;
  color: #8a5a00;
  border-color: rgba(200, 140, 0, 0.28);
}

.admin-badge-danger {
  background: #fdecea;
  color: #962f19;
  border-color: rgba(198, 40, 40, 0.28);
}

.admin-badge-muted {
  background: #eef2f6;
  color: #55697a;
  border-color: rgba(85, 105, 122, 0.24);
}

.admin-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: end;
  margin-bottom: 0.4rem;
}

.admin-filter-bar label {
  min-width: 140px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.admin-tab-btn {
  border: 1px solid rgba(31, 78, 121, 0.25);
  background: #f4f9fe;
  color: #153e60;
  border-radius: 999px;
  min-height: 38px;
  padding: 0.4rem 0.85rem;
  font-weight: 800;
  font-size: 0.82rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.admin-tab-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(31, 78, 121, 0.14);
}

.admin-tab-btn.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(140deg, #1f4e79, #3a8fd6);
  box-shadow: 0 8px 18px rgba(31, 78, 121, 0.28);
}

[data-admin-tabs] {
  display: grid;
  gap: 0.9rem;
}

[data-admin-tabs] [data-tab-panel] {
  border: 1px solid rgba(31, 78, 121, 0.14);
  border-radius: 14px;
  background: #ffffff;
  padding: 1rem;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.admin-panel .admin-table-wrap {
  margin-top: 0.35rem;
}

.admin-table-wrap-wide {
  max-width: 100%;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 640px;
}

.admin-table thead th {
  background: linear-gradient(180deg, #f7fbff, #eef5fc);
  color: #1f4e79;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  position: sticky;
  top: 0;
  z-index: 1;
}

.admin-table th,
.admin-table td {
  padding: 0.6rem 0.7rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.admin-table tbody tr {
  transition: background 0.15s ease;
}

.admin-table tbody tr:hover {
  background: #f5faff;
}

.admin-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-table-compact th,
.admin-table-compact td {
  padding: 0.58rem 0.62rem;
  font-size: 0.82rem;
}

.admin-table td small {
  display: block;
  margin-top: 0.24rem;
  color: #64788a;
  line-height: 1.35;
  max-width: 34ch;
  word-break: break-word;
}

.admin-details summary {
  cursor: pointer;
  color: #1f4e79;
  font-weight: 800;
}

.admin-details pre {
  max-width: min(72vw, 680px);
  max-height: 280px;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid rgba(31, 78, 121, 0.16);
  background: #f5f9fc;
  color: #263b4c;
  padding: 0.75rem;
  font-size: 0.76rem;
  line-height: 1.45;
  white-space: pre-wrap;
}

.sb-detail-list {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.sb-detail-list > div {
  display: grid;
  grid-template-columns: minmax(110px, auto) 1fr;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.sb-detail-list dt {
  color: var(--graphite-soft);
  font-weight: 700;
}

.sb-detail-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-session-link {
  min-width: 118px;
  justify-content: center;
  background: #1f4e79;
  color: #fff;
  border-color: transparent;
}

.admin-session-timeline {
  display: grid;
  gap: 0.7rem;
}

.admin-session-event {
  display: grid;
  gap: 0.45rem;
  border: 1px solid rgba(31, 78, 121, 0.14);
  border-left: 4px solid #2f6997;
  border-radius: 12px;
  padding: 0.85rem;
  background: linear-gradient(160deg, #ffffff, #f6fbff);
}

.admin-session-event > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}

.admin-session-event strong {
  color: #143f62;
}

.admin-session-event small {
  color: #64788a;
  font-weight: 700;
}

.admin-session-event p {
  word-break: break-word;
}

.admin-table th {
  background: #f4f8fc;
  color: #143f62;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-table tr:hover td {
  background: #f8fbfe;
}

.admin-inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.admin-inline-form input[type="text"],
.admin-inline-form input[type="number"],
.admin-inline-form input[type="search"] {
  min-height: 38px;
  width: auto;
}

.admin-mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid rgba(31, 78, 121, 0.25);
  background: #fff;
  color: #1f4e79;
  border-radius: 8px;
  min-height: 34px;
  padding: 0.3rem 0.6rem;
  font-weight: 800;
  font-size: 0.78rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.admin-mini-btn:hover,
.admin-mini-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(31, 78, 121, 0.18);
  background: #f4f9ff;
}

.admin-mini-btn.danger {
  color: #962f19;
  border-color: rgba(198, 40, 40, 0.3);
}

.admin-mini-btn.success {
  color: #1e6b3f;
  border-color: rgba(30, 140, 80, 0.3);
}

.admin-family-details {
  margin-top: 0.45rem;
  font-size: 0.8rem;
}

.admin-family-details summary {
  cursor: pointer;
  color: #1f4e79;
  font-weight: 800;
}

.admin-family-details ul {
  margin: 0.45rem 0 0;
  padding-left: 1.1rem;
}

.admin-payment-editor {
  position: relative;
}

.admin-payment-editor > summary {
  list-style: none;
  cursor: pointer;
}

.admin-payment-editor > summary::-webkit-details-marker {
  display: none;
}

.admin-payment-form {
  position: absolute;
  right: 0;
  z-index: 5;
  display: grid;
  gap: 0.45rem;
  min-width: 250px;
  padding: 0.8rem;
  border: 1px solid rgba(31, 78, 121, 0.2);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(18, 46, 70, 0.16);
}

.admin-payment-form-static {
  position: static;
  min-width: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

.admin-detail-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
}

.admin-detail-list div {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(31, 78, 121, 0.1);
}

.admin-detail-list dt {
  color: #64788a;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-detail-list dd {
  margin: 0;
  color: #143f62;
}

.outing-participant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.outing-participant-card {
  margin: 0;
}

.outing-participant-card .smart-form {
  margin-top: 0.9rem;
}

.outing-quick-table {
  overflow-x: auto;
}

.outing-quick-table .outing-row-unpaid td {
  background: #fff0ee;
}

.outing-quick-table .outing-row-unlinked td:first-child {
  border-left: 4px solid #f28c28;
}

.outing-quick-table tr:hover td {
  filter: brightness(0.98);
}

@media (max-width: 780px) {
  .outing-participant-grid {
    grid-template-columns: 1fr;
  }
}

.admin-request-details {
  margin-top: 0.55rem;
}

.admin-request-details summary {
  color: #1f4e79;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
}

.admin-request-details-body {
  margin-top: 0.5rem;
  padding: 0.65rem;
  border-left: 3px solid #9fc2e2;
  background: #f4f8fc;
  font-size: 0.8rem;
}

.admin-request-details-body p {
  margin: 0.2rem 0 0.65rem;
}

.member-comment-chat {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.member-comment {
  padding: 0.8rem 0.95rem;
  border-left: 3px solid #3a6ea5;
  border-radius: 0 10px 10px 0;
  background: #f4f8fc;
}

.member-comment-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: #1f4e79;
  font-size: 0.8rem;
}

.member-comment-meta time {
  color: #64788a;
  font-weight: 700;
}

.member-comment p {
  margin: 0.4rem 0 0;
}

.admin-stat-strip {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 1fr;
}

.admin-stat-box {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, #fff, #f4f9ff);
  padding: 0.95rem 1rem;
  box-shadow: 0 12px 22px rgba(18, 46, 70, 0.07);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--admin-ease), box-shadow 0.2s ease;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem;
}

.admin-stat-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, var(--admin-accent), var(--admin-accent-2));
}

.admin-stat-box:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px rgba(18, 46, 70, 0.12);
}

.admin-stat-box.has-icon {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.7rem;
}

.admin-stat-box .admin-stat-box-icon,
.admin-stat-box-icon i {
  color: #fff;
}

.admin-stat-box-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  background: linear-gradient(140deg, var(--admin-accent), #2f6fe0);
  box-shadow: 0 8px 16px rgba(31, 78, 121, 0.28);
  flex: none;
}

.admin-stat-box-body {
  min-width: 0;
}

.admin-stat-box strong {
  display: block;
  font-size: 1.5rem;
  color: #143f62;
  line-height: 1.15;
}

.admin-stat-box span {
  font-size: 0.78rem;
  color: var(--graphite-soft);
  font-weight: 700;
}

.admin-upload-field {
  border: 1px dashed rgba(31, 78, 121, 0.35);
  border-radius: var(--admin-radius);
  padding: 0.9rem;
  display: grid;
  gap: 0.5rem;
  background: linear-gradient(160deg, #f8fbff, #eef5fc);
  transition: border-color 0.18s ease, background 0.18s ease;
}

.admin-upload-field:hover {
  border-color: rgba(58, 143, 214, 0.55);
}

.admin-upload-preview {
  max-width: 160px;
  max-height: 160px;
  border-radius: 12px;
  border: 1px solid var(--line);
  object-fit: cover;
  box-shadow: 0 8px 18px rgba(18, 46, 70, 0.1);
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #f7fbff, #eef5fc);
  padding: 0.6rem;
}

.editor-toolbar-sub {
  margin-top: -0.2rem;
  border-top: 0;
  border-radius: 0;
  background: #f8fbff;
}

.editor-toolbar button {
  border: 1px solid rgba(31, 78, 121, 0.18);
  background: #fff;
  color: #1f4e79;
  border-radius: 8px;
  min-height: 38px;
  min-width: 38px;
  padding: 0.34rem 0.56rem;
  font-weight: 800;
  font-size: 0.78rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.editor-toolbar button:hover,
.editor-toolbar button:focus-visible {
  background: linear-gradient(140deg, var(--admin-accent), #2f6fe0);
  color: #fff;
  border-color: transparent;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(31, 78, 121, 0.22);
}

.editor-surface {
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 0 0 10px 10px;
  padding: 0.8rem;
  background: #fff;
  line-height: 1.6;
}

.news-editor-layout {
  display: grid;
  gap: 0.85rem;
}

.news-template-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.news-template-btn {
  border: 1px solid rgba(31, 78, 121, 0.22);
  border-radius: 999px;
  background: #f4f9fe;
  color: #153e60;
  min-height: 36px;
  padding: 0.35rem 0.75rem;
  font-weight: 800;
}

.admin-team-contact a {
  color: #1f4e79;
  font-weight: 800;
  word-break: break-word;
}

.admin-news-alert-panel {
  border-top: 5px solid #f28c28;
}

.admin-news-editor-panel {
  border-top: 5px solid #1f6d9a;
}

.admin-news-list-panel {
  border-top: 5px solid #79a88b;
}

.admin-news-form {
  display: grid;
  gap: 0.85rem;
}

.rbac-matrix {
  display: grid;
  gap: 0.65rem;
}

.rbac-matrix > div {
  border: 1px solid rgba(31, 78, 121, 0.16);
  border-radius: 12px;
  padding: 0.8rem;
  background: linear-gradient(160deg, #ffffff, #f5f9fc);
}

.rbac-matrix strong {
  display: block;
  color: #143f62;
  margin-bottom: 0.25rem;
}

.rbac-matrix span {
  display: block;
  color: #55697a;
  line-height: 1.45;
}

.admin-permission-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem;
  border: 1px solid rgba(31, 78, 121, 0.16);
  border-radius: 12px;
  padding: 0.8rem;
  background: #f8fbff;
}

.admin-permission-grid legend {
  padding-inline: 0.35rem;
  color: #143f62;
  font-weight: 800;
}

.admin-permission-grid label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 34px;
  font-weight: 700;
}

.admin-permission-grid .muted {
  margin: 0.25rem 0 0.1rem;
  padding-top: 0.35rem;
  border-top: 1px dashed rgba(31, 78, 121, 0.18);
}

.admin-role-permission-columns {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.admin-role-permissions-form {
  display: grid;
  gap: 0.75rem;
}

.admin-feature-preview {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid rgba(31, 78, 121, 0.16);
  border-radius: 14px;
  padding: 0.75rem;
  margin-bottom: 0.9rem;
  background: linear-gradient(160deg, #ffffff, #f5f9fc);
}

.admin-feature-preview-img {
  width: 86px;
  height: 58px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(31, 78, 121, 0.12);
}

.admin-feature-preview span {
  display: block;
  color: #64788a;
  margin-top: 0.2rem;
}

.admin-news-editor-panel .editor-toolbar {
  position: sticky;
  top: 0.55rem;
  z-index: 4;
}

.admin-permission-grid legend small {
  color: #64788a;
  font-weight: 700;
}

@media (min-width: 780px) {
  .admin-permission-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-role-permission-columns {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }

  .admin-permission-grid .muted {
    grid-column: 1 / -1;
  }

  .admin-stat-strip {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .admin-grid-2,
  .admin-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.editor-surface:focus {
  outline: 2px solid rgba(31, 78, 121, 0.35);
  outline-offset: -2px;
}

.editor-surface img {
  max-width: 100%;
  border-radius: 8px;
  margin: 0.4rem 0;
}

.editor-surface ul,
.editor-surface ol {
  padding-left: 1.2rem;
}

.admin-empty-state {
  border: 1px dashed rgba(31, 78, 121, 0.3);
  border-radius: 12px;
  padding: 1.4rem;
  text-align: center;
  color: var(--graphite-soft);
  background: #f8fbff;
}

.admin-switch-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.86rem;
  min-height: 40px;
}

.admin-login-hint-box {
  border: 1px dashed rgba(31, 78, 121, 0.3);
  border-radius: 12px;
  padding: 0.8rem;
  background: #f8fbff;
}

.admin-input-min-160 {
  min-width: 160px;
}

.admin-input-w-80 {
  width: 80px;
}

.admin-input-w-90 {
  width: 90px;
}

.admin-table-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.admin-table-avatar {
  width: 52px;
  height: 52px;
  object-fit: cover;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.admin-team-contact {
  max-width: 30ch;
}

/* Card grids per team, sponsor e news: pagine ripensate per contenuto visuale
 * invece della sola tabella, riutilizzano [data-admin-tabs] per la navigazione. */
.admin-card-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

.staff-attendance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.75rem;
  margin: 0.9rem 0;
}

.staff-attendance-grid > label {
  display: grid;
  gap: 0.35rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--admin-radius);
  background: #f8fbfd;
  font-size: 0.86rem;
}

/* Presenze staff: vista per uscita, formulario e console admin. */
.staff-summary-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.staff-summary-box {
  display: grid;
  gap: 0.15rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
}

.staff-summary-box strong {
  font-size: 1.5rem;
  color: var(--blue-deep, #143f62);
  line-height: 1.1;
}

.staff-summary-box span {
  font-size: 0.82rem;
  color: var(--graphite-soft);
}

.staff-outing-card {
  margin-bottom: 1.1rem;
}

.staff-outing-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}

.staff-outing-title {
  flex: 1 1 220px;
}

.staff-outing-title h2,
.staff-outing-title h3 {
  margin: 0 0 0.15rem;
}

.staff-outing-title p {
  margin: 0;
}

.staff-date-badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(160deg, #3a6ea5, #143f62);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
}

.staff-date-badge span {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.staff-date-badge.is-camp {
  background: linear-gradient(160deg, #f28c28, #c96a10);
}

.staff-outing-score {
  display: grid;
  justify-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 12px;
  background: rgba(58, 110, 165, 0.1);
}

.staff-outing-score strong {
  font-size: 1.4rem;
  color: #143f62;
  line-height: 1;
}

.staff-outing-score span {
  font-size: 0.76rem;
  color: var(--graphite-soft);
}

.staff-coverage {
  height: 7px;
  border-radius: 999px;
  background: #e4edf4;
  overflow: hidden;
  margin-bottom: 1rem;
}

.staff-coverage > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4c9f70, #2f7d52);
}

.staff-roster-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.8rem;
}

.staff-roster-col {
  padding: 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fbfdff;
}

.staff-roster-col h2,
.staff-roster-col h3,
.staff-roster-col h4 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.6rem;
  font-size: 0.88rem;
  color: #143f62;
}

.staff-roster-col h2 span,
.staff-roster-col h3 span,
.staff-roster-col h4 span {
  margin-left: auto;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  background: #e8f0f7;
  font-size: 0.76rem;
}

.staff-roster-col.is-available {
  border-color: rgba(76, 159, 112, 0.4);
  background: rgba(76, 159, 112, 0.07);
}

.staff-roster-col.is-pending {
  border-color: rgba(242, 140, 40, 0.42);
  background: rgba(242, 140, 40, 0.08);
}

.staff-roster-col.is-unavailable {
  border-color: rgba(190, 74, 74, 0.32);
  background: rgba(190, 74, 74, 0.06);
}

.staff-chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.staff-chip-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.staff-chip {
  display: inline-grid;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.84rem;
  line-height: 1.25;
}

.staff-chip small {
  font-size: 0.7rem;
  color: var(--graphite-soft);
}

.staff-chip-link {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e8f0f7;
  color: #143f62;
  text-decoration: none;
  font-size: 0.75rem;
}

.staff-roster-empty {
  margin: 0;
  font-size: 0.82rem;
  color: var(--graphite-soft);
}

.staff-flash {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
}

.staff-flash.is-success {
  background: rgba(76, 159, 112, 0.14);
  border: 1px solid rgba(76, 159, 112, 0.45);
  color: #235c3d;
}

.staff-flash.is-error {
  background: rgba(190, 74, 74, 0.12);
  border: 1px solid rgba(190, 74, 74, 0.4);
  color: #8d2f2f;
}

.staff-login-card {
  max-width: 430px;
  text-align: center;
}

.staff-login-icon {
  display: inline-grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 0.6rem;
  border-radius: 50%;
  background: rgba(58, 110, 165, 0.12);
  color: #143f62;
  font-size: 1.2rem;
}

.staff-login-form {
  margin-top: 0.8rem;
}

.staff-step {
  position: relative;
}

.staff-step legend {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.staff-step-number {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #143f62;
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  flex: 0 0 auto;
}

.staff-outing-choice {
  padding: 0.85rem 1rem;
  margin-bottom: 0.7rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
}

.staff-outing-choice-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.55rem;
}

.staff-outing-logistics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.55rem;
  margin-top: 0.65rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}

.staff-outing-logistics label {
  font-size: 0.82rem;
}

.staff-deadline {
  margin-top: 0.65rem;
  font-size: 0.86rem;
}

.staff-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin-top: 1rem;
}

.staff-recap-list {
  list-style: none;
  margin: 0.8rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}

.staff-recap-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #f5f9fc;
  font-size: 0.9rem;
}

.staff-recap-status.is-available {
  color: #2f7d52;
}

.staff-recap-status.is-unavailable {
  color: #a33b3b;
}

.staff-recap-status.is-unknown {
  color: #b3701a;
}

.staff-dues-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0.6rem 0 0.4rem;
  padding: 0.6rem 0.8rem;
  border-radius: 12px;
  background: #f5f9fc;
  font-size: 0.85rem;
}

.staff-dues-row .is-open strong {
  color: #a33b3b;
}

.staff-dues-row .is-clear strong {
  color: #2f7d52;
}

/* Attivita pubblica: scelta del percorso e calendario stagione. */
.path-chooser {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin: 1.6rem 0;
}

.path-card {
  padding: 1.4rem;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(18, 46, 70, 0.08);
}

.path-card.is-kids {
  border-color: rgba(242, 140, 40, 0.4);
  background: linear-gradient(170deg, #fff, rgba(255, 244, 232, 0.9));
}

.path-card-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.6rem;
  border-radius: 14px;
  background: rgba(58, 110, 165, 0.12);
  color: #143f62;
  font-size: 1.15rem;
}

.path-card.is-kids .path-card-icon {
  background: rgba(242, 140, 40, 0.18);
  color: #b3701a;
}

.path-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.path-card p {
  margin: 0 0 0.5rem;
}

.path-card-price {
  font-weight: 700;
  color: #143f62;
}

.season-calendar {
  margin: 2rem 0 1rem;
}

.season-calendar-title {
  margin-bottom: 0.9rem;
}

.season-calendar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.matrix-column-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  align-items: center;
  margin-top: 0.7rem;
}

.matrix-column-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: auto;
  font-size: 0.8rem;
  font-weight: 700;
}

.matrix-outing-toggle {
  position: relative;
  display: inline-block;
}

.matrix-outing-toggle > summary {
  cursor: pointer;
  list-style: none;
  border: 1px solid rgba(31, 78, 121, 0.25);
  background: #f4f9fe;
  color: #153e60;
  border-radius: 999px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.85rem;
  font-weight: 800;
  font-size: 0.82rem;
}

.matrix-outing-toggle > summary::-webkit-details-marker {
  display: none;
}

.matrix-outing-toggle[open] > summary {
  border-color: transparent;
  background: linear-gradient(140deg, #1f4e79, #3a8fd6);
  color: #fff;
}

.matrix-outing-toggle-panel {
  position: absolute;
  top: calc(100% + 0.3rem);
  left: 0;
  z-index: 6;
  min-width: 240px;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid rgba(31, 78, 121, 0.2);
  background: #fff;
  box-shadow: 0 14px 28px rgba(18, 46, 70, 0.16);
}

.matrix-outing-toggle-panel label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.2rem 0;
}

.matrix-outing-toggle-actions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px dashed rgba(31, 78, 121, 0.2);
}

.season-card {
  display: flex;
  gap: 0.75rem;
  padding: 0.9rem;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.season-card h3 {
  margin: 0 0 0.15rem;
  font-size: 1.05rem;
}

.season-card-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--graphite-soft);
}

.season-card-note {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: var(--graphite-soft);
}

.season-tag {
  display: inline-block;
  margin-top: 0.35rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  background: rgba(242, 140, 40, 0.16);
  color: #b3701a;
  font-size: 0.74rem;
  font-weight: 600;
}

.season-calendar-hint {
  margin-top: 0.9rem;
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  background: rgba(76, 159, 112, 0.12);
  color: #235c3d;
  font-size: 0.88rem;
  font-weight: 600;
}

/* Board presenze staff: layout minimal, mobile-first, ad accordion. */
.staff-board {
  padding: clamp(1.2rem, 4vw, 2.6rem) 0 3rem;
  background: linear-gradient(180deg, #f5f9fc, #fff 320px);
  min-height: 60vh;
}

.staff-board-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.staff-board-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b8298;
}

.staff-board-head h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4.5vw, 2.1rem);
  line-height: 1.15;
}

.staff-board-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  background: #143f62;
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.staff-board-cta:hover {
  background: #1d5a8a;
  transform: translateY(-1px);
}

.staff-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.4rem;
}

.staff-metric {
  padding: 0.75rem 0.5rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
}

.staff-metric strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1;
  color: #143f62;
}

.staff-metric span {
  font-size: 0.76rem;
  color: var(--graphite-soft);
}

.staff-board-list {
  display: grid;
  gap: 0.7rem;
}

.staff-board-item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  overflow: hidden;
}

.staff-board-item > summary {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.staff-board-item > summary::-webkit-details-marker {
  display: none;
}

.staff-board-item-title {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
}

.staff-board-item-title strong {
  font-size: 1rem;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.staff-board-item-title small {
  font-size: 0.8rem;
  color: var(--graphite-soft);
}

.staff-board-counts {
  display: inline-flex;
  gap: 0.25rem;
  flex: 0 0 auto;
}

.staff-count {
  display: inline-grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  padding: 0 0.35rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
}

.staff-count.is-available {
  background: rgba(76, 159, 112, 0.16);
  color: #235c3d;
}

.staff-count.is-pending {
  background: rgba(242, 140, 40, 0.18);
  color: #97590d;
}

.staff-count.is-unavailable {
  background: rgba(190, 74, 74, 0.14);
  color: #8d2f2f;
}

.staff-board-chevron {
  flex: 0 0 auto;
  color: #90a6b8;
  font-size: 0.8rem;
  transition: transform 0.2s ease;
}

.staff-board-item[open] .staff-board-chevron {
  transform: rotate(180deg);
}

.staff-board-body {
  padding: 0 0.85rem 0.95rem;
}

.staff-person-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.staff-person {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.staff-person-avatar {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #e8f0f7;
  color: #143f62;
  font-size: 0.76rem;
  font-weight: 700;
}

.staff-person-name {
  display: grid;
  font-size: 0.88rem;
  line-height: 1.25;
}

.staff-person-name em {
  justify-self: start;
  margin-top: 0.1rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: #eef4f9;
  color: #143f62;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
}

.staff-person-name small {
  font-size: 0.72rem;
  color: var(--graphite-soft);
}

.staff-discipline-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0 0 0.8rem;
}

.staff-discipline-strip span {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: #f1f6fa;
  color: #4f6476;
  font-size: 0.76rem;
}

.staff-discipline-strip strong {
  color: #143f62;
}

@media (max-width: 640px) {
  .staff-board-cta {
    width: 100%;
    justify-content: center;
  }

  .staff-board-item > summary {
    flex-wrap: wrap;
    padding: 0.75rem;
  }

  .staff-board-item-title {
    flex: 1 1 100%;
    order: 3;
  }

  .staff-board-counts {
    order: 2;
    margin-left: auto;
  }

  .staff-roster-grid {
    grid-template-columns: 1fr;
  }
}

/* Admin presenze: tile per uscita, matrice scalabile, scheda singola. */
.staff-roster-compact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 0.8rem;
}

.staff-roster-tile {
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.staff-roster-tile header {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}

.staff-roster-tile header > div {
  flex: 1 1 auto;
  min-width: 0;
}

.staff-roster-tile h3 {
  margin: 0;
  font-size: 1rem;
}

.staff-roster-tile p {
  margin: 0;
  font-size: 0.82rem;
}

.staff-counts-inline {
  display: inline-flex;
  gap: 0.2rem;
  flex: 0 0 auto;
}

.staff-lead-line {
  margin-top: 0.25rem !important;
  font-size: 0.78rem !important;
  color: #235c3d;
}

.staff-lead-line.is-missing {
  color: #97590d;
}

.staff-tile-names {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.6rem 0;
}

.staff-tile-names a {
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #eef4f9;
  color: #143f62;
  font-size: 0.8rem;
  text-decoration: none;
}

.staff-tile-names a:hover {
  background: #dfeaf4;
}

.staff-matrix-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  -webkit-overflow-scrolling: touch;
}

.staff-matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.staff-matrix th,
.staff-matrix td {
  padding: 0.5rem 0.55rem;
  border-bottom: 1px solid var(--line);
  text-align: center;
  white-space: nowrap;
}

.staff-matrix thead th {
  position: sticky;
  top: 0;
  background: #f3f8fc;
  font-size: 0.76rem;
  line-height: 1.2;
  z-index: 2;
}

.staff-matrix thead th small {
  display: block;
  font-weight: 500;
  color: var(--graphite-soft);
}

.staff-matrix tbody th[scope="row"] {
  position: sticky;
  left: 0;
  background: #fff;
  text-align: left;
  font-weight: 600;
  z-index: 1;
  box-shadow: 1px 0 0 var(--line);
}

.staff-matrix tbody th a {
  color: #143f62;
  text-decoration: none;
}

.staff-matrix tbody tr:hover td,
.staff-matrix tbody tr:hover th {
  background: #f7fbfe;
}

.staff-dot {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 700;
}

.staff-dot.is-available {
  background: rgba(76, 159, 112, 0.18);
  color: #235c3d;
}

.staff-dot.is-pending {
  background: rgba(242, 140, 40, 0.2);
  color: #97590d;
}

.staff-dot.is-unavailable {
  background: rgba(190, 74, 74, 0.16);
  color: #8d2f2f;
}

.staff-dot.is-none {
  background: #eef2f5;
  color: #8ea3b4;
}

.staff-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 0.7rem;
  font-size: 0.8rem;
  color: var(--graphite-soft);
}

.staff-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.staff-mini-label {
  font-size: 0.78rem;
}

.staff-mini-label.is-muted {
  color: #9db0c0;
}

.staff-detail-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.staff-detail-head h2 {
  margin: 0;
}

.admin-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.6rem 0 1.1rem;
}

/* Gate del formulario staff: card centrata, minimal, mobile-first. */
.staff-gate {
  display: grid;
  place-items: center;
  padding: clamp(1rem, 5vw, 3rem) 0;
}

.staff-gate-card {
  width: min(420px, 100%);
  padding: clamp(1.5rem, 5vw, 2.2rem);
  border-radius: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 44px rgba(18, 46, 70, 0.12);
  text-align: center;
}

.staff-gate-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 0.9rem;
  border-radius: 18px;
  background: linear-gradient(160deg, #3a6ea5, #143f62);
  color: #fff;
  font-size: 1.35rem;
}

.staff-gate-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
}

.staff-gate-card > p {
  margin: 0 0 1.3rem;
  color: var(--graphite-soft);
  font-size: 0.92rem;
}

.staff-gate-field {
  text-align: left;
  margin-bottom: 1rem;
}

.staff-gate-field label {
  display: block;
  margin-bottom: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: #143f62;
}

.staff-gate-input {
  position: relative;
  display: flex;
  align-items: center;
}

.staff-gate-input input {
  width: 100%;
  padding-right: 3rem;
}

.staff-gate-reveal {
  position: absolute;
  right: 0.35rem;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6b8298;
  cursor: pointer;
}

.staff-gate-reveal:hover {
  background: #eef4f9;
}

.staff-gate-submit {
  width: 100%;
  justify-content: center;
}

.staff-gate-hint {
  margin: 1.1rem 0 0;
  font-size: 0.8rem;
  color: var(--graphite-soft);
}

.staff-outing-choice.has-error {
  border-color: rgba(190, 74, 74, 0.6);
  background: rgba(190, 74, 74, 0.05);
}

/* Gestione uscita: chip filtro, elenco partecipanti ad accordion, briefing. */
.admin-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.admin-chip {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: #143f62;
  font-size: 0.82rem;
  text-decoration: none;
  white-space: nowrap;
}

.admin-chip.is-active,
.admin-chip:hover {
  background: #143f62;
  border-color: #143f62;
  color: #fff;
}

.outing-person-list {
  display: grid;
  gap: 0.5rem;
}

.outing-person {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.outing-person > summary {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.85rem;
  cursor: pointer;
  list-style: none;
}

.outing-person > summary::-webkit-details-marker {
  display: none;
}

.outing-person-main {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
}

.outing-person-main strong {
  font-size: 0.96rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.outing-person-main small {
  font-size: 0.78rem;
  color: var(--graphite-soft);
}

.outing-person-tags {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  flex: 0 0 auto;
}

.outing-person[open] .staff-board-chevron {
  transform: rotate(180deg);
}

.outing-person-body {
  padding: 0 0.85rem 0.9rem;
  border-top: 1px solid var(--line);
}

.outing-person-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.35rem 0.9rem;
  margin: 0.7rem 0;
  font-size: 0.84rem;
  color: var(--graphite-soft);
}

.outing-person-alert {
  padding: 0.5rem 0.7rem;
  border-radius: 10px;
  background: rgba(190, 74, 74, 0.08);
  color: #8d2f2f;
  font-size: 0.85rem;
}

.outing-briefing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.6rem;
  margin-top: 0.8rem;
}

.outing-briefing-item {
  display: grid;
  gap: 0.15rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fbfdff;
}

.outing-briefing-item span {
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--graphite-soft);
}

.outing-briefing-item strong {
  font-size: 0.95rem;
  color: #143f62;
}

.outing-briefing-item small {
  font-size: 0.76rem;
  color: var(--graphite-soft);
}



.team-card-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

.admin-media-category-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.3rem 0 0.6rem;
  font-size: 0.86rem;
  color: var(--graphite-soft);
}

.media-card-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin-bottom: 1.1rem;
}

.media-gallery-card {
  border: 1px solid var(--line);
  border-radius: var(--admin-radius);
  background: #fff;
  overflow: hidden;
  transition: transform 0.2s var(--admin-ease), box-shadow 0.2s ease;
  animation: adminFadeInUp 0.35s var(--admin-ease) forwards;
}

.media-gallery-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(18, 46, 70, 0.1);
}

.media-gallery-card.is-draft {
  opacity: 0.72;
}

.media-gallery-thumb {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(160deg, #eef4fa, #dde8f4);
}

.media-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.media-gallery-thumb-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 800 1.4rem/1 "Nunito", sans-serif;
  color: #fff;
  background: linear-gradient(140deg, var(--admin-accent), #2f6fe0);
}

.media-gallery-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.4rem;
  background: rgba(10, 26, 41, 0.28);
  pointer-events: none;
}

.media-gallery-cover-flag {
  position: absolute;
  top: 0.4rem;
  left: 0.4rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(242, 140, 40, 0.94);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
}

.media-gallery-body {
  padding: 0.65rem 0.75rem 0.8rem;
}

.media-gallery-body h3 {
  font-size: 0.92rem;
  color: #143f62;
  overflow-wrap: anywhere;
}

.media-gallery-meta {
  font-size: 0.78rem;
  margin: 0.15rem 0 0.5rem;
}

.admin-section-heading {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.1rem 0 0.6rem;
  font-size: 0.95rem;
  color: #143f62;
}

.admin-section-heading:first-child {
  margin-top: 0;
}

.admin-section-heading i {
  color: var(--admin-accent);
}

.admin-section-heading .admin-badge {
  margin-left: 0.15rem;
}

.team-member-card {
  border: 1px solid var(--line);
  border-radius: var(--admin-radius);
  background: linear-gradient(160deg, #ffffff, #f8fbff);
  padding: 0.85rem 0.95rem;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.75rem;
  align-items: start;
  transition: transform 0.2s var(--admin-ease), box-shadow 0.2s ease;
  animation: adminFadeInUp 0.35s var(--admin-ease) forwards;
}

.team-member-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 24px rgba(18, 46, 70, 0.1);
}

.team-member-photo,
.team-member-photo-fallback {
  grid-row: span 3;
}

.team-member-photo {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 4px 10px rgba(18, 46, 70, 0.16);
}

.team-member-photo-fallback {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 800 0.9rem/1 "Nunito", sans-serif;
  color: #fff;
  background: linear-gradient(140deg, var(--admin-accent), #2f6fe0);
}

.team-member-card h3 {
  font-size: 0.96rem;
  color: #143f62;
}

.team-member-role {
  font-size: 0.8rem;
  color: var(--graphite-soft);
  font-weight: 700;
}

.team-member-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
  margin-top: 0.15rem;
}

.team-member-contacts {
  grid-column: 1 / -1;
  display: grid;
  gap: 0.15rem;
  font-size: 0.78rem;
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px dashed var(--line);
}

.team-member-contacts a {
  color: #1f4e79;
  font-weight: 700;
}

.team-member-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.team-member-card.is-inactive {
  opacity: 0.6;
}

.sponsor-card-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

.sponsor-card {
  border: 1px solid var(--line);
  border-radius: var(--admin-radius);
  background: #fff;
  padding: 1rem;
  display: grid;
  gap: 0.6rem;
  align-content: start;
  transition: transform 0.2s var(--admin-ease), box-shadow 0.2s ease;
  animation: adminFadeInUp 0.35s var(--admin-ease) forwards;
}

.sponsor-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 28px rgba(18, 46, 70, 0.12);
}

.sponsor-card-logo {
  height: 84px;
  border-radius: 12px;
  background: linear-gradient(160deg, #f8fbff, #eef5fc);
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
}

.sponsor-card-logo img {
  max-width: 82%;
  max-height: 68px;
  object-fit: contain;
}

.sponsor-card-logo-fallback {
  font: 800 1.2rem/1 "Nunito", sans-serif;
  color: #9fb3c8;
}

.sponsor-card h3 {
  font-size: 1rem;
  color: #143f62;
}

.sponsor-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.sponsor-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.news-card-row {
  border: 1px solid var(--line);
  border-radius: var(--admin-radius);
  background: #fff;
  padding: 0.9rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  transition: transform 0.2s var(--admin-ease), box-shadow 0.2s ease;
  animation: adminFadeInUp 0.35s var(--admin-ease) forwards;
}

.news-card-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(18, 46, 70, 0.1);
}

.news-card-cover {
  width: 100%;
  height: 130px;
  border-radius: 12px;
  object-fit: cover;
  background: linear-gradient(160deg, #f8fbff, #eef5fc);
}

.news-card-cover-fallback {
  width: 100%;
  height: 130px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #9fb3c8;
  background: linear-gradient(160deg, #f8fbff, #eef5fc);
  font-size: 1.6rem;
}

.news-card-body {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.news-card-title {
  font-size: 1rem;
  color: #143f62;
}

.news-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.news-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.outing-agenda-list {
  display: grid;
  gap: 0.7rem;
}

.outing-agenda-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--admin-radius);
  background: #fff;
  padding: 0.85rem 1rem;
  transition: transform 0.2s var(--admin-ease), box-shadow 0.2s ease;
  animation: adminFadeInUp 0.35s var(--admin-ease) forwards;
}

.outing-agenda-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(18, 46, 70, 0.1);
}

.outing-agenda-card.is-cancelled {
  opacity: 0.6;
}

.outing-date-badge {
  width: 66px;
  height: 66px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background: linear-gradient(150deg, var(--admin-accent), #2f6fe0);
  box-shadow: 0 6px 16px rgba(18, 46, 70, 0.2);
  font: 800 1.05rem/1.1 "Nunito", sans-serif;
  flex: none;
}

.outing-date-badge span {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.outing-agenda-body {
  min-width: 0;
  display: grid;
  gap: 0.3rem;
}

.outing-agenda-title {
  font-size: 1rem;
  color: #143f62;
}

.outing-agenda-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

.outing-agenda-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

@media (min-width: 640px) {
  .admin-card-grid,
  .team-card-grid,
  .sponsor-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .news-card-row {
    grid-template-columns: 200px 1fr;
  }

  .news-card-cover,
  .news-card-cover-fallback {
    height: 100%;
  }
}

@media (min-width: 1080px) {
  .team-card-grid,
  .sponsor-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .admin-shell {
    grid-template-columns: 280px 1fr;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    transform: none;
    width: auto;
  }

  .admin-sidebar-toggle {
    display: none;
  }

  .admin-grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .admin-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .admin-stat-strip {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .admin-detail-grid {
    grid-template-columns: minmax(0, 2.1fr) minmax(280px, 1fr);
  }

  .admin-detail-side {
    position: sticky;
    top: 0.9rem;
  }

  .admin-content {
    padding: 1.4rem 1.8rem 2.6rem;
  }

  [data-admin-tabs] [data-tab-panel] {
    padding: 1.1rem;
  }

  .admin-login-modern {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: stretch;
  }

  .admin-login-main {
    padding: 1.45rem 1.4rem;
  }

  .news-editor-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .news-editor-surface {
    min-height: 600px;
  }
}

@media (max-width: 779px) {
  .admin-inline-form {
    width: 100%;
  }

  .admin-inline-form input,
  .admin-inline-form select,
  .admin-inline-form button {
    width: 100%;
  }

  .admin-table {
    min-width: 560px;
  }

  .admin-tab-btn {
    flex: 1 1 calc(50% - 0.4rem);
    text-align: center;
  }
}

/* =====================================================================
   Premium refresh (public site only)
   ===================================================================== */

body:not(.admin-shell-page) {
  background:
    radial-gradient(circle at 12% 0%, rgba(73, 126, 183, 0.14), transparent 33%),
    radial-gradient(circle at 88% 8%, rgba(235, 139, 54, 0.13), transparent 32%),
    linear-gradient(180deg, #f5f9fc 0%, #f7fbff 46%, #ffffff 100%);
  color: #22313d;
  font-family: "Manrope", sans-serif;
  --surface-glass: rgba(255, 255, 255, 0.9);
  --surface-soft: #f7fbff;
  --site-line: rgba(26, 68, 101, 0.15);
  --site-shadow: 0 18px 34px rgba(16, 41, 64, 0.09);
}

body:not(.admin-shell-page)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(31, 78, 121, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 78, 121, 0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 78%);
}

body:not(.admin-shell-page) h1,
body:not(.admin-shell-page) h2,
body:not(.admin-shell-page) h3,
body:not(.admin-shell-page) h4,
body:not(.admin-shell-page) .btn,
body:not(.admin-shell-page) .chip,
body:not(.admin-shell-page) .kicker,
body:not(.admin-shell-page) .brand-text,
body:not(.admin-shell-page) .menu-link {
  font-family: "Sora", sans-serif;
}

body:not(.admin-shell-page) p,
body:not(.admin-shell-page) li,
body:not(.admin-shell-page) label,
body:not(.admin-shell-page) input,
body:not(.admin-shell-page) textarea,
body:not(.admin-shell-page) select {
  font-family: "Manrope", sans-serif;
}

body:not(.admin-shell-page) .section {
  padding: clamp(2.35rem, 5vw, 4.35rem) 0;
}

body:not(.admin-shell-page) .section-title {
  font-size: clamp(1.7rem, 4.6vw, 2.75rem);
  letter-spacing: -0.02em;
  margin-bottom: 0.65rem;
}

body:not(.admin-shell-page) .home-hero-copy-wide .headline {
  font-size: clamp(1.9rem, 4.6vw, 3.35rem);
  max-width: 20ch;
  white-space: normal;
}

body:not(.admin-shell-page) .home-hero-copy-wide .lead {
  font-size: clamp(0.96rem, 1.45vw, 1.08rem);
  line-height: 1.62;
}

body:not(.admin-shell-page) .home-hero-copy-wide .lead + .lead {
  margin-top: -0.35rem;
}

body:not(.admin-shell-page) .panel {
  border-radius: 20px;
  border-color: var(--site-line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.9));
  box-shadow: var(--site-shadow);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

body:not(.admin-shell-page) .panel::before,
body:not(.admin-shell-page) .news-card::before,
body:not(.admin-shell-page) .sponsor-logo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0));
  opacity: 0.75;
  pointer-events: none;
}

body:not(.admin-shell-page) .panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 44px rgba(16, 41, 64, 0.14);
}

body:not(.admin-shell-page) .btn {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body:not(.admin-shell-page) .btn-primary {
  background: linear-gradient(135deg, #1e5783, #2d77ac);
  box-shadow: 0 10px 22px rgba(23, 79, 121, 0.26);
}

body:not(.admin-shell-page) .btn-ghost {
  border-width: 1px;
  background: #f8fbff;
}

body:not(.admin-shell-page) .home-hero-copy-wide {
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: linear-gradient(165deg, rgba(9, 35, 58, 0.58), rgba(9, 35, 58, 0.34));
  backdrop-filter: blur(7px);
  padding: 1.5rem 1.35rem;
}

body:not(.admin-shell-page) .page-hero {
  margin-top: clamp(0.6rem, 2vw, 1.25rem);
  border-radius: 0 0 28px 28px;
  border-bottom: 1px solid rgba(26, 68, 101, 0.12);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.7);
}

body:not(.admin-shell-page) .page-hero .container {
  gap: clamp(0.65rem, 2vw, 1rem);
}

body:not(.admin-shell-page) .page-hero p {
  color: #405464;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.72;
}

body:not(.admin-shell-page) .grid-2,
body:not(.admin-shell-page) .grid-3,
body:not(.admin-shell-page) .icon-grid,
body:not(.admin-shell-page) .value-grid,
body:not(.admin-shell-page) .story-grid,
body:not(.admin-shell-page) .contatti-layout,
body:not(.admin-shell-page) .legal-layout,
body:not(.admin-shell-page) .home-join {
  gap: clamp(0.9rem, 2.3vw, 1.35rem);
}

body:not(.admin-shell-page) .home-subtitle {
  color: #d9ebff;
}

body:not(.admin-shell-page) .news-card {
  border-left-width: 0;
  border-top: 5px solid rgba(241, 136, 61, 0.95);
  border-radius: 20px;
}

body:not(.admin-shell-page) .calendar-item {
  border-radius: 16px;
  border-left-width: 4px;
}

body:not(.admin-shell-page) .home-calendar-section {
  padding-bottom: 0.75rem;
}

body:not(.admin-shell-page) .home-calendar-section + .home-info-section {
  padding-top: 0.75rem;
}

body:not(.admin-shell-page) .about-nav {
  gap: 0.6rem;
}

body:not(.admin-shell-page) .about-nav a {
  border-radius: 999px;
  padding: 0.58rem 0.94rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

body:not(.admin-shell-page) .team-group-panel {
  border-radius: 24px;
  overflow: hidden;
}

body:not(.admin-shell-page) .team-group-panel > h2 {
  margin: -1.15rem -1.15rem 0.85rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(145deg, rgba(231, 245, 255, 0.95), rgba(255, 248, 237, 0.95));
  border-bottom: 1px solid rgba(26, 68, 101, 0.12);
}

body:not(.admin-shell-page) .team-card {
  min-height: 0;
  border-radius: 14px;
  border-color: rgba(26, 68, 101, 0.14);
  align-content: start;
  gap: 0.35rem;
  padding: 0.9rem;
}

body:not(.admin-shell-page) .team-card-public {
  position: relative;
  overflow: hidden;
  min-height: 112px;
  padding: 1rem;
  background: linear-gradient(145deg, #ffffff, #f2f8fc);
}

body:not(.admin-shell-page) .team-card-public::after {
  content: "";
  position: absolute;
  right: -2rem;
  bottom: -3rem;
  width: 7rem;
  height: 7rem;
  border-radius: 50%;
  background: rgba(242, 140, 40, 0.11);
  pointer-events: none;
}

body:not(.admin-shell-page) .team-card-identity {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

body:not(.admin-shell-page) .team-avatar {
  display: grid;
  flex: 0 0 3rem;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: linear-gradient(145deg, #1f4e79, #2d77ac);
  font-family: "Sora", sans-serif;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

body:not(.admin-shell-page) .team-card-label {
  margin: 0 0 0.18rem;
  color: #8f4f14;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body:not(.admin-shell-page) .team-card-public h3 {
  margin: 0;
  font-size: 1.03rem;
}

body:not(.admin-shell-page) .team-group-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.72rem;
}

body:not(.admin-shell-page) .team-contact-line a {
  color: #1f4e79;
  font-weight: 800;
  overflow-wrap: anywhere;
}

body:not(.admin-shell-page) .team-card h3 {
  font-size: 1rem;
  line-height: 1.22;
}

body:not(.admin-shell-page) .team-card p {
  font-size: 0.88rem;
  line-height: 1.45;
}

body:not(.admin-shell-page) .team-avatar {
  height: 3rem;
}

body:not(.admin-shell-page) .team-card .kicker {
  margin-top: 0.15rem;
  font-size: 0.76rem;
  color: #225684;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

body:not(.admin-shell-page) .value-token {
  width: auto;
  min-width: 64px;
  padding-inline: 0.7rem;
  height: 36px;
}

body:not(.admin-shell-page) .subnav-card,
body:not(.admin-shell-page) .membership-panel,
body:not(.admin-shell-page) .contact-card,
body:not(.admin-shell-page) .sponsor-tier-card,
body:not(.admin-shell-page) .sponsor-cta-card {
  border-radius: 22px;
}

body:not(.admin-shell-page) .sponsor-tier-card.tier-platinum {
  border: 1px solid rgba(149, 166, 197, 0.52);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(236, 243, 253, 0.92) 52%, rgba(221, 230, 246, 0.9) 100%);
  box-shadow: 0 18px 34px rgba(23, 41, 66, 0.15);
}

body:not(.admin-shell-page) .sponsor-tier-card.tier-gold {
  border: 1px solid rgba(186, 148, 66, 0.52);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.98) 0%, rgba(252, 246, 227, 0.93) 52%, rgba(246, 232, 192, 0.9) 100%);
  box-shadow: 0 18px 34px rgba(101, 76, 23, 0.15);
}

body:not(.admin-shell-page) .sponsor-tier-card > h3 {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.72rem;
  border-radius: 999px;
  background: linear-gradient(150deg, #e9f5ff, #fff1e2);
  color: #1a4e79;
  font-size: 0.95rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55);
}

body:not(.admin-shell-page) .sponsor-tier-card > h3::before {
  content: "\f5a2";
  font: var(--fa-font-solid);
  color: #f28c28;
  font-size: 0.92em;
}

body:not(.admin-shell-page) .sponsor-logo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.72rem, 2vw, 1rem);
}

body:not(.admin-shell-page) .sponsor-logo-card {
  min-height: 178px;
  border-radius: 18px;
  padding: 0.75rem;
  border-color: rgba(26, 68, 101, 0.14);
  background: linear-gradient(155deg, #ffffff, #f8fbff);
  align-content: space-between;
  position: relative;
  overflow: hidden;
}

body:not(.admin-shell-page) .sponsor-logo-card-featured {
  border-color: rgba(50, 70, 108, 0.3);
  box-shadow: 0 20px 34px rgba(23, 35, 60, 0.2);
}

body:not(.admin-shell-page) .sponsor-logo-card-featured::after {
  content: "Partner in evidenza";
  position: absolute;
  top: 0.64rem;
  left: 0.64rem;
  z-index: 2;
  border-radius: 999px;
  padding: 0.26rem 0.52rem;
  background: rgba(31, 78, 121, 0.92);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

body:not(.admin-shell-page) .tier-gold .sponsor-logo-card-featured {
  border-color: rgba(170, 126, 31, 0.44);
  box-shadow: 0 20px 34px rgba(123, 86, 21, 0.2);
}

body:not(.admin-shell-page) .tier-platinum .sponsor-logo-card-featured .sponsor-logo-name,
body:not(.admin-shell-page) .tier-gold .sponsor-logo-card-featured .sponsor-logo-name {
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}

body:not(.admin-shell-page) .sponsor-logo-box {
  min-height: 106px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f4f9ff);
  overflow: hidden;
}

body:not(.admin-shell-page) .sponsor-logo-img {
  max-height: 84px;
  transition: transform 0.3s var(--ease-out);
}

body:not(.admin-shell-page) .sponsor-logo-card:hover .sponsor-logo-img,
body:not(.admin-shell-page) .sponsor-logo-card:focus-visible .sponsor-logo-img {
  transform: scale(1.04);
}

body:not(.admin-shell-page) .sponsor-logo-name {
  font-size: 0.86rem;
  font-weight: 700;
}

body:not(.admin-shell-page) .home-sponsors-section .sponsor-tier-card {
  background: linear-gradient(155deg, #ffffff, #f8fcff);
}

body:not(.admin-shell-page) input,
body:not(.admin-shell-page) select,
body:not(.admin-shell-page) textarea {
  border-color: rgba(26, 68, 101, 0.2);
  border-radius: 14px;
  background: #fbfdff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body:not(.admin-shell-page) input:focus,
body:not(.admin-shell-page) select:focus,
body:not(.admin-shell-page) textarea:focus {
  outline: 2px solid rgba(39, 108, 163, 0.3);
  outline-offset: 1px;
  border-color: rgba(39, 108, 163, 0.45);
  background: #fff;
  box-shadow: 0 8px 18px rgba(31, 78, 121, 0.08);
}

body:not(.admin-shell-page) .form-block {
  border-style: solid;
  border-color: rgba(26, 68, 101, 0.14);
  border-radius: 16px;
  background: linear-gradient(170deg, #fbfdff, #f6fbff);
}

body:not(.admin-shell-page) .smart-form {
  gap: clamp(0.75rem, 2vw, 1rem);
}

body:not(.admin-shell-page) .cta-row {
  gap: 0.65rem;
}

body:not(.admin-shell-page) .contatti-layout .contact-card:first-child {
  background: linear-gradient(165deg, #f6fbff, #fff8ef);
}

body:not(.admin-shell-page) .contatti-photo-img {
  height: 230px;
}

.maintenance-gate-error {
  color: #962f19;
  font-weight: 700;
}

.maintenance-gate-body {
  min-height: 100vh;
  background: radial-gradient(circle at 15% 10%, #eaf4ff 0%, transparent 45%),
    radial-gradient(circle at 85% 90%, #fff3e2 0%, transparent 50%),
    linear-gradient(160deg, #f4f8fc 0%, #ffffff 60%);
}

.maintenance-gate-main {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 3rem 1rem;
}

.maintenance-gate-card {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 30px 60px -30px rgba(21, 62, 96, 0.35);
  position: relative;
  overflow: hidden;
}

.maintenance-gate-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background: linear-gradient(90deg, var(--blue-soft, #4f8ecb), var(--blue));
}

.maintenance-gate-logo {
  display: block;
  margin: 0.4rem auto 1rem;
  border-radius: 16px;
}

.maintenance-countdown {
  display: flex;
  justify-content: center;
  gap: 1.1rem;
  margin: 1.4rem 0;
}

.maintenance-countdown-item {
  min-width: 74px;
  padding: 0.6rem 0.4rem;
  border-radius: 12px;
  background: #f4f8fc;
  border: 1px solid var(--line);
}

.maintenance-countdown-item strong {
  display: block;
  font: 800 1.6rem/1.1 "Sora", sans-serif;
  color: var(--blue);
}

.maintenance-countdown-item span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--graphite-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.maintenance-gate-social {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin: 0.8rem 0 0.4rem;
}

.maintenance-gate-social .icon-btn {
  background: #f4f8fc;
  border-color: var(--line);
  color: var(--blue);
  font-size: 1rem;
}

.maintenance-gate-social .icon-btn:hover,
.maintenance-gate-social .icon-btn:focus-visible {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.maintenance-gate-access {
  text-align: left;
}

.maintenance-gate-access summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--blue);
  text-align: center;
  list-style: none;
}

.maintenance-gate-access summary::-webkit-details-marker {
  display: none;
}

@media (min-width: 780px) {
  body:not(.admin-shell-page) .team-group-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body:not(.admin-shell-page) .sponsor-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body:not(.admin-shell-page) .sponsor-logo-card-featured {
    grid-column: span 2;
  }

  body:not(.admin-shell-page) .home-hero-copy-wide {
    padding: 2.25rem 2.45rem;
  }
}

@media (max-width: 779px) {
  .nav {
    min-height: 76px;
  }

  .logo-img {
    max-height: 82px;
    transform: translateY(17px);
  }

  .topbar.scrolled .nav {
    min-height: 62px;
  }

  .topbar.scrolled .logo-img {
    max-height: 48px;
    transform: translateY(0);
  }

  body:not(.admin-shell-page) .section {
    padding: 2.1rem 0;
  }

  .activity-hero-cards {
    grid-template-columns: 1fr;
  }

  .compact-info-card {
    padding: 0.9rem;
  }

  .subnav-card {
    padding: 0.75rem;
  }

  body:not(.admin-shell-page) .home-hero-bleed {
    min-height: 520px;
    align-items: center;
    padding-top: 4.4rem;
  }

  body:not(.admin-shell-page) .home-hero-copy-wide {
    padding: 1.15rem;
  }

  body:not(.admin-shell-page) .home-hero-copy-wide .headline {
    font-size: clamp(1.72rem, 8.8vw, 2.42rem);
    white-space: normal;
  }

  body:not(.admin-shell-page) .home-hero-copy-wide .lead {
    font-size: 0.94rem;
  }

  body:not(.admin-shell-page) .page-hero {
    margin-top: 0.35rem;
    border-radius: 0 0 20px 20px;
  }

  body:not(.admin-shell-page) .panel {
    border-radius: 16px;
  }

  body:not(.admin-shell-page) .sponsor-logo-card {
    min-height: 154px;
    padding: 0.62rem;
  }

  body:not(.admin-shell-page) .sponsor-logo-box {
    min-height: 88px;
  }

  body:not(.admin-shell-page) .sponsor-logo-card-featured {
    grid-column: span 2;
  }

  body:not(.admin-shell-page) .team-group-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .brand {
    gap: 0.5rem;
    max-width: calc(100% - 76px);
  }

  .brand-text {
    font-size: 0.78rem;
  }

  body:not(.admin-shell-page) .sponsor-logo-grid {
    grid-template-columns: 1fr;
  }

  body:not(.admin-shell-page) .sponsor-logo-card-featured {
    grid-column: auto;
  }

  body:not(.admin-shell-page) .team-group-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1080px) {
  body:not(.admin-shell-page) .team-group-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body:not(.admin-shell-page) .sponsor-page .sponsor-logo-grid,
  body:not(.admin-shell-page) .home-sponsors-section .sponsor-logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body:not(.admin-shell-page) .sponsor-logo-card-featured {
    grid-column: span 2;
  }
}

/* Public-page finishing layer: tactile surfaces, clearer hierarchy and reliable short-page footer. */
body:not(.admin-shell-page) {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body:not(.admin-shell-page) main {
  flex: 1 0 auto;
}

body:not(.admin-shell-page) .footer {
  margin-top: auto;
}

body:not(.admin-shell-page) .hero-about-values {
  position: relative;
  overflow: clip;
  color: #173f5b;
  background: #edf6f8;
  border-bottom: 1px solid rgba(58, 110, 165, 0.18);
}

body:not(.admin-shell-page) .hero-about-values::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 88px;
  opacity: 0.22;
  background: url('/assets/img/chi_siamo/web_valori_1.jpeg') center 32% / cover;
  mix-blend-mode: multiply;
  pointer-events: none;
}

body:not(.admin-shell-page) .hero-about-values .container {
  position: relative;
  z-index: 1;
}

body:not(.admin-shell-page) .hero-about-values .photo-frame-2 {
  background-image: linear-gradient(140deg, rgba(240, 140, 63, 0.35), rgba(255, 214, 166, 0.18)), url('/assets/img/chi_siamo/web_valori_1.jpeg');
  background-size: cover;
  background-position: center;
}

body:not(.admin-shell-page) .hero-about-team .photo-frame-3 {
  background-image: linear-gradient(145deg, rgba(12, 43, 69, 0.5), rgba(20, 90, 135, 0.2)), url('/assets/img/chi_siamo/web_team_1.jpeg');
  background-size: cover;
  background-position: center;
}

body:not(.admin-shell-page) .hero-about-team .photo-frame-1 {
  background-image: linear-gradient(145deg, rgba(14, 48, 73, 0.5), rgba(31, 78, 121, 0.2)), url('/assets/img/chi_siamo/web_team_2.jpeg');
  background-size: cover;
  background-position: center;
}

body:not(.admin-shell-page) .hero-about-formation .photo-frame-3 {
  background-image: linear-gradient(145deg, rgba(12, 43, 69, 0.5), rgba(20, 90, 135, 0.2)), url('/assets/img/chi_siamo/web_formazione_1.jpeg');
  background-size: cover;
  background-position: center;
}

body:not(.admin-shell-page) .hero-about-camp {
  border-bottom: 3px solid #f28c28;
}

body:not(.admin-shell-page) .hero-about-camp .chip {
  font-weight: 700;
}

body:not(.admin-shell-page) .value-card {
  min-height: 100%;
  padding: clamp(1.2rem, 2.3vw, 1.8rem);
  border-top: 4px solid #f28c28;
  background: linear-gradient(145deg, #fff 0%, #f2f8fb 100%);
}

body:not(.admin-shell-page) .value-card:nth-child(even) {
  border-top-color: #3a6ea5;
}

body:not(.admin-shell-page) .value-token {
  width: 2.8rem;
  height: 2.8rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e7f2f8;
  color: #1f4e79;
  font-weight: 800;
}

body:not(.admin-shell-page) .hero-about-formation,
body:not(.admin-shell-page) .page-hero-membership {
  background-position: center 42%;
}

body:not(.admin-shell-page) .hero-about-formation .visual-row,
body:not(.admin-shell-page) .page-hero-membership .visual-row {
  margin-top: 1.45rem;
}

body:not(.admin-shell-page) .gs-path-grid .compact-info-card {
  position: relative;
  padding-top: 1.35rem;
  border-top: 3px solid #3a6ea5;
  background: #fff;
}

body:not(.admin-shell-page) .gs-path-grid .compact-info-card:nth-child(2) {
  border-top-color: #f28c28;
}

body:not(.admin-shell-page) .gs-path-grid .compact-info-card:nth-child(3) {
  border-top-color: #2f7b65;
}

body:not(.admin-shell-page) .monitor-form-card,
body:not(.admin-shell-page) .membership-form-panel {
  border-top: 5px solid #f28c28;
  background: linear-gradient(145deg, #fff 0%, #f5fbfe 72%, #fff4e7 100%);
}

body:not(.admin-shell-page) .news-article {
  border-top: 4px solid #3a6ea5;
}

body:not(.admin-shell-page) .news-article-back {
  margin: 0 0 1.1rem;
}

body:not(.admin-shell-page) .news-article-back a {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  padding: 0.45rem 0.78rem;
  border: 1px solid rgba(31, 78, 121, 0.22);
  border-radius: 999px;
  background: #f7fbfd;
  color: #1f4e79;
  font-weight: 800;
  text-decoration: none;
}

body:not(.admin-shell-page) .news-article-back a:hover,
body:not(.admin-shell-page) .news-article-back a:focus-visible {
  background: #e4f2f8;
  border-color: #3a6ea5;
}

body:not(.admin-shell-page) .news-article-cover {
  width: 100%;
  max-height: 440px;
  margin: 0.5rem 0 1.5rem;
  border-radius: 10px;
  object-fit: cover;
}

body:not(.admin-shell-page) .team-group-panel {
  border-left: 4px solid #3a6ea5;
  background: linear-gradient(145deg, #fafdff, #edf6fa);
}

body:not(.admin-shell-page) .team-card {
  min-height: 100%;
  padding: 1.25rem;
  border: 1px solid rgba(58, 110, 165, 0.16);
  box-shadow: 0 10px 25px rgba(14, 57, 81, 0.08);
}

body:not(.admin-shell-page) .team-card .meta-badge {
  background: #e4f2f8;
  color: #1e5579;
}

@media (min-width: 1080px) {
  body:not(.admin-shell-page) .sponsor-page .tier-platinum .sponsor-logo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body:not(.admin-shell-page) .sponsor-page .tier-gold .sponsor-logo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body:not(.admin-shell-page) .sponsor-page .sponsor-tier-card:not(.tier-platinum):not(.tier-gold) .sponsor-logo-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  body:not(.admin-shell-page) .sponsor-page .sponsor-tier-card:not(.tier-platinum):not(.tier-gold) .sponsor-logo-card {
    min-height: 138px;
  }

  body:not(.admin-shell-page) .sponsor-page .sponsor-logo-card-featured {
    grid-column: auto;
  }
}

@media (max-width: 779px) {
  body:not(.admin-shell-page) .hero-about-values::after {
    inset: auto 0 0;
    height: 58px;
  }

  body:not(.admin-shell-page) .value-grid {
    gap: 0.8rem;
  }

  body:not(.admin-shell-page) .value-card,
  body:not(.admin-shell-page) .team-card {
    padding: 1rem;
  }

  body:not(.admin-shell-page) .news-article-cover {
    margin-bottom: 1rem;
    border-radius: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .photo-frame,
  .page-hero::before,
  .page-hero::after {
    animation: none;
    transform: none;
  }

  .hero-photo-fallback,
  .slide-fallback {
    animation: none;
  }

  .home-hero-bg img {
    animation: none;
    transform: none;
  }
}

/* Dashboard admin: alert operativi, KPI e scorciatoie. */
.dash-alerts {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.dash-alert {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
}

.dash-alert span {
  flex: 1 1 auto;
}

.dash-alert.is-warn {
  background: rgba(242, 140, 40, 0.12);
  border-color: rgba(242, 140, 40, 0.35);
  color: #8a5110;
}

.dash-alert.is-info {
  background: rgba(58, 110, 165, 0.1);
  border-color: rgba(58, 110, 165, 0.28);
  color: #1d4e77;
}

.dash-alert.is-ok {
  background: rgba(76, 159, 112, 0.12);
  border-color: rgba(76, 159, 112, 0.35);
  color: #235c3d;
}

.dash-alert:hover {
  filter: brightness(0.97);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.85rem;
  align-items: start;
}

.dash-card {
  margin: 0;
}

.dash-card-wide {
  grid-column: 1 / -1;
}

.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.dash-card-head h3 {
  margin: 0;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.dash-next-title {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.dash-inline-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  font-size: 0.86rem;
  color: var(--graphite-soft);
}

.dash-kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 0.5rem;
  margin-bottom: 0.7rem;
}

.dash-kpi {
  padding: 0.55rem 0.4rem;
  border-radius: 10px;
  background: #f5f9fc;
  text-align: center;
}

.dash-kpi strong {
  display: block;
  font-size: 1.15rem;
  line-height: 1.1;
  color: #143f62;
}

.dash-kpi span {
  font-size: 0.72rem;
  color: var(--graphite-soft);
}

.dash-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 0.4rem;
}

.dash-shortcuts a {
  display: grid;
  justify-items: center;
  gap: 0.3rem;
  padding: 0.7rem 0.4rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: #143f62;
  font-size: 0.78rem;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.dash-shortcuts a i {
  font-size: 1.05rem;
}

.dash-shortcuts a:hover {
  background: #f2f8fd;
  transform: translateY(-2px);
}

.dash-activity {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
}

.dash-activity li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.2rem;
  border-bottom: 1px solid #eef3f7;
  font-size: 0.85rem;
}

.dash-activity li:last-child {
  border-bottom: 0;
}

.dash-activity-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #4c9f70;
}

.dash-activity li.is-failed .dash-activity-dot {
  background: #be4a4a;
}

.dash-activity-text {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
}

.dash-activity-text strong {
  font-size: 0.86rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-activity-text small {
  font-size: 0.74rem;
  color: var(--graphite-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-activity time {
  flex: 0 0 auto;
  font-size: 0.74rem;
  color: var(--graphite-soft);
}

/* =========================================================
   Ottimizzazione mobile area admin (ultimo blocco: vince sui precedenti)
   ========================================================= */
@media (max-width: 779px) {
  .admin-content {
    padding: 0.9rem 0.8rem 2.4rem;
  }

  .admin-panel {
    padding: 0.9rem;
    border-radius: 14px;
  }

  /* Le tab diventano una barra scorrevole invece di andare a capo. */
  .admin-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.35rem;
    padding-bottom: 0.3rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .admin-tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-tab-btn {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 0.5rem 0.8rem;
  }

  .admin-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .admin-stat-box {
    padding: 0.65rem;
  }

  .admin-stat-box strong {
    font-size: 1.15rem;
  }

  .admin-stat-box span {
    font-size: 0.74rem;
  }

  .admin-shell-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
  }

  .admin-panel-title-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }

  .form-grid,
  .form-grid-2,
  .form-grid-3 {
    grid-template-columns: 1fr;
  }

  .admin-table-wrap,
  .staff-matrix-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .admin-card-grid,
  .staff-roster-compact,
  .outing-briefing-grid,
  .staff-attendance-grid {
    grid-template-columns: 1fr;
  }

  .cta-row {
    flex-wrap: wrap;
  }

  .cta-row .btn,
  .admin-shell-head .cta-row .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  /* Target touch piu comodi senza ingrandire tutta l'interfaccia. */
  .admin-mini-btn {
    min-height: 38px;
    padding: 0.45rem 0.7rem;
  }

  input,
  select,
  textarea {
    font-size: 16px; /* evita lo zoom automatico su iOS */
  }

  .outing-person-facts {
    grid-template-columns: 1fr;
  }

  .staff-metrics {
    gap: 0.4rem;
  }

  .admin-filter-chips {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }
}

@media (max-width: 420px) {
  .admin-stat-strip {
    grid-template-columns: 1fr 1fr;
  }

  .staff-date-badge {
    width: 48px;
    height: 48px;
    font-size: 1.1rem;
  }
}

