:root{
  /* colore logo, usato SOLO per elementi legati al logo stesso */
  --giallo-logo: #E3A712;

  /* colore brand scelto per banda superiore, bottoni e link */
  --accento: #004982;
  --accento-dark: #003A68;

  --grigio-medio: #58585A;
  --grigio-scuro: #222222;
  --gesso: #FAFAF8;
  --inchiostro: #232323;
  --grigio-sec: #7A7266;
}
body{
  font-family:'Public Sans', sans-serif;
  color: var(--inchiostro);
  background: var(--gesso);
}
h1,h2,h3,.font-serif{ font-family:'Fraunces', serif; }

/* ---- Top bar ---- */
.topbar{
  background: var(--accento);
  color: #F1EEE4;
  font-size: .85rem;
}
.topbar a{ color:#F1EEE4; text-decoration:none; }
.topbar a:hover{ color:#fff; opacity:.8; }
.topbar .bi{ font-size: 1rem; vertical-align: -2px; }

/* ---- Navbar: testata scura, resta fissa allo scroll ---- */
.navbar-cta{
  background: var(--grigio-scuro);
  position: sticky;
  top: 0;
  z-index: 1030;
}
.navbar-cta .nav-link{
  color: #E5E5E3;
  font-weight: 500;
  margin: 0 .35rem;
}
.navbar-cta .nav-link.active,
.navbar-cta .nav-link:hover{ color: var(--accento-light, #6FB1E0); }
.navbar-cta .dropdown-menu{
  background: #2C2C2C;
  border: 0;
}
.navbar-cta .dropdown-item{
  color: #E5E5E3;
}
.navbar-cta .dropdown-item:hover,
.navbar-cta .dropdown-item:focus{
  background: #3A3A3A;
  color: #6FB1E0;
}

/* ---- Hamburger personalizzato ---- */
.hamburger-btn{
  background: transparent;
  border: 0;
  width: 40px; height: 40px;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 5px;
  padding: 0;
}
.hamburger-btn span{
  width: 26px; height: 2px;
  background: #F1EEE4;
  display: block;
  transition: background .2s ease;
}
.hamburger-btn:hover span{ background: #6FB1E0; }

.offcanvas-menu{
  width: 300px;
  background: var(--grigio-scuro);
  color: #F1EEE4;
}
.offcanvas-menu .offcanvas-header{
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.offcanvas-menu .nav-link{
  color: #E5E5E3;
  padding: .6rem 0;
  font-size: 1.05rem;
}
.offcanvas-menu .nav-link:hover{ color: #6FB1E0; }
.offcanvas-menu .menu-group-label{
  color: var(--grigio-sec);
  font-size: .8rem;
  margin-top: 1rem;
}
.offcanvas-menu .sub-link{
  color: #C9C9C7;
  font-size: .95rem;
  padding: .35rem 0 .35rem .9rem;
  display:block;
  text-decoration:none;
}
.offcanvas-menu .sub-link:hover{ color: #6FB1E0; }
.offcanvas-menu .btn-close{ filter: invert(1); }

/* ---- Hero (solo Home) ---- */
.hero{
  color: #F1EEE4;
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}
@media (min-width: 992px){
  .hero{ min-height: 90vh; }
}
.hero-slides{
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-slide{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 60%;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
}
.hero-slide.active{ opacity: 1; }
.hero-overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20,20,20,.55) 0%, rgba(20,20,20,.88) 100%);
}
.hero > .container{
  position: relative;
  z-index: 2;
}
.hero::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0;
  height:3px;
  background: var(--accento);
  z-index: 2;
}
.hero h1{
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 500;
  line-height: 1.08;
  max-width: 16ch;
}
.hero .lede{
  max-width: 46ch;
  color: #D8D8D6;
  font-size: 1.08rem;
}
.hero .luogo{
  color: #6FB1E0;
  letter-spacing: .01em;
  font-size: .95rem;
  font-weight: 600;
}

/* ---- Banner pagine interne (Staff, Attività, Sponsor, Contatti) ---- */
.page-banner{
  background: var(--grigio-scuro);
  color: #F1EEE4;
  padding: 3.25rem 0 2.75rem;
  position: relative;
}
.page-banner::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0;
  height:3px;
  background: var(--accento);
}
.page-banner h1{
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 500;
  margin-bottom: .5rem;
}
.page-banner p{
  color: #C9C9C7;
  max-width: 60ch;
  margin-bottom: 0;
}

.btn-accento{
  background: var(--accento);
  border-color: var(--accento);
  color: #fff;
  font-weight: 600;
}
.btn-accento:hover{
  background: var(--accento-dark);
  border-color: var(--accento-dark);
  color: #fff;
}
.btn-outline-cream{
  border-color: #6B6B6B;
  color: #F1EEE4;
  font-weight: 500;
}
.btn-outline-cream:hover{
  background: rgba(241,238,228,.08);
  color: #fff;
  border-color: #F1EEE4;
}

.section-rule{
  border: 0;
  height: 1px;
  background: rgba(33,29,25,.12);
  max-width: 64px;
  margin: 0 0 1.25rem 0;
}
section{ padding: 4.5rem 0; }

/* ---- Struttura teaser (Home) ---- */
.struttura-quote{
  font-family:'Fraunces', serif;
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--grigio-scuro);
  line-height: 1.35;
}
.campo-swatch{
  aspect-ratio: 4/3;
  border-radius: 6px;
  background: var(--grigio-scuro);
  position: relative;
  display:flex; align-items:center; justify-content:center;
}
.campo-swatch .omino{
  width: 34%;
  color: var(--giallo-logo);
}

/* ---- Staff ---- */
.staff-foto{
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--grigio-medio);
  color: var(--gesso);
  display:flex; align-items:center; justify-content:center;
  font-family:'Fraunces', serif;
  font-size: 1.6rem;
  flex-shrink: 0;
}
.staff-ruolo{ color: var(--grigio-sec); font-size:.92rem; }

/* ---- Sponsor ---- */
.sponsor-card{
  background:#fff;
  border-radius: 8px;
  border: 1px solid rgba(33,29,25,.08);
  padding: 2rem 1.5rem;
  display:flex; align-items:center; justify-content:center;
  height: 140px;
  filter: grayscale(1);
  opacity: .7;
  font-weight: 600;
  transition: filter .2s ease, opacity .2s ease;
}
.sponsor-card:hover{ filter:none; opacity:1; }

/* ---- Attività: indice rapido ---- */
.quick-nav{
  display:flex; flex-wrap:wrap; gap:.6rem;
}
.quick-nav a{
  border: 1px solid rgba(33,29,25,.18);
  border-radius: 999px;
  padding: .45rem 1.1rem;
  color: var(--inchiostro);
  text-decoration:none;
  font-size: .92rem;
  font-weight: 500;
}
.quick-nav a:hover{
  border-color: var(--accento);
  color: var(--accento);
}
.attivita-block{
  border-top: 1px solid rgba(33,29,25,.1);
  padding-top: 2.5rem;
  margin-top: 2.5rem;
  scroll-margin-top: 90px;
}
.attivita-block:first-of-type{
  border-top: 0;
  margin-top: 0;
}

/* ---- Contatti ---- */
.contatti-form label{
  font-weight: 500;
  font-size: .92rem;
}
.contatti-form .form-control{
  border-radius: 6px;
  border-color: rgba(33,29,25,.2);
}
.contatti-form .form-control:focus{
  border-color: var(--accento);
  box-shadow: 0 0 0 .2rem rgba(0,73,130,.15);
}
.map-frame{
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(33,29,25,.1);
}

/* ---- Badge affiliazioni nel footer scuro ---- */
.affil-badge{
  background:#fff;
  border-radius: 4px;
  padding: 5px 10px;
  display:inline-flex;
  align-items:center;
}
.affil-badge img{ height: 24px; display:block; }

/* ---- Footer ---- */
footer{
  background: var(--grigio-scuro);
  color: #C9C9C7;
}
footer a{ color:#E5E5E3; }
footer a:hover{ color: #6FB1E0; }
footer h4{
  font-family:'Fraunces', serif;
  color:#F1EEE4;
  font-size: 1.1rem;
  font-weight: 500;
}

@media (prefers-reduced-motion: no-preference){
  .hero-enter{ animation: rise .6s ease-out both; }
  @keyframes rise{
    from{ opacity:0; transform: translateY(14px); }
    to{ opacity:1; transform: translateY(0); }
  }
}
