/* =========================================================
   Circolo Scacchistico Città Vecchia — Foglio di stile condiviso
   Usato da index.html e calendario.html: modificare questo file
   cambia lo stile di tutto il sito.
   ========================================================= */

:root{
  --cream:#f6f1e6;
  --cream-2:#efe7d6;
  --ink:#1b1b1a;
  --ink-2:#26241f;
  --gold:#c8a24a;
  --gold-2:#e4c877;
  --green:#2f4a3c;
  --green-2:#3d5f4d;
  --muted:#6b6558;
  --ev-standard:#c8a24a;
  --ev-rapid:#3d5f4d;
  --ev-blitz:#7a4b4b;
  --ev-corso:#4a6a7a;
  --ev-presentazione:#6a4a8a;
  --ev-riunione:#6b6558;

  /* Nome del sito: parametrizzabile (font, colore in tinta unita, ombra) */
  --brand-font:'Playfair Display', serif;
  --brand-color:var(--gold-2);
  --brand-shadow:0 1px 1px rgba(0,0,0,.35);

  /* Logo: ombra parametrizzabile */
  --logo-shadow:drop-shadow(0 1px 2px rgba(0,0,0,.45));

  /* Font condensato per link compatti (es. Food&Beverage) */
  --condensed-font:'Oswald', sans-serif;
}

html{scroll-behavior:smooth;}

body{
  font-family:'Inter',sans-serif;
  background:var(--cream);
  color:var(--ink);
}

h1,h2,h3,h4,.brand-font{
  font-family:'Playfair Display',serif;
}

/* Icona configurabile come immagine PNG (o altro formato) al posto di
   una classe Bootstrap Icons: eredita la dimensione dal font-size del
   contesto in cui viene inserita, come farebbe un'icona a font. */
.icon-img{
  display:inline-block;
  height:1em;
  width:1em;
  object-fit:contain;
  vertical-align:-0.125em;
}

/* ---------- Top bar ---------- */
.topbar{
  background:var(--ink);
  color:#cfc9b8;
  font-size:.8rem;
  letter-spacing:.03em;
}
.topbar a{color:#cfc9b8;text-decoration:none;}
.topbar a:hover{color:var(--gold-2);}

/* ---------- Navbar ---------- */
.navbar-chess{
  background:var(--ink-2);
  border-bottom:1px solid rgba(200,162,74,.35);
}
.navbar-chess .navbar-brand{
  display:inline-flex;
  align-items:center;
  font-size:2.1rem;
  letter-spacing:.02em;
}
.navbar-chess .navbar-brand .knight{
  color:var(--gold);
  margin-right:.4rem;
  font-size:1.7rem;
}
.site-name{
  font-family:var(--brand-font);
  font-weight:800;
  color:var(--brand-color);
  text-shadow:var(--brand-shadow);
}
footer.site-footer h5.footer-brand-heading .site-name{
  font-size:1.6rem;
}
.brand-logo-img{
  height:132px;
  width:auto;
  margin-right:.9rem;
  filter:var(--logo-shadow);
}
footer .brand-logo-img{
  height:83px;
  margin-right:0;
}
footer.site-footer h5.footer-brand-heading{
  display:flex;
  align-items:center;
  gap:.9rem;
  flex-wrap:wrap;
}
@media (max-width: 767.98px){
  .navbar-chess .navbar-brand{
    flex-wrap:wrap;
    font-size:1.5rem;
    /* Un <a> in flex (qui dentro .navbar-top-row, anch'esso flex) di
       default non si restringe sotto la larghezza naturale del proprio
       contenuto: senza min-width:0 il nome del circolo lungo spingeva la
       riga fuori schermo invece di andare a capo. */
    flex:1 1 auto;
    min-width:0;
    max-width:100%;
  }
  .navbar-chess .navbar-brand .site-name{
    white-space:normal;
    word-break:break-word;
    min-width:0;
  }
  .brand-logo-img{
    height:66px;
    margin-right:.6rem;
  }
}
.navbar-chess .nav-link{
  color:#e7e1d0 !important;
  font-weight:500;
  font-size:.88rem;
  letter-spacing:.01em;
  padding:.55rem .65rem !important;
  position:relative;
  white-space:nowrap;
}
@media (min-width:1200px) and (max-width:1360px){
  .navbar-chess .nav-link{padding:.55rem .45rem !important; font-size:.83rem;}
}
.navbar-chess .navbar-collapse{
  flex-wrap:wrap;
  row-gap:.6rem;
}
.navbar-chess .container{
  flex-direction:column;
  align-items:stretch;
}
.navbar-top-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:.75rem;
  width:100%;
}
.navbar-top-right{
  display:flex;
  align-items:center;
  gap:.6rem;
  margin-left:auto;
  flex-wrap:wrap;
}
.navbar-menu-row{
  margin-top:.6rem;
  padding-top:.6rem;
  border-top:1px solid rgba(200,162,74,.18);
}
.navbar-menu-row--left{
  justify-content:flex-start;
}
.navbar-menu-row--center{
  justify-content:center;
}
.navbar-menu-row--right{
  justify-content:flex-end;
}
.navbar-extra-row{
  display:flex;
  justify-content:flex-end;
  gap:1.25rem;
  margin-top:.35rem;
  padding-top:.35rem;
  border-top:1px solid rgba(200,162,74,.12);
}
.navbar-extra-row .fb-link{
  font-family:var(--condensed-font, 'Oswald', sans-serif);
  font-stretch:condensed;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-size:.76rem;
  font-weight:600;
  color:var(--gold-2);
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:.35rem;
}
.navbar-extra-row .fb-link:hover{
  color:var(--gold);
}
.navbar-chess .nav-link:hover,
.navbar-chess .nav-link:focus,
.navbar-chess .nav-item.show .nav-link{
  color:var(--gold-2) !important;
}
.navbar-chess .dropdown-menu{
  background:var(--ink-2);
  border:1px solid rgba(200,162,74,.35);
  border-radius:.4rem;
  padding:.4rem 0;
  margin-top:.4rem;
}
.navbar-chess .dropdown-item{
  color:#e7e1d0;
  font-size:.9rem;
  padding:.5rem 1.2rem;
}
.navbar-chess .dropdown-item:hover,
.navbar-chess .dropdown-item:focus{
  background:rgba(200,162,74,.15);
  color:var(--gold-2);
}
.navbar-toggler{border-color:rgba(231,225,208,.4);}

/* ---------- Navbar compatta (attivata via JS quando si scorre oltre
   l'hero, all'altezza delle news): logo+nome allineati al menu su
   un'unica riga, barra di ricerca nascosta.
   Nota: il cambio di stato è volutamente istantaneo (nessuna
   transizione su padding/altezza/font-size), perché animare queste
   proprietà forza un riflusso continuo del layout sottostante ed è
   la causa dello sfarfallamento durante lo scroll. ---------- */
@media (min-width:1200px){
  .navbar-chess.navbar-compact{
    padding-top:.35rem;
    padding-bottom:.35rem;
  }
  .navbar-chess.navbar-compact .container{
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    justify-content:space-between;
  }
  .navbar-chess.navbar-compact .navbar-top-row{
    width:auto;
    flex:0 0 auto;
  }
  .navbar-chess.navbar-compact .navbar-top-right .search-form{
    display:none !important;
  }
  .navbar-chess.navbar-compact .navbar-menu-row{
    width:auto;
    flex:1 1 auto;
    margin-top:0;
    padding-top:0;
    border-top:none;
    justify-content:flex-end;
  }
  .navbar-chess.navbar-compact .navbar-collapse{
    flex-wrap:nowrap;
    row-gap:0;
  }
  .navbar-chess.navbar-compact .navbar-extra-row{
    flex:0 0 100%;
    order:3;
  }
  .navbar-chess.navbar-compact .navbar-brand{
    font-size:1.3rem;
  }
  .navbar-chess.navbar-compact .brand-logo-img{
    height:46px;
    margin-right:.5rem;
  }
}

.search-form{
  width:100%;
}
@media (min-width:1200px){
  .search-form{width:auto;}
}
.search-form .form-control{
  background:#fff;
  border:1px solid rgba(200,162,74,.5);
  font-size:.85rem;
}
.search-form .btn-gold{
  background:var(--gold);
  border-color:var(--gold);
  color:var(--ink);
  font-weight:600;
}
.search-form .btn-gold:hover{
  background:var(--gold-2);
  border-color:var(--gold-2);
  color:var(--ink);
}
.network-check{
  display:flex;
  align-items:center;
  gap:.5rem;
}
.network-check .form-check-input{
  width:2.4em;
  height:1.3em;
  cursor:pointer;
  margin-top:0;
  flex-shrink:0;
}
.network-check .form-check-input:checked{
  background-color:var(--gold);
  border-color:var(--gold);
}
.network-check .form-check-input:focus{
  box-shadow:0 0 0 .2rem rgba(200,162,74,.25);
  border-color:var(--gold);
}
.network-check label{
  color:#cfc9b8;
  font-size:.78rem;
  cursor:pointer;
}
.navbar-federation-links{
  display:flex;
  align-items:center;
  gap:.4rem;
}
.navbar-federation-logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  border-radius:.35rem;
  padding:.28rem .45rem;
  border:1px solid rgba(200,162,74,.3);
  line-height:0;
  transition:border-color .15s ease, transform .15s ease;
}
.navbar-federation-logo img{
  height:20px;
  width:auto;
  display:block;
}
.navbar-federation-logo-text{
  line-height:1.15;
  font-size:.7rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.02em;
  color:#555;
  text-align:center;
}
.navbar-federation-logo:hover{
  border-color:var(--gold-2);
  transform:translateY(-1px);
}

/* Loghi federazioni nel footer: più grandi, quadrati, all'incirca
   all'altezza del testo "Associazione sportiva..." della colonna */
.footer-affiliations-logos .navbar-federation-logo{
  width:76px;
  height:76px;
  padding:.5rem;
}
.footer-affiliations-logos .navbar-federation-logo img{
  height:100%;
  width:100%;
  object-fit:contain;
}
@media (max-width:767.98px){
  .footer-affiliations-logos .navbar-federation-logo{
    width:60px;
    height:60px;
  }
}

/* ---------- Hero (home page) ---------- */
.hero{
  position:relative;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(200,162,74,.18), transparent 55%),
    linear-gradient(135deg, #14140f 0%, #1f1f18 45%, #23301f 100%);
  color:var(--cream);
  overflow:hidden;
  padding:6.5rem 0 5.5rem;
}
/* Immagine di sfondo facoltativa (config: hero.backgroundImage): lo
   stesso gradiente del tema viene reso semi-trasparente (opacità
   parametrizzabile via --hero-overlay-opacity, impostata da JS) e
   sovrapposto alla foto, così il testo resta sempre leggibile
   qualunque sia il contenuto dell'immagine. */
.hero.has-bg-image{
  background:
    radial-gradient(ellipse at 20% 20%, rgba(200,162,74,.18), transparent 55%),
    linear-gradient(135deg, rgba(20,20,15,var(--hero-overlay-opacity,.75)) 0%, rgba(31,31,24,var(--hero-overlay-opacity,.75)) 45%, rgba(35,48,31,var(--hero-overlay-opacity,.75)) 100%),
    var(--hero-bg-url) center / cover no-repeat;
}
.hero.has-bg-image::before,
.hero.has-bg-image .piece-watermark{
  display:none;
}
.hero::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 40px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 40px);
  pointer-events:none;
}
.hero .piece-watermark{
  position:absolute;
  right:-2rem;
  bottom:-4rem;
  font-size:22rem;
  line-height:1;
  color:rgba(200,162,74,.08);
  pointer-events:none;
  user-select:none;
}
/* ---------- Breaking News (striscia tra Hero e News) ---------- */
.breaking-news{
  display:flex;
  align-items:center;
  gap:1rem;
  height:var(--bn-height,auto);
  background:var(--bn-bg,var(--ink));
  color:var(--cream);
  overflow:hidden;
  margin:var(--bn-margin-top,0) var(--bn-margin-side,0) var(--bn-margin-bottom,0);
}
.breaking-news-label{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  background:var(--gold);
  color:var(--ink);
  font-weight:700;
  font-size:.8rem;
  text-transform:uppercase;
  letter-spacing:.05em;
  padding:var(--bn-padding-top,.5rem) 1.2rem var(--bn-padding-bottom,.5rem);
  align-self:stretch;
  white-space:nowrap;
}
.breaking-news-content{
  flex:1 1 auto;
  overflow:hidden;
  min-width:0;
  padding:var(--bn-padding-top,.5rem) 0 var(--bn-padding-bottom,.5rem);
}
.breaking-news-content:empty{display:none;}
.breaking-news-track{
  display:flex;
  align-items:center;
  height:100%;
  width:max-content;
  animation:breaking-news-scroll 25s linear infinite;
}
.breaking-news-inner{
  display:flex;
  align-items:center;
  gap:var(--bn-item-gap,1.5rem);
  padding-right:var(--bn-item-gap,1.5rem);
  white-space:nowrap;
}
.breaking-news-item{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  font-size:calc(var(--bn-height, 2.75rem) * .327);
}
.breaking-news-sep{color:var(--gold-2);}
.breaking-news-item--clickable{cursor:pointer;}
.breaking-news-item--clickable:hover{text-decoration:underline;}
.breaking-news-image{
  height:calc(var(--bn-height, 2.75rem) - .6rem);
  width:auto;
  object-fit:cover;
  border-radius:.2rem;
  vertical-align:middle;
}
.breaking-news-text{font-size:inherit;}
/* Voce "immagine su tutta la news": la foto riempie l'intera voce come
   sfondo, ridimensionandosi da sola in base all'altezza della striscia;
   il testo (se presente) resta leggibile grazie al velo scuro sotto. */
.breaking-news-item--full{
  position:relative;
  align-self:stretch;
  width:calc(var(--bn-height, 2.75rem) * 2.4);
  min-width:6rem;
  background-size:cover;
  background-position:center;
  border-radius:.3rem;
  overflow:hidden;
  align-items:flex-end;
  padding:.35rem .5rem;
  white-space:normal;
}
.breaking-news-item--full::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(to top, rgba(0,0,0,.75), rgba(0,0,0,0) 65%);
  pointer-events:none;
}
.breaking-news-text--overlay{
  position:relative;
  z-index:1;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
  line-height:1.2;
  color:#fff;
  font-size:calc(var(--bn-height, 2.75rem) * .27);
  font-weight:600;
  text-shadow:0 1px 2px rgba(0,0,0,.8);
}
@keyframes breaking-news-scroll{
  from{transform:translateX(0);}
  to{transform:translateX(-50%);}
}

.hero-kicker{
  letter-spacing:.18em;
  text-transform:uppercase;
  color:var(--gold-2);
  font-size:.8rem;
  font-weight:600;
}
.hero h1{
  font-size:3.1rem;
  font-weight:800;
  line-height:1.1;
  max-width:700px;
}
.hero h1 em{
  color:var(--gold-2);
  font-style:normal;
  border-bottom:2px solid var(--gold);
  padding-bottom:.1rem;
}
.hero p.lead{
  color:#d8d3c3;
  max-width:560px;
  font-size:1.05rem;
}
.btn-hero-primary{
  background:var(--gold);
  border-color:var(--gold);
  color:var(--ink);
  font-weight:700;
  padding:.7rem 1.6rem;
  border-radius:.3rem;
}
.btn-hero-primary:hover{background:var(--gold-2);border-color:var(--gold-2);color:var(--ink);}
.btn-hero-outline{
  border:1px solid rgba(246,241,230,.5);
  color:var(--cream);
  padding:.7rem 1.6rem;
  border-radius:.3rem;
  font-weight:600;
}
.btn-hero-outline:hover{border-color:var(--gold-2);color:var(--gold-2);}

.hero-stats{
  border-top:1px solid rgba(246,241,230,.15);
  margin-top:3rem;
  padding-top:1.6rem;
}
.hero-stats .stat-num{
  font-family:'Playfair Display',serif;
  font-weight:700;
  font-size:1.7rem;
  color:var(--gold-2);
}
.hero-stats .stat-label{
  font-size:.78rem;
  color:#bdb7a5;
  text-transform:uppercase;
  letter-spacing:.06em;
}
.countdown-stat{
  margin-top:1.4rem;
}
@media (min-width:768px){
  .countdown-stat{
    margin-top:0;
    padding-left:1rem;
    border-left:1px solid rgba(246,241,230,.15);
  }
}
.hero-stats .stat-num.stat-num-sm{
  font-size:1.25rem;
}
.countdown-label{
  font-size:.62rem;
  letter-spacing:.03em;
}
.countdown-caption{
  font-size:.72rem;
  color:#d8d3c3;
  margin-top:.6rem;
}

/* ---------- Titolo hero + carosello frasi al posto suo ---------- */
.hero-headline{
  min-height:200px;
  transition:opacity .25s ease;
}
.hero-headline.hero-headline-fade{
  opacity:0;
}
.hero-quote{
  max-width:640px;
  padding-top:.4rem;
}
.hero-quote .quote-text{
  font-family:'Playfair Display',serif;
  font-style:italic;
  font-weight:600;
  font-size:2rem;
  line-height:1.3;
  color:var(--cream);
}
.hero-quote .quote-author{
  margin-top:.9rem;
  font-size:.9rem;
  letter-spacing:.03em;
  color:var(--gold-2);
}
@media (max-width:767.98px){
  .hero-headline{min-height:170px;}
  .hero-quote .quote-text{font-size:1.5rem;}
}

/* ---------- Widget recensioni Google (hero) ---------- */
.hero-reviews-widget{
  background:rgba(0,0,0,.28);
  border:1px solid rgba(200,162,74,.3);
  border-radius:.75rem;
  padding:1.1rem 1.25rem;
  max-width:280px;
  backdrop-filter:blur(2px);
}
.hero-reviews-top{
  display:flex;
  align-items:center;
  gap:.4rem;
  font-size:.95rem;
}
.hero-reviews-top .bi-google{
  color:#e7e1d0;
  font-size:.95rem;
}
.hero-reviews-rating{
  font-weight:800;
  color:var(--cream);
}
.hero-reviews-stars{
  color:var(--gold);
  font-size:.8rem;
  letter-spacing:.05em;
}
.hero-reviews-count{
  font-size:.75rem;
  color:#b7b1a0;
  margin-bottom:.6rem;
}
.hero-reviews-scroll{
  min-height:5.6rem;
  border-top:1px solid rgba(200,162,74,.25);
  padding-top:.6rem;
  transition:opacity .25s ease;
}
.hero-reviews-scroll.hero-reviews-fade{
  opacity:0;
}
.hero-reviews-scroll .hr-text{
  font-size:.82rem;
  line-height:1.45;
  color:#e7e1d0;
  font-style:italic;
}
.hero-reviews-scroll .hr-author{
  display:block;
  margin-top:.4rem;
  font-size:.72rem;
  letter-spacing:.02em;
  color:var(--gold-2);
  font-style:normal;
}
.hero-reviews-link{
  display:inline-block;
  margin-top:.7rem;
  font-size:.75rem;
  color:var(--gold-2);
  text-decoration:none;
}
.hero-reviews-link:hover{color:var(--gold);}
@media (max-width:991.98px){
  .hero-reviews-widget{max-width:100%;margin-top:1.5rem;}
}

/* ---------- Page header (calendario) ---------- */
.page-header{
  position:relative;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(200,162,74,.18), transparent 55%),
    linear-gradient(135deg, #14140f 0%, #1f1f18 45%, #23301f 100%);
  color:var(--cream);
  overflow:hidden;
  padding:3rem 0 2.6rem;
}
.page-header::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 40px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.025) 0 2px, transparent 2px 40px);
  pointer-events:none;
}
.page-header .piece-watermark{
  position:absolute;
  right:-1rem;
  bottom:-3rem;
  font-size:12rem;
  line-height:1;
  color:rgba(200,162,74,.08);
  pointer-events:none;
  user-select:none;
}
.breadcrumb-chess{
  font-size:.8rem;
  color:#bdb7a5;
}
.breadcrumb-chess a{color:#bdb7a5; text-decoration:none;}
.breadcrumb-chess a:hover{color:var(--gold-2);}
.page-header h1{
  font-size:2.2rem;
  font-weight:800;
  margin-top:.4rem;
}
.page-header p.lead{
  color:#d8d3c3;
  max-width:600px;
  font-size:.98rem;
  margin-top:.4rem;
}

/* ---------- Section headings ---------- */
.section-title{
  font-weight:700;
  color:var(--ink);
  position:relative;
  padding-bottom:.6rem;
}
.section-title::after{
  content:"";
  position:absolute;
  left:0;bottom:0;
  width:56px;height:3px;
  background:var(--gold);
}
.section-eyebrow{
  text-transform:uppercase;
  letter-spacing:.15em;
  font-size:.75rem;
  color:var(--green-2);
  font-weight:700;
}

/* ---------- Icon button (usato in più widget) ---------- */
.icon-btn{
  width:34px;height:34px;
  border-radius:50%;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid #d9d0b5;
  background:#fff;
  color:var(--green);
  font-size:.9rem;
  transition:all .15s ease;
  cursor:pointer;
}
.icon-btn:hover{
  background:var(--green);
  border-color:var(--green);
  color:#fff;
}
.icon-btn:disabled{
  opacity:.35;
  pointer-events:none;
}
/* Icona commenti evidenziata quando l'articolo ne ha già almeno uno */
.icon-btn-has-comments{
  background:var(--gold-2);
  border-color:var(--gold-2);
  color:var(--ink);
}
.icon-btn-has-comments:hover{
  background:var(--gold);
  border-color:var(--gold);
  color:var(--ink);
}

/* ---------- View toggle (calendario) ---------- */
.view-toggle{
  display:inline-flex;
  background:#fff;
  border:1px solid #e5ddc6;
  border-radius:.4rem;
  padding:.25rem;
  gap:.25rem;
}
.view-toggle button{
  border:none;
  background:transparent;
  color:var(--muted);
  font-weight:600;
  font-size:.85rem;
  padding:.5rem 1.1rem;
  border-radius:.3rem;
  transition:all .15s ease;
}
.view-toggle button.active{
  background:var(--green);
  color:#fff;
}
.view-toggle button:not(.active):hover{
  background:#fbf3df;
  color:var(--ink);
}

/* ---------- Legend (calendario) ---------- */
.legend-row{
  display:flex;
  flex-wrap:wrap;
  gap:.9rem 1.4rem;
  font-size:.82rem;
  color:var(--muted);
}
.legend-dot{
  display:inline-block;
  width:10px;height:10px;
  border-radius:50%;
  margin-right:.4rem;
  vertical-align:middle;
}

/* ---------- Elo filter switch (calendario) ---------- */
.elo-filter-switch{
  display:flex;
  align-items:center;
}
.elo-filter-switch .form-check-input{
  width:2.4em;
  height:1.3em;
  cursor:pointer;
}
.elo-filter-switch .form-check-input:checked{
  background-color:var(--gold);
  border-color:var(--gold);
}
.elo-filter-switch .form-check-input:focus{
  box-shadow:0 0 0 .2rem rgba(200,162,74,.25);
  border-color:var(--gold);
}
.elo-filter-switch .form-check-label{
  color:var(--ink);
  font-weight:600;
  font-size:.85rem;
  cursor:pointer;
  padding-top:.15rem;
}

/* ---------- Month navigator (calendario) ---------- */
.month-nav{
  display:flex;
  align-items:center;
  gap:1rem;
}
.month-nav .month-label{
  font-family:'Playfair Display',serif;
  font-weight:700;
  font-size:1.3rem;
  min-width:200px;
  text-align:center;
}
.btn-today{
  border:1px solid #d9d0b5;
  background:#fff;
  color:var(--green);
  font-size:.78rem;
  font-weight:600;
  padding:.4rem .9rem;
  border-radius:.3rem;
}
.btn-today:hover{background:var(--green); color:#fff; border-color:var(--green);}

/* ---------- Calendar grid (calendario) ---------- */
.cal-scroll{
  overflow-x:auto;
  padding-bottom:.4rem;
}
.cal-weekdays{
  display:grid;
  grid-template-columns:repeat(7, 1fr);
  gap:6px;
  margin-bottom:6px;
  min-width:640px;
}
.cal-weekdays div{
  text-align:center;
  font-size:.72rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:var(--muted);
  padding-bottom:.3rem;
}
.cal-grid{
  display:grid;
  grid-template-columns:repeat(7, 1fr);
  gap:6px;
  min-width:640px;
}
.cal-cell{
  background:#fffdf9;
  border:1px solid #e5ddc6;
  border-radius:.4rem;
  min-height:112px;
  padding:.4rem .45rem;
  display:flex;
  flex-direction:column;
  gap:.25rem;
}
.cal-cell.other-month{
  background:#f1ebdc;
  opacity:.55;
}
.cal-cell.is-today{
  border-color:var(--gold);
  box-shadow:inset 0 0 0 1px var(--gold);
  background:#fffaf0;
}
.cal-day-num{
  font-family:'Playfair Display',serif;
  font-weight:700;
  font-size:.9rem;
  color:var(--ink);
}
.cal-cell.is-today .cal-day-num{
  color:#a3762a;
}
.cal-event-pill{
  display:flex;
  align-items:center;
  gap:.3rem;
  font-size:.66rem;
  font-weight:600;
  color:#fff;
  padding:.18rem .4rem;
  border-radius:.25rem;
  line-height:1.25;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  cursor:pointer;
  border:none;
  text-align:left;
}
.cal-event-pill .bi-star-fill{
  font-size:.6rem;
  color:#ffe9a8;
  flex-shrink:0;
}
.cal-more-btn{
  font-size:.66rem;
  font-weight:600;
  color:var(--green);
  background:none;
  border:none;
  text-align:left;
  padding:.1rem .2rem;
}
.cal-more-btn:hover{text-decoration:underline;}

/* ---------- Table view (calendario) ---------- */
.events-table thead th{
  background:var(--ink-2);
  color:var(--cream);
  font-size:.78rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  font-weight:700;
  border:none;
  padding:.8rem 1rem;
  cursor:pointer;
  user-select:none;
  white-space:nowrap;
}
.events-table thead th:hover{color:var(--gold-2);}
.events-table thead th .sort-arrow{
  font-size:.7rem;
  margin-left:.3rem;
  opacity:.6;
}
.events-table thead th.sorted .sort-arrow{opacity:1; color:var(--gold-2);}
.events-table tbody tr{
  background:#fffdf9;
  border-bottom:1px solid #ece5d2;
}
.events-table tbody tr:hover{background:#fbf3df;}
.events-table td{
  padding:.75rem 1rem;
  font-size:.87rem;
  vertical-align:middle;
}
.type-badge{
  display:inline-flex;
  align-items:center;
  gap:.35rem;
  color:#fff;
  font-size:.72rem;
  font-weight:600;
  padding:.3rem .6rem;
  border-radius:.3rem;
  white-space:nowrap;
}
.elo-star{
  color:var(--gold);
  font-size:.85rem;
}

/* ---------- News cards (home page) ---------- */
.news-thumb{
  height:150px;
  border-radius:.5rem .5rem 0 0;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:2.6rem;
  color:rgba(255,255,255,.85);
  position:relative;
  overflow:hidden;
}
.news-thumb img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}
.news-thumb .badge-cat{
  position:absolute;
  top:.6rem;left:.6rem;
  font-size:.68rem;
  letter-spacing:.05em;
  text-transform:uppercase;
}

/* Quando la card occupa tutta la larghezza (news.columns:1, oppure su
   schermi < 768px dove col-md-6 diventa full width) l'immagine è
   proporzionalmente molto più larga rispetto al layout a 2 colonne: se
   l'altezza della thumb restasse fissa a 150px verrebbe tagliata troppo.
   Alziamo quindi l'altezza in questi casi. Non riguarda la variante
   landscape:false, che gestisce l'altezza in autonomia (height:auto). */
#newsGrid > .col-12 .news-card:not(.news-card-side) .news-thumb{
  height:260px;
}
@media (max-width:767.98px){
  #newsGrid > .col-md-6 .news-card:not(.news-card-side) .news-thumb{
    height:260px;
  }
}
.thumb-1{background:linear-gradient(135deg,#2f4a3c,#4b7a5f);}
.thumb-2{background:linear-gradient(135deg,#3a2e18,#8a6a2f);}
.thumb-3{background:linear-gradient(135deg,#232323,#565040);}
.thumb-4{background:linear-gradient(135deg,#4a2f2f,#7a4b4b);}
.thumb-5{background:linear-gradient(135deg,#1f2d3a,#4a6a7a);}
.thumb-6{background:linear-gradient(135deg,#3a3a1f,#7a7a3f);}

/* ---------- Network articles page (rete-news.html) ---------- */
.network-article-card{
  background:#fffdf9;
  border:1px solid #e5ddc6;
  border-radius:.5rem;
  padding:1.25rem 1.4rem;
  height:100%;
  transition:transform .18s ease, box-shadow .18s ease;
}
.network-article-card:hover{
  transform:translateY(-3px);
  box-shadow:0 .6rem 1.4rem rgba(27,27,26,.08);
}
.network-article-meta{
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--gold-2);
  font-weight:700;
  margin-bottom:.5rem;
}
.network-article-title{
  font-size:1.05rem;
  font-weight:700;
  color:var(--ink);
  margin-bottom:.8rem;
  line-height:1.35;
}
.network-article-link{
  font-size:.85rem;
  font-weight:600;
  color:var(--green);
  text-decoration:none;
}
.network-article-link:hover{
  color:var(--gold-2);
}

.news-card{
  border:1px solid #e5ddc6;
  border-radius:.5rem;
  background:#fffdf9;
  height:100%;
  transition:transform .18s ease, box-shadow .18s ease;
}
.news-card:hover{
  transform:translateY(-3px);
  box-shadow:0 .6rem 1.4rem rgba(27,27,26,.08);
}
.news-card .card-header{
  background:var(--ink-2);
  color:var(--cream);
  border:none;
  padding:.85rem 1.1rem;
}
.news-card .card-header h3{
  font-size:1.05rem;
  margin:0;
  font-weight:700;
}
.news-card .card-header .news-date{
  font-size:.72rem;
  color:var(--gold-2);
  letter-spacing:.04em;
}
.news-card .card-body{
  padding:.85rem 1.1rem;
}
.news-card .card-body p{
  font-size:.87rem;
  color:#4a463d;
  line-height:1.55;
}
.news-card .card-footer{
  background:transparent;
  border-top:1px solid #ece5d2;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:.4rem;
  padding:.6rem .9rem;
}
.news-card .card-footer .news-author{
  font-size:.76rem;
  color:var(--muted);
  font-weight:600;
}
.news-card .card-footer .news-author-icons{
  display:flex;
  align-items:center;
  gap:.4rem;
}

/* Con news.columns:2 le card sono più strette: autore e icone (espandi,
   commenti, galleria) affiancati si accavallano facilmente. La classe
   .news-card-footer-stack (applicata solo quando columns>1) sposta
   l'autore su una riga sopra alle icone. Sotto i 768px col-md-6 diventa
   comunque a piena larghezza (una sola colonna reale): la riga torna
   quindi affiancata come nel layout a colonna singola. */
.news-card.news-card-footer-stack .card-footer{
  flex-direction:column;
  align-items:flex-start;
  gap:.4rem;
}
@media (max-width:767.98px){
  .news-card.news-card-footer-stack .card-footer{
    flex-direction:row;
    align-items:center;
  }
}

/* ---------- News card: variante "landscape" (parametro news.landscape) ----------
   landscape:true  (default) -> immagine sopra, comportamento invariato.
   landscape:false            -> immagine a sinistra, contenuto a destra.
   La larghezza dell'immagine in modalità landscape:false è parametrizzabile
   tramite news.landscapeImageWidth (es. "150px", "20%", 180) e viene passata
   come custom property --news-thumb-w nello style inline della card. */
.news-card-content{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.news-card.news-card-side{
  display:flex;
  flex-direction:row;
  align-items:stretch;
}
.news-card.news-card-side .news-thumb{
  width:var(--news-thumb-w, 150px);
  height:auto;
  flex:0 0 var(--news-thumb-w, 150px);
  border-radius:.5rem 0 0 .5rem;
}
.news-card.news-card-side .news-card-content{
  flex:1 1 auto;
  min-width:0;
}
.news-card.news-card-side .card-body p{
  display:-webkit-box;
  -webkit-line-clamp:4;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
@media (max-width:575.98px){
  .news-card.news-card-side{
    flex-direction:column;
  }
  .news-card.news-card-side .news-thumb{
    width:100%;
    height:150px;
    flex:0 0 auto;
    border-radius:.5rem .5rem 0 0;
  }
}

/* ---------- Network news panel (home page, sopra la classifica) ---------- */
.network-news-card{
  background:#fffdf9;
  border:1px solid #e5ddc6;
  border-radius:.5rem;
  overflow:hidden;
}
.network-news-header{
  background:var(--ink-2);
  color:var(--cream);
  padding:.9rem 1.1rem .7rem;
}
.network-news-header h3{
  font-size:.92rem;
  margin:0;
  font-weight:700;
  letter-spacing:.02em;
  line-height:1.3;
}
.network-news-sub{
  font-size:.72rem;
  color:var(--muted);
  margin-top:.3rem;
}
.network-news-list{
  list-style:none;
  margin:0;
  padding:0;
}
.network-news-list li{
  border-bottom:1px solid #f0ead9;
}
.network-news-list li:last-child{
  border-bottom:none;
}
.network-news-list li:nth-child(even){background:#fbf7ee;}
.network-news-list a,
.network-news-list .nn-item-static{
  display:block;
  padding:.6rem 1.1rem;
  text-decoration:none;
  color:inherit;
}
.network-news-list .nn-title{
  font-size:.83rem;
  font-weight:600;
  color:var(--ink);
  line-height:1.35;
}
.nn-fide-logo{
  height:16px;
  width:auto;
  vertical-align:middle;
  margin-right:.4rem;
  margin-top:-2px;
}
.network-news-list .nn-meta{
  font-size:.72rem;
  color:var(--muted);
  margin-top:.25rem;
}
.network-news-list a:hover .nn-title{
  color:var(--gold-2);
}
.network-news-footer{
  padding:.65rem 1.1rem;
  border-top:1px solid #ece5d2;
  background:#fbf7ee;
  text-align:right;
}
.network-news-footer a{
  font-size:.78rem;
  font-weight:700;
  color:var(--green);
  text-decoration:none;
}
.network-news-footer a:hover{
  color:var(--gold-2);
}

/* ---------- Striscia video YouTube (home page) ---------- */
.video-scroll-controls{
  display:flex;
  gap:.5rem;
}
.video-scroll{
  display:flex;
  gap:1.25rem;
  overflow-x:auto;
  scroll-snap-type:x mandatory;
  padding:.2rem .2rem .8rem;
  scrollbar-width:thin;
  scrollbar-color:var(--gold) transparent;
}
.video-scroll::-webkit-scrollbar{height:8px;}
.video-scroll::-webkit-scrollbar-track{background:transparent;}
.video-scroll::-webkit-scrollbar-thumb{background:var(--gold);border-radius:4px;}
.video-card{
  --vpp:var(--videos-per-page, 4);
  flex:0 0 calc((100% - (var(--vpp) - 1) * 1.25rem) / var(--vpp));
  scroll-snap-align:start;
  background:#fffdf9;
  border:1px solid #e5ddc6;
  border-radius:.5rem;
  overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease;
}
.video-card:hover{
  transform:translateY(-3px);
  box-shadow:0 .6rem 1.4rem rgba(27,27,26,.08);
}
.video-card.video-card-link{
  display:block;
  text-decoration:none;
  color:inherit;
}
.video-card-frame{
  position:relative;
  width:100%;
  padding-top:56.25%;
  background:#000;
}
.video-card-frame iframe{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
}
.video-card-frame-fallback{
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(255,255,255,.85);
  font-size:2.6rem;
  background:linear-gradient(135deg,#2a2a24,#14140f);
}
.video-card-body{
  padding:.85rem 1rem;
}
.video-card-title{
  font-size:.87rem;
  font-weight:600;
  color:var(--ink);
  line-height:1.4;
  margin-bottom:.4rem;
  display:-webkit-box;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
  overflow:hidden;
}
.video-card-channel{
  font-size:.76rem;
  color:var(--muted);
}
.video-dots{
  display:flex;
  justify-content:center;
  gap:.5rem;
  margin-top:1.1rem;
}
.video-dots button{
  width:8px;
  height:8px;
  padding:0;
  border:none;
  border-radius:50%;
  background:#d9d0b5;
  cursor:pointer;
  transition:all .2s ease;
}
.video-dots button.active{
  width:22px;
  border-radius:4px;
  background:var(--gold);
}
@media (max-width:991.98px){
  .video-card{--vpp:min(var(--videos-per-page, 4), 3);}
}
@media (max-width:767.98px){
  .video-card{--vpp:min(var(--videos-per-page, 4), 2);}
}
@media (max-width:575.98px){
  .video-card{flex-basis:240px;}
}

/* ---------- Sidebar ranking (home page) ---------- */
.ranking-card{
  background:#fffdf9;
  border:1px solid #e5ddc6;
  border-radius:.5rem;
  overflow:hidden;
  position:sticky;
  top:1rem;
}
.ranking-header{
  background:var(--ink-2);
  color:var(--cream);
  padding:1rem 1.1rem .8rem;
}
.ranking-header h3{
  font-size:.95rem;
  margin:0;
  font-weight:700;
  letter-spacing:.02em;
  line-height:1.3;
}
.ranking-scope-pills{
  display:flex;
  gap:.4rem;
  margin-top:.8rem;
}
.ranking-scope-pill{
  flex:1;
  text-align:center;
  font-size:.72rem;
  font-weight:600;
  letter-spacing:.02em;
  padding:.4rem .3rem;
  border-radius:.3rem;
  background:transparent;
  color:#a49f8e;
  cursor:pointer;
  border:1px solid rgba(189,183,165,.3);
  transition:all .2s ease;
  user-select:none;
}
.ranking-scope-pill.active{
  background:var(--green);
  color:#fff;
  border-color:var(--green);
}
.ranking-pills{
  display:flex;
  gap:.4rem;
  margin-top:.5rem;
}
.ranking-pill{
  flex:1;
  text-align:center;
  font-size:.7rem;
  letter-spacing:.04em;
  text-transform:uppercase;
  padding:.35rem .3rem;
  border-radius:.3rem;
  background:rgba(246,241,230,.08);
  color:#bdb7a5;
  cursor:pointer;
  border:1px solid transparent;
  transition:all .2s ease;
  user-select:none;
}
.ranking-pill.active{
  background:rgba(200,162,74,.18);
  color:var(--gold-2);
  border-color:rgba(200,162,74,.5);
  font-weight:700;
}
.ranking-sub{
  font-size:.72rem;
  color:#a49f8e;
  margin-top:.4rem;
}
.ranking-list-header{
  display:flex;
  align-items:center;
  gap:.6rem;
  padding:.5rem 1.1rem .4rem;
  font-size:.68rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  color:var(--muted);
  border-bottom:1px solid #e5ddc6;
}
.ranking-list-header .rank-pos,
.ranking-list-header .rank-name,
.ranking-list-header .rank-elo{
  color:inherit;
  font-weight:700;
}
.ranking-list{
  list-style:none;
  margin:0;
  padding:0;
}
.ranking-list li{
  display:flex;
  align-items:center;
  gap:.6rem;
  padding:.5rem 1.1rem;
  border-bottom:1px solid #f0ead9;
  font-size:.85rem;
  transition:opacity .25s ease;
}
.ranking-list li:nth-child(even){background:#fbf7ee;}
.rank-pos{
  width:22px;
  font-weight:700;
  color:var(--muted);
  font-family:'Playfair Display',serif;
}
.rank-pos.top1{color:#c9961f;}
.rank-pos.top2{color:#8a8a8a;}
.rank-pos.top3{color:#a3672f;}
.rank-flag{
  width:20px;height:14px;flex-shrink:0;
  display:inline-flex;border-radius:2px;overflow:hidden;
  box-shadow:0 0 0 1px rgba(0,0,0,.08);
}
.rank-flag img{width:100%;height:100%;object-fit:cover;display:block;}
.rank-flag-empty{background:transparent;box-shadow:none;}
.rank-face{
  width:26px;height:26px;flex-shrink:0;border-radius:50%;overflow:hidden;
  display:inline-flex;box-shadow:0 0 0 1px rgba(0,0,0,.08);background:#e8e2d2;
}
.rank-face img{width:100%;height:100%;object-fit:cover;display:block;}
.rank-face-empty{background:transparent;box-shadow:none;}
.rank-name{flex:1;color:var(--ink);}
.rank-elo{
  font-weight:700;
  color:var(--green);
  font-variant-numeric:tabular-nums;
}
.ranking-fade{animation:fadeSwap .5s ease;}
@keyframes fadeSwap{
  from{opacity:0;transform:translateY(4px);}
  to{opacity:1;transform:translateY(0);}
}
.ranking-pagination{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1rem;
  padding:.8rem 1.1rem;
  border-top:1px solid #ece5d2;
}
.ranking-pagination .icon-btn{
  width:30px;height:30px;
  font-size:.8rem;
}
.ranking-pagination .icon-btn:disabled{
  opacity:.35;
  pointer-events:none;
}
.ranking-footer{
  padding:.7rem 1.1rem;
  font-size:.72rem;
  color:var(--muted);
  border-top:1px solid #ece5d2;
  background:#fbf7ee;
}

/* ---------- Full article panel (home page, piè di pagina) ---------- */
.full-article-section{
  background:var(--cream-2);
  border-top:1px dashed #d9cfa9;
  border-bottom:1px dashed #d9cfa9;
  padding:3rem 0;
  display:none;
}
.full-article-section.visible{display:block;}
.full-article-author{
  font-size:.82rem;
  color:var(--muted);
  font-weight:600;
  margin-top:.4rem;
}
.full-article-box{
  background:#fffdf9;
  border:1px solid #e5ddc6;
  border-radius:.6rem;
  padding:2rem 2.2rem;
}

/* ---------- Commenti articolo ---------- */
.article-comments{
  border-top:1px dashed #d9cfa9;
  padding-top:1.5rem;
}
.article-comment{
  background:var(--cream-2);
  border:1px solid #e5ddc6;
  border-radius:.5rem;
  padding:.9rem 1.1rem;
}
.article-comment-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:.75rem;
  margin-bottom:.4rem;
}
.article-comment-author{
  font-weight:600;
  font-size:.85rem;
  color:var(--ink);
}
.article-comment-date{
  font-size:.72rem;
  color:var(--muted);
  white-space:nowrap;
}
.article-comment-text{
  font-size:.87rem;
  color:#4a463d;
  line-height:1.55;
  margin:0;
}
.article-comment-form textarea,
.article-comment-form input{
  font-size:.87rem;
}

/* ---------- Footer ---------- */
footer.site-footer{
  background:var(--ink);
  color:#bdb7a5;
  padding:3.5rem 0 1.5rem;
  position:relative;
}
/* Le colonne hanno contenuti di altezza diversa (es. il logo nella prima
   colonna, o i loghi delle federazioni nella prima colonna di link): senza
   un allineamento esplicito in cima, "Contatti" (sempre l'ultima) poteva
   apparire spostata più in basso delle altre. */
#footerColumnsRow{
  align-items:flex-start;
}
.footer-version{
  position:absolute;
  right:1rem;
  bottom:.5rem;
  font-size:.68rem;
  opacity:.4;
}
footer.site-footer h5{
  color:var(--cream);
  font-family:'Playfair Display',serif;
  font-weight:700;
  margin-bottom:1rem;
  font-size:1.05rem;
}
footer.site-footer a{
  color:#bdb7a5;
  text-decoration:none;
  font-size:.88rem;
}
footer.site-footer a:hover{color:var(--gold-2);}
footer.site-footer .social-icon{
  width:36px;height:36px;
  border-radius:50%;
  border:1px solid rgba(189,183,165,.35);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-right:.5rem;
}
footer.site-footer .social-icon:hover{
  border-color:var(--gold-2);
  background:rgba(200,162,74,.12);
}
.footer-affiliations{
  margin-top:1.1rem;
}
.footer-affiliations-label{
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#a49f8e;
  margin-bottom:.5rem;
  font-weight:600;
}
.footer-affiliations-logos{
  display:grid;
  grid-template-columns:repeat(var(--fed-logos-per-row, 2), auto);
  gap:.5rem;
  width:fit-content;
}

/* Colonna "Il Circolo": i 4 loghi vengono spostati più a destra
   nello spazio libero accanto/sotto l'elenco dei link, all'incirca
   all'altezza del paragrafo "Associazione sportiva..." */
.footer-col-with-logos{
  position:relative;
}
.footer-col-with-logos .footer-affiliations-logos{
  margin-top:2.75rem;
  margin-left:auto;
  margin-right:0;
}
@media (max-width:991.98px){
  .footer-col-with-logos .footer-affiliations-logos{
    margin-top:1.5rem;
    margin-left:0;
  }
}

/* ---------- Sponsor nel footer (config: sponsors) ---------- */
.footer-sponsors{
  margin-top:2rem;
  padding-top:1.5rem;
  border-top:1px solid rgba(189,183,165,.15);
  text-align:center;
}
.footer-sponsors-label{
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.06em;
  color:#a49f8e;
  margin-bottom:.9rem;
  font-weight:600;
}
.footer-sponsors-logos{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:.75rem;
}
.footer-sponsors-logos .navbar-federation-logo{
  padding:.56rem .9rem;
}
.footer-sponsors-logos .navbar-federation-logo img{
  height:40px;
  width:auto;
}

footer .footer-bottom{
  border-top:1px solid rgba(189,183,165,.15);
  margin-top:2rem;
  padding-top:1.2rem;
  font-size:.78rem;
}

/* ---------- News pagination (home page) ---------- */
#newsPagination .page-link{
  color:var(--ink);
  border:1px solid #e5ddc6;
  border-radius:.35rem;
  font-weight:600;
  font-size:.85rem;
  min-width:34px;
  text-align:center;
}
#newsPagination .page-link:hover{
  background:#fbf3df;
  color:var(--ink);
  border-color:var(--gold);
}
#newsPagination .page-item.active .page-link{
  background:var(--green);
  border-color:var(--green);
  color:#fff;
}
#newsPagination .page-item.disabled .page-link{
  color:#c7c0ac;
  background:transparent;
  border-color:#ece5d2;
}

/* ---------- Gallery modal (home page) ---------- */
.gallery-tile{
  height:130px;
  border-radius:.4rem;
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(255,255,255,.85);
  font-size:1.6rem;
}

/* ---------- Day events modal (calendario) ---------- */
.day-events-list .day-event-row{
  display:flex;
  align-items:center;
  gap:.6rem;
  padding:.6rem 0;
  border-bottom:1px solid #ece5d2;
}
.day-events-list .day-event-row:last-child{border-bottom:none;}
.day-event-time{
  font-weight:700;
  color:var(--muted);
  font-size:.82rem;
  min-width:48px;
}

/* ---------- Chat WhatsApp (pulsante flottante, config: whatsapp) ---------- */
.whatsapp-float{
  position:fixed;
  right:24px;
  bottom:24px;
  width:58px;
  height:58px;
  border-radius:50%;
  background:#25d366;
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1.8rem;
  box-shadow:0 6px 18px rgba(0,0,0,.3);
  z-index:1050;
  transition:transform .15s ease, box-shadow .15s ease;
}
.whatsapp-float:hover{
  background:#20b358;
  color:#fff;
  transform:translateY(-3px) scale(1.05);
  box-shadow:0 10px 24px rgba(0,0,0,.35);
}
@media (max-width:575.98px){
  .whatsapp-float{
    right:16px;
    bottom:16px;
    width:52px;
    height:52px;
    font-size:1.6rem;
  }
}

/* ---------- Banner cookie (fisso in basso, config: cookieBanner) ---------- */
.cookie-banner{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:1055;
  background:var(--ink);
  color:var(--cream);
  padding:.9rem 1.25rem;
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:1rem;
  box-shadow:0 -2px 10px rgba(0,0,0,.25);
}
.cookie-banner-text{
  flex:1 1 320px;
  max-width:900px;
  font-size:.9rem;
  line-height:1.4;
}
.cookie-banner-accept{
  flex:0 0 auto;
  background:var(--gold-2);
  color:var(--ink);
  border:0;
  font-weight:600;
  padding:.5rem 1.5rem;
  border-radius:.4rem;
  transition:filter .15s ease;
}
.cookie-banner-accept:hover{
  filter:brightness(1.08);
}
body.has-cookie-banner .whatsapp-float{
  bottom:96px;
}
@media (max-width:575.98px){
  .cookie-banner{
    padding:.75rem 1rem;
    justify-content:flex-start;
  }
  .cookie-banner-text{
    font-size:.82rem;
  }
  body.has-cookie-banner .whatsapp-float{
    bottom:84px;
  }
}

/* ---------- Calendario eventi (config: calendar, widgets.calendar) ---------- */
.calendar-section{
  margin-top:3.5rem;
}
.calendar-view-toggle .calendar-view-btn{
  background:#fff;
  border:1px solid #d9d0b5;
  color:var(--muted);
  font-weight:600;
}
.calendar-view-toggle .calendar-view-btn.active{
  background:var(--green);
  border-color:var(--green);
  color:#fff;
}
.calendar-legend{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:1.2rem;
  font-size:.78rem;
  color:var(--muted);
  margin-bottom:.75rem;
}
.calendar-legend-swatch{
  display:inline-block;
  width:12px;
  height:12px;
  border-radius:3px;
  margin-right:.35rem;
  vertical-align:middle;
}
.calendar-legend-holiday{
  background:#fdeeea;
  border:1px solid #b5432f;
}
.calendar-legend-today{
  background:#fff;
  border:1px solid var(--gold-2);
  box-shadow:inset 0 0 0 1px var(--gold-2);
}
.calendar-legend-dot{
  position:static;
  display:inline-block;
  margin-right:.35rem;
}
.calendar-month-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:1.2rem;
  margin-bottom:1rem;
}
.calendar-month-label{
  font-family:var(--brand-font, 'Playfair Display', serif);
  font-size:1.2rem;
  font-weight:700;
  color:var(--ink);
  min-width:11rem;
  text-align:center;
  text-transform:capitalize;
}
.calendar-grid-weekdays{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  text-align:center;
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.04em;
  color:var(--muted);
  font-weight:700;
  margin-bottom:.4rem;
}
.calendar-grid{
  display:grid;
  grid-template-columns:repeat(7,1fr);
  gap:.4rem;
}
.calendar-cell{
  position:relative;
  aspect-ratio:1;
  min-height:64px;
  border:1px solid #e5ddc6;
  border-radius:.5rem;
  background:#fff;
  padding:.4rem;
}
.calendar-cell-empty{
  border-color:transparent;
  background:transparent;
}
.calendar-cell-num{
  font-size:.85rem;
  font-weight:600;
  color:var(--muted);
}
.calendar-cell-today{
  border-color:var(--gold-2);
  box-shadow:inset 0 0 0 1px var(--gold-2);
}
.calendar-cell-today .calendar-cell-num{
  color:var(--ink);
}
.calendar-cell-holiday{
  background:#fdeeea;
}
.calendar-cell-holiday .calendar-cell-num{
  color:#b5432f;
  font-weight:700;
}
.calendar-cell-has-events{
  cursor:pointer;
  transition:transform .12s ease, box-shadow .12s ease;
}
.calendar-cell-has-events:hover{
  transform:translateY(-2px);
  box-shadow:0 .5rem 1rem rgba(27,27,26,.1);
}
.calendar-cell-dots{
  position:absolute;
  bottom:.4rem;
  left:.4rem;
  right:.4rem;
  display:flex;
  gap:.2rem;
  flex-wrap:wrap;
}
.calendar-dot{
  width:7px;
  height:7px;
  border-radius:50%;
  background:var(--green);
}
@media (max-width:575.98px){
  .calendar-cell{
    min-height:44px;
    padding:.25rem;
  }
  .calendar-cell-num{
    font-size:.75rem;
  }
}
.calendar-table thead th{
  font-size:.72rem;
  text-transform:uppercase;
  letter-spacing:.03em;
  color:var(--muted);
  border-bottom-width:1px;
}
.calendar-table td{
  vertical-align:middle;
  font-size:.88rem;
}
.calendar-day-event{
  border:1px solid #e5ddc6;
  border-radius:.5rem;
  padding:.85rem 1rem;
}
.calendar-elo-badge{
  background:var(--gold-2);
  color:var(--ink);
}

/* ---------- Splash sponsor all'apertura del sito (config: sponsors.showOnOpen) ---------- */
body.sponsor-splash-open{
  overflow:hidden;
}
.sponsor-splash{
  position:fixed;
  inset:0;
  z-index:2000;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(10,10,10,.7);
  opacity:0;
  pointer-events:none;
  transition:opacity .5s ease;
}
.sponsor-splash.visible{
  opacity:1;
  pointer-events:auto;
}
.sponsor-splash-inner{
  background:#fff;
  border-radius:1rem;
  padding:2rem 2.5rem;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  max-width:min(92vw, 640px);
  text-align:center;
}
.sponsor-splash-label{
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.1em;
  font-weight:700;
  color:#999;
  margin-bottom:1.2rem;
}
.sponsor-splash-logos{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:1.5rem 2rem;
}
.sponsor-splash-logos img{
  display:block;
  max-height:56px;
  max-width:130px;
  object-fit:contain;
}
.sponsor-splash-logo-text{
  font-size:.85rem;
  font-weight:700;
  color:#333;
}
.sponsor-splash-skip{
  position:absolute;
  top:1.5rem;
  right:1.5rem;
  width:40px;
  height:40px;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.4);
  background:rgba(255,255,255,.1);
  color:#fff;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:1rem;
  cursor:pointer;
  transition:background .15s ease;
}
.sponsor-splash-skip:hover{
  background:rgba(255,255,255,.25);
}
@media (max-width:575.98px){
  .sponsor-splash-inner{
    padding:1.75rem 1.5rem;
  }
  .sponsor-splash-logos{
    gap:1rem 1.25rem;
  }
  .sponsor-splash-logos img{
    max-height:42px;
    max-width:100px;
  }
}
