/* Short, separate pages with details available on demand. */
[hidden]{display:none!important}
.page-return{padding:14px var(--page-gutter) 0}
.page-return a{display:inline-flex;align-items:center;min-height:44px;color:#f0c97d;font-size:14px;text-decoration:underline;text-underline-offset:5px}
#main>.page-section{padding-top:28px;padding-bottom:48px}
#main .page-section .section-page-title,#main .page-section h1{font-family:var(--title-family);font-size:var(--section-title-size);font-weight:400;line-height:1.12;letter-spacing:-.7px;margin:0}
#main .page-section .section-heading{display:block;margin-bottom:28px}
#main .page-section .page-intro{max-width:700px;margin:14px 0 0;font-size:17px;line-height:1.65}
#main .page-section .section-heading>div:last-child>.page-intro{max-width:700px;margin:14px 0 0}
#main .page-section .sponsor-heading>.page-intro{margin:16px auto 0}
#main .page-section .section-heading .eyebrow{display:none}
.page-expansion,.card-expansion{border:1px solid #e6bd784d;border-radius:18px;background:#641018aa;min-width:0;overflow:hidden}
.page-section>.page-expansion{margin-top:22px}
.page-expansion>summary,.card-expansion>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:56px;padding:16px 22px;list-style:none;cursor:pointer;font-size:17px;font-weight:600;line-height:1.45;color:#fff0d7}
.page-expansion>summary::-webkit-details-marker,.card-expansion>summary::-webkit-details-marker{display:none}
.page-expansion>summary:after,.card-expansion>summary:after{content:'+';display:grid;place-items:center;flex-shrink:0;width:28px;height:28px;font-size:24px;font-weight:400;line-height:1;color:#f0c97d}
.page-expansion[open]>summary:after,.card-expansion[open]>summary:after{content:'−'}
.page-expansion[open]>summary,.card-expansion[open]>summary{border-bottom:1px solid #e6bd784d;background:#4b0f1766}
.expansion-content{padding:22px;min-width:0}
.expansion-content:empty{display:none}
.family-event-card .card-expansion{width:100%;margin-top:auto;border:0;border-top:1px solid #e6bd784d;border-radius:0;background:none}
.card-expansion>summary{padding:13px 0;min-height:48px;font-size:15px}
.card-expansion .expansion-content{padding:0 0 8px}
.family-event-card .family-event-links{margin-top:16px}
.family-event-card .family-event-date{min-height:0}
.family-event-card .family-event-time{margin:12px 0 16px}
.family-event-card h3{margin-bottom:20px}
.family-event-card{padding:24px}
.family-events{margin-bottom:24px}
.village-stories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.village-stories>a{display:flex;align-items:center;min-height:64px;padding:18px;border:1px solid #e6bd7860;border-radius:12px;background:#4b0f1780;font-family:var(--title-family);font-size:24px;line-height:1.3;color:#fff0d7}
#villaggio .experience-title{margin-bottom:0}
#villaggio .image-note{margin-top:16px}
.expansion-content .activity-gallery{border:0;margin:0;padding:0}
.expansion-content .activity-gallery-grid{gap:24px}
#main .section .expansion-content .section{padding:18px 0}
.menu-page .food-menu{max-width:760px;margin:0 auto}
.menu-page .food-menu-list{margin-top:24px}
.menu-page>.page-expansion{max-width:760px;margin-left:auto;margin-right:auto}
.menu-page .food-scene{margin:0}
.menu-page .food-scene img{width:100%;border-radius:16px}
.menu-page .food-menu>.text-link{margin-top:8px}
.map-page .map-detail,#mappa .map-layout .map-detail{display:block}
#map-experience>summary{display:block;text-align:left}
#map-experience>summary:after{display:none}
.map-preview{display:block;width:100%;max-height:260px;object-fit:cover;margin-top:16px;border-radius:12px}
#map-experience[open] .map-preview{display:none}
#map-experience .map-toolbar{margin-top:0}
#map-experience .map-viewport{height:clamp(440px,65svh,700px)}
.spot-more{margin-top:20px;border-top:1px solid #9d9a7b70}
.spot-more>summary{display:flex;align-items:center;min-height:48px;font-size:15px;font-weight:600;cursor:pointer}
#main .section .map-detail .spot-more .participant-box{margin-top:18px}
#main .section .map-detail .spot-more p{font-size:15px}
#come-arrivare .arrival-options{gap:22px}
.arrival-card .page-expansion{margin-top:20px}
.arrival-card .page-expansion>summary{font-size:15px;padding:12px 16px;min-height:48px}
.arrival-card .expansion-content{padding:18px}
.arrival-card h3{margin-bottom:15px}
#come-arrivare .arrival-parking{margin:0;padding:0;border:0}
#come-arrivare .arrival-parking .section-heading{display:none}
#come-arrivare .arrival-distances{margin:0;gap:14px}
#come-arrivare .arrival-distances>a{padding:18px;min-height:132px}
#come-arrivare .arrival-distances strong{font-size:28px}
#main>.page-expansion{margin:0 var(--page-gutter) 40px}
#informazioni{padding:0!important}
#informazioni .visit-faq{margin:0}
#informazioni>h2{display:none}
#sponsor .sponsor-heading{margin-bottom:30px}
#sponsor .organizers{margin-top:35px}
#avvento .advent-heading{margin-bottom:24px}
#avvento .advent-intro{margin-top:24px}
#main .section .calendar-note{font-size:12px;line-height:1.7;color:#f1d8c0;margin:22px auto 0;max-width:640px;text-align:center}
footer{padding-top:28px}
.footer-top{align-items:center;gap:24px;padding-bottom:22px}
.footer-top .footer-brand{font-size:24px;line-height:1.3}
.footer-bottom{padding-top:16px}
.song.song-footer{margin-top:16px}
@media(max-width:700px){
  #main>.page-section{padding-top:18px;padding-bottom:32px}
  .page-return{padding-top:8px}
  #main .page-section .page-intro{font-size:16px;line-height:1.7}
  .page-expansion>summary{padding:14px 18px;font-size:16px;min-height:54px}
  .expansion-content{padding:18px}
  .family-event-card{padding:22px}
  .family-event-card h3{margin-bottom:16px}
  .village-stories{grid-template-columns:minmax(0,1fr)}
  .village-stories>a{min-height:60px;font-size:22px}
  #map-experience .expansion-content{padding:14px}
  #map-experience .map-layout .map-detail{padding:18px}
  #map-experience .map-viewport{height:clamp(400px,60svh,560px)}
  .map-preview{max-height:190px}
  #come-arrivare .arrival-distances{grid-template-columns:repeat(2,minmax(0,1fr))}
  #come-arrivare .arrival-distances>a{padding:16px;min-height:126px}
  #come-arrivare .arrival-distances strong{font-size:25px}
  #come-arrivare .arrival-distances span:last-child{font-size:12px}
  .footer-top{display:flex;flex-direction:column;align-items:flex-start;gap:14px}
  .footer-contact-links{margin:0;justify-content:flex-start}
}
@media(max-width:360px){#come-arrivare .arrival-distances{grid-template-columns:minmax(0,1fr)}}

.home-poster>a,.home-emperor>a{display:block}
.home-poster figcaption{text-align:center;font-size:11px;line-height:1.5;margin-top:8px;color:#f1d8c0}
.photo-dialog{width:calc(100% - 20px);max-width:900px;max-height:94dvh;padding:12px 16px 18px;border:1px solid #e9bd7780;border-radius:20px;background:#68121a;color:#fff0d7;overflow:auto;overscroll-behavior:contain}
.photo-dialog::backdrop{background:#24070ad9;backdrop-filter:blur(5px)}
.photo-dialog>.dialog-close{position:sticky;top:0;right:auto;display:grid;place-items:center;width:44px;height:44px;margin:0 0 12px auto;border:0;border-radius:50%;background:#fff0d7;color:#74151d;font-size:30px;z-index:2}
.photo-dialog>img{width:100%;height:auto;border-radius:12px}

#scuole .family-event-links{margin-top:auto;width:100%;border-top:1px solid #e6bd784d}
#main .section .card-open-button{display:flex;justify-content:space-between;min-height:48px;width:100%;border-bottom:0;font-size:15px}
@media(max-width:650px){
  #programma .program-tabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  #programma .program-column{display:contents}
  #programma .program-slot{min-width:0}
  #tab-saturday{grid-column:1;grid-row:1}
  #tab-sunday{grid-column:2;grid-row:1}
  #program-slot-saturday{grid-column:1/-1;grid-row:2}
  #program-slot-sunday{grid-column:1/-1;grid-row:3}
  #programma .program-slot:not(:has(.program-day:not([hidden]))){display:none}
  #programma .program-day-toggle{flex-direction:column;align-items:flex-start;justify-content:space-between;min-height:116px;gap:10px;padding:12px;font-size:14px}
  #programma .program-day-toggle strong{font-size:17px;line-height:1.3;margin:3px 0 0}
  #programma .program-switch-indicator{font-size:11px;gap:7px}
}

/* All village photographs share one vertical sequence and the same card style. */
#villaggio .experience-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:36px;width:100%;max-width:820px;margin:0 auto}
#villaggio .experience{display:block;width:100%;min-width:0}
#villaggio .experience-image{width:100%;height:auto;aspect-ratio:4/3;border-radius:var(--photo-radius,22px);overflow:hidden;background:#641018}
#villaggio .experience-image img{display:block;width:100%;height:100%;object-fit:cover;border-radius:inherit}
#villaggio .experience-title{margin-top:16px;margin-bottom:0}
#villaggio .experience-title h3{font-size:clamp(26px,3vw,34px);line-height:1.2}
@media(max-width:650px){#villaggio .experience-grid{gap:28px}}

/* Quiet contact links at the very end of every page. */
footer .footer-contact-links.footer-small-contacts{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:18px;width:100%;margin:22px 0 0;padding:0;font-size:12px}
footer .footer-small-contacts a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;margin:0;padding:4px 6px;border:0;border-radius:0;background:none;box-shadow:none;color:#f1d8c0;font-size:12px;line-height:1.4;text-decoration:none}
footer .footer-small-contacts .footer-instagram{width:44px;gap:0;padding:0}
footer .footer-small-contacts .footer-instagram img{display:block;width:18px;height:18px}
footer .footer-small-contacts a:hover{background:none;color:#f0c97d}

footer .footer-contact-links.footer-small-contacts a.footer-instagram{width:44px;padding:0;border:0;border-radius:0;background:none;box-shadow:none}

/* All sections follow one another in the scrolling site. */
body[data-page=villaggio] #main>.page-section{padding-bottom:72px}
body[data-page=villaggio] #main>.page-section~.page-section{border-top:1px solid var(--poster-line);padding-top:72px}
@media(max-width:650px){body[data-page=villaggio] #main>.page-section{padding-bottom:52px}body[data-page=villaggio] #main>.page-section~.page-section{padding-top:56px}}

/* Preserve the complete official Il Tarlo photograph, including its logo. */
.wood-games figure img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}

#program-title{text-align:right;width:100%}
#canzone .song-stage{display:grid;grid-template-columns:minmax(190px,.75fr) minmax(0,1.25fr);gap:44px;align-items:center;max-width:1000px;margin:0 auto}
#canzone .song-disc{display:flex;flex-direction:column;align-items:center;gap:18px;min-width:0}
#canzone .song-disc>p{font-size:13px;text-align:center;margin:0}
#canzone .song-record-toggle{margin:0 auto}
#canzone .record{width:210px;height:210px;box-shadow:0 7px 24px #22080d66,0 0 0 1px #e8bd7759}
#canzone .record-label{width:100px;height:100px;padding:10px;background:#f9f5ec;justify-content:center}
#canzone .record-logo{display:block;width:100%;height:100%;object-fit:contain}
#canzone .record:after{display:none}
#canzone .song-listening{display:flex;flex-direction:column;align-items:stretch;gap:18px;min-width:0}
#canzone #song-player audio{display:block;width:100%;height:44px;margin:0}
#canzone .song-caption-toggle{align-self:flex-start;min-height:44px;padding:10px 18px;border:1px solid #e6bd7877;border-radius:24px;background:#641018;color:#fff0d7;font-size:14px;line-height:1.4}
#canzone .song-caption-toggle[aria-pressed=true]{background:#fff0d7;color:#84171d}
#canzone .song-caption-toggle:disabled{opacity:.5;cursor:default}
#canzone .song-captions{display:flex;align-items:center;justify-content:center;min-height:128px;padding:22px;border:1px solid #e6bd7877;border-radius:18px;background:#4b0f17;text-align:center}
#main #canzone #song-caption-line{font-family:var(--title-family);font-size:27px;line-height:1.4;color:#fff0d7;margin:0;white-space:pre-line}
#canzone .song-transcript-status{font-size:13px;line-height:1.6;margin:0}
#canzone .song-lyrics-panel{max-width:1000px;margin:30px auto 0}
#canzone .song-lyrics{font-size:17px;line-height:1.8;color:#fff0d7}
#canzone .song-lyrics p{white-space:pre-line;margin:0 0 22px}
#canzone .song-lyrics p:last-child{margin-bottom:0}
@media(max-width:650px){
 #canzone .song-stage{grid-template-columns:minmax(0,1fr);gap:28px}
 #canzone .record{width:168px;height:168px}
 #canzone .record-label{width:82px;height:82px;padding:8px}
 #canzone .record-control{width:48px;height:48px;right:-4px}
 #canzone .song-caption-toggle{align-self:center}
 #main #canzone #song-caption-line{font-size:24px}
}

.family-show+.family-show{margin-top:24px;padding-top:24px;border-top:1px solid #e6bd7850}.family-show h4{font-family:var(--title-family);font-size:24px;line-height:1.25;margin:10px 0 16px}.family-show-date{font-size:11px;color:#f0c97d}.family-show img{width:100%;height:auto;border-radius:14px}.family-show a{font-size:14px;text-decoration:underline;min-height:44px;display:inline-flex;align-items:center}
@media(min-width:1101px){.family-events{grid-template-columns:repeat(3,minmax(0,1fr))}}@media(min-width:1500px){.family-events{grid-template-columns:repeat(5,minmax(0,1fr))}}

#menu .food-scene img{height:auto;aspect-ratio:auto;object-fit:contain}

.program-audience{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 24px}.program-audience button{min-height:44px;padding:9px 16px;border:1px solid #e6bd7877;border-radius:24px;background:#641018;color:#fff0d7;font-size:14px}.program-audience button[aria-pressed=true]{background:#fff0d7;color:#84171d}
#programma .program-day{min-height:0;padding:16px}
#programma .program-row.program-card{display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-height:0;padding:20px;margin-bottom:16px;border:1px solid #e6bd7877;border-radius:18px;background:#641018}
#programma .program-row.program-card:last-child{margin-bottom:0}
#programma .program-row.program-card h4{font-family:var(--title-family);font-size:26px;line-height:1.2}
#programma .program-row.program-card time{font-size:23px}
#programma .program-card .program-tag{display:block;max-width:none;text-align:left;margin:0}
#programma .program-card .program-event-link{font-size:14px;min-height:44px;padding:8px 0;margin-top:4px;text-decoration:underline;text-underline-offset:5px}

#programma .program-row.program-card{padding:24px;gap:0;border-radius:22px;background:#641018e8}
#programma .program-card .program-card-photo{margin:0 0 20px;width:100%}
#programma .program-card .program-card-photo img{width:100%;height:auto;aspect-ratio:3/2;object-fit:cover;border-radius:16px}
#programma .program-card .program-card-photo figcaption{font-size:11px;line-height:1.55;color:#f1d8c0;margin-top:8px}
#programma .program-card .program-card-date{font-size:11px;line-height:1.55;letter-spacing:1px;color:#f0c97d;min-height:0}
#programma .program-card time{display:inline-flex;min-height:42px;margin:12px 0 16px;padding:3px 13px;border-radius:10px;background:#fff0d7;color:#74151d;font-size:24px;line-height:1.3}
#programma .program-card h4{font-size:31px;line-height:1.14;margin:0 0 20px}
#programma .program-card .program-tag{margin-bottom:12px}
#programma .program-card .program-event-link{border-top:1px solid #e6bd784d;text-decoration:none;padding:13px 0;min-height:48px}

#program-title{text-align:left}
#canzone .song-stage{grid-template-columns:minmax(0,1fr);max-width:720px;justify-items:center}
#canzone .song-disc{width:100%;align-items:center}
#canzone .song-listening{width:100%}
#canzone .song-caption-toggle{align-self:center}

/* Village: compact gallery on desktop, a clear vertical sequence on phones. */
#villaggio .experience-grid{max-width:none;grid-template-columns:repeat(3,minmax(0,1fr));gap:36px 28px;align-items:start}
#villaggio .experience-image{aspect-ratio:4/3!important}
#villaggio .experience-title h3{font-size:24px;line-height:1.25}
#villaggio .experience-description{font-size:14px;line-height:1.45;margin:8px 0 0;color:var(--poster-cream,#fff0d7)}
@media(min-width:768px) and (max-width:1100px){#villaggio .experience-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:767px){#villaggio .experience-grid{grid-template-columns:minmax(0,1fr);max-width:820px;gap:30px}#villaggio .experience-title h3{font-size:23px}}

#main #villaggio .page-intro{font-size:14px;line-height:1.4}

#villaggio .experience-title h3{font-weight:700}
#programma .family-event-card{border-color:var(--poster-line,#ebbd8559)}
#programma .family-event-card .card-expansion{align-self:stretch;margin-top:auto}
#programma .family-event-card .card-expansion summary{padding:18px 0;font-size:15px;font-weight:600}
#programma .family-event-card .card-expansion p{margin:0 0 16px;font-size:15px;line-height:1.8}
#programma .family-event-card .family-event-time{font-weight:650}
#programma .family-event-card h4{color:#fff0d7}

/* Dish photographs become colourful when selected, including on touch screens. */
#menu .food-menu-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;list-style:none;padding:0;margin:24px 0}
#menu .food-menu-list>li{display:block;min-width:0;border:0;padding:0;margin:0}
#menu .food-photo-choice{display:block;width:100%;padding:0 0 16px;overflow:hidden;border:1px solid #e6bd7860;border-radius:20px;background:#641018cc;color:#fff0d7;text-align:left;cursor:pointer}
#menu .food-photo-choice img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;filter:grayscale(1);transition:filter .4s ease}
#menu .food-photo-choice[aria-pressed=true] img{filter:grayscale(0)}
#menu .food-photo-choice[aria-pressed=true]{border-color:#f0c97d;box-shadow:0 0 0 2px #f0c97d33}
#menu .food-photo-choice:focus-visible{outline:3px solid #f0c97d;outline-offset:4px}
#menu .food-photo-choice h3{font-size:25px;font-weight:700;line-height:1.2;margin:16px 16px 0;padding:0}
#menu .food-color-help{font-size:14px;line-height:1.5;margin:12px 0}
#menu .food-photo-credits{margin-top:18px;font-size:12px;line-height:1.6}
#menu .food-photo-credits summary{cursor:pointer;min-height:44px;display:flex;align-items:center}
#menu .food-photo-credits p{font-size:12px;margin:8px 0}
#menu .food-photo-credits a,#programma figcaption a{text-decoration:underline;text-underline-offset:3px}
@media(max-width:950px){#menu .food-menu-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}}
@media(max-width:450px){#menu .food-photo-choice h3{font-size:20px;margin:12px 12px 0}#menu .food-menu-list{gap:12px}}
@media(prefers-reduced-motion:reduce){#menu .food-photo-choice img{transition:none}}

/* All programme photographs share a permanent monochrome treatment. */
#programma .program-card-photo img{filter:grayscale(1)}

#programma .program-card>.family-event-date{margin-top:0}
#programma .card-expansion .program-card-photo{margin:0 0 16px}
#programma .card-expansion .expansion-content{padding:18px 0 0}
