/* ============================================================
   Calendario eventi + segnalazione evento (2026-10-13)
   Layout e proporzioni del modello di Gregorio; colori, font e
   componenti base dal CSS già attivo del sito (styles.css).
   Prefisso .ev- per non toccare nessun'altra pagina.
   ============================================================ */

.ev-page{
  --ev-ink:hsl(var(--foreground));
  --ev-bg:hsl(var(--background));
  --ev-line:hsl(var(--foreground) / .1);
  --ev-line-2:hsl(var(--foreground) / .2);
  --ev-tint:hsl(var(--foreground) / .02);
  --ev-terzo:#5E6738;
  --ev-adv:#C5A059;
  --ev-workshop:#A66D58;
  --ev-pa:#1A3A5A;
  color:var(--ev-ink);
  background:var(--ev-bg);
}
.ev-wrap{max-width:1280px;margin:0 auto;padding:0 24px}

/* ---------- testata ---------- */
.ev-hero{max-width:896px;margin:0 auto;padding:48px 24px;text-align:center}
.ev-eyebrow{font-size:11px;letter-spacing:.3em;text-transform:uppercase;color:hsl(var(--foreground) / .5);margin:0 0 24px}
.ev-h1{font-family:var(--font-display);font-weight:400;font-size:36px;line-height:1.1;margin:0 0 24px;color:var(--ev-ink)}
.ev-lead{font-size:16px;line-height:1.625;color:hsl(var(--foreground) / .6);max-width:672px;margin:0 auto}
@media (min-width:768px){
  .ev-hero{padding-top:64px;padding-bottom:64px}
  .ev-h1{font-size:60px}
  .ev-lead{font-size:18px}
}
@media (min-width:1024px){.ev-h1{font-size:72px}}

/* ---------- blocchi con titoletto + filetto ---------- */
.ev-sec{padding:0 24px;margin-bottom:24px}
.ev-block{padding:48px 24px}
.ev-block.ev-tint{background:var(--ev-tint)}
.ev-rule{display:flex;align-items:center;gap:16px;margin-bottom:24px}
.ev-rule span{font-size:11px;letter-spacing:.3em;text-transform:uppercase;color:hsl(var(--foreground) / .5);white-space:nowrap}
.ev-rule::after{content:"";flex:1;height:1px;background:var(--ev-line)}

/* ---------- carte in evidenza / passati (scorrimento orizzontale) ---------- */
.ev-rail{display:flex;gap:24px;overflow-x:auto;padding-bottom:16px;scroll-snap-type:x mandatory;scrollbar-width:thin}
.ev-card{flex:0 0 280px;width:280px;text-align:left;scroll-snap-align:start;background:none;border:0;padding:0;cursor:pointer;color:inherit;font:inherit}
.ev-card-img{aspect-ratio:4/3;overflow:hidden;background:hsl(var(--foreground) / .05);margin-bottom:12px}
.ev-card-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .5s}
.ev-card:hover .ev-card-img img,.ev-card:focus-visible .ev-card-img img{transform:scale(1.05)}
.ev-past .ev-card-img img{filter:grayscale(1);transition:filter .5s}
.ev-past .ev-card:hover .ev-card-img img,.ev-past .ev-card:focus-visible .ev-card-img img{filter:none;transform:none}
.ev-cat{display:flex;align-items:center;gap:8px;margin-bottom:8px}
.ev-dot{width:8px;height:8px;border-radius:50%;flex:0 0 auto}
.ev-cat-label{font-size:10px;letter-spacing:.15em;text-transform:uppercase}
.ev-card-title{font-family:var(--font-display);font-size:18px;line-height:1.25;margin-bottom:4px;color:var(--ev-ink)}
.ev-past .ev-card-title{font-size:16px;color:hsl(var(--foreground) / .8)}
.ev-past .ev-card:hover .ev-card-title{color:var(--ev-ink)}
.ev-card-meta{font-size:12px;color:hsl(var(--foreground) / .5)}
.ev-past .ev-card-meta{color:hsl(var(--foreground) / .4)}
.ev-card-meta::first-letter{text-transform:none}

/* ---------- ricerca e filtri ---------- */
.ev-filters{max-width:1280px;margin:0 auto;display:flex;flex-direction:column;gap:12px}
.ev-search{position:relative}
.ev-search svg{position:absolute;left:12px;top:50%;transform:translateY(-50%);width:16px;height:16px;color:hsl(var(--foreground) / .4)}
.ev-search input{width:100%;box-sizing:border-box;padding:10px 16px 10px 40px;background:var(--ev-bg);border:1px solid var(--ev-line-2);border-radius:0;font:inherit;font-size:14px;color:var(--ev-ink);transition:border-color .2s}
.ev-search input::placeholder{color:hsl(var(--foreground) / .4)}
.ev-search input:focus{outline:none;border-color:hsl(var(--foreground) / .5)}
.ev-search input:focus-visible{outline:2px solid var(--ev-ink);outline-offset:2px}
.ev-chips{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ev-chip{display:inline-flex;align-items:center;gap:10px;padding:10px 16px;font:inherit;font-size:11px;letter-spacing:.15em;text-transform:uppercase;background:none;border:1px solid var(--ev-line-2);border-radius:0;color:hsl(var(--foreground) / .7);cursor:pointer;transition:all .2s;min-height:40px}
.ev-chip:hover{border-color:hsl(var(--foreground) / .5);color:var(--ev-ink)}
.ev-chip[aria-pressed="true"]{border-color:var(--ev-ink);background:var(--ev-ink);color:var(--ev-bg)}
.ev-chip .ev-dot{flex:0 0 auto}
.ev-chips.ev-areas .ev-chip{padding:6px 12px;font-size:11px;letter-spacing:.1em;border-color:var(--ev-line);color:hsl(var(--foreground) / .5);min-height:36px}
.ev-chips.ev-areas .ev-chip:hover{border-color:hsl(var(--foreground) / .3);color:hsl(var(--foreground) / .7)}
.ev-chips.ev-areas .ev-chip[aria-pressed="true"]{border-color:hsl(var(--foreground) / .4);background:hsl(var(--foreground) / .05);color:var(--ev-ink)}
@media (min-width:768px){.ev-chips{gap:12px}.ev-chips.ev-areas{gap:8px}}

/* ---------- barra del calendario ---------- */
.ev-toolbar{max-width:1280px;margin:0 auto;display:flex;flex-direction:column;align-items:center;justify-content:space-between;gap:16px}
.ev-nav{display:flex;align-items:center;gap:8px}
.ev-sq{width:40px;height:40px;display:inline-flex;align-items:center;justify-content:center;background:none;border:1px solid var(--ev-line-2);border-radius:0;color:var(--ev-ink);cursor:pointer;transition:background .2s,color .2s}
.ev-sq:hover{background:var(--ev-ink);color:var(--ev-bg)}
.ev-sq svg{width:16px;height:16px}
.ev-today{margin-left:8px;padding:10px 16px;font:inherit;font-size:11px;letter-spacing:.2em;text-transform:uppercase;background:none;border:1px solid var(--ev-line-2);border-radius:0;color:hsl(var(--foreground) / .6);cursor:pointer;transition:color .2s;min-height:40px}
.ev-today:hover{color:var(--ev-ink)}
.ev-title{font-family:var(--font-display);font-size:20px;flex:1;text-align:center;text-transform:capitalize}
.ev-views{display:flex;align-items:center;border:1px solid var(--ev-line-2)}
.ev-views button{padding:10px 16px;font:inherit;font-size:11px;letter-spacing:.15em;text-transform:uppercase;background:none;border:0;border-left:1px solid var(--ev-line-2);color:hsl(var(--foreground) / .6);cursor:pointer;transition:color .2s,background .2s;min-height:40px}
.ev-views button:first-child{border-left:0}
.ev-views button:hover{color:var(--ev-ink)}
.ev-views button[aria-pressed="true"]{background:var(--ev-ink);color:var(--ev-bg)}
@media (min-width:768px){.ev-toolbar{flex-direction:row}.ev-title{font-size:24px}}

/* ---------- calendario: mese ---------- */
.ev-cal{max-width:1280px;margin:0 auto;padding-bottom:48px;min-height:200px}
.ev-loading{display:flex;justify-content:center;padding:128px 0}
.ev-spin{width:32px;height:32px;border:2px solid hsl(var(--foreground) / .2);border-top-color:var(--ev-ink);border-radius:50%;animation:ev-spin .8s linear infinite}
@keyframes ev-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.ev-spin{animation-duration:2.4s}.ev-card-img img,.ev-past .ev-card-img img{transition:none}}
.ev-month{border:1px solid var(--ev-line);background:var(--ev-bg)}
.ev-dow,.ev-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr))}
.ev-dow{border-bottom:1px solid var(--ev-line)}
.ev-dow div{padding:8px;text-align:center;font-size:10px;letter-spacing:.15em;text-transform:uppercase;color:hsl(var(--foreground) / .5);border-right:1px solid var(--ev-line)}
.ev-dow div:last-child{border-right:0}
.ev-day{min-height:64px;padding:6px;border-right:1px solid var(--ev-line);border-bottom:1px solid var(--ev-line);cursor:pointer;transition:background .2s;min-width:0}
.ev-day:nth-child(7n){border-right:0}
.ev-day:hover{background:hsl(var(--foreground) / .03)}
.ev-day:focus-visible{outline:2px solid var(--ev-ink);outline-offset:-2px}
.ev-day.ev-out{opacity:.35}
.ev-day.ev-today-cell{background:var(--ev-tint)}
.ev-num{display:flex;align-items:center;margin-bottom:4px}
.ev-num span{font-size:12px;font-weight:500;color:hsl(var(--foreground) / .7)}
.ev-today-cell .ev-num span{background:var(--ev-ink);color:var(--ev-bg);width:20px;height:20px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:10px}
.ev-chipev{display:block;width:100%;box-sizing:border-box;text-align:left;font:inherit;font-size:11px;line-height:1.4;padding:2px 6px;margin-bottom:2px;border:0;border-left:2px solid;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;transition:opacity .2s}
.ev-chipev:hover{opacity:.7}
.ev-more{font-size:10px;color:hsl(var(--foreground) / .4);padding:0 6px}
@media (min-width:768px){.ev-day{min-height:82px}}

/* anteprima al passaggio del mouse */
.ev-pop{position:fixed;z-index:60;background:var(--ev-bg);border:1px solid var(--ev-line-2);box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 8px 10px -6px rgba(0,0,0,.1);padding:16px;max-height:300px;overflow-y:auto;box-sizing:border-box}
.ev-pop-head{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:hsl(var(--foreground) / .5);margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid var(--ev-line)}
.ev-pop-head::first-letter{text-transform:uppercase}
.ev-pop-list{display:flex;flex-direction:column;gap:10px}
.ev-row{display:flex;gap:8px;align-items:flex-start;cursor:pointer;margin:0 -4px;padding:4px;background:none;border:0;text-align:left;font:inherit;color:inherit;width:calc(100% + 8px);transition:background .2s}
.ev-row:hover{background:hsl(var(--foreground) / .03)}
.ev-bar{width:4px;align-self:stretch;border-radius:2px;flex:0 0 auto}
.ev-thumb{width:56px;height:56px;flex:0 0 auto;overflow:hidden;background:hsl(var(--foreground) / .05);border:1px solid var(--ev-line);display:flex;align-items:center;justify-content:center}
.ev-thumb img{width:100%;height:100%;object-fit:cover}
.ev-thumb span{font-family:var(--font-display);font-size:18px;line-height:1}
.ev-row-body{flex:1;min-width:0}
.ev-row-cat{font-size:10px;letter-spacing:.15em;text-transform:uppercase}
.ev-row-title{font-family:var(--font-display);font-size:14px;line-height:1.25;color:var(--ev-ink)}
.ev-row-meta{font-size:12px;color:hsl(var(--foreground) / .5)}

/* ---------- calendario: settimana e giorno ---------- */
.ev-week{display:grid;grid-template-columns:1fr;border:1px solid var(--ev-line);background:var(--ev-bg);overflow:hidden}
.ev-wday{min-height:200px;padding:12px;border-bottom:1px solid var(--ev-line)}
.ev-wday:last-child{border-bottom:0}
.ev-wday.ev-today-cell{background:hsl(var(--foreground) / .03)}
.ev-wday-head{margin-bottom:12px;padding-bottom:8px;border-bottom:1px solid var(--ev-line)}
.ev-wday-head small{display:block;font-size:11px;letter-spacing:.15em;text-transform:uppercase;color:hsl(var(--foreground) / .5)}
.ev-wday-head b{font-family:var(--font-display);font-weight:400;font-size:24px;color:hsl(var(--foreground) / .8)}
.ev-today-cell .ev-wday-head b{color:var(--ev-ink)}
.ev-wday-list{display:flex;flex-direction:column;gap:4px}
.ev-wnone{font-size:12px;font-style:italic;color:hsl(var(--foreground) / .25);padding:8px 0}
.ev-mini{display:flex;gap:10px;width:100%;box-sizing:border-box;text-align:left;padding:10px;background:none;border:0;font:inherit;color:inherit;cursor:pointer;transition:background .2s}
.ev-mini:hover{background:hsl(var(--foreground) / .04)}
.ev-mini .ev-bar{width:4px}
.ev-mini-body{flex:1;min-width:0}
.ev-mini-cat{font-size:10px;letter-spacing:.15em;text-transform:uppercase;margin-bottom:2px}
.ev-mini-title{font-family:var(--font-display);font-size:14px;line-height:1.25;margin-bottom:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ev-mini-meta{font-size:12px;color:hsl(var(--foreground) / .5)}
@media (min-width:768px){
  .ev-week{grid-template-columns:repeat(7,minmax(0,1fr))}
  .ev-wday{border-bottom:0;border-right:1px solid var(--ev-line)}
  .ev-wday:last-child{border-right:0}
}
.ev-dayview{border:1px solid var(--ev-line);background:var(--ev-bg);padding:24px}
.ev-dayview-head{margin-bottom:32px;padding-bottom:24px;border-bottom:1px solid var(--ev-line)}
.ev-dayview-head small{display:block;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:hsl(var(--foreground) / .5);margin-bottom:8px}
.ev-dayview-head b{display:block;font-family:var(--font-display);font-weight:400;font-size:30px;line-height:1.15;text-transform:capitalize}
.ev-dayview-list{display:flex;flex-direction:column;gap:8px;max-width:672px}
.ev-dayview-list>div{border:1px solid var(--ev-line);transition:border-color .2s}
.ev-dayview-list>div:hover{border-color:hsl(var(--foreground) / .3)}
.ev-dayview-empty{padding:80px 0;text-align:center}
.ev-dayview-empty b{display:block;font-family:var(--font-display);font-weight:400;font-size:24px;color:hsl(var(--foreground) / .4);margin-bottom:8px}
.ev-dayview-empty span{font-size:14px;color:hsl(var(--foreground) / .4)}
@media (min-width:768px){.ev-dayview{padding:40px}.ev-dayview-head b{font-size:48px}}

/* ---------- mappa ---------- */
.ev-mapgrid{display:grid;grid-template-columns:1fr;border:1px solid var(--ev-line)}
.ev-map{position:relative;z-index:0;min-height:420px;width:100%;background:hsl(var(--secondary))}
.ev-map .leaflet-tile-pane{filter:grayscale(.9) contrast(.92) brightness(1.08)}
.ev-map .area-map-tooltip{font-family:var(--font-body);background:var(--ev-bg);color:var(--ev-ink);border:1px solid var(--ev-line-2);border-radius:0;box-shadow:0 4px 12px rgba(0,0,0,.1);padding:4px 8px}
.ev-map .area-map-tooltip::before{display:none}
.ev-panel{border-top:1px solid var(--ev-line);background:var(--ev-bg);padding:24px;min-height:420px;display:flex;flex-direction:column;justify-content:center;box-sizing:border-box}
.ev-panel-empty{text-align:center;padding:48px 0}
.ev-panel-empty i{display:flex;align-items:center;justify-content:center;width:48px;height:48px;margin:0 auto 16px;border:1px solid var(--ev-line-2);border-radius:50%;font-family:var(--font-display);font-style:normal;font-size:18px;color:hsl(var(--foreground) / .3)}
.ev-panel-empty p{margin:0;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:hsl(var(--foreground) / .4)}
.ev-panel-empty p+p{margin-top:8px;font-size:12px;letter-spacing:0;text-transform:none;color:hsl(var(--foreground) / .3)}
.ev-panel-img{aspect-ratio:4/3;overflow:hidden;background:hsl(var(--foreground) / .05);margin-bottom:16px}
.ev-panel-img img{width:100%;height:100%;object-fit:cover}
.ev-panel h3{font-family:var(--font-display);font-weight:400;font-size:18px;line-height:1.25;margin:0 0 8px}
.ev-panel p{margin:0}
.ev-panel .ev-p-date{font-size:12px;color:hsl(var(--foreground) / .5);margin-bottom:4px;text-transform:capitalize}
.ev-panel .ev-p-loc{font-size:12px;color:hsl(var(--foreground) / .5);margin-bottom:12px}
.ev-panel .ev-p-desc{font-size:14px;line-height:1.625;color:hsl(var(--foreground) / .6);margin-bottom:16px}
.ev-link{display:inline-block;padding:4px 0;font:inherit;font-size:11px;letter-spacing:.15em;text-transform:uppercase;color:var(--ev-ink);background:none;border:0;border-bottom:1px solid var(--ev-ink);cursor:pointer;transition:color .2s;align-self:flex-start}
.ev-link:hover{color:hsl(var(--foreground) / .7)}
@media (min-width:1024px){
  .ev-mapgrid{grid-template-columns:1fr 300px}
  .ev-panel{border-top:0;border-left:1px solid var(--ev-line)}
}

/* ---------- invito a segnalare ---------- */
.ev-cta{padding:64px 24px}
.ev-cta>div{max-width:768px;margin:0 auto;text-align:center}
.ev-cta .ev-eyebrow{margin-bottom:16px}
.ev-cta h2{font-family:var(--font-display);font-weight:400;font-size:30px;line-height:1.2;margin:0 0 20px}
.ev-cta p.ev-cta-text{font-size:14px;color:hsl(var(--foreground) / .6);max-width:576px;margin:0 auto 32px;line-height:1.6}
.ev-btn{display:inline-block;box-sizing:border-box;background:var(--ev-ink);color:var(--ev-bg);padding:14px 32px;font:inherit;font-size:11px;letter-spacing:.2em;text-transform:uppercase;text-decoration:none;border:0;border-radius:0;cursor:pointer;transition:background .2s;min-height:48px}
.ev-btn:hover{background:hsl(var(--foreground) / .9)}
.ev-btn:focus-visible,.ev-sq:focus-visible,.ev-chip:focus-visible,.ev-today:focus-visible,.ev-views button:focus-visible,.ev-card:focus-visible,.ev-chipev:focus-visible,.ev-mini:focus-visible,.ev-link:focus-visible,.ev-row:focus-visible{outline:2px solid var(--ev-ink);outline-offset:2px}
@media (min-width:768px){.ev-cta{padding-top:96px;padding-bottom:96px}.ev-cta h2{font-size:48px}.ev-cta p.ev-cta-text{font-size:16px}}

/* ---------- finestra evento ---------- */
body.ev-lock{overflow:hidden}
.ev-modal{position:fixed;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center;padding:16px}
.ev-modal[hidden]{display:none}
.ev-backdrop{position:absolute;inset:0;background:hsl(var(--foreground) / .6);backdrop-filter:blur(4px)}
.ev-dialog{position:relative;background:var(--ev-bg);width:100%;max-width:672px;max-height:92vh;overflow-y:auto;box-shadow:0 25px 50px -12px rgba(0,0,0,.25)}
.ev-x{position:absolute;top:16px;right:16px;z-index:2;width:40px;height:40px;display:flex;align-items:center;justify-content:center;background:hsl(var(--background) / .9);border:1px solid var(--ev-line-2);border-radius:0;color:var(--ev-ink);cursor:pointer;transition:background .2s,color .2s}
.ev-x:hover{background:var(--ev-ink);color:var(--ev-bg)}
.ev-x svg{width:16px;height:16px}
.ev-dialog-img{aspect-ratio:21/9;width:100%;overflow:hidden;background:hsl(var(--foreground) / .05)}
.ev-dialog-img img{width:100%;height:100%;object-fit:cover}
.ev-dialog-body{padding:24px}
.ev-dialog .ev-cat{margin-bottom:16px}
.ev-dialog .ev-dot{width:12px;height:12px}
.ev-dialog .ev-cat-label{font-size:11px;letter-spacing:.2em}
.ev-dialog h2{font-family:var(--font-display);font-weight:400;font-size:30px;line-height:1.15;margin:0 0 24px}
.ev-facts{display:flex;flex-direction:column;gap:12px;margin-bottom:32px;padding-bottom:32px;border-bottom:1px solid var(--ev-line)}
.ev-fact{display:flex;align-items:flex-start;gap:12px;font-size:14px;color:hsl(var(--foreground) / .8)}
.ev-fact svg{width:16px;height:16px;margin-top:2px;flex:0 0 auto;color:hsl(var(--foreground) / .4)}
.ev-fact.ev-cap span::first-letter{text-transform:uppercase}
.ev-lab{font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:hsl(var(--foreground) / .5);margin-bottom:12px}
.ev-desc{margin-bottom:32px}
.ev-desc div{color:hsl(var(--foreground) / .8);line-height:1.625;white-space:pre-line}
.ev-cals{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}
.ev-cals a,.ev-cals button{display:flex;align-items:center;justify-content:center;padding:12px;font:inherit;font-size:11px;letter-spacing:.15em;text-transform:uppercase;text-decoration:none;color:var(--ev-ink);background:none;border:1px solid var(--ev-line-2);border-radius:0;cursor:pointer;transition:background .2s,color .2s;min-height:44px}
.ev-cals a:hover,.ev-cals button:hover{background:var(--ev-ink);color:var(--ev-bg)}
.ev-share{margin-top:32px}
.ev-share-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.ev-share-row a,.ev-share-row button{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;color:var(--ev-ink);background:none;border:1px solid var(--ev-line-2);border-radius:0;cursor:pointer;transition:background .2s,color .2s;font:inherit}
.ev-share-row a:hover,.ev-share-row button:hover{background:var(--ev-ink);color:var(--ev-bg)}
.ev-share-row svg{width:16px;height:16px}
.ev-share-row .ev-share-main{width:auto;padding:0 16px;gap:8px;font-size:11px;letter-spacing:.15em;text-transform:uppercase}
.ev-copied{font-size:11px;letter-spacing:.15em;text-transform:uppercase;color:hsl(var(--foreground) / .5)}
@media (min-width:768px){.ev-modal{padding:32px}.ev-dialog-body{padding:40px}.ev-dialog h2{font-size:36px}.ev-cals{grid-template-columns:repeat(4,1fr)}}

/* ---------- pagina "Segnala un evento" ---------- */
.ev-form-sec{padding:48px 24px}
.ev-form-in{max-width:768px;margin:0 auto}
.ev-back{display:inline-flex;align-items:center;gap:8px;padding:8px 0;font:inherit;font-size:11px;letter-spacing:.2em;text-transform:uppercase;color:hsl(var(--foreground) / .5);text-decoration:none;margin-bottom:32px;transition:color .2s}
.ev-back:hover{color:var(--ev-ink)}
.ev-back svg{width:16px;height:16px}
.ev-form-head{text-align:center;margin-bottom:32px}
.ev-form-head .ev-eyebrow{margin-bottom:8px}
.ev-form-head h1{font-family:var(--font-display);font-weight:400;font-size:30px;line-height:1.2;margin:0 0 12px}
.ev-form-head p.ev-form-lead{font-size:14px;color:hsl(var(--foreground) / .6);max-width:576px;margin:0 auto;line-height:1.6}
@media (min-width:768px){.ev-form-sec{padding-top:64px;padding-bottom:64px}.ev-form-head h1{font-size:36px}}
.ev-form{display:flex;flex-direction:column;gap:20px}
.ev-grid2{display:grid;grid-template-columns:1fr;gap:16px}
@media (min-width:768px){.ev-grid2{grid-template-columns:1fr 1fr}}
.ev-form label.ev-l{display:block;font-size:11px;letter-spacing:.15em;text-transform:uppercase;color:hsl(var(--foreground) / .5);margin-bottom:6px}
.ev-in{width:100%;box-sizing:border-box;padding:10px 12px;background:var(--ev-bg);border:1px solid var(--ev-line-2);border-radius:0;font:inherit;font-size:14px;color:var(--ev-ink);transition:border-color .2s;appearance:none;-webkit-appearance:none}
select.ev-in{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none' stroke='%232E3423' stroke-width='1.5'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 12px center;padding-right:36px}
.ev-in::placeholder{color:hsl(var(--foreground) / .4)}
.ev-in:focus{outline:none;border-color:hsl(var(--foreground) / .5)}
.ev-in:focus-visible{outline:2px solid var(--ev-ink);outline-offset:2px}
textarea.ev-in{resize:vertical;min-height:84px}
.ev-hr{height:1px;background:var(--ev-line);margin:8px 0}
.ev-drop{width:100%;display:flex;flex-direction:column;align-items:center;gap:8px;padding:32px 0;background:none;border:1px dashed hsl(var(--foreground) / .3);border-radius:0;font:inherit;color:hsl(var(--foreground) / .5);cursor:pointer;transition:border-color .2s,color .2s}
.ev-drop:hover{border-color:hsl(var(--foreground) / .5);color:hsl(var(--foreground) / .7)}
.ev-drop svg{width:20px;height:20px}
.ev-drop span{font-size:12px;letter-spacing:.1em;text-transform:uppercase}
.ev-prev{position:relative;width:100%;max-width:320px}
.ev-prev img{width:100%;height:160px;object-fit:cover;border:1px solid var(--ev-line-2)}
.ev-prev button{position:absolute;top:8px;right:8px;width:28px;height:28px;display:flex;align-items:center;justify-content:center;background:hsl(var(--foreground) / .8);color:var(--ev-bg);border:0;border-radius:0;cursor:pointer}
.ev-prev button:hover{background:var(--ev-ink)}
.ev-prev button svg{width:16px;height:16px}
.ev-consent{display:flex;gap:10px;align-items:flex-start;font-size:13px;line-height:1.5;color:hsl(var(--foreground) / .7)}
.ev-consent input{margin-top:3px;flex:0 0 auto;width:16px;height:16px;accent-color:var(--ev-ink)}
.ev-consent a{text-decoration:underline}
.ev-err{font-size:14px;color:#9b2c2c;margin:0}
.ev-submit{width:100%;background:var(--ev-ink);color:var(--ev-bg);padding:14px 0;font:inherit;font-size:11px;letter-spacing:.15em;text-transform:uppercase;border:0;border-radius:0;cursor:pointer;transition:background .2s;min-height:48px}
.ev-submit:hover{background:hsl(var(--foreground) / .9)}
.ev-submit:disabled{opacity:.5;cursor:default}
.ev-submit:focus-visible{outline:2px solid var(--ev-ink);outline-offset:2px}
.ev-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.ev-done{text-align:center;padding:48px 0}
.ev-done i{display:flex;align-items:center;justify-content:center;width:64px;height:64px;margin:0 auto 24px;border:2px solid var(--ev-terzo);border-radius:50%;color:var(--ev-terzo)}
.ev-done i svg{width:28px;height:28px}
.ev-done h2{font-family:var(--font-display);font-weight:400;font-size:24px;margin:0 0 12px}
.ev-done p{color:hsl(var(--foreground) / .6);max-width:448px;margin:0 auto 32px;line-height:1.6}
.ev-done .ev-btn{padding:12px 24px;letter-spacing:.15em}
.ev-empty-note{font-size:13px;color:hsl(var(--foreground) / .5);text-align:center;padding:12px 0}

/* ---------- parole molto lunghe (titoli o link senza spazi) ---------- */
.ev-dialog{overflow-x:hidden}
.ev-dialog h2,.ev-fact span,.ev-desc div,.ev-card-title,.ev-card-meta,.ev-panel h3,.ev-panel .ev-p-desc,.ev-row-title,.ev-mini-title,.ev-pop-head{overflow-wrap:anywhere;word-break:normal}
.ev-chipev{overflow-wrap:normal}

/* ---------- tasti "Prenota / chiedi info" e "Proponiti come sponsor" nella finestra evento (2026-10-16) ---------- */
.ev-req{margin:0 0 24px}
.ev-req-btns{grid-template-columns:1fr}
@media (min-width:480px){.ev-req-btns{grid-template-columns:repeat(2,1fr)}}
.ev-req-btns button[aria-expanded="true"]{background:var(--ev-ink);color:var(--ev-bg)}
.ev-req-form{display:flex;flex-direction:column;gap:14px;margin-top:16px;padding:20px;border:1px solid var(--ev-line-2)}
.ev-req-title{font-family:var(--font-display);font-weight:400;font-size:22px;margin:0}
.ev-req-text{font-size:14px;line-height:1.6;color:hsl(var(--foreground) / .6);margin:0}
.ev-req-f label.ev-l{display:block;font-size:11px;letter-spacing:.15em;text-transform:uppercase;color:hsl(var(--foreground) / .5);margin-bottom:6px}
.ev-req-done{margin-top:16px;padding:20px;border:1px solid var(--ev-terzo);color:var(--ev-ink);font-size:15px}
.ev-req-done:focus{outline:none}
.ev-entity-link{color:inherit;text-decoration:underline}
/* ---------- biglietti online nella finestra evento (2026-10-16) ---------- */
.ev-tix{margin:0 0 24px}
.ev-tix[hidden]{display:none}
.ev-tix-price{font-size:16px;margin:0 0 8px;color:var(--ev-ink)}
.ev-tix-price b{font-size:22px;font-family:var(--font-display);font-weight:400}
.ev-tix-left{color:#9b2c2c;font-size:13px}
.ev-tix-sum{margin:0;font-size:15px;color:var(--ev-ink)}
.ev-tix-total{font-weight:700}
.ev-pay-row{display:grid;gap:8px;grid-template-columns:1fr}
@media (min-width:480px){.ev-pay-row{grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}}