:root {
  --bcc-deep: #1A4137;   /* verde scuro - colore tema ufficiale del sito */
  --bcc-blue: #62B5E4;   /* azzurro - accent (da verificare su template.css) */
  --bcc-gold: #c7933a;   /* oro - accent "Noi x Voi" */
  --bcc-cream: #F8F7F3;  /* sfondo chiaro */
  --radius-lg: 30px;

  --font-display: 'Bebas Neue', sans-serif; /* titoli/hero */
  --font-heading: 'Chivo', sans-serif;      /* sottotitoli/etichette */
  --font-body: 'Roboto', sans-serif;        /* testo corrente */
}

body {
  font-family: var(--font-body);
  color: var(--bcc-deep);
  background-color: #ffffff;
}
h1, h2, h3, .hero-title, .section-title {
  font-family: var(--font-display);
  letter-spacing: .5px;
}
.navbar-brand, .eyebrow-label, .event-date {
  font-family: var(--font-heading);
}

/* ===== Navbar ===== */
.navbar-bcc {
  background-color: #ffffff;
  padding-top: .9rem;
  padding-bottom: .9rem;
  box-shadow: 0 2px 12px rgba(26,65,55,.08);
}
.navbar-bcc .nav-link {
  color: var(--bcc-deep);
  font-weight: 500;
  margin: 0 .5rem;
}
.navbar-bcc .nav-link.active,
.navbar-bcc .nav-link:hover {
  color: #000000;
}
.navbar-logo {
  height: 44px;
  width: auto;
}
.btn-bcc-accent {
  background-color: var(--bcc-blue);
  border: none;
  color: #ffffff;
  font-weight: 600;
}
.btn-bcc-accent:hover {
  background-color: #4ea3d6;
  color: #ffffff;
}
.btn-bcc-outline {
  border: 2px solid var(--bcc-deep);
  color: var(--bcc-deep);
  font-weight: 600;
  background: transparent;
}
.btn-bcc-outline:hover {
  background-color: var(--bcc-deep);
  color: #ffffff;
}

/* ===== Hero Slider ===== */
.hero-bcc {
  position: relative;
  margin-top: 76px;
  min-height: 60vh;
  overflow: hidden;
}
.hero-bcc .carousel,
.hero-bcc .carousel-inner,
.hero-bcc .carousel-item {
  min-height: 60vh;
}
.hero-slide {
  min-height: 60vh;
  background-color: #2a5346; /* fallback finché non ci sono foto reali */
  background-size: cover;
  background-position: center;
  position: relative;
}
.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26,65,55,.35) 0%, rgba(26,65,55,.12) 45%, rgba(26,65,55,.05) 100%);
}
.hero-overlay-content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  pointer-events: none;
  z-index: 2;
}
.hero-overlay-content .btn,
.hero-overlay-content .btn-hero-white {
  pointer-events: auto;
}
.carousel-indicators {
  z-index: 3;
}
.carousel-control-prev,
.carousel-control-next {
  z-index: 3;
  width: 5%;
}
.eyebrow-label {
  color: var(--bcc-blue);
  font-weight: 600;
  letter-spacing: .3px;
}
.hero-title {
  font-size: clamp(2.6rem, 5vw, 4.2rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
}
.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  max-width: 46ch;
}

/* ===== Hero home v2: testo "evidenziatore" ===== */
.eyebrow-label-v2 {
  color: var(--bcc-blue);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: .85rem;
}
.hero-title-v2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
  line-height: 1.35;
  text-transform: none;
  margin: 0;
}
.hero-title-v2 span {
  background-color: var(--bcc-blue);
  color: #ffffff;
  padding: .12em .35em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  font-weight: 400;
}
.hero-sub-v2 {
  max-width: 46ch;
  font-size: 1.05rem;
  line-height: 1.6;
}
.hero-sub-v2 span {
  background-color: rgba(255,255,255,.9);
  color: var(--bcc-deep);
  padding: .15em .4em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  font-weight: 500;
}
.btn-hero-white {
  display: inline-flex;
  align-items: center;
  background-color: #ffffff;
  color: var(--bcc-deep);
  font-weight: 600;
  padding: .75rem 1.6rem;
  border-radius: 50px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
  transition: transform .2s ease, box-shadow .2s ease;
}
.btn-hero-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.2);
  color: var(--bcc-deep);
}

/* ===== Section titles ===== */
.section-title {
  font-weight: 400;
  font-size: 2.6rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--bcc-deep);
}
.section-sub {
  font-size: 1rem;
}
#eventi {
  scroll-margin-top: 80px;
}

/* ===== Sezione "Perché reinvestiamo" ===== */
.perche-title {
  font-family: 'Poppins', var(--font-heading), sans-serif;
  font-weight: 700;
  font-size: 2.2rem;
  line-height: 1.3;
  color: var(--bcc-blue);
}
.perche-list {
  padding-left: 1.1rem;
  color: #3c4c47;
  font-size: .97rem;
  line-height: 1.6;
}
.perche-list li {
  margin-bottom: .7rem;
}
.stat-box {
  padding: 1rem;
}
.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: rgba(98,181,228,.12);
  color: var(--bcc-blue);
  font-size: 1.6rem;
  margin-bottom: 1rem;
}
.stat-number {
  font-family: 'Poppins', var(--font-heading), sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--bcc-blue);
  line-height: 1.1;
}
.stat-caption {
  color: #5c6d67;
  font-size: .9rem;
  max-width: 30ch;
  margin: .5rem auto 0;
}

/* ===== Event cards ===== */
.event-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(25,53,45,.08);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease;
}
.event-card:hover {
  transform: translateY(-4px);
}
.event-card-img {
  height: 200px;
  background-color: #dfe9e6;
  position: relative;
  cursor: pointer;
  overflow: hidden;
}
.event-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .3s ease;
}
.event-card-img:hover img {
  transform: scale(1.04);
}
.badge-prenotabile,
.badge-chiuso {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: .35rem .8rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
}
.badge-prenotabile {
  background-color: var(--bcc-green);
  color: #ffffff;
}
.badge-chiuso {
  background-color: rgba(25,53,45,.85);
  color: #ffffff;
}
.event-card-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.event-date {
  font-size: .85rem;
  color: var(--bcc-blue);
  font-weight: 600;
  margin-bottom: .4rem;
}
.event-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bcc-deep);
  margin-bottom: .5rem;
}
.event-location {
  font-size: .9rem;
  color: #6b7c76;
  margin-bottom: 0;
}
.event-card-closed {
  opacity: .7;
}

/* ===== Eventi passati ===== */
.bg-eventi-passati {
  background-color: var(--bcc-cream);
}
.event-card-passato {
  opacity: .85;
}
.event-card-passato .event-card-img img {
  filter: grayscale(35%);
}
.badge-passato {
  position: absolute;
  top: 14px;
  left: 14px;
  padding: .35rem .8rem;
  border-radius: 50px;
  font-size: .78rem;
  font-weight: 600;
  background-color: rgba(26,65,55,.85);
  color: #ffffff;
}

/* ===== Card evento v2 (immagine piccola centrata, descrizione, pulsante scuro) ===== */
.event-card-v2 {
  background: #ffffff;
  border: 1px solid #e6e9e7;
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.event-card-v2:hover {
  box-shadow: 0 8px 24px rgba(25,53,45,.1);
  transform: translateY(-2px);
}
.event-card-v2-img-wrap {
  width: 130px;
  height: 130px;
  margin: 0 auto 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: 0 4px 14px rgba(25,53,45,.15);
  flex-shrink: 0;
}
.event-card-v2-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform .3s ease;
}
.event-card-v2-img-wrap:hover img {
  transform: scale(1.06);
}
.badge-prenotabile-v2,
.badge-chiuso-v2,
.badge-passato-v2 {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  color: #ffffff;
}
.badge-prenotabile-v2 { background-color: var(--bcc-blue); }
.badge-chiuso-v2 { background-color: rgba(26,65,55,.85); }
.badge-passato-v2 {
  width: auto;
  height: auto;
  border-radius: 50px;
  padding: .25rem .6rem;
  font-size: .68rem;
  font-weight: 600;
  background-color: rgba(26,65,55,.85);
  top: 8px;
  right: 8px;
}
.event-card-v2-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}
.event-card-v2-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--bcc-deep);
  margin-bottom: .6rem;
  line-height: 1.15;
}
.event-card-v2-desc {
  font-size: .87rem;
  color: #5c6d67;
  line-height: 1.5;
  margin-bottom: 1rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.event-card-v2-date {
  font-family: var(--font-heading);
  font-size: .85rem;
  color: var(--bcc-blue);
  font-weight: 600;
  margin-top: auto;
  margin-bottom: 1rem;
}
.btn-dettagli {
  display: block;
  background-color: var(--bcc-deep);
  color: #ffffff;
  text-align: center;
  padding: .65rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
  transition: background-color .2s ease;
}
.btn-dettagli:hover {
  background-color: #123028;
  color: #ffffff;
}
.btn-dettagli-disabled {
  background-color: #b7c1bd;
  pointer-events: none;
}
.event-card-v2-passato {
  background-color: #fbfbf9;
}
.event-card-v2-passato .event-card-v2-img-wrap img {
  filter: grayscale(35%);
}

/* ===== Pagina Soci: accordion vantaggi ===== */
.soci-accordion .accordion-item {
  border: none;
  border-bottom: 1px solid #e6e9e7;
  background: transparent;
}
.soci-accordion .accordion-item:first-of-type,
.soci-accordion .accordion-item:last-of-type {
  border-radius: 0;
}
.soci-accordion .accordion-button {
  background: transparent;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--bcc-deep);
  padding: 1.5rem .5rem;
  box-shadow: none;
}
.soci-accordion .accordion-button:not(.collapsed) {
  background: transparent;
  color: var(--bcc-deep);
  box-shadow: none;
}
.soci-accordion .accordion-button:focus {
  box-shadow: none;
  border-color: transparent;
}
.soci-accordion .accordion-button::after {
  background-size: 1.1rem;
}
.soci-accordion-numero {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--bcc-blue);
  margin-right: 1rem;
  min-width: 2ch;
}
.soci-accordion-icona {
  font-size: 1.2rem;
  margin-right: .8rem;
  color: var(--bcc-gold);
}
.soci-accordion .accordion-body {
  padding: 0 .5rem 1.75rem 4.2rem;
  color: #5c6d67;
  font-size: .96rem;
  line-height: 1.65;
}

/* ===== Nav gold accent ===== */
.nav-link-gold {
  color: var(--bcc-gold) !important;
  font-weight: 600;
}
.nav-link-gold:hover {
  color: #e0ac52 !important;
}

/* ===== Footer ===== */
.footer-bcc {
  background-color: var(--bcc-deep);
}
.footer-logo {
  height: 40px;
  width: auto;
}
.footer-text {
  color: rgba(255,255,255,.7);
  font-size: .9rem;
  font-family: var(--font-heading);
}
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #ffffff;
  font-size: 1.1rem;
  text-decoration: none;
  transition: background .2s ease;
}
.social-icons a:hover {
  background: var(--bcc-gold);
}
.footer-link {
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .9rem;
  display: inline-block;
}
.footer-link:hover {
  color: #ffffff;
}
.footer-link-underline {
  text-decoration: underline;
}
.footer-divider {
  border-color: rgba(255,255,255,.15);
  margin: 1.5rem 0;
}
.footer-legal {
  margin: 0;
}
.footer-legal a {
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: .82rem;
}
.footer-legal a:hover {
  color: #ffffff;
}

/* ===== Pagina dettaglio evento ===== */
.evento-banner {
  position: relative;
  margin-top: 76px;
  min-height: 40vh;
  background-color: #2a5346;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.evento-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(26,65,55,.95) 0%, rgba(26,65,55,.55) 60%, rgba(26,65,55,.35) 100%);
}
.evento-banner-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  padding: 3rem 0 2.5rem;
}
.evento-meta {
  font-family: var(--font-heading);
  color: rgba(255,255,255,.85);
}
.evento-descrizione-wrap {
  overflow: hidden; /* "clearfix": fa sì che il blocco racchiuda anche l'immagine affiancata in float */
}
.evento-descrizione-img {
  float: right;
  width: 50%;
  height: auto;
  border-radius: var(--radius-lg);
  margin: 0 0 1rem 1.5rem;
  box-shadow: 0 6px 20px rgba(25,53,45,.12);
}
.evento-descrizione {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #3c4c47;
}
@media (max-width: 767.98px) {
  .evento-descrizione-img {
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0 0 1.25rem;
  }
}
.evento-info-box {
  background: var(--bcc-cream);
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
  font-size: .95rem;
  color: var(--bcc-deep);
}

/* ===== Form prenotazione ===== */
.booking-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: 0 6px 24px rgba(25,53,45,.1);
  padding: 2rem;
}
.booking-card .form-label {
  font-weight: 600;
  font-size: .9rem;
  color: var(--bcc-deep);
}
.booking-card .form-control,
.booking-card .form-select {
  border-radius: 10px;
  border-color: #d8ddd9;
  padding: .6rem .9rem;
}
.booking-card .form-control:focus,
.booking-card .form-select:focus {
  border-color: var(--bcc-blue);
  box-shadow: 0 0 0 .2rem rgba(98,181,228,.2);
}
.partecipante-extra {
  background: var(--bcc-cream);
  border-radius: 12px;
  border: 1px solid #e6e1d6;
}

/* ===== Sezioni interne al form di prenotazione ===== */
.booking-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #eceae4;
}
.booking-section:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}
.booking-section-title {
  font-family: var(--font-heading);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--bcc-blue);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
}
.booking-section-title i {
  font-size: 1rem;
}

/* Opzioni dell'evento (campi checkbox: bus navetta, pranzo sociale, ecc.) */
.evento-opzione-card {
  background: var(--bcc-cream);
  border: 1.5px solid transparent;
  border-radius: 12px;
  padding: .85rem 1.1rem;
  margin-bottom: .75rem;
  transition: border-color .15s ease, background-color .15s ease;
}
.evento-opzione-card .form-check {
  margin-bottom: 0;
}
.evento-opzione-card.is-selected {
  border-color: var(--bcc-blue);
  background: #eaf5fb;
}

/* Riquadro dedicato alle allergie/intolleranze (dato di salute, consenso a parte) */
.evento-allergie-card {
  background: #fdf8ee;
  border: 1.5px solid #eee0bd;
  border-radius: 14px;
  padding: 1rem 1.2rem;
  margin-bottom: 1rem;
}
.evento-allergie-card .form-check-label {
  font-size: .92rem;
}
.campo-allergie {
  background: #ffffff;
  border: 1px solid #e6e1d6;
  border-radius: 12px;
  padding: .9rem 1.1rem;
  margin-top: .75rem;
}

/* ===== Consenso foto/video: scelta esplicita =====
   Le due opzioni devono restare graficamente IDENTICHE (stessa dimensione,
   stesso peso, stesso colore): dare più risalto a "Acconsento" sarebbe un
   dark pattern e renderebbe il consenso viziato. */
.consenso-foto {
  background: #f4f8f7;
  border: 1.5px solid #cfe0da;
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
}
.consenso-foto-titolo {
  font-weight: 700;
  color: #1A4137;
  margin-bottom: .5rem;
}
.consenso-foto-testo {
  font-size: .92rem;
  margin-bottom: .9rem;
}
.consenso-foto-opzioni {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}
.consenso-foto-opzione {
  flex: 1 1 210px;
  display: flex;
  align-items: center;
  gap: .6rem;
  background: #ffffff;
  border: 1.5px solid #cfe0da;
  border-radius: 12px;
  padding: .75rem 1rem;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  margin: 0;
}
.consenso-foto-opzione:hover {
  border-color: #1A4137;
}
.consenso-foto-opzione:has(input:checked) {
  border-color: #1A4137;
  box-shadow: 0 0 0 2px rgba(26, 65, 55, .12);
}
.consenso-foto-opzione input {
  flex: 0 0 auto;
  margin: 0;
}
.consenso-foto-nota {
  font-size: .85rem;
  color: #5b6b66;
  margin: .85rem 0 0;
}

/* ===== Wizard di prenotazione (uno step alla volta) ===== */
.wizard-progress-track {
  height: 6px;
  border-radius: 999px;
  background: #e6e1d6;
  overflow: hidden;
}
.wizard-progress-fill {
  height: 100%;
  width: 0%;
  background: var(--bcc-blue);
  border-radius: 999px;
  transition: width .3s ease;
}
.wizard-progress-label {
  font-size: .8rem;
  font-weight: 600;
  color: var(--bcc-deep);
  margin: .5rem 0 0;
}
.wizard-step {
  display: none;
  animation: wizardFadeIn .25s ease;
}
@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.wizard-nav .btn {
  min-width: 120px;
}
.riepilogo-blocco {
  background: var(--bcc-cream);
  border-radius: 12px;
  padding: .9rem 1.1rem;
  margin-bottom: .75rem;
}
.riepilogo-blocco:last-child {
  margin-bottom: 0;
}
.riepilogo-titolo {
  font-family: var(--font-heading);
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--bcc-blue);
  margin-bottom: .5rem;
}
.riepilogo-lista {
  list-style: none;
  padding-left: 0;
  margin-bottom: 0;
  font-size: .92rem;
  color: #3c4c47;
}
.riepilogo-lista li {
  margin-bottom: .3rem;
}
.riepilogo-lista li:last-child {
  margin-bottom: 0;
}

.alert-bcc-closed {
  background: #f5eee0;
  color: #8a6d1f;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: .95rem;
}
.alert-bcc-error {
  background: #fbe7e5;
  color: #a13b2f;
  border-radius: 12px;
  padding: .9rem 1.1rem;
  font-size: .9rem;
}

/* ===== Pagina conferma ===== */
.codice-invito {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 1px;
  background: var(--bcc-cream);
  border-radius: 10px;
  padding: .6rem 1rem;
  display: inline-block;
  word-break: break-all;
}
.qr-code-img {
  width: 220px;
  height: 220px;
  border: 8px solid #ffffff;
  box-shadow: 0 4px 16px rgba(25,53,45,.12);
  border-radius: 12px;
}

/* =====================================================================
   Blocchi componibili delle pagine (modulo Pagine, stile "blocchi")
   Usano i colori e i caratteri del sito: una pagina nuova deve somigliare
   al resto, non a un modello Bootstrap scaricato.
   ===================================================================== */
.blocco { padding: 3.5rem 0; }
.blocco + .blocco { padding-top: 0; }
.blocco-titolo-sezione {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: .5px;
  color: var(--bcc-deep);
  margin-bottom: 1.75rem;
}

/* --- Copertina --- */
.blocco-copertina {
  color: #fff;
  padding: 4rem 0;
  margin-bottom: 0;
}
/* Copertina come prima cosa della pagina: lascia spazio alla barra fissa. */
.pagina-blocchi-da-cima > .blocco-copertina:first-child { padding-top: 7.5rem; }
.blocco-copertina-occhiello {
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--bcc-blue);
  margin-bottom: .6rem;
}
.blocco-copertina-titolo {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  letter-spacing: 1px;
  margin-bottom: .9rem;
}
.blocco-copertina-testo {
  max-width: 58ch;
  opacity: .92;
  margin-bottom: 1.6rem;
}

/* --- Colonne con icona --- */
.blocco-colonna-icona {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #eaf4f0;
  color: var(--bcc-deep);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: .9rem;
}
.blocco-colonna-titolo {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bcc-deep);
  margin-bottom: .4rem;
}
.blocco-colonna-testo { color: #5b6b66; font-size: .95rem; margin-bottom: 0; }

/* --- Fascia in evidenza --- */
.blocco-fascia-riquadro {
  background: var(--bcc-cream);
  border-left: 5px solid var(--bcc-gold);
  border-radius: 14px;
  padding: 1.6rem 1.9rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}
.blocco-fascia-titolo {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--bcc-deep);
  margin-bottom: .3rem;
}
.blocco-fascia-testo { flex: 1 1 320px; }
.blocco-fascia-testo p { color: #5b6b66; font-size: .95rem; }

/* --- Griglia di schede --- */
.blocco-scheda {
  background: #fff;
  border: 1px solid #e3e8e6;
  border-radius: 16px;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.blocco-scheda:hover {
  box-shadow: 0 10px 28px rgba(25,53,45,.12);
  transform: translateY(-2px);
}
.blocco-scheda-immagine {
  height: 170px;
  background-size: cover;
  background-position: center;
  background-color: #cfe0da;
}
.blocco-scheda-corpo { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; flex-grow: 1; }
.blocco-scheda-titolo {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bcc-deep);
  margin-bottom: .4rem;
}
.blocco-scheda-testo { color: #5b6b66; font-size: .92rem; margin-bottom: .8rem; }
.blocco-scheda-link {
  margin-top: auto;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: .9rem;
  color: var(--bcc-deep);
  text-decoration: none;
}
.blocco-scheda-link:hover { color: var(--bcc-blue); }


/* --- Galleria di immagini --- */
.blocco-galleria-foto { margin: 0; }
.blocco-galleria-foto img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  transition: transform .25s ease, box-shadow .25s ease;
}
.blocco-galleria-foto a:hover img {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(26, 65, 55, .18);
}
.blocco-galleria-foto figcaption {
  color: #5b6b66;
  font-size: .85rem;
  margin-top: .45rem;
}

/* --- Documenti da scaricare --- */
.blocco-documenti-elenco { list-style: none; padding: 0; margin: 0; }
.blocco-documento {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: .85rem .2rem;
  border-bottom: 1px solid #e8ecea;
}
.blocco-documento:last-child { border-bottom: 0; }
.blocco-documento-icona { font-size: 1.6rem; color: var(--bcc-gold); flex-shrink: 0; }
.blocco-documento-testo { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.blocco-documento-titolo {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--bcc-deep);
  text-decoration: none;
}
.blocco-documento-titolo:hover { color: var(--bcc-blue); text-decoration: underline; }
.blocco-documento-descrizione { color: #5b6b66; font-size: .88rem; }
.blocco-documento-peso { color: #8a9793; font-size: .82rem; flex-shrink: 0; }

/* --- Numeri in evidenza --- */
.blocco-numeri { background: var(--bcc-cream); padding: 3.2rem 0; }
.blocco-numero-cifra {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  color: var(--bcc-deep);
  margin-bottom: .35rem;
}
.blocco-numero-etichetta {
  color: #5b6b66;
  font-size: .92rem;
  margin-bottom: 0;
}

/* --- Linea del tempo --- */
.blocco-cronologia-elenco {
  list-style: none;
  padding: 0 0 0 1.6rem;
  margin: 0;
  border-left: 2px solid #e2e8e5;
}
.blocco-tappa { position: relative; padding-bottom: 1.9rem; }
.blocco-tappa:last-child { padding-bottom: 0; }
.blocco-tappa::before {
  content: "";
  position: absolute;
  left: -2.05rem;
  top: .35rem;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--bcc-gold);
  border: 2px solid #fff;
}
.blocco-tappa-data {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--bcc-blue);
  margin-bottom: .2rem;
}
.blocco-tappa-titolo {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bcc-deep);
  margin-bottom: .3rem;
}
.blocco-tappa-testo { color: #5b6b66; font-size: .95rem; margin-bottom: 0; }

/* --- Carosello --- */
.blocco-carosello-cornice { border-radius: 14px; overflow: hidden; }
.blocco-carosello-immagine {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  display: block;
}
.blocco-carosello-senza-foto { background: linear-gradient(135deg, #1A4137, #234c40); }
.blocco-carosello-didascalia {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 2.6rem 1.6rem 3.1rem;
  color: #fff;
  background: linear-gradient(to top, rgba(12, 32, 27, .88), rgba(12, 32, 27, 0));
}
.blocco-carosello-didascalia h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  letter-spacing: .5px;
  margin-bottom: .3rem;
}
.blocco-carosello-didascalia p { margin-bottom: 0; font-size: .95rem; opacity: .92; }


/* --- Filiali e uffici ---
   Stessa impostazione della scheda evento (.event-card-v2): cornice chiara,
   immagine quadrata in alto, testo centrato, pulsante scuro in fondo. Il
   pulsante riusa .btn-dettagli, così i due non potranno divergere. */
.blocco-filiali-gruppo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: .5px;
  color: var(--bcc-deep);
  margin: 2.2rem 0 1.1rem;
}
.blocco-filiali .row + .blocco-filiali-gruppo { margin-top: 3rem; }

.punto-card {
  background: #ffffff;
  border: 1px solid #e6e9e7;
  border-radius: 14px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.punto-card:hover {
  box-shadow: 0 8px 24px rgba(25, 53, 45, .1);
  transform: translateY(-2px);
}

.punto-card-img-wrap {
  width: 130px;
  height: 130px;
  margin: 0 auto 1.25rem;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 4px 14px rgba(25, 53, 45, .15);
  flex-shrink: 0;
}
.punto-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .3s ease;
}
.punto-card:hover .punto-card-img-wrap img { transform: scale(1.06); }

/* Senza fotografia: riquadro nei colori del sito con l'icona al centro. */
.punto-card-senza-foto {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1A4137, #234c40);
}
.punto-card-icona-vuota { font-size: 2.6rem; color: rgba(255, 255, 255, .55); }

.punto-card-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  color: #ffffff;
  background-color: var(--bcc-blue);
}
.punto-card-badge-ufficio { background-color: var(--bcc-gold); }

.punto-card-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  text-align: center;
}
.punto-card-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--bcc-deep);
  margin-bottom: .25rem;
  line-height: 1.15;
}
.punto-card-cab {
  font-family: var(--font-heading);
  font-size: .7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9aa6a2;
  margin-bottom: .7rem;
}
.punto-card-indirizzo {
  font-size: .87rem;
  color: #5c6d67;
  line-height: 1.5;
  margin-bottom: .5rem;
}
.punto-card-riga {
  font-size: .84rem;
  color: #6c7a76;
  line-height: 1.5;
  margin-bottom: .35rem;
}
.punto-card-riga a { color: #5c6d67; text-decoration: none; word-break: break-word; }
.punto-card-riga a:hover { color: var(--bcc-blue); text-decoration: underline; }
.punto-card-orari { white-space: normal; }
.punto-card-note {
  font-size: .82rem;
  color: #8a9793;
  font-style: italic;
  margin-bottom: .35rem;
}
.punto-card-telefono {
  font-family: var(--font-heading);
  font-size: .95rem;
  font-weight: 600;
  color: var(--bcc-blue);
  margin-top: auto;
  padding-top: .9rem;
  margin-bottom: 1rem;
}
.punto-card-telefono a { color: inherit; text-decoration: none; }
.punto-card-telefono a:hover { text-decoration: underline; }


/* --- Modulo di contatto --- */
.blocco-contatto-intro {
  color: #5b6b66;
  font-size: .97rem;
  line-height: 1.6;
  margin-bottom: 1.6rem;
}
.modulo-contatto .form-label {
  font-family: var(--font-heading);
  font-size: .85rem;
  font-weight: 600;
  color: var(--bcc-deep);
  margin-bottom: .3rem;
}
.modulo-contatto .form-control,
.modulo-contatto .form-select {
  border: 1px solid #dfe5e3;
  border-radius: 10px;
  padding: .65rem .85rem;
  font-size: .95rem;
}
.modulo-contatto .form-control:focus,
.modulo-contatto .form-select:focus {
  border-color: var(--bcc-blue);
  box-shadow: 0 0 0 .2rem rgba(98, 181, 228, .18);
}
.modulo-contatto .form-check-label {
  font-size: .88rem;
  color: #5b6b66;
  line-height: 1.5;
}
.modulo-contatto .form-check-label a { color: var(--bcc-deep); font-weight: 600; }
.modulo-contatto .form-text { font-size: .82rem; }

@media (max-width: 767.98px) {
  .blocco { padding: 2.5rem 0; }
  .blocco-copertina { padding: 3rem 0; }
  .blocco-fascia-riquadro { flex-direction: column; align-items: flex-start; }
  /* In colonna il "flex-basis" vale in altezza: senza questo azzeramento il
     riquadro si allungherebbe di 320px lasciando un vuoto sotto al testo. */
  .blocco-fascia-testo { flex: 0 1 auto; }
  .blocco-numero-cifra { font-size: 2.2rem; }
  .blocco-numeri { padding: 2.4rem 0; }
  .blocco-carosello-immagine { aspect-ratio: 4 / 3; }
  .blocco-carosello-didascalia { padding: 2rem 1.1rem 2.6rem; }
  .blocco-carosello-didascalia h3 { font-size: 1.3rem; }
  .blocco-documento { flex-wrap: wrap; }
  .blocco-documento-peso { width: 100%; padding-left: 2.5rem; }
  .blocco-filiali-gruppo { font-size: 1.25rem; }
}

/* ===================================================================
   Barra dell'anteprima di una pagina (anteprima-pagina.php)
   Sta in basso e non in alto: la barra di navigazione è fissa in cima,
   e una seconda fascia lassù coprirebbe il titolo della pagina, cioè
   proprio quello che si vuole guardare.
   =================================================================== */
.barra-anteprima {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1080;
  /* Piu' scura del footer, che e' verde anch'esso: le due fasce devono
     restare distinguibili quando si arriva in fondo alla pagina. */
  background: #0c201b;
  color: #fff;
  padding: .7rem 0;
  border-top: 3px solid var(--bcc-gold);
  box-shadow: 0 -6px 22px rgba(0, 0, 0, .3);
  font-size: .9rem;
}
.barra-anteprima-etichetta {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .78rem;
  background: var(--bcc-gold);
  color: #fff;
  padding: .2rem .7rem;
  border-radius: 50px;
  flex-shrink: 0;
}
.barra-anteprima-nota { color: rgba(255, 255, 255, .88); }
.barra-anteprima-link {
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50px;
  padding: .3rem 1rem;
  white-space: nowrap;
}
.barra-anteprima-link:hover { background: #fff; color: #1A4137; }

/* Spazio in fondo, così la barra non copre le ultime righe del footer. */
body:has(.barra-anteprima) { padding-bottom: 72px; }

@media (max-width: 575.98px) {
  /* Su schermo stretto la barra occuperebbe un terzo dello schermo se ogni
     pezzo andasse a capo. Etichetta e pulsante restano sulla stessa riga, e
     la spiegazione scende sotto. */
  .barra-anteprima { font-size: .8rem; padding: .55rem 0; }
  .barra-anteprima-nota { order: 3; width: 100%; }
  .barra-anteprima-link { padding: .25rem .8rem; font-size: .8rem; }
  body:has(.barra-anteprima) { padding-bottom: 104px; }
}

/* =====================================================================
   SERVIZI DELL'EVENTO nel modulo di prenotazione
   Un servizio non è una domanda: ha un nome, una descrizione e dei posti
   che finiscono. Si presenta come un'offerta da accettare, non come un
   campo da compilare.
   ===================================================================== */

.evento-servizio {
  border: 1px solid rgba(26, 65, 55, .15);
  border-radius: 12px;
  padding: .85rem 1rem;
  margin-bottom: .6rem;
  transition: border-color .15s ease, background .15s ease;
}

.evento-servizio:hover { border-color: var(--bcc-deep); }

.evento-servizio .form-check-input:checked ~ .form-check-label .evento-servizio-nome {
  color: var(--bcc-deep);
}

.evento-servizio-nome {
  font-weight: 600;
  display: inline;
}

.evento-servizio-posti {
  font-size: .85rem;
  color: var(--bcc-deep);
  opacity: .7;
  margin-left: .4rem;
}

.evento-servizio-zero {
  color: #a52a2a;
  opacity: 1;
  font-weight: 600;
}

.evento-servizio-descrizione {
  display: block;
  font-size: .9rem;
  color: #5a6b66;
  margin-top: .2rem;
}

/* Esaurito: resta visibile, perché sapere che il pranzo è al completo è
   un'informazione utile, ma non si può spuntare. */
.evento-servizio-esaurito {
  opacity: .6;
  background: #f4f6f5;
}
