/* Distretto 1 — anteprima nuove pagine. Stessa base grafica della bozza approvata
   (cemento + felci, marchio D1, Oswald/Montserrat) + serif per i motti. */
:root {
  --nero: #1c1c1a;
  --verde: #3f4826;
  --verde-linea: #4a542f;
  --cemento: #c4bfb8;
  --banda: #1d1d1b;
  --chiaro: #e9e6e1;
  --font-titolo: "Oswald", "Arial Narrow", Impact, sans-serif;
  --font-testo: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "EB Garamond", "Times New Roman", Georgia, serif;
  --col: 44rem;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
html { font-size: clamp(14px, 1.05vw + 6px, 18px); scroll-behavior: smooth; }
body {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  color: var(--nero); font-family: var(--font-testo); font-weight: 500;
  background: var(--cemento); overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
body.menu-aperto { overflow: hidden; }
a { color: inherit; }

/* ---------- Sfondo cemento + felci (identico alla bozza) ---------- */
.scena { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--cemento); }
.tela {
  position: absolute; left: 50%; top: 50%;
  width: max(100vw, 177.68vh); height: max(56.28vw, 100vh);
  transform: translate(-50%, -50%);
  background: url("../img/d1-sfondo-desktop.webp") 0 0 / 100% 100% no-repeat;
}
.felce { position: absolute; background: 0 0 / 100% 100% no-repeat; }
.f1 { left: 0; top: 0; width: 38.278%; height: 100%; background-image: url("../img/d1-felce-d-sx.webp"); }
.f2 { left: 78.947%; top: 36.132%; width: 21.053%; height: 63.868%; background-image: url("../img/d1-felce-d-dx.webp"); }
/* pagine interne: stesso sfondo della home, logo in alto a sinistra in bianco */
.interna .testata-logo { color: #fff; filter: drop-shadow(0 1px 6px rgba(0,0,0,.35)); }
.interna .testata-logo .m-d, .interna .testata-logo .m-1 { fill: #fff; }
.interna .testata-logo b { color: #fff; }

/* ---------- Testata + hamburger ---------- */
.testata {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(14px, env(safe-area-inset-top)) 18px 14px;
  pointer-events: none;
}
.testata > * { pointer-events: auto; }
.testata-logo {
  display: flex; align-items: center; gap: .6rem; text-decoration: none;
  font-family: var(--font-titolo); font-weight: 700; font-size: 1.15rem;
  letter-spacing: .08em; text-transform: uppercase;
  transition: opacity .3s;
}
.testata-logo svg { height: 2rem; width: auto; }
.testata-logo b { color: var(--verde); }
.home .testata-logo { opacity: 0; visibility: hidden; }  /* in home il marchio è già grande al centro */
.m-d { fill: var(--nero); } .m-1 { fill: var(--verde); }

.hamburger {
  width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: var(--banda); cursor: pointer;
  display: grid; place-content: center; gap: 5px;
  box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.hamburger span { display: block; width: 20px; height: 2px; background: var(--chiaro); border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-aperto .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-aperto .hamburger span:nth-child(2) { opacity: 0; }
.menu-aperto .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.menu-aperto .testata-logo { opacity: 0; }
.hamburger:focus-visible, .menu a:focus-visible, .icone-nav a:focus-visible { outline: 2px solid var(--verde); outline-offset: 4px; }

.menu {
  position: fixed; inset: 0; z-index: 20;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 80px 24px 40px;
  background: var(--banda); color: var(--chiaro);
  opacity: 0; transition: opacity .35s;
}
.menu.visibile { opacity: 1; }
.menu[hidden] { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { opacity: 0; transform: translateY(10px); transition: opacity .4s, transform .4s; }
.menu.visibile li { opacity: 1; transform: none; }
.menu.visibile li:nth-child(2) { transition-delay: .04s; } .menu.visibile li:nth-child(3) { transition-delay: .08s; }
.menu.visibile li:nth-child(4) { transition-delay: .12s; } .menu.visibile li:nth-child(5) { transition-delay: .16s; }
.menu.visibile li:nth-child(6) { transition-delay: .2s; }
.menu { overflow-y: auto; justify-content: flex-start; -webkit-overflow-scrolling: touch; }
.menu-voci a {
  display: flex; align-items: center; gap: 1rem; padding: .45rem 0;
  font-family: var(--font-titolo); font-weight: 600; font-size: clamp(1.7rem, 5vw, 2.6rem);
  letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
}
.menu-voci a:hover, .menu-voci a[aria-current] { color: #a9b47c; }
.menu-ico { width: 2.2rem; display: inline-flex; justify-content: center; }
.menu-ico .ico { width: 1.9rem; height: 1.9rem; stroke: currentColor; }
.menu-claim { margin: 2.5rem 0 0; font-size: .8rem; letter-spacing: .25em; text-transform: uppercase; opacity: .7; }
.menu-claim i, .piede i { font-style: normal; margin: 0 .3em; }

/* ---------- Contenuto ---------- */
.pagina {
  position: relative; flex: 1;
  width: 100%; max-width: calc(var(--col) + 32px); margin: 0 auto;
  padding: 6.5rem 16px 3rem; text-align: center;
}
.home .pagina { display: flex; flex-direction: column; justify-content: center; padding-top: 3.5rem; padding-bottom: .5rem; }
.hero, .intro, .motto, .sezione { mix-blend-mode: multiply; }

.marchio { display: block; height: clamp(70px, 10vh, 130px); width: auto; margin: 0 auto; }
.titolo {
  margin: .2rem 0 0; font-family: var(--font-titolo); font-weight: 700;
  font-size: clamp(3rem, 9vw, 5.4rem); line-height: 1; letter-spacing: .05em; margin-right: -.05em;
  text-transform: uppercase; white-space: nowrap;
}
.titolo span { color: var(--verde); }
.claim {
  display: inline-block; margin: .6rem 0 0; padding-top: .7rem;
  border-top: 2px solid var(--nero);
  font-size: clamp(.8rem, 1.6vw, 1.05rem); letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
}
.claim i { font-style: normal; color: var(--verde); margin: 0 .3em; }

.intro { margin: clamp(1.2rem, 4vh, 3.5rem) auto 0; max-width: 34rem; }
.intro p, .testo p { margin: 0 0 1.1em; font-weight: 600; font-size: 1.06rem; line-height: 1.5; }
.intro strong { font-weight: 700; }

.motto {
  margin: clamp(1rem, 3vh, 3rem) 0 0;
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(1.6rem, 3.4vw, 2.3rem); line-height: 1.2; text-transform: uppercase; letter-spacing: .02em;
}
.motto-su { display: block; margin-bottom: .2em; }
/* pagine interne: stesso stile del motto in home (serif maiuscolo) */
.sezione .motto { font-size: clamp(1.5rem, 3.2vw, 2.2rem); }

.titolo-sez {
  margin: 0 0 2rem; color: var(--verde);
  font-family: var(--font-testo); font-weight: 800; font-size: calc(clamp(2rem, 5vw, 3rem) - 4px); /* -3pt */
  line-height: 1.1; letter-spacing: .01em; text-transform: uppercase;
}
.testo { max-width: 36rem; margin: 0 auto; }
.sottotitolo {
  margin: 1.6rem 0 0; color: var(--verde); font-weight: 700;
  font-size: clamp(1.1rem, 2.4vw, 1.4rem); letter-spacing: .02em; text-transform: uppercase;
}

.riquadro {
  margin: 2.5rem auto 0; padding: 1.6rem 1.5rem 1.8rem; max-width: 40rem;
  background: rgba(60,60,58,.88); color: var(--chiaro);
  font-family: var(--font-serif); mix-blend-mode: normal; isolation: isolate;
}
.riquadro-pre { margin: 0; font-size: 1.1rem; letter-spacing: .02em; text-transform: uppercase; opacity: .85; }
.riquadro h2 { margin: .3rem 0 .9rem; font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: .02em; text-transform: uppercase; line-height: 1.2; }
.riquadro p:last-child { margin: 0; font-size: 1.12rem; line-height: 1.45; opacity: .9; }
.sezione:has(.riquadro) { mix-blend-mode: normal; }

/* icone di contenuto (punti di forza, sport) */
.ico { fill: none; stroke: var(--verde); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.ico .pieno { fill: currentColor; stroke: none; }
.ico .fino { stroke-width: 1.1; }
.punti { list-style: none; margin: 2.5rem auto 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; }
.punti li {
  flex: 0 1 9rem; display: flex; flex-direction: column; align-items: center; gap: .6rem;
  padding: .4rem .6rem; border-left: 1px solid rgba(74,84,47,.55);
  font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.3;
}
.punti li:first-child { border-left: 0; }
.punti .ico { width: 2.6rem; height: 2.6rem; stroke: var(--nero); color: var(--nero); }
.punti small { font-size: .78em; }
.sport li { flex-basis: 6.5rem; font-size: .7rem; font-weight: 700; }
.sport .ico { width: 2.3rem; height: 2.3rem; }

/* calendario */
.calendario { margin: 0 auto; max-width: 30rem; text-align: left; }
.calendario div { margin: 0 0 1.8rem; }
.calendario dt { font-weight: 800; font-size: 1.2rem; text-transform: uppercase; letter-spacing: .02em; }
.calendario dd { margin: .25rem 0 0; font-weight: 600; font-size: 1.02rem; line-height: 1.55; }
.calendario dd i { font-style: normal; color: var(--verde); }
.calendario dd b { text-transform: uppercase; font-weight: 700; }
.calendario a { text-decoration-color: var(--verde); text-underline-offset: 3px; }

/* ---------- Barra icone di navigazione ---------- */
.icone-nav { position: relative; width: 100%; }
.icone-nav ul { list-style: none; margin: 0 auto; padding: 0; display: flex; justify-content: center; }
.icone-nav li { flex: 0 1 11rem; border-left: 2px solid var(--verde-linea); }
.icone-nav li:first-child { border-left: 0; }
.icone-nav a {
  display: flex; flex-direction: column; align-items: center; gap: .65rem;
  padding: .7rem .4rem; text-decoration: none;
  font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; white-space: nowrap;
  transition: transform .25s, color .25s;
}
.icone-nav .ico { width: 2.6rem; height: 2.6rem; color: var(--verde); transition: transform .25s; }
.icone-nav a:hover .ico { transform: translateY(-3px); }
.icone-nav a.attiva { color: var(--verde); font-weight: 700; }
.home .icone-nav { margin-top: clamp(1.5rem, 4vh, 3.5rem); mix-blend-mode: multiply; }
.interna .icone-nav { padding: .5rem 8px .3rem; background: var(--banda); color: var(--chiaro); }
.interna .icone-nav li { border-left-color: #5a5a52; }
.interna .icone-nav .ico { stroke: var(--chiaro); color: var(--chiaro); }
.interna .icone-nav a.attiva, .interna .icone-nav a.attiva .ico { color: #a9b47c; stroke: #a9b47c; }

.piede {
  position: relative; padding: 1.2rem 16px calc(1.2rem + env(safe-area-inset-bottom));
  font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; text-align: center; opacity: .6;
}
.interna .piede { background: var(--banda); color: var(--chiaro); opacity: 1; padding-top: 0; }
.interna .piede { color: #9c9a94; }

/* ingresso */
.pagina > * { animation: entra 1s cubic-bezier(.2,.7,.2,1) backwards; }   /* backwards: a fine animazione niente transform (non blocca i position:fixed interni) */
.pagina > *:nth-child(2) { animation-delay: .12s; } .pagina > *:nth-child(3) { animation-delay: .24s; }
.pagina > *:nth-child(4) { animation-delay: .36s; }
@keyframes entra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Home su desktop: tutto in un solo schermo, icone sempre visibili ----------
   Le misure seguono l'altezza della finestra (vh), il testo centrale va su righe lunghe. */
@media (orientation: landscape) and (min-width: 761px) {
  .home .pagina { max-width: 64rem; padding: 4.5vh 16px 1vh; }
  .home .solo-mobile { display: none; }
  .home .marchio { height: clamp(48px, 8.5vh, 110px); }
  .home .titolo { font-size: clamp(2.2rem, 7.2vh, 4.8rem); }
  .home .claim { margin-top: .9vh; padding-top: 1vh; font-size: clamp(.7rem, 1.6vh, 1rem); }
  .home .intro { max-width: 60rem; margin-top: 4vh; }
  .home .intro p { margin: 0; font-size: clamp(.85rem, 2vh, 1.08rem); line-height: 1.6; }
  .home .motto { margin-top: 3.5vh; font-size: clamp(1.2rem, 3.6vh, 2.2rem); }
  .home .icone-nav { margin-top: 4.5vh; }
  .home .icone-nav a { padding: .5vh .4rem; gap: 1vh; font-size: clamp(.65rem, 1.45vh, .82rem); }
  .home .icone-nav .ico { width: clamp(1.8rem, 4.6vh, 2.8rem); height: clamp(1.8rem, 4.6vh, 2.8rem); }
  .home .piede { padding: 1.2vh 16px 1.6vh; }
}

/* ---------- Verticale / smartphone ---------- */
@media (orientation: portrait), (max-width: 760px) {
  .tela {
    top: 0; width: max(100vw, 50.583vh); height: max(197.69vw, 100vh);
    transform: translateX(-50%); background-image: url("../img/d1-sfondo-mobile.webp");
  }
  .f1 { left: 0; top: 0; width: 38.715%; height: 45.833%; background-image: url("../img/d1-felce-m-sx.webp"); }
  .f2 { left: 52.471%; top: 60.542%; width: 47.529%; height: 39.458%; background-image: url("../img/d1-felce-m-dx.webp"); }

  .testata-logo span { display: none; }
  .home .pagina { padding-bottom: 0; }
  .home .hero { margin-top: auto; }
  .home .motto { margin-bottom: 3rem; }
  .home .icone-nav { margin: auto -16px 0; width: auto; padding: 1.4rem 4px 1rem; background: var(--banda); color: var(--chiaro); mix-blend-mode: normal; }
  .home .icone-nav .ico { stroke: var(--chiaro); color: var(--chiaro); }
  .home .icone-nav li { border-left-color: #5a5a52; }
  .home .piede { background: var(--banda); color: #9c9a94; opacity: 1; padding-top: 0; }

  .icone-nav li { flex: 1 1 0; min-width: 0; }
  .icone-nav a { padding: .5rem .1rem; font-size: .58rem; letter-spacing: .06em; white-space: normal; text-align: center; line-height: 1.25; }
  .icone-nav .ico { width: 2.1rem; height: 2.1rem; }

  .punti li { flex-basis: 50%; border-left: 0; padding: .9rem .4rem; }
  .sport li { flex-basis: 33.33%; }
  .intro p, .testo p { font-size: 1rem; }
  .calendario { padding: 0 .75rem; }
  .piede-extra { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- Pulsante Prenota ---------- */
.testata .prenota-btn { margin-left: auto; margin-right: 12px; }
.prenota-btn {
  display: inline-flex; align-items: center; height: 48px; padding: 0 1.4rem; border-radius: 24px;
  background: var(--verde); color: var(--chiaro); text-decoration: none;
  font-family: var(--font-titolo); font-weight: 600; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase;
  box-shadow: 0 2px 10px rgba(0,0,0,.18); transition: background .25s;
}
.prenota-btn:hover { background: #2f361c; }
.prenota-btn:focus-visible { outline: 2px solid var(--chiaro); outline-offset: 3px; }
.menu-aperto .testata .prenota-btn { opacity: 0; pointer-events: none; }
.menu .prenota-btn.grande { margin-top: 2rem; height: 54px; padding: 0 2rem; font-size: 1.15rem; }

/* ---------- Barra sezioni nelle pagine interne: solo nomi ---------- */
.icone-nav.solo-testo a { padding: .45rem .4rem; font-family: var(--font-titolo); font-weight: 600; font-size: .95rem; letter-spacing: .14em; }
.icone-nav.solo-testo a:hover { color: #a9b47c; }

/* ---------- Dati societari nel piede ---------- */
.piede p { margin: 0; }
.piede-legale { max-width: 52rem; margin-left: auto !important; margin-right: auto !important; margin-top: .6rem !important; font-size: .9em; letter-spacing: .06em; text-transform: none; line-height: 1.6; }
.piede-legale a { text-decoration: none; }
.piede-legale i { font-style: normal; margin: 0 .35em; }

@media (orientation: portrait), (max-width: 760px) {
  .prenota-btn { height: 44px; padding: 0 1.1rem; font-size: .9rem; }
  .hamburger { width: 44px; height: 44px; }
  .icone-nav.solo-testo a { font-size: .62rem; letter-spacing: .06em; padding: .5rem .1rem; }
  .piede-legale { font-size: .95em; }
}

.home .piede { opacity: .8; }

/* ---------- Menu: colonna voci + Dove siamo ---------- */
.menu-dentro { margin: auto 0; width: 100%; max-width: 62rem; display: grid; grid-template-columns: 1fr minmax(300px, 25rem); gap: 4rem; align-items: center; }
.menu-col { display: flex; flex-direction: column; align-items: flex-start; }
.dove { text-align: left; }
.dove h2 { margin: 0 0 1rem; font-family: var(--font-titolo); font-weight: 600; font-size: 1.6rem; letter-spacing: .08em; text-transform: uppercase; color: #a9b47c; }
.dove-mappa { aspect-ratio: 4 / 3; background: #2a2a27; border: 1px solid #3a3a36; }
.dove-mappa iframe { display: block; width: 100%; height: 100%; border: 0; filter: grayscale(.7) contrast(1.05); }
.dove address { margin-top: 1rem; font-style: normal; font-size: .95rem; line-height: 1.6; letter-spacing: .03em; }
.dove address strong { font-family: var(--font-titolo); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.dove address a, .dove-link { color: var(--chiaro); }
.dove-link { display: inline-block; margin-top: .6rem; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; text-underline-offset: 4px; text-decoration-color: #a9b47c; }
.dove-link:hover { color: #a9b47c; }
.dove-link + .dove-link { display: table; margin-top: .4rem; }
@media (orientation: portrait), (max-width: 760px) {
  .menu { padding: 84px 20px 40px; }
  .menu-dentro { grid-template-columns: 1fr; gap: 2.5rem; margin: 0 auto; max-width: 26rem; }
  .menu-col { align-items: center; }
}

/* ======================================================================
   Calendario serate (Prenota + Eventi)
   ====================================================================== */
.cal-intro { margin: -1rem auto 2rem; max-width: 32rem; font-weight: 600; line-height: 1.5; }
.sezione:has(.cal) { mix-blend-mode: normal; }
.calendario + .cal { margin-top: 3rem; }
.cal {
  --c-events: #b7c387; --c-djset: #e3d2ae; --c-league: #8fae6a; --c-bar: #d6a77a;
  position: relative; margin: 0 auto; max-width: 48rem; padding: 2rem 2rem 1.6rem;
  background: rgba(29,29,27,.93); color: var(--chiaro); text-align: center;
  box-shadow: 0 18px 50px -20px rgba(0,0,0,.55);
}
/* cornice sottile interna, richiamo alle linee della locandina */
.cal::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(169,180,124,.28); pointer-events: none; }

.cal-testa { position: relative; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.cal-pre { grid-column: 1 / -1; margin: 0 0 .2rem; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: #a9b47c; }
.cal-mese { grid-column: 2; grid-row: 2; margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.8rem, 4vw, 2.6rem); letter-spacing: .04em; text-transform: uppercase; }
.cal-prec { grid-column: 1; grid-row: 2; } .cal-succ { grid-column: 3; grid-row: 2; }
.cal-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #4a4a44; background: transparent; color: var(--chiaro); cursor: pointer; display: grid; place-content: center; transition: background .2s, border-color .2s, opacity .2s; }
.cal-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cal-nav:hover:not(:disabled) { background: #a9b47c; border-color: #a9b47c; color: var(--banda); }
.cal-nav:disabled { opacity: .25; cursor: default; }

.cal-legenda { list-style: none; margin: 1.3rem 0 1.4rem; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.6rem; }
.cal-legenda li { display: flex; align-items: center; gap: .5rem; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.cal-legenda b { font-weight: 700; color: var(--c); margin-right: .3em; }
.cal-legenda .ico { width: 1.6rem; height: 1.6rem; stroke: var(--c); color: var(--c); }
.cal-legenda .t-bar { display: contents; }
.t-events { --c: var(--c-events); } .t-djset { --c: var(--c-djset); } .t-league { --c: var(--c-league); } .t-bar { --c: var(--c-bar); }
.t-dinner { --c: #cdb79a; } .t-pizza { --c: #d99a73; } .t-community { --c: #a9bcc8; } .t-stella { --c: #e6d48a; }

.cal-giorni, .cal-griglia { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-giorni span { padding: .3rem 0 .5rem; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: #8d8b84; }
.cal-giorni span:nth-child(n+4) { color: #c9c6bf; }

.cal-cella {
  position: relative; aspect-ratio: 1 / 1.04; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem;
  border: 1px solid transparent; font: inherit; color: inherit; background: none; padding: 0;
}
.cal-cella .n { font-family: var(--font-titolo); font-weight: 600; font-size: 1.05rem; letter-spacing: .04em; line-height: 1; }
.cal-cella.vuota { visibility: hidden; }
.cal-cella.chiuso { color: #57564f; background: repeating-linear-gradient(135deg, transparent 0 6px, rgba(255,255,255,.025) 6px 7px); }
.cal-cella.chiuso .n { font-weight: 500; }
.cal-cella.oggi::after { content: ""; position: absolute; bottom: 6px; width: 4px; height: 4px; border-radius: 50%; background: #a9b47c; }

.cal-cella.attivo {
  cursor: pointer; border-color: color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 9%, transparent);
  transition: transform .2s, background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.cal-cella.attivo .n { color: var(--c); }
.cal-cella.attivo .i .ico { width: 1.5rem; height: 1.5rem; stroke: var(--c); color: var(--c); stroke-width: 1.4; }
.cal-cella.attivo .i { display: flex; align-items: center; justify-content: center; gap: .3rem; }
.cal-cella.attivo .i > span { display: contents; }
.cal-cella.attivo .l { white-space: nowrap; max-width: calc(100% - 4px); overflow: hidden; font-size: .58rem; letter-spacing: .03em; text-transform: uppercase; color: #cfccc4; line-height: 1.25; }
.cal-cella.attivo .l2 { margin-top: -.15rem; }
.cal-cella.attivo:hover { transform: translateY(-2px); border-color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); }
.cal-cella.attivo:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.cal-cella.attivo.scelto { background: var(--c); border-color: var(--c); box-shadow: 0 8px 24px -8px var(--c); transform: translateY(-2px); }
.cal-cella.attivo.scelto .n, .cal-cella.attivo.scelto .l { color: var(--banda); }
.cal-cella.attivo.scelto .i .ico { stroke: var(--banda); color: var(--banda); }

.cal-griglia.da-dx { animation: cal-dx .35s cubic-bezier(.2,.7,.2,1); }
.cal-griglia.da-sx { animation: cal-sx .35s cubic-bezier(.2,.7,.2,1); }
@keyframes cal-dx { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes cal-sx { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }

.cal-scelta { margin-top: 1.4rem; padding-top: 1.3rem; border-top: 1px solid #3a3a36; min-height: 5.2rem; display: flex; align-items: center; justify-content: center; }
.cal-invito { margin: 0; font-family: var(--font-serif); font-size: 1.2rem; letter-spacing: .02em; text-transform: uppercase; color: #9c9a94; }
.cal-riepilogo { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.2rem; text-align: left; animation: entra .45s cubic-bezier(.2,.7,.2,1); }
.cal-riepilogo[hidden] { display: none; }
.cal-riep-data { flex: 1 1 100%; margin: 0; }
.cal-riep-info { flex: 1 1 18rem; min-width: 0; display: flex; align-items: center; gap: 1rem; animation: entra .35s cubic-bezier(.2,.7,.2,1); }
.cal-riep-ico .ico { width: 3rem; height: 3rem; stroke: var(--c); color: var(--c); }
.cal-riep-testo { flex: 1; min-width: 0; }
.cal-riep-testo p { margin: 0; }
.cal-riep-data { font-family: var(--font-serif); font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; }
.cal-riep-tipo { font-family: var(--font-titolo); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--c); }
.cal-riep-desc { margin-top: .2rem !important; font-size: .8rem; color: #b5b2ab; line-height: 1.4; }
.cal .prenota-btn.grande { height: 52px; padding: 0 1.6rem; white-space: nowrap; background: #a9b47c; color: var(--banda); }
.cal .prenota-btn.grande:hover { background: var(--chiaro); }
.cal-servizi { flex: 1 1 100%; margin: 0; padding: 0; border: 0; min-width: 0; }
.cal-servizi[hidden] { display: none; }
.cal-servizi legend { padding: 0; margin-bottom: .55rem; font-family: var(--font-titolo); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: #9c9a94; }
.cal-serv-lista { display: flex; flex-wrap: wrap; gap: .5rem; }
.cal-serv { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 48px; padding: .45rem 1rem; border: 1px solid #4a4a45; cursor: pointer; transition: border-color .2s, background .2s; }
.cal-serv input { position: absolute; opacity: 0; pointer-events: none; }
.cal-serv .sv-nome { font-family: var(--font-titolo); font-weight: 500; font-size: .86rem; letter-spacing: .1em; text-transform: uppercase; }
.cal-serv .sv-nome .ico { width: 1.1rem; height: 1.1rem; margin-right: .4rem; vertical-align: -.2rem; stroke: var(--c-bar); color: var(--c-bar); }
.cal-serv .sv-ore { font-size: .72rem; color: #9c9a94; }
.cal-serv:hover { border-color: #8a8a82; }
.cal-serv:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.cal-serv:has(input:checked) .sv-nome { color: var(--c); }
.cal-serv:has(input:focus-visible) { outline: 2px solid var(--c); outline-offset: 2px; }
.cal-riepilogo .cal-vai { margin-left: auto; }

@media (orientation: portrait), (max-width: 760px) {
  .cal { padding: 1.4rem .7rem 1.2rem; margin: 0 -8px; }
  .cal::before { inset: 5px; }
  .cal-legenda { gap: .4rem 1rem; }
  .cal-legenda li { font-size: .66rem; }
  .cal-legenda .ico { width: 1.3rem; height: 1.3rem; }
  .cal-giorni, .cal-griglia { gap: 3px; }
  .cal-giorni span { font-size: .56rem; letter-spacing: .08em; }
  .cal-cella { aspect-ratio: 1 / 1.38; gap: .12rem; }
  .cal-cella .n { font-size: .92rem; }
  .cal-cella.attivo .i .ico { width: 1.15rem; height: 1.15rem; }
  .cal-cella.attivo .i { gap: 1px; }
  .cal-cella.attivo .i:has(> span + span) .ico { width: 1rem; height: 1rem; }
  .cal-cella.attivo .l { white-space: normal; max-width: 100%; padding: 0 1px; font-size: .5rem; letter-spacing: 0; line-height: 1.05; text-align: center; overflow-wrap: anywhere; }
  .cal-cella.attivo .l2 { margin-top: -.1rem; }
  .cal-riepilogo { flex-wrap: wrap; gap: .8rem 1rem; }
  .cal-riep-ico .ico { width: 2.4rem; height: 2.4rem; }
  .cal .prenota-btn.grande { width: 100%; justify-content: center; }
  .cal-serv { flex: 1 1 100%; }
}

/* desktop: la serata scelta compare in un pannello fisso dal basso (come su cellulare) */
.cal-chiudi { display: none; }
@media (orientation: landscape) and (min-width: 761px) {
  .cal-riepilogo {
    --c-events: #b7c387; --c-djset: #e3d2ae; --c-league: #8fae6a; --c-bar: #d6a77a;
    position: fixed; z-index: 18; left: 0; right: 0; bottom: 0; margin: 0 auto;
    width: min(56rem, calc(100vw - 32px)); box-sizing: border-box; padding: 1.3rem 3.6rem 1.4rem 1.8rem;
    background: var(--banda); color: var(--chiaro); border-top: 3px solid var(--c);
    box-shadow: 0 -24px 60px -12px rgba(0,0,0,.6);
    animation: cal-sheet .45s cubic-bezier(.2,.7,.2,1);
  }
  .cal-chiudi { display: grid; place-content: center; position: absolute; top: .7rem; right: .8rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #4a4a44; background: transparent; color: var(--chiaro); cursor: pointer; transition: background .2s, border-color .2s; }
  .cal-chiudi svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .cal-chiudi:hover { background: #a9b47c; border-color: #a9b47c; color: var(--banda); }
}
@keyframes cal-sheet { from { transform: translateY(100%); } to { transform: none; } }

/* pagine interne: titolo e testi piu' in alto (appena sotto la testata) */
.interna .pagina { padding-top: 4.6rem; }
.interna .titolo-sez { margin-bottom: 1.3rem; }
@media (orientation: portrait), (max-width: 760px) { .interna .pagina { padding-top: 4.8rem; } }

/* ---------- eventi (elenco e dettaglio) ---------- */
.ev-cta { margin-top: .4rem; }
.sezione.ev-sez, .sezione.ev-pagina { mix-blend-mode: normal; }
.ev-sez { margin-top: 3rem; }
.ev-sez .sottotitolo { margin: 0 0 1.2rem; }
.ev-lista, .ev-dett, .ev-galleria { --c-events: #b7c387; --c-djset: #e3d2ae; --c-league: #8fae6a; --c-bar: #d6a77a; --c: #a9b47c; }
.ev-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; text-align: left; }
.ev-card {
  position: relative; display: grid; grid-template-columns: 6.8rem minmax(0, 1fr); align-items: stretch;
  background: rgba(29,29,27,.93); color: var(--chiaro); box-shadow: 0 18px 50px -24px rgba(0,0,0,.55);
}
.ev-card { grid-template-areas: "data corpo"; }
.ev-card.con-foto { grid-template-columns: 6.8rem minmax(0, 1fr) 12.5rem; grid-template-areas: "data corpo foto"; }
.ev-data { grid-area: data; } .ev-corpo { grid-area: corpo; } .ev-foto { grid-area: foto; min-height: 9rem; }
.ev-card::before, .ev-dett::before { content: ""; position: absolute; inset: 7px; border: 1px solid rgba(169,180,124,.22); pointer-events: none; z-index: 1; }
.ev-data { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; padding: 1.2rem .4rem; border-right: 1px solid rgba(169,180,124,.22); text-align: center; }
.ev-gs { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; color: var(--c); }
.ev-n { font-family: var(--font-serif); font-size: 3rem; line-height: 1; }
.ev-m { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; }
.ev-ora { margin-top: .35rem; font-size: .7rem; color: #9c9a94; }
.ev-corpo { padding: 1.2rem 1.4rem 1.3rem; min-width: 0; }
.ev-pre { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.1rem; margin: 0 0 .35rem; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--c); }
.ev-pre .ico { width: 1.3rem; height: 1.3rem; stroke: var(--c); color: var(--c); }
.ev-ico { display: inline-flex; align-items: center; gap: .45rem; color: var(--c); }
.ev-azioni .ev-prenota { white-space: nowrap; }
.ev-date-btn { display: flex; flex-wrap: wrap; gap: .5rem; margin-left: auto; }
.ev-date .ev-date-btn .prenota-btn { margin-left: 0; }
.ev-titolo { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(1.75rem, 3.4vw, 2.3rem); line-height: 1.12; }
.ev-titolo a { text-decoration: none; }
.ev-titolo a:hover { color: var(--c); }
.ev-breve { margin: .55rem 0 0; font-size: .95rem; line-height: 1.5; color: #d6d2cb; }
.ev-altre { margin: .55rem 0 0; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: #9c9a94; }
.ev-azioni { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin-top: 1rem; }
.ev-scopri { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; text-underline-offset: 4px; text-decoration-color: var(--c); }
.ev-scopri:hover { color: var(--c); }
.ev-lista .prenota-btn, .ev-dett .prenota-btn { background: #a9b47c; color: var(--banda); }
.ev-lista .prenota-btn:hover, .ev-dett .prenota-btn:hover { background: var(--chiaro); }
.ev-prenota[hidden] { display: none; }
.ev-foto { display: block; position: relative; overflow: hidden; }
.ev-foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.ev-card:hover .ev-foto img { transform: scale(1.04); }

/* dettaglio */
.ev-pagina { text-align: left; }
.ev-indietro { margin: 0 0 1rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.ev-indietro a { text-underline-offset: 4px; text-decoration-color: var(--verde); }
.ev-anteprima { margin: 0 0 1rem; padding: .6rem .9rem; background: #8a6a3a; color: #fff; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.ev-dett { position: relative; background: rgba(29,29,27,.93); color: var(--chiaro); box-shadow: 0 18px 50px -20px rgba(0,0,0,.55); }
.ev-cop { display: block; width: 100%; padding: 0; border: 0; background: #111; cursor: zoom-in; }
.ev-cop img { display: block; width: 100%; max-height: 70vh; object-fit: cover; }
.ev-dett-corpo { padding: 1.8rem 2rem 2rem; }
.ev-dett-titolo { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.4rem, 5.8vw, 3.7rem); line-height: 1.06; }
.ev-lead { margin: .8rem 0 0; font-family: var(--font-serif); font-size: 1.3rem; line-height: 1.4; color: #d6d2cb; }
.ev-date { list-style: none; margin: 1.4rem 0 0; padding: 0; border-top: 1px solid rgba(169,180,124,.22); }
.ev-date li { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1rem; padding: .75rem 0; border-bottom: 1px solid rgba(169,180,124,.22); }
.ev-date-g { font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; }
.ev-date-o { font-size: .85rem; color: #9c9a94; }
.ev-date .prenota-btn { margin-left: auto; }
.ev-date li.passata { opacity: .5; }
.ev-concluso { margin: .8rem 0 0; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--c); }
.ev-testo { margin-top: 1.4rem; }
.ev-testo p { margin: 0 0 1em; font-size: 1.02rem; line-height: 1.65; color: #e1ddd6; }
.ev-testo p:last-child { margin-bottom: 0; }
.ev-galleria { margin-top: 1.2rem; }
.ev-gal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 6px; }
.ev-gal button { display: block; width: 100%; padding: 0; border: 0; background: #111; cursor: zoom-in; overflow: hidden; }
.ev-gal img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; transition: transform .5s, opacity .3s; }
.ev-gal button:hover img { transform: scale(1.05); }
.ev-gal button:focus-visible, .ev-cop:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; }

/* foto a schermo intero */
body.lb-aperta { overflow: hidden; }
.ev-lb { width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(15,15,14,.96); color: var(--chiaro); }
.ev-lb::backdrop { background: rgba(15,15,14,.9); }
.ev-lb[open] { display: grid; place-items: center; }
.ev-lb figure { margin: 0; display: grid; justify-items: center; gap: .7rem; max-width: calc(100vw - 7rem); }
.ev-lb img { display: block; max-width: 100%; max-height: calc(100dvh - 6rem); object-fit: contain; }
.ev-lb figcaption { font-size: .85rem; letter-spacing: .06em; color: #c9c6bf; text-align: center; }
.ev-lb button { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #4a4a44; background: rgba(29,29,27,.7); color: var(--chiaro); cursor: pointer; display: grid; place-content: center; }
.ev-lb button:hover { background: #a9b47c; border-color: #a9b47c; color: var(--banda); }
.ev-lb button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ev-lb-x { top: 1rem; right: 1rem; }
.ev-lb-prec { left: 1rem; top: 50%; transform: translateY(-50%); }
.ev-lb-succ { right: 1rem; top: 50%; transform: translateY(-50%); }

@media (orientation: portrait), (max-width: 760px) {
  .ev-card, .ev-card.con-foto { grid-template-columns: 5.4rem minmax(0, 1fr); }
  .ev-card.con-foto { grid-template-areas: "foto foto" "data corpo"; }
  .ev-card.con-foto .ev-foto { width: 100%; min-height: 0; justify-self: stretch; aspect-ratio: 16 / 9; }
  .ev-n { font-size: 2.4rem; }
  .ev-corpo { padding: 1rem 1rem 1.1rem; }
  .ev-dett-corpo { padding: 1.3rem 1.1rem 1.5rem; }
  .ev-date .prenota-btn { margin-left: 0; width: 100%; justify-content: center; }
  .ev-date-btn { width: 100%; margin-left: 0; }
  .ev-gal { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .ev-lb figure { max-width: 100vw; }
  .ev-lb-prec, .ev-lb-succ { top: auto; bottom: 1rem; transform: none; }
}

/* eventi: scelta del servizio quando il Prenota ha piu' turni (pannello in basso come nel calendario) */
.ev-piede {
  --c-events: #b7c387; --c-djset: #e3d2ae; --c-league: #8fae6a; --c-bar: #d6a77a; --c: #a9b47c;
  position: fixed; z-index: 18; left: 0; right: 0; bottom: 0; margin: 0 auto;
  width: min(56rem, calc(100vw - 32px)); box-sizing: border-box; padding: 1.3rem 3.6rem 1.4rem 1.8rem;
  background: var(--banda); color: var(--chiaro); border-top: 3px solid var(--c);
  box-shadow: 0 -24px 60px -12px rgba(0,0,0,.6);
  animation: cal-sheet .45s cubic-bezier(.2,.7,.2,1);
}
.ev-piede .cal-chiudi { display: grid; place-content: center; position: absolute; top: .7rem; right: .8rem; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #4a4a44; background: transparent; color: var(--chiaro); cursor: pointer; transition: background .2s, border-color .2s; }
.ev-piede .cal-chiudi svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.ev-piede .cal-chiudi:hover { background: #a9b47c; border-color: #a9b47c; color: var(--banda); }
.ev-piede .prenota-btn.grande { height: 52px; padding: 0 1.6rem; white-space: nowrap; background: #a9b47c; color: var(--banda); }
.ev-piede .prenota-btn.grande:hover { background: var(--chiaro); }
@media (orientation: portrait), (max-width: 760px) {
  .ev-piede { width: 100%; padding: 1.1rem 16px calc(1.1rem + env(safe-area-inset-bottom)); max-height: 85vh; overflow-y: auto; }
  .ev-piede .cal-riep-data { padding-right: 3rem; }
  .ev-piede .prenota-btn.grande { width: 100%; justify-content: center; }
}

/* pagina eventi: titolo, subito i prossimi eventi, in fondo il calendario */
.sezione.ev-testa { padding-bottom: 0; }
.ev-testa .titolo-sez { margin-bottom: 0; }
.ev-testa + .ev-sez { margin-top: 1.6rem; }
.ev-cal-sez { margin-top: 3.5rem; }
