﻿/* Scheda evento - integrazione con il tema del sito */
.scheda-page{max-width:1250px;margin:auto;padding:36px 22px 70px;color:var(--text,#f8f5e9)}
.scheda-back{display:inline-block;margin:0 0 24px;color:#e9ad36;text-decoration:none}
.scheda-hero{display:grid;grid-template-columns:1.5fr 1fr;gap:30px;align-items:center;margin-bottom:30px}
.scheda-hero h1{font-size:clamp(2rem,4vw,3.4rem);line-height:1.12;margin:12px 0 18px}
.scheda-kicker{color:#e9ad36;font-weight:700;text-transform:uppercase;letter-spacing:.1em;font-size:.82rem}
.scheda-place{font-size:1.1rem;opacity:.9}
.scheda-hero-art{min-height:210px;border-radius:22px;background:linear-gradient(90deg,rgba(16,28,20,.2),rgba(16,28,20,.05)),url('/images/stuslide2/p1.jpg') center/cover}
.scheda-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(270px,1fr);gap:22px;align-items:start}
.scheda-primary,.scheda-side{display:grid;gap:20px;min-width:0}
.scheda-panel{background:rgba(9,25,17,.76);border:1px solid rgba(218,169,70,.27);border-radius:18px;padding:24px;overflow-wrap:anywhere}
.scheda-panel h2{font-size:1.4rem;margin:0 0 17px;color:#f7e5bd}
.scheda-panel a{color:#f4bd4e}
.scheda-prose{line-height:1.8;white-space:normal}
.scheda-facts{display:grid;grid-template-columns:1fr;gap:3px;margin:0}
.scheda-facts dt{font-weight:700;color:#e9ad36;margin-top:13px}
.scheda-facts dd{margin:0;line-height:1.55}
.scheda-gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:14px}
.scheda-gallery figure{margin:0}.scheda-gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:10px}
.scheda-gallery figcaption{font-size:.84rem;opacity:.85;line-height:1.5;margin-top:6px}
.scheda-press{list-style:none;padding:0;margin:0}.scheda-press li{display:flex;justify-content:space-between;gap:15px;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.15)}
.scheda-town{width:100%;max-height:220px;object-fit:contain;border-radius:10px}
@media(max-width:800px){.scheda-hero,.scheda-layout{grid-template-columns:1fr}.scheda-hero-art{min-height:175px}.scheda-page{padding:22px 12px 50px}.scheda-panel{padding:18px}}

/* V3: scheda informazioni a tutta larghezza, prima del programma */
.scheda-info{margin:0 0 22px}
.scheda-info .scheda-facts{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:22px;row-gap:2px}
.scheda-info .scheda-facts dt{margin-top:8px}
.scheda-info .scheda-facts dd{margin-bottom:8px}
.scheda-info-actions{margin:14px 0 0}
.scheda-prose img{max-width:100%;height:auto}
/* Colori leggibili per tutti i pannelli in entrambi i temi */
.scheda-page .scheda-panel{color:#f3f4e9;background:#102218}
.scheda-page .scheda-panel p,.scheda-page .scheda-panel li,.scheda-page .scheda-panel dd,.scheda-page .scheda-panel strong,.scheda-page .scheda-panel .scheda-prose{color:inherit}
.scheda-page .scheda-panel h2{color:#f7e5bd}
.scheda-page .scheda-panel dt{color:#efb84e}
.scheda-page .scheda-panel a{color:#ffd37b}
body.theme-light .scheda-page .scheda-panel{background:#f5f2e8;color:#26362a;border-color:#c4cbb9}
body.theme-light .scheda-page .scheda-panel h2{color:#435d32}
body.theme-light .scheda-page .scheda-panel dt{color:#795016}
body.theme-light .scheda-page .scheda-panel a{color:#73500b}
@media(max-width:850px){.scheda-info .scheda-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){.scheda-info .scheda-facts{grid-template-columns:1fr}}

/* V4: informazioni compatte, senza ripetere luogo/data/ora dell'intestazione */
.scheda-info{padding:20px 24px}
.scheda-info h2{margin-bottom:12px}
.scheda-info-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 28px}
.scheda-info-item{display:flex;flex-direction:column;gap:3px;min-width:0;line-height:1.45}
.scheda-info-label{font-size:.85rem;font-weight:700;color:#efb84e}
.scheda-info-links{display:flex;gap:10px 24px;flex-wrap:wrap;margin-top:15px;padding-top:12px;border-top:1px solid rgba(218,169,70,.22)}
.scheda-info-links a{font-weight:650}
.scheda-weather{margin:0 0 22px;padding:18px 24px}
.scheda-weather h2{margin-bottom:10px}
.scheda-weather-main{display:flex;align-items:center;gap:12px;font-size:1.1rem}
.scheda-weather-symbol{font-size:2rem}
.scheda-weather-stats{display:flex;flex-wrap:wrap;gap:10px 25px;margin-top:12px}
.scheda-weather-stats span{font-weight:600}
.scheda-weather-note{font-size:.82rem;opacity:.85;margin:12px 0 0}
body.theme-light .scheda-info-label{color:#795016}
@media(max-width:600px){.scheda-info-grid{grid-template-columns:1fr}.scheda-info,.scheda-weather{padding:18px}}

/* V5: fotografia di copertina dinamica */
.scheda-hero-art{overflow:hidden;background:#22392b;min-height:210px}
.scheda-hero-art img{display:block;width:100%;height:100%;min-height:210px;max-height:330px;object-fit:cover;object-position:center}
@media(max-width:800px){.scheda-hero-art img{min-height:175px;max-height:270px}}

/* V6: impaginazione editoriale del programma */
.scheda-prose { text-align:justify; line-height:1.8; hyphens:auto; overflow-wrap:break-word; display:flow-root; }
.scheda-prose p { margin:0 0 1.2em; }
.scheda-prose img { display:block; float:none !important; clear:both; max-width:100% !important; height:auto !important; margin:24px auto !important; }
.scheda-prose img[align] { float:none !important; }
.scheda-prose figure { float:none !important; clear:both; max-width:100%; margin:24px auto; }
.scheda-prose figure img { margin:0 auto !important; }
.scheda-prose table { max-width:100%; }
.scheda-prose::after { content:""; display:block; clear:both; }
.scheda-rassegna { display:flex; flex-wrap:wrap; align-items:baseline; gap:7px 12px; padding:12px 15px; margin:0 0 22px; border-left:3px solid #e9ad36; background:rgba(218,169,70,.09); border-radius:0 8px 8px 0; line-height:1.5; }
.scheda-rassegna-label { font-size:.83rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:#efb84e; }
body.theme-light .scheda-rassegna-label { color:#795016; }
@media(max-width:600px) { .scheda-prose { text-align:left; hyphens:none; } }

/* V8: cenni storici dal progetto della Via Romea */
.scheda-territorio h3{margin:16px 0 9px;font-size:1.12rem;color:#f7e5bd}
.scheda-territorio-testo{font-size:.95rem;line-height:1.7;text-align:left;margin:0 0 14px}
.scheda-territorio-fonte{border-top:1px solid rgba(218,169,70,.22);padding-top:12px;font-size:.78rem;line-height:1.5;opacity:.8;margin:0}
body.theme-light .scheda-territorio h3{color:#5c421d}

/* V9 responsive scheda */
.scheda-page,.scheda-primary,.scheda-side,.scheda-panel,.scheda-prose{min-width:0}
.scheda-prose img,.scheda-prose video,.scheda-prose iframe{max-width:100%!important;height:auto}
.scheda-prose table{display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
@media(max-width:1023px){.scheda-hero,.scheda-layout{grid-template-columns:minmax(0,1fr)}.scheda-hero{gap:16px}}
@media(max-width:767px){.scheda-page{padding:16px 4px 32px}.scheda-hero h1{font-size:clamp(1.65rem,7vw,2.4rem)}.scheda-panel{padding:16px 13px;border-radius:13px}.scheda-info-grid,.scheda-gallery{grid-template-columns:minmax(0,1fr)}.scheda-prose{text-align:left;hyphens:none}.scheda-prose img{margin:18px auto!important}.scheda-press li{flex-wrap:wrap}}

/* V10 QR */
.vrc-qr{min-width:0;margin-top:12px}.vrc-qr canvas{display:block;width:180px;max-width:100%;height:auto;margin:0 auto;background:white;image-rendering:pixelated}.vrc-qr p{font-size:.9rem;line-height:1.5}.vrc-qr input{box-sizing:border-box;width:100%;min-width:0;padding:8px;border:1px solid #9b8c67;border-radius:6px;background:#fff;color:#26362a;font:inherit;font-size:.8rem}.vrc-qr-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.vrc-qr-actions button,.vrc-qr-actions a,.vrc-qr-details summary{font:inherit;font-size:.9rem;cursor:pointer;border:1px solid #b49a60;border-radius:8px;padding:10px;color:inherit;background:transparent;text-decoration:none;min-height:44px;box-sizing:border-box}.vrc-qr-actions [hidden]{display:none!important}.vrc-qr-details{margin-top:12px}.vrc-qr-details summary{display:list-item;width:fit-content}.vrc-qr-status:empty{display:none}
