@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700;12..96,800&family=Source+Sans+3:wght@400;500;600;700&display=swap");

:root {
  --green: #1f7a3a;
  --green-deep: #145528;
  --green-soft: #e7f3ea;
  --yellow: #f0c21a;
  --yellow-soft: #fff6d1;
  --ink: #1a241c;
  --muted: #5a6b5e;
  --paper: #f7faf6;
  --white: #ffffff;
  --line: rgba(26, 36, 28, 0.1);
  --shadow: 0 18px 40px rgba(20, 85, 40, 0.12);
  --radius: 22px;
  --nav-h: 72px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Source Sans 3", system-ui, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(240, 194, 26, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(31, 122, 58, 0.14), transparent 50%),
    linear-gradient(180deg, #fbfdfb 0%, var(--paper) 40%, #eef6ef 100%);
  line-height: 1.55;
  min-height: 100vh;
}

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

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

h1,
h2,
h3,
.brand-text {
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

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

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(14px);
  background: rgba(247, 250, 246, 0.86);
  border-bottom: 1px solid var(--line);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.nav-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0.45rem;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: var(--green-deep);
}

.nav-menu-btn:hover {
  border-color: rgba(31, 122, 58, 0.35);
}

.nav-brand-cluster {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.2rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

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

.btn-primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(31, 122, 58, 0.25);
}

.btn-primary:hover {
  background: var(--green-deep);
}

.btn-yellow {
  background: var(--yellow);
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--green-deep);
  border: 1px solid var(--line);
}

.btn-small {
  padding: 0.45rem 0.9rem;
  font-size: 0.92rem;
}

.btn-danger {
  background: #c44536;
  color: white;
}

/* —— Hero —— */
.hero {
  padding: 3.5rem 0 2.5rem;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border-radius: calc(var(--radius) + 8px);
  min-height: 420px;
  display: grid;
  align-items: end;
  background:
    linear-gradient(
      115deg,
      rgba(14, 48, 24, 0.78) 0%,
      rgba(31, 122, 58, 0.52) 46%,
      rgba(240, 194, 26, 0.32) 100%
    ),
    linear-gradient(to top, rgba(12, 36, 18, 0.35) 0%, transparent 50%),
    url("../photos/wallpaper1.jpg") center/cover no-repeat;
  color: white;
  box-shadow: var(--shadow);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem;
  max-width: 640px;
  animation: rise 0.7s ease both;
}

.hero-kicker {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 0 0 0.8rem;
}

.hero p {
  margin: 0 0 1.5rem;
  font-size: 1.15rem;
  opacity: 0.95;
  max-width: 34rem;
}

.hero-logo {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  width: min(220px, 28vw);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
  animation: float-in 0.9s ease 0.15s both;
}

/* —— Sections —— */
.section {
  padding: 3.5rem 0;
  scroll-margin-top: calc(var(--nav-h) + 4.5rem);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--green-deep);
}

.section-head p {
  margin: 0.4rem 0 0;
  color: var(--muted);
  max-width: 36rem;
}

.section-head-songs {
  align-items: center;
}

/* —— Destination tiles —— */
.dest-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.dest-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  min-height: 220px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  animation: rise 0.6s ease both;
}

.dest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(20, 85, 40, 0.2);
}

.dest-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(10, 30, 15, 0.82) 100%);
}

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

.dest-card span {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.85;
}

.dest-card h3 {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.55rem;
}

.dest-card p {
  margin: 0;
  opacity: 0.9;
  font-size: 0.98rem;
}

.dest-card.sede-a {
  grid-column: span 6;
  background-image:
    linear-gradient(135deg, rgba(31, 122, 58, 0.55), rgba(20, 85, 40, 0.25)),
    url("https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=1200&q=80");
}

.dest-card.sede-b {
  grid-column: span 6;
  background-image:
    linear-gradient(135deg, rgba(31, 122, 58, 0.5), rgba(20, 85, 40, 0.2)),
    url("https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1200&q=80");
}

.dest-card.campo {
  grid-column: span 7;
  min-height: 260px;
  background-image:
    linear-gradient(135deg, rgba(180, 120, 20, 0.45), rgba(20, 85, 40, 0.45)),
    url("https://images.unsplash.com/photo-1504280390227-331bef20bbe4?auto=format&fit=crop&w=1400&q=80");
}

.dest-card.sangiorgio {
  grid-column: span 5;
  min-height: 260px;
  background-image:
    linear-gradient(135deg, rgba(240, 194, 26, 0.55), rgba(31, 122, 58, 0.55)),
    url("https://images.unsplash.com/photo-1469474968028-56623f02e42e?auto=format&fit=crop&w=1200&q=80");
}

.dest-card:nth-child(1) { animation-delay: 0.05s; }
.dest-card:nth-child(2) { animation-delay: 0.12s; }
.dest-card:nth-child(3) { animation-delay: 0.18s; }
.dest-card:nth-child(4) { animation-delay: 0.24s; }

/* —— Calendar —— */
.calendar-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: 0 10px 30px rgba(20, 85, 40, 0.06);
}

.month-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.month-bar h3 {
  margin: 0;
  font-size: 1.25rem;
}

.event-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.event-side-head h3 {
  margin: 0;
  font-family: "Bricolage Grotesque", sans-serif;
  color: var(--green-deep);
  font-size: 1.15rem;
  line-height: 1.25;
}

.cal-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.cal-dows,
.cal-week-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  column-gap: 0;
}

.cal-dow {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  padding: 0.3rem 0;
  text-transform: uppercase;
}

.cal-week {
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.35rem;
}

.cal-week:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.cal-day {
  appearance: none;
  position: relative;
  min-height: 4.6rem;
  border-radius: 10px;
  border: 1px solid transparent;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0.2rem;
  padding: 0.35rem 0.4rem 0.45rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  overflow: hidden;
}

.cal-day.muted {
  color: #b0b8b2;
}

.cal-day.today:not(.has-event) {
  border-color: var(--green);
  color: var(--green-deep);
}

.cal-day.has-event {
  background: var(--ev-bg, #a4bdfc);
  color: var(--ev-fg, #1a1f1c);
  border-color: transparent;
  border-radius: 0;
  font-weight: 700;
}

.cal-day.has-event.is-span-only {
  border-radius: 12px;
  margin: 0 2px;
}

.cal-day.has-event.is-span-start {
  border-radius: 12px 0 0 12px;
  margin-left: 2px;
}

.cal-day.has-event.is-span-end {
  border-radius: 0 12px 12px 0;
  margin-right: 2px;
}

.cal-day.has-event.is-span-mid {
  border-radius: 0;
}

.cal-day.has-event.is-selected {
  box-shadow: inset 0 0 0 2px rgba(20, 40, 20, 0.55);
}

.cal-day.has-event:hover {
  filter: brightness(0.97);
}

.cal-day:not(.has-event):hover {
  background: rgba(31, 122, 58, 0.06);
}

.cal-day-num {
  font-size: 0.85rem;
  font-weight: 800;
  line-height: 1;
}

.cal-day-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.2;
  width: 100%;
}

.cal-day-more {
  margin-top: auto;
  font-size: 0.65rem;
  font-weight: 800;
  opacity: 0.85;
}

.event-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-height: 480px;
  overflow: auto;
}

.event-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.85rem;
  padding: 0.85rem;
  border-radius: 16px;
  background: var(--green-soft);
  border: 1px solid transparent;
  transition: border-color 0.2s ease;
  cursor: pointer;
}

.event-item-detail {
  cursor: default;
  background: #fff;
  border-color: var(--line);
}

.event-item-detail .event-detail-desc {
  margin-top: 0.45rem;
  white-space: pre-wrap;
}

.event-item:hover {
  border-color: rgba(31, 122, 58, 0.25);
}

.gcal-color-dot {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  margin-right: 0.35rem;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.event-date {
  background: var(--white);
  border-radius: 12px;
  text-align: center;
  padding: 0.45rem 0.2rem;
}

.event-date .day {
  display: block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
}

.event-date .mon {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--muted);
}

.event-item h4 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.event-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.empty-state {
  color: var(--muted);
  text-align: center;
  padding: 2rem 1rem;
}

/* —— About / contact —— */
.about-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
}

.about-copy {
  font-size: 1.08rem;
  color: var(--muted);
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.contact-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.contact-list strong {
  color: var(--green-deep);
}

.contact-panel .social-block,
#contact-social,
#footer-social {
  display: block;
  visibility: visible;
  opacity: 1;
}

.social-ig-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem 1rem;
  align-items: start;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.social-ig-row .form-row-2 {
  margin: 0;
}

.home-ig-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green-deep);
  padding-top: 1.65rem;
  white-space: nowrap;
  cursor: pointer;
}

.home-ig-check input {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--green);
}

/* —— Footer —— */
.site-footer {
  margin-top: 2rem;
  padding: 2rem 0;
  background: var(--green-deep);
  color: rgba(255, 255, 255, 0.9);
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.site-footer .social-follow-label {
  color: rgba(255, 255, 255, 0.95);
}

.site-footer .footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

/* —— Auth / staff pages —— */
.auth-page {
  min-height: calc(100vh - var(--nav-h));
  display: grid;
  place-items: center;
  padding: 2rem 0 3rem;
}

.auth-card {
  width: min(100%, 440px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  box-shadow: var(--shadow);
  animation: rise 0.5s ease both;
}

.auth-card h1 {
  margin: 0 0 0.4rem;
  font-size: 1.8rem;
  color: var(--green-deep);
}

.auth-card .lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

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

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font: inherit;
  background: #fbfdfb;
  color: var(--ink);
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(31, 122, 58, 0.35);
  border-color: var(--green);
}

.form-note {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-align: center;
}

.form-note a {
  color: var(--green);
  font-weight: 700;
}

.alert {
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
  font-weight: 600;
  font-size: 0.92rem;
}

.alert-error {
  background: #fdecea;
  color: #8a1f14;
}

.alert-ok {
  background: var(--green-soft);
  color: var(--green-deep);
}

.alert.is-flashing {
  animation: alert-flash 0.85s ease;
}

.alert-ok.is-flashing {
  animation-name: alert-flash-ok;
}

.alert-error.is-flashing {
  animation-name: alert-flash-err;
}

@keyframes alert-flash-ok {
  0% {
    background: #9be6b0;
    box-shadow: 0 0 0 0 rgba(31, 122, 58, 0.45);
    transform: scale(1.01);
  }
  100% {
    background: var(--green-soft);
    box-shadow: 0 0 0 14px transparent;
    transform: scale(1);
  }
}

@keyframes alert-flash-err {
  0% {
    background: #ffc9c9;
    box-shadow: 0 0 0 0 rgba(180, 40, 40, 0.35);
    transform: scale(1.01);
  }
  100% {
    background: #fdecea;
    box-shadow: 0 0 0 14px transparent;
    transform: scale(1);
  }
}

.staff-shell {
  padding: 2rem 0 3rem;
}

.staff-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.staff-menu-btn {
  position: relative;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(20, 85, 40, 0.08);
}

.staff-menu-btn span {
  display: block;
  width: 1.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--green-deep);
}

.staff-menu-btn:hover {
  border-color: var(--green);
}

.staff-menu-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.staff-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 30, 18, 0.35);
}

.staff-menu-panel {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(20rem, 88vw);
  background: var(--white);
  padding: 1.1rem 1rem 1.5rem;
  box-shadow: 8px 0 30px rgba(20, 85, 40, 0.12);
  overflow: auto;
}

.staff-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--green-deep);
}

.staff-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.staff-menu-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
}

.staff-menu-link .notif-badge {
  position: static;
  flex-shrink: 0;
}

.staff-menu-link:hover,
.staff-menu-link.is-active {
  background: var(--green-soft);
  color: var(--green-deep);
}

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

.dash-tile {
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  box-shadow: 0 10px 30px rgba(20, 85, 40, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
  min-height: 11rem;
}

.dash-tile .notif-badge {
  top: 0.75rem;
  right: 0.75rem;
}

.dash-tile-alert {
  color: #c44536;
  font-weight: 750;
}

.dash-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 122, 58, 0.35);
  box-shadow: 0 14px 34px rgba(20, 85, 40, 0.1);
}

.dash-tile-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.dash-tile h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: var(--green-deep);
}

.dash-tile-preview {
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
}

body.staff-menu-open {
  overflow: hidden;
}

.staff-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1.5rem;
}

.staff-hero > a.btn {
  margin-left: auto;
}

.staff-hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--green-deep);
}

.staff-hero p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.staff-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.25rem;
  align-items: start;
}

.staff-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.staff-grid .wide,
.staff-grid #admin-panel,
.staff-grid #social-panel,
.staff-grid #gcal-panel,
.staff-grid .staff-main.wide {
  grid-column: 1 / -1;
}

.panel h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  color: var(--green-deep);
}

.panel .hint {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.gcal-frame {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: 16px;
  background: var(--green-soft);
}

.event-admin-item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.event-admin-item:last-child {
  border-bottom: 0;
}

.placeholder-box {
  border: 2px dashed rgba(31, 122, 58, 0.25);
  border-radius: 16px;
  padding: 1.5rem;
  background: var(--green-soft);
  color: var(--muted);
  text-align: center;
}

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

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--green-soft);
  color: var(--green-deep);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-weight: 700;
  font-size: 0.9rem;
  position: relative;
}

.notif-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: #c44536;
  color: white;
  font-size: 0.68rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--paper);
}

.song-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.song-row {
  appearance: none;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.song-row:hover {
  border-color: rgba(31, 122, 58, 0.35);
  background: var(--green-soft);
  transform: translateY(-1px);
}

.song-title {
  font-weight: 700;
  color: var(--green-deep);
}

.song-action {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}

.proposal-mini {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.proposal-mini li {
  margin: 0.25rem 0;
}

/* —— View bar (gruppo > branca) —— */
.view-bar {
  position: sticky;
  top: var(--nav-h);
  z-index: 40;
  background: rgba(247, 250, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 0;
}

.view-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.view-gruppo {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--green-deep);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.35rem 0.7rem;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.view-gruppo:hover {
  background: var(--green-soft);
}

.view-gruppo.is-active {
  background: var(--green);
  color: white;
}

.view-divider {
  width: 1px;
  height: 1.4rem;
  background: var(--line);
}

.branch-menu {
  position: relative;
}

.branch-menu-trigger {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--green-deep);
  font: inherit;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.branch-menu-trigger:hover,
.branch-menu.is-open .branch-menu-trigger {
  border-color: rgba(31, 122, 58, 0.35);
}

.branch-menu-trigger.is-active {
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(20, 85, 40, 0.12);
  font-weight: 800;
}

.branch-menu-trigger.is-active.pastel-branco {
  background: #ffd7a3;
  color: #6b3f00;
}

.branch-menu-trigger.is-active.pastel-reparto {
  background: #b7e8d0;
  color: #0f4a2f;
}

.branch-menu-trigger.is-active.pastel-noviziato {
  background: #cdc6ff;
  color: #2f2670;
}

.branch-menu-trigger.is-active.pastel-clan {
  background: #ffc2d4;
  color: #6b1030;
}

.branch-menu-caret {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid currentColor;
  opacity: 0.7;
  transition: transform 0.2s ease;
}

.branch-menu.is-open .branch-menu-caret {
  transform: rotate(180deg);
}

.branch-menu-panel {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  min-width: 12.5rem;
  max-height: 14rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0.4rem;
  box-shadow: 0 16px 36px rgba(20, 85, 40, 0.14);
  z-index: 60;
  display: grid;
  gap: 0.3rem;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.branch-menu:hover .branch-menu-panel,
.branch-menu.is-open .branch-menu-panel,
.branch-menu:focus-within .branch-menu-panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.branch-menu-item {
  appearance: none;
  border: none;
  width: 100%;
  text-align: left;
  font: inherit;
  font-weight: 700;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink);
  transition: filter 0.15s ease, transform 0.15s ease;
}

.branch-menu-item:hover,
.branch-menu-item.is-selected {
  filter: brightness(0.97);
  transform: translateX(2px);
}

.branch-menu-item.is-selected {
  outline: 2px solid rgba(31, 122, 58, 0.25);
  outline-offset: -2px;
}

/* pastelli solo nel menu */
.pastel-branco {
  background: #ffe8c8;
}

.pastel-reparto {
  background: #d8f0e4;
}

.pastel-noviziato {
  background: #e4e0ff;
}

.pastel-clan {
  background: #ffe0ea;
}

.view-current {
  margin-left: auto;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

#view-root {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#view-root.is-switching {
  opacity: 0.35;
  transform: translateY(6px);
}

.event-item-top {
  margin-bottom: 0.25rem;
}

.event-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.badge-gruppo {
  background: var(--green-soft);
  color: var(--green-deep);
}

.badge-branca {
  background: #e8f1ff;
  color: #1d4f91;
}

.badge-staff {
  background: #f3e8ff;
  color: #6b2d8b;
}

.badge-coca {
  background: var(--yellow-soft);
  color: #7a5a00;
}

.badge-google {
  background: #e8f0fe;
  color: #1a56db;
}

/* —— Home tiles (wireframe) —— */
.home-tiles {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.1rem;
}

.home-tile {
  grid-column: span 4;
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(20, 85, 40, 0.06);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

a.home-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 122, 58, 0.35);
  box-shadow: 0 14px 34px rgba(20, 85, 40, 0.1);
}

.home-tile h2 {
  margin: 0 0 0.85rem;
  font-size: 1.25rem;
  color: var(--green-deep);
  font-family: "Bricolage Grotesque", sans-serif;
}

.home-tile-body {
  flex: 1;
  font-size: 0.95rem;
  color: var(--ink);
}

.home-tile-body p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.home-tile-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.home-tile-list li {
  font-weight: 700;
  color: var(--green-deep);
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  background: #f3f8f3;
}

.home-tile-orari {
  grid-column: span 6;
  background:
    linear-gradient(160deg, rgba(31, 122, 58, 0.14), transparent 55%),
    var(--white);
}

.home-tile-notizie {
  grid-column: span 3;
  background:
    linear-gradient(160deg, rgba(31, 122, 58, 0.1), transparent 55%),
    var(--white);
}

.home-tile-sedi {
  grid-column: span 3;
  background:
    linear-gradient(160deg, rgba(84, 132, 237, 0.1), transparent 55%),
    var(--white);
}

.home-tile-iscrizioni,
.home-tile-negozio,
.home-tile-chisiamo {
  grid-column: span 4;
}

.home-tile-iscrizioni {
  background:
    linear-gradient(160deg, rgba(240, 194, 26, 0.22), transparent 55%),
    var(--white);
}

.home-tile-negozio {
  background:
    linear-gradient(160deg, rgba(196, 120, 40, 0.2), transparent 55%),
    var(--white);
}

.home-tile-galleria {
  background:
    linear-gradient(160deg, rgba(84, 132, 237, 0.2), transparent 55%),
    var(--white);
}

.home-tile-chisiamo {
  background:
    linear-gradient(160deg, rgba(31, 122, 58, 0.14), transparent 55%),
    var(--white);
}

.meeting-hours-compact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.meeting-hours-compact li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
  padding: 0.45rem 0.55rem;
  border-radius: 10px;
  background: #f3f8f3;
  font-size: 0.9rem;
}

.meeting-hours-compact .mh-branca {
  font-weight: 800;
  color: var(--green-deep);
}

.meeting-hours-compact .mh-when {
  color: var(--muted);
}

/* —— Negozio / Magazzino di Kala Nag —— */
.shop-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.1rem;
}

.shop-sort {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--green-deep);
}

.shop-sort select {
  font: inherit;
  padding: 0.4rem 0.65rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
}

.shop-list {
  display: grid;
  gap: 1rem;
}

.shop-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem 1.15rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 24px rgba(20, 85, 40, 0.05);
}

.shop-item-media {
  width: 140px;
  height: 140px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f0ea;
  display: grid;
  place-items: center;
}

.shop-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.shop-item-placeholder {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #a07a4a;
  text-align: center;
  padding: 0.5rem;
}

.shop-item-body {
  min-width: 0;
}

.shop-item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 0.75rem;
}

.shop-item-name {
  margin: 0;
  font-size: 1.2rem;
  color: var(--green-deep);
  font-family: "Bricolage Grotesque", sans-serif;
}

.shop-item-type {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--muted);
}

.shop-item-price {
  margin: 0.45rem 0 0.2rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.shop-item-avail {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.shop-item-avail.is-yes {
  color: var(--green);
}

.shop-item-avail.is-no {
  color: #a33;
}

.shop-item-notes {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
}

.shop-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin-top: 1.6rem;
}

.shop-admin-row {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.shop-admin-row:last-child {
  border-bottom: 0;
}

.shop-admin-thumb {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f0ea;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  color: var(--muted);
  text-align: center;
}

.shop-admin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shop-admin-meta {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.shop-admin-meta strong {
  color: var(--green-deep);
}

.shop-dialog {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
  width: min(92vw, 420px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

.shop-dialog::backdrop {
  background: rgba(20, 40, 25, 0.45);
}

.shop-dialog h2 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--green-deep);
  font-family: "Bricolage Grotesque", sans-serif;
}


.news-preview-date {
  margin: 0 0 0.35rem;
}

.news-preview-title {
  margin: 0 0 0.35rem;
  color: var(--ink);
}

.news-preview-text {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.sede-page-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.sede-page-card h2 {
  margin: 0 0 0.5rem;
  color: var(--green-deep);
  font-family: "Bricolage Grotesque", sans-serif;
}

.sede-page-card p {
  margin: 0 0 1rem;
  color: var(--muted);
}

/* —— Home highlights / orari / social (legacy helpers) —— */
.highlights-grid .dest-card {
  grid-column: span 4;
  min-height: 200px;
}

.dest-card.tile-notizie {
  background-image:
    linear-gradient(135deg, rgba(31, 122, 58, 0.72), rgba(20, 85, 40, 0.35)),
    url("https://images.unsplash.com/photo-1504711434969-e33886168f5c?auto=format&fit=crop&w=1200&q=80");
}

.dest-card.tile-iscrizioni {
  background-image:
    linear-gradient(135deg, rgba(240, 194, 26, 0.65), rgba(31, 122, 58, 0.45)),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1200&q=80");
}

.dest-card.tile-chisiamo {
  background-image:
    linear-gradient(135deg, rgba(29, 79, 145, 0.55), rgba(31, 122, 58, 0.4)),
    url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1200&q=80");
}

.meeting-hours-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.meeting-hours-list li {
  display: grid;
  grid-template-columns: minmax(9rem, 12rem) 1fr auto;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7faf7;
}

.mh-branca {
  font-weight: 800;
  color: var(--green-deep);
  font-family: "Bricolage Grotesque", sans-serif;
}

.mh-when {
  color: var(--ink);
}

.mh-place {
  color: var(--muted);
  font-size: 0.92rem;
}

.news-list {
  display: grid;
  gap: 1rem;
}

.news-item h3 {
  margin: 0 0 0.25rem;
  font-family: "Bricolage Grotesque", sans-serif;
  color: var(--green-deep);
}

.social-follow {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.social-follow-label {
  font-weight: 800;
  font-family: "Bricolage Grotesque", sans-serif;
  color: var(--green-deep);
  font-size: 1.05rem;
}

.social-icon-row {
  display: flex !important;
  gap: 0.55rem;
  align-items: center;
}

.social-icon-btn {
  width: 2.55rem;
  height: 2.55rem;
  min-width: 2.55rem;
  min-height: 2.55rem;
  border-radius: 999px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  text-decoration: none !important;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.social-icon-btn svg {
  width: 1.2rem;
  height: 1.2rem;
}

.social-icon-fb {
  background: #1877f2;
}

.social-icon-ig {
  background: linear-gradient(45deg, #f58529, #dd2a7b, #8134af);
}

.social-icon-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(20, 85, 40, 0.18);
}

.social-full-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.social-full-list a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  background: #f7faf7;
}

.social-full-list a:hover {
  border-color: rgba(31, 122, 58, 0.35);
  color: var(--green-deep);
}

.social-full-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
  background: var(--green);
  flex-shrink: 0;
}

.social-full-icon svg {
  width: 1rem;
  height: 1rem;
}

.social-form-heading {
  margin: 0.5rem 0 0;
  grid-column: 1 / -1;
  color: var(--green-deep);
  font-family: "Bricolage Grotesque", sans-serif;
}

.dash-grid-side {
  display: grid;
  gap: 0.85rem;
}

.dash-side-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  margin-bottom: 0.65rem;
}

.dash-side-title {
  margin: 0;
  font-size: 1.15rem;
  color: var(--green-deep);
  font-family: "Bricolage Grotesque", sans-serif;
}

.dash-customize-panel {
  margin-bottom: 0.85rem;
}

.dash-customize-list {
  display: grid;
  gap: 0.45rem;
}

.dash-customize-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}

  grid-template-columns: 1fr;
}

.staff-dash-layout {
  align-items: start;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  align-items: center;
  justify-content: space-between;
}

.meeting-edit-row {
  display: grid;
  grid-template-columns: 7rem 1fr 1fr 1fr;
  gap: 0.65rem;
  align-items: end;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.mh-edit-label {
  padding-bottom: 0.55rem;
  color: var(--green-deep);
}

/* —— Chi siamo page —— */
.page-hero {
  padding: 3rem 0 1.5rem;
  background:
    radial-gradient(900px 400px at 0% 0%, rgba(240, 194, 26, 0.2), transparent 60%),
    linear-gradient(180deg, #f3f9f4, transparent);
}

.page-hero h1 {
  margin: 0.2rem 0 0.4rem;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  color: var(--green-deep);
  font-family: "Bricolage Grotesque", sans-serif;
}

.page-hero-lead {
  margin: 0;
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.about-layout {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 1.25rem;
  align-items: start;
}

.about-figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 10px 30px rgba(20, 85, 40, 0.06);
}

.about-figure img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.about-figure figcaption {
  padding: 0.65rem 0.9rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.about-gallery-item {
  min-height: 200px;
  border-radius: var(--radius);
  background-size: cover;
  background-position: center;
  border: 1px solid var(--line);
}

.about-gallery-item.g1 {
  background-image:
    linear-gradient(rgba(20, 85, 40, 0.15), rgba(20, 85, 40, 0.25)),
    url("https://images.unsplash.com/photo-1504280390227-331bef20bbe4?auto=format&fit=crop&w=1000&q=80");
}

.about-gallery-item.g2 {
  background-image:
    linear-gradient(rgba(20, 85, 40, 0.15), rgba(20, 85, 40, 0.25)),
    url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1000&q=80");
}

.about-gallery-item.g3 {
  background-image:
    linear-gradient(rgba(20, 85, 40, 0.15), rgba(20, 85, 40, 0.25)),
    url("https://images.unsplash.com/photo-1441974231531-c6227db76b6e?auto=format&fit=crop&w=1000&q=80");
}

.reparto-actions .dest-card {
  grid-column: span 4;
  min-height: 240px;
}

.next-event-card {
  padding: 1.6rem 1.7rem;
}

.next-event-meta {
  margin: 0.25rem 0;
  color: var(--muted);
}

.next-event-desc {
  margin: 0.9rem 0 0;
  font-size: 1.05rem;
}

.check-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
}

.check-row input {
  width: auto;
}

.book-meta-row {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.btn-download {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--green-deep);
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.btn-download:hover {
  background: var(--green-soft);
  transform: translateY(-1px);
}

.gcal-overlay-list {
  display: grid;
  gap: 1rem;
}

.gcal-overlay-item .gcal-frame {
  min-height: 360px;
}

/* Canzoniere PDF viewer */
.canzoniere-page {
  min-height: 100vh;
}

.pdf-wrap {
  width: min(100% - 2rem, 1180px);
  margin: 1.25rem auto 0;
}

.pdf-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.pdf-toolbar h1 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--green-deep);
}

.pdf-toolbar p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.pdf-stage {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 82vh;
}

.pdf-viewer {
  display: none;
  width: 100%;
  height: 82vh;
  min-height: 420px;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
  background: #ecefe9;
  padding: 0.5rem 0.35rem 1rem;
  box-sizing: border-box;
  text-align: center;
}

.pdf-viewer.is-visible,
.pdf-viewer:not([hidden]) {
  display: block;
}

.pdf-viewer[hidden] {
  display: none !important;
}

.pdf-viewer-status {
  margin: 2rem 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.pdf-page-canvas {
  display: block;
  margin: 0 auto 0.65rem;
  max-width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.pdf-frame {
  width: 100%;
  height: 82vh;
  min-height: 640px;
  border: 0;
  display: none;
  background: #f4f6f4;
}

.pdf-frame.is-visible {
  display: block;
}

.pdf-empty {
  display: none;
  min-height: 82vh;
  place-items: center;
  color: var(--muted);
  padding: 2rem;
  text-align: center;
  background: var(--green-soft);
}

.pdf-empty.is-visible,
.pdf-empty:not([hidden]) {
  display: grid;
}

.pdf-empty[hidden] {
  display: none !important;
}

.pdf-stage.is-pseudo-fs {
  position: fixed;
  inset: 0;
  z-index: 10000;
  width: 100%;
  height: 100%;
  min-height: 100%;
  border-radius: 0;
  border: 0;
  background: #111;
  display: flex;
  flex-direction: column;
}

.pdf-stage.is-pseudo-fs .pdf-frame,
.pdf-stage.is-pseudo-fs .pdf-viewer {
  display: block !important;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: #fff;
}

.pdf-stage.is-pseudo-fs .pdf-exit-fs {
  display: inline-flex !important;
}

body.pdf-pseudo-fs-open {
  overflow: hidden;
}

.pdf-exit-fs {
  display: none !important;
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 5;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.pdf-exit-fs.is-visible,
.pdf-stage:fullscreen .pdf-exit-fs.is-visible {
  display: inline-flex !important;
}

.pdf-exit-fs[hidden] {
  display: none !important;
}

.pdf-stage:fullscreen,
.pdf-stage.is-fs:fullscreen {
  border-radius: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  background: #111;
  display: flex;
  flex-direction: column;
}

.pdf-stage:fullscreen .pdf-frame,
.pdf-stage:fullscreen .pdf-viewer,
.pdf-frame:fullscreen {
  display: block !important;
  width: 100%;
  height: 100%;
  min-height: 100%;
  flex: 1;
  background: #fff;
}

.pdf-frame:fullscreen {
  border: 0;
}

/* —— Sentiero / specialità —— */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 1rem;
}

.spec-card {
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 0.85rem 0.75rem 1rem;
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(20, 85, 40, 0.05);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  font: inherit;
  color: inherit;
}

.spec-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 122, 58, 0.35);
  box-shadow: 0 12px 28px rgba(20, 85, 40, 0.1);
}

.spec-card-media {
  width: 88px;
  height: 88px;
  border-radius: 18px;
  overflow: hidden;
  background: #f3f8f3;
  display: grid;
  place-items: center;
}

.spec-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.spec-card-placeholder {
  color: var(--green);
  font-size: 1.4rem;
}

.spec-card-name {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--green-deep);
  line-height: 1.25;
}

.sentiero-libretto .section-head {
  align-items: center;
}

.dest-card.sentiero {
  background:
    linear-gradient(145deg, rgba(60, 130, 90, 0.18), transparent 50%),
    linear-gradient(160deg, #f7fbf7, #eef6ef);
}

@media (max-width: 900px) {
  .reparto-actions .dest-card {
    grid-column: span 12;
  }

  .pdf-wrap {
    width: min(100% - 1.25rem, 1180px);
  }

  .pdf-frame,
  .pdf-viewer,
  .pdf-stage {
    height: auto;
    min-height: 70vh;
  }

  .pdf-frame,
  .pdf-viewer {
    height: 70vh;
    min-height: 420px;
  }

  .pdf-stage.is-pseudo-fs,
  .pdf-stage.is-pseudo-fs .pdf-frame,
  .pdf-stage.is-pseudo-fs .pdf-viewer {
    height: 100%;
    min-height: 100%;
  }
}

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

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(-40%) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) scale(1);
  }
}

@media (max-width: 900px) {
  .nav-menu-btn {
    display: inline-flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.45rem);
    left: 0;
    right: 0;
    z-index: 60;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 16px 34px rgba(20, 85, 40, 0.14);
  }

  .site-nav.is-nav-open .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    font-weight: 650;
  }

  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    background: var(--green-soft);
    color: var(--green-deep);
  }

  .hero-logo {
    display: none;
  }

  .view-current {
    display: none;
  }

  .shop-item {
    grid-template-columns: 1fr;
  }

  .shop-item-media {
    width: 100%;
    height: 200px;
  }

  .shop-admin-row {
    grid-template-columns: 64px 1fr;
  }

  .shop-admin-row .inline-actions {
    grid-column: 1 / -1;
  }

  .dest-card.sede-a,
  .dest-card.sede-b,
  .dest-card.campo,
  .dest-card.sangiorgio,
  .dest-card.sentiero,
  .highlights-grid .dest-card,
  .home-tile,
  .home-tile-orari,
  .home-tile-notizie,
  .home-tile-sedi,
  .home-tile-iscrizioni,
  .home-tile-negozio,
  .home-tile-chisiamo {
    grid-column: span 12;
    min-height: 180px;
  }

  .home-tiles,
  .sede-page-grid {
    grid-template-columns: 1fr;
  }

  .meeting-hours-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

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

  .about-layout,
  .about-gallery {
    grid-template-columns: 1fr;
  }

  .calendar-layout,
  .about-grid,
  .staff-grid,
  .dash-grid {
    grid-template-columns: 1fr;
  }

  .calendar-layout {
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  .calendar-layout > .panel:first-child {
    order: 2;
  }

  .calendar-layout > .panel:last-child {
    order: 1;
  }

  .cal-day {
    min-height: 3.35rem;
    padding: 0.28rem 0.22rem 0.3rem;
    font-size: 0.8rem;
  }

  .cal-day-title {
    -webkit-line-clamp: 2;
    font-size: 0.62rem;
  }

  .event-list {
    max-height: none;
  }

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

/* —— Galleria foto —— */
.gallery-featured {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.65rem;
  align-items: center;
}

.gallery-feat-nav {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  font-size: 1.6rem;
  line-height: 1;
  padding: 0;
}

.gallery-featured-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-featured-viewport::-webkit-scrollbar {
  display: none;
}

.gallery-featured-track {
  display: flex;
  gap: 0.65rem;
  padding: 0.15rem;
}

.gallery-feat-slide {
  appearance: none;
  position: relative;
  border: 2px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  padding: 0;
  background: #e8eee8;
  cursor: pointer;
  flex: 0 0 min(320px, 78%);
  aspect-ratio: 4 / 3;
  scroll-snap-align: center;
}

.gallery-feat-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-feat-slide.is-active {
  border-color: var(--green-deep);
  box-shadow: none;
}

.gallery-hover-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1.6rem 0.75rem 0.7rem;
  background: linear-gradient(transparent, rgba(8, 22, 12, 0.78));
  color: #f4f7f4;
  text-align: left;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.gallery-hover-label strong {
  font-size: 0.95rem;
}

.gallery-hover-label span {
  font-size: 0.82rem;
  opacity: 0.92;
  line-height: 1.3;
}

@media (hover: hover) {
  .gallery-card:hover .gallery-hover-label,
  .gallery-feat-slide:hover .gallery-hover-label {
    opacity: 1;
  }
}

.gallery-branca-select select {
  min-width: 11rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
  background: var(--white);
}

.gallery-feat-check {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

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

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.gallery-card {
  appearance: none;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  padding: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  box-shadow: 0 8px 22px rgba(20, 85, 40, 0.06);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.gallery-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(20, 85, 40, 0.1);
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e8eee8;
}

.gallery-upload-progress {
  display: grid;
  gap: 0.35rem;
}

.gallery-upload-bar {
  height: 0.45rem;
  border-radius: 999px;
  background: #e4ebe4;
  overflow: hidden;
}

.gallery-upload-bar span {
  display: block;
  height: 100%;
  width: 0%;
  background: var(--green);
  transition: width 0.2s ease;
}

.gallery-admin-item {
  display: grid;
  grid-template-columns: 96px 1fr auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.65rem 0.7rem;
  margin: 0.35rem 0;
  border: 2px solid transparent;
  border-radius: 14px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.gallery-admin-item:hover {
  background: rgba(31, 122, 58, 0.04);
}

.gallery-admin-item.is-featured {
  border-color: var(--green-deep);
  background: rgba(20, 85, 40, 0.05);
}

.gallery-admin-item img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  background: #e8eee8;
  pointer-events: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  background: rgba(10, 24, 16, 0.82);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem;
}

.gallery-lightbox[hidden] {
  display: none !important;
}

.gallery-lightbox img {
  max-width: min(960px, 100%);
  max-height: min(78vh, 100%);
  object-fit: contain;
  border-radius: 12px;
  background: #111;
}

.gallery-lb-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--white) !important;
}

.gallery-lb-cap {
  margin: 0;
  color: #f4f7f4;
  text-align: center;
  max-width: 40rem;
}

body.gallery-lb-open {
  overflow: hidden;
}

/* —— Pagina non ancora pronta —— */
.page-soon {
  margin-top: 0.75rem;
}

.page-soon-inner {
  display: grid;
  justify-items: center;
  gap: 1rem;
  text-align: center;
  padding: 0.5rem 0 1rem;
}

.page-soon-inner img {
  width: min(380px, 92%);
  height: auto;
  display: block;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
}

.page-soon-inner p {
  margin: 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.45;
}

.media-thumb {
  appearance: none;
  display: block;
  margin-top: 0.75rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #e8eee8;
  cursor: zoom-in;
  max-width: min(280px, 100%);
}

.media-thumb img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
}

.media-thumb-admin {
  max-width: 140px;
  margin-top: 0.5rem;
}

.media-thumb-admin img {
  max-height: 100px;
}

.news-item .media-thumb {
  max-width: min(360px, 100%);
}

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

  .gallery-feat-slide {
    flex-basis: min(100%, 86vw);
  }
}

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

  .gallery-admin-item {
    grid-template-columns: 72px 1fr;
  }

  .gallery-admin-item button {
    grid-column: 1 / -1;
  }
}
