/* ==========================================================================
   Il Borgo di Babbo Natale – foglio di stile principale
   Mobile-first. Direzione grafica: "Notte nel Ricetto".
   ========================================================================== */

/* ---------- Font locali (OFL) ---------- */
@font-face { font-family: "Lora"; src: url("../fonts/lora-var.woff") format("woff"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lora"; src: url("../fonts/lora-italic-var.woff") format("woff"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400.woff") format("woff"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff") format("woff"); font-weight: 500 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-700.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Variabili ---------- */
:root {
	--notte: #14211A;
	--notte-2: #203323;
	--notte-3: #0C150F;
	--candela: #EDC46A;
	--candela-chiaro: #F7E28F;
	--mattone: #A71D19; /* rosso Babbo Natale (locandina) */
	--ambra: #CB792D;
	--mattone-scuro: #831612;
	--panna: #F6EEDB;
	--panna-2: #EADCBE;
	--inchiostro: #2E2A1E;

	--testo-chiaro: rgba(246, 238, 219, .84);
	--bordo-oro: rgba(237, 196, 106, .2);

	--serif: "Lora", Georgia, "Times New Roman", serif;
	--sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 24px);
	--section-y: clamp(64px, 9vw, 104px);
	--radius: 18px;
	--radius-lg: 22px;

	--fs-h1: clamp(2.4rem, 1.4rem + 4.4vw, 4rem);
	--fs-h1-sub: clamp(1.6rem, 1.1rem + 2.4vw, 2.9rem);
	--fs-h2: clamp(1.9rem, 1.3rem + 2.6vw, 2.75rem);
	--fs-h3: clamp(1.3rem, 1.15rem + .6vw, 1.5rem);
	--fs-lead: clamp(1.05rem, 1rem + .3vw, 1.15rem);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--notte); color: var(--panna); font-family: var(--sans); font-size: 1rem; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, picture { max-width: 100%; height: auto; display: block; }
picture img { width: 100%; }
a { color: var(--candela); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--candela-chiaro); }
:focus-visible { outline: 3px solid var(--candela); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
address { font-style: normal; }
.icon { flex: none; }

.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--candela); color: var(--notte); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; color: var(--notte); }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 880px; }
.stack > * + * { margin-top: 20px; }
.stack-lg > * + * { margin-top: 28px; }
.stack-xl > * + * { margin-top: clamp(36px, 5vw, 56px); }
.center { text-align: center; }

.section { padding-block: var(--section-y); }
.section--night { background-color: var(--notte); }
.section--navy2 { background-color: var(--notte-2); }
.section--cream { background-color: var(--panna); color: var(--notte); }
.section--cream a:not(.btn) { color: var(--mattone); }
.section--cream a:not(.btn):hover { color: var(--mattone-scuro); }

/* trama leggera ad acciottolato */
.cobble { background-image: radial-gradient(rgba(246, 238, 219, .07) 1.2px, transparent 1.6px); background-size: 14px 11px; }

.split { display: grid; gap: clamp(32px, 6vw, 64px); align-items: center; }
.split--top { align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Tipografia di sezione ---------- */
.eyebrow { font-size: .875rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; color: var(--candela); }
.eyebrow--brick, .section--cream .eyebrow { color: var(--mattone); font-weight: 600; }
.section-title { font-size: var(--fs-h2); }
.lead { font-size: var(--fs-lead); line-height: 1.7; color: var(--testo-chiaro); }
.section--cream .lead, .lead--dark { color: var(--inchiostro); }
.section-head { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }
.section-head--center { margin-inline: auto; text-align: center; align-items: center; }
.section-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; }

.prose { font-size: 1.0625rem; line-height: 1.75; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2rem); margin-top: 1.6em; }
.prose h3 { font-size: var(--fs-h3); margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: var(--radius); }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--mattone); font-family: var(--serif); font-style: italic; font-size: 1.2rem; }
.section--cream .prose { color: var(--inchiostro); }

/* ---------- Pulsanti e link ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; border-radius: 999px; font-family: var(--sans); font-weight: 600; font-size: 1rem; line-height: 1.2; text-align: center; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease; }
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .9375rem; }
.btn--lg { min-height: 54px; padding: 15px 30px; }
.btn--gold { background: var(--candela); color: var(--notte); }
.btn--gold:hover { background: var(--candela-chiaro); color: var(--notte); }
.btn--ghost { border-color: var(--panna); color: var(--panna); }
.btn--ghost:hover { background: var(--panna); color: var(--notte); }
.btn--outline { border-color: var(--candela); color: var(--candela); }
.btn--outline:hover { background: var(--candela); color: var(--notte); }
.btn--brick { background: var(--mattone); color: #fff; }
.btn--brick:hover { background: var(--mattone-scuro); color: #fff; }
.section--cream .btn--brick { color: #fff; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; min-height: 44px; }
.link-arrow .icon { transition: transform .15s ease; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow--brick, .section--cream .link-arrow { color: var(--mattone); }

/* ---------- Testata ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(20, 33, 26, .97); border-bottom: 1px solid var(--bordo-oro); backdrop-filter: saturate(140%) blur(6px); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 8px; min-height: 68px; }
.site-logo { height: 52px; width: auto; }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 1px solid var(--bordo-oro); border-radius: 12px; background: transparent; color: var(--panna); cursor: pointer; }
.nav-toggle__close, .nav-open .nav-toggle__open { display: none; }
.nav-open .nav-toggle__close { display: inline-flex; }

.site-nav { position: fixed; inset: 69px 0 0 0; background: var(--notte); padding: 24px var(--gutter) 40px; display: flex; flex-direction: column; gap: 24px; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .25s ease, visibility .25s; }
.admin-bar .site-nav { inset-block-start: 115px; }
.nav-open .site-nav { transform: none; visibility: visible; }
.site-nav .menu { display: flex; flex-direction: column; }
.site-nav .menu a { display: block; padding: 14px 4px; font-size: 1.125rem; font-weight: 500; color: var(--panna); border-bottom: 1px solid rgba(246, 238, 219, .1); }
.site-nav .menu a:hover, .site-nav .current-menu-item > a { color: var(--candela); }
.site-nav .sub-menu { padding-left: 16px; }
.site-nav__cta { align-self: flex-start; }
body.nav-open { overflow: hidden; }

@media (min-width: 1080px) {
	.site-header__inner { min-height: 92px; }
	.site-logo { height: 70px; }
	.nav-toggle { display: none; }
	.site-nav { position: static; transform: none; visibility: visible; padding: 0; background: none; flex-direction: row; align-items: center; gap: 28px; overflow: visible; }
	.site-nav .menu { flex-direction: row; gap: 26px; }
	.site-nav .menu > li { position: relative; }
	.site-nav .menu a { padding: 8px 0; border: 0; font-size: .9375rem; }
	.site-nav .sub-menu { position: absolute; top: 100%; left: -16px; min-width: 220px; padding: 8px 16px; background: var(--notte-2); border: 1px solid var(--bordo-oro); border-radius: 12px; opacity: 0; visibility: hidden; transition: opacity .15s; }
	.site-nav .menu li:hover > .sub-menu, .site-nav .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
	.site-nav__cta { align-self: auto; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background-color: var(--notte); background-image: linear-gradient(180deg, rgba(20, 33, 26, .55) 0%, rgba(20, 33, 26, .88) 70%, var(--notte) 100%), var(--hero-bg); background-size: cover; background-position: 60% 30%; }
.hero__inner { padding-block: clamp(72px, 12vw, 128px) clamp(56px, 10vw, 112px); }
.hero__content { max-width: 640px; display: flex; flex-direction: column; gap: 22px; }
.hero__title { font-size: var(--fs-h1); line-height: 1.05; color: var(--panna); }
.hero__subtitle { display: block; margin-top: .2em; font-style: italic; font-weight: 500; font-size: var(--fs-h1-sub); color: var(--candela); }
.hero__text { font-size: clamp(1.05rem, 1rem + .4vw, 1.2rem); line-height: 1.65; color: var(--testo-chiaro); }
.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid rgba(237, 196, 106, .45); border-radius: 12px; background: rgba(20, 33, 26, .6); font-size: .9375rem; }
.chip .icon { color: var(--candela); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
@media (min-width: 900px) {
	.hero { background-image: linear-gradient(90deg, rgba(20, 33, 26, .93) 0%, rgba(20, 33, 26, .72) 42%, rgba(20, 33, 26, .12) 78%), var(--hero-bg); background-position: center 30%; }
}

/* ---------- Striscia info ---------- */
.info-strip { background: var(--mattone); color: #fff; }
.info-strip__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 24px; padding-block: 24px; }
.info-strip__item { display: flex; align-items: center; gap: 14px; }
.info-strip__item .icon { color: var(--candela-chiaro); }
.info-strip__label { display: block; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; opacity: .9; }
.info-strip__value { display: block; font-weight: 600; line-height: 1.35; }

/* ---------- Schede "Cosa trovi" ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: 30px 26px; background: var(--notte-2); border: 1px solid var(--bordo-oro); border-radius: var(--radius); }
.card__icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(237, 196, 106, .14); color: var(--candela); display: grid; place-items: center; }
.card__title { font-size: var(--fs-h3); }
.card__text { color: var(--testo-chiaro); }
.card .link-arrow { margin-top: auto; }

/* ---------- Immagini ---------- */
.rounded-img, .split__media img { border-radius: var(--radius-lg); width: 100%; object-fit: cover; }
.split__media picture img, .split__media > img { aspect-ratio: 4 / 3; }

/* ---------- Biglietti ---------- */
.ticket-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.ticket { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 34px 28px 30px; background: var(--notte); border: 1px solid rgba(246, 238, 219, .12); border-radius: 20px; }
.ticket--featured { border: 2px solid var(--candela); }
.ticket__badge { position: absolute; top: -14px; left: 26px; background: var(--candela); color: var(--notte); font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; }
.ticket__name { font-size: clamp(1.4rem, 1.2rem + .6vw, 1.65rem); }
.ticket__price { font-family: var(--serif); font-weight: 600; font-size: 2.5rem; line-height: 1; color: var(--candela); }
.ticket__text { color: var(--testo-chiaro); font-size: .9375rem; }

.notice-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; padding: 24px 28px; border-radius: var(--radius); background: rgba(237, 196, 106, .1); border: 1px solid rgba(237, 196, 106, .3); }
.notice-box p { max-width: 640px; }
.notice-box__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Come arrivare ---------- */
.route-list { display: flex; flex-direction: column; gap: 24px; }
.route { display: flex; gap: 18px; }
.route .icon { color: var(--candela); margin-top: 2px; }
.route__title { font-family: var(--sans); font-size: 1.125rem; font-weight: 600; margin-bottom: 4px; }
.route__text { color: var(--testo-chiaro); }
.map-card { position: relative; display: block; min-height: 340px; border-radius: var(--radius-lg); overflow: hidden; background: var(--notte-2); border: 1px solid var(--bordo-oro); color: var(--panna); }
.map-card__img, .map-card picture, .map-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-card__placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--testo-chiaro); }
.map-card__placeholder .icon { color: var(--candela); }
.map-card__cta { position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--candela); color: var(--notte); font-weight: 600; font-size: .9375rem; }
.map-card:hover .map-card__cta { background: var(--candela-chiaro); }
@media (min-width: 900px) { .map-card { min-height: 440px; } }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px 28px; }
.news-card { display: flex; flex-direction: column; gap: 12px; }
.news-card__media { display: block; border-radius: 16px; overflow: hidden; background: var(--panna-2); }
.news-card__media img { aspect-ratio: 16 / 10; object-fit: cover; transition: transform .3s ease; }
.news-card:hover .news-card__media img { transform: scale(1.03); }
.news-card__date { font-size: .8125rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mattone); font-weight: 600; }
.news-card__title { font-size: 1.4rem; line-height: 1.3; }
.news-card__title a { color: inherit !important; }
.news-card__title a:hover { color: var(--mattone) !important; }
.news-card__text { color: var(--inchiostro); font-size: .9375rem; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq { background: var(--notte-2); border: 1px solid var(--bordo-oro); border-radius: 14px; }
.faq__q { list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; font-size: 1.0625rem; position: relative; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--candela); border-bottom: 2px solid var(--candela); transform: translateY(-70%) rotate(45deg); transition: transform .2s ease; }
.faq[open] .faq__q::after { transform: translateY(-30%) rotate(-135deg); }
.faq__a { padding: 0 24px 22px; color: var(--testo-chiaro); }

/* ---------- Pagine interne ---------- */
.page-header { background-color: var(--notte); padding-block: clamp(56px, 9vw, 96px) clamp(40px, 6vw, 64px); border-bottom: 1px solid var(--bordo-oro); }
.page-header .wrap { display: flex; flex-direction: column; gap: 14px; }
.page-header__title { font-size: var(--fs-h1); }
.entry-image img { border-radius: var(--radius-lg); width: 100%; }
.post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--panna-2); font-weight: 600; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.nav-links .page-numbers { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border-radius: 999px; border: 1px solid var(--panna-2); color: var(--notte) !important; }
.nav-links .page-numbers.current { background: var(--mattone); border-color: var(--mattone); color: #fff !important; }

/* blocchi dell'editor nelle pagine */
.entry .wp-block-button__link { border-radius: 999px; background: var(--mattone); color: #fff; padding: 12px 26px; font-weight: 600; }
.entry .wp-block-table table { width: 100%; border-collapse: collapse; }
.entry .wp-block-table td, .entry .wp-block-table th { border: 1px solid var(--panna-2); padding: 10px 12px; text-align: left; }
.entry .alignwide { margin-inline: calc(-1 * min(8vw, 120px)); }

/* ---------- Footer ---------- */
.site-footer { background: var(--notte-3); border-top: 1px solid var(--bordo-oro); padding-block: 56px 28px; font-size: .9375rem; }
.site-footer__grid { display: grid; gap: 36px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer__brand { display: flex; flex-direction: column; gap: 14px; max-width: 340px; color: rgba(246, 238, 219, .72); }
.footer-logo { width: 180px; }
.site-footer__title { font-family: var(--sans); font-size: .8125rem; letter-spacing: .16em; text-transform: uppercase; color: var(--candela); margin-bottom: 12px; }
.site-footer .menu, .footer-menu { display: flex; flex-direction: column; gap: 4px; }
.site-footer .menu a, .footer-menu a, .site-footer address a { color: var(--panna); display: inline-block; padding-block: 6px; }
.site-footer .menu a:hover, .footer-menu a:hover, .site-footer address a:hover { color: var(--candela); }
.site-footer address { display: flex; flex-direction: column; gap: 2px; color: rgba(246, 238, 219, .82); }
.site-footer address span { padding-block: 4px; }
.social { display: flex; gap: 12px; margin-top: 14px; }
.social a { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(237, 196, 106, .4); display: grid; place-items: center; color: var(--candela); }
.social a:hover { background: var(--candela); color: var(--notte); }
.site-footer__bottom { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(246, 238, 219, .12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .8125rem; color: rgba(246, 238, 219, .66); }
.site-footer__legal a { color: rgba(246, 238, 219, .8); }

/* ==========================================================================
   Decorazioni natalizie
   ========================================================================== */

/* ---------- Pulsante rosso ---------- */
.btn--red { background: var(--mattone); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(247, 226, 143, .55); }
.btn--red:hover { background: #C8262B; color: #fff; }

/* ---------- Occhiello con fiocco di neve ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 15px; height: 15px; flex: none; background: currentColor; -webkit-mask: url("../img/fiocco.svg") center / contain no-repeat; mask: url("../img/fiocco.svg") center / contain no-repeat; }
.section-head--center .eyebrow { justify-content: center; }

/* ---------- Cumuli di neve in fondo alle sezioni ---------- */
.snow-edge { position: relative; }
.snow-edge::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(34px, 5vw, 70px); background-repeat: no-repeat; background-size: 100% 100%; pointer-events: none; z-index: 1; }
.snow-edge--bianca::after { background-image: url("../img/neve-bianca.svg"); }
.snow-edge--panna::after { background-image: url("../img/neve-panna.svg"); }
.snow-edge.section { padding-bottom: calc(var(--section-y) + clamp(20px, 3vw, 40px)); }
.snow-edge > * { position: relative; z-index: 2; }

/* ---------- Striscia info: bordi a bastoncino di zucchero ---------- */
.info-strip { position: relative; background-image: url("../img/fiocchi-pattern.svg"); background-size: 200px; }
.info-strip::before, .info-strip::after, .candy-stripe { content: ""; display: block; height: 8px; background: repeating-linear-gradient(-45deg, var(--mattone) 0 10px, var(--panna) 10px 20px); }
.info-strip::before { position: relative; z-index: 2; margin-top: -4px; }

/* ---------- Sezione rossa (biglietti) ---------- */
.section--red { position: relative; background-color: var(--mattone); background-image: url("../img/fiocchi-pattern.svg"), radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, .12), transparent 60%); background-size: 200px, 100% 100%; color: #fff; }
.section--red::before, .section--red::after { content: ""; position: absolute; left: 0; right: 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--candela) 0 10px, var(--panna) 10px 20px); }
.section--red::before { top: 0; }
.section--red::after { bottom: 0; }
.section--red .eyebrow { color: var(--panna); }
.section--red .lead { color: rgba(255, 255, 255, .88); }
.section--red .ticket { background: var(--notte); border-color: rgba(237, 196, 106, .3); box-shadow: 0 18px 40px rgba(60, 6, 4, .35); }
.section--red .ticket--featured { border-color: var(--candela); }
.section--red .notice-box { background: rgba(20, 33, 26, .35); border-color: rgba(247, 226, 143, .45); }
.section--red .btn--outline { border-color: var(--panna); color: var(--panna); }
.section--red .btn--outline:hover { background: var(--panna); color: var(--mattone); }
.ticket__badge { background: var(--mattone); color: #fff; box-shadow: 0 0 0 2px var(--candela); }

/* ---------- Schede: nastro rosso e icona su pallina ---------- */
.card { position: relative; overflow: hidden; transition: transform .2s ease, border-color .2s ease; }
.card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: repeating-linear-gradient(-45deg, var(--mattone) 0 8px, var(--panna) 8px 16px); }
.card:hover { transform: translateY(-3px); border-color: rgba(237, 196, 106, .5); }
.card__icon { background: var(--mattone); color: var(--candela-chiaro); box-shadow: 0 0 0 3px rgba(237, 196, 106, .35); }

/* ---------- Palline appese e agrifoglio ---------- */
.deco-pallina, .deco-agrifoglio { position: relative; overflow: hidden; }
.deco-pallina::before { content: ""; position: absolute; top: 0; right: clamp(16px, 6vw, 90px); width: 80px; height: 190px; background: url("../img/pallina-rossa.svg") top center / contain no-repeat; pointer-events: none; z-index: 1; transform-origin: top center; animation: bbn-swing 5s ease-in-out infinite alternate; }
.deco-pallina--sx::before { right: auto; left: clamp(16px, 6vw, 90px); background-image: url("../img/pallina-oro.svg"); height: 140px; animation-delay: -2s; }
@keyframes bbn-swing { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
.deco-agrifoglio::before { content: ""; position: absolute; top: 18px; right: 18px; width: 120px; height: 80px; background: url("../img/agrifoglio.svg") center / contain no-repeat; opacity: .95; pointer-events: none; }
@media (max-width: 760px) {
	.deco-pallina::before { display: none; }
	.deco-agrifoglio::before { width: 80px; height: 54px; top: 10px; right: 10px; }
}

/* ---------- Footer: bastoncino di zucchero in alto ---------- */
.site-footer { position: relative; border-top: 0; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--mattone) 0 10px, var(--panna) 10px 20px); }

/* ---------- Neve leggera dietro il contenuto delle sezioni verdi ---------- */
.section--night, .page-header { position: relative; }
.snow-layer, .snow-edge > .snow-layer { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.section--night > .wrap, .page-header > .wrap { position: relative; z-index: 2; }
.snow-toggle { position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 44px; height: 44px; opacity: .75; border-radius: 50%; border: 1px solid rgba(237, 196, 106, .5); background: rgba(20, 33, 26, .85); color: var(--panna); display: grid; place-items: center; cursor: pointer; }
.snow-toggle[aria-pressed="false"] { color: rgba(246, 238, 219, .45); }
.snow-toggle:hover { background: var(--mattone); }

@media (prefers-reduced-motion: reduce) {
	.deco-pallina::before { animation: none; }
}
/* se dopo la sezione non c'è una sezione chiara (es. nessuna news), la neve resta bianca */
.site-main > .snow-edge--panna:last-child::after { background-image: url("../img/neve-bianca.svg"); }

/* ---------- Foto (v0.4.0) ---------- */
/* schede "Cosa trovi" con foto in alto */
.card--foto { padding-top: 0; }
.card::before { z-index: 2; }
.card__media { margin: 0 -26px; aspect-ratio: 16 / 10; overflow: hidden; background: var(--notte-3); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.card:hover .card__media img { transform: scale(1.04); }
.card--foto .card__icon { position: relative; z-index: 1; margin-top: -48px; }
/* intestazione pagine con foto scurita */
.page-header--foto { background: linear-gradient(180deg, rgba(12, 21, 15, .72), rgba(12, 21, 15, .9)), var(--ph-bg) center / cover no-repeat, var(--notte); padding-block: clamp(72px, 12vw, 140px) clamp(48px, 7vw, 80px); }
.page-header--foto .page-header__title { text-shadow: 0 2px 18px rgba(0, 0, 0, .45); }
/* mappa parcheggi nella sezione Come arrivare */
.map-card__img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
/* crediti fotografici */
.site-footer__credits { margin-top: 14px; font-size: .8rem; color: rgba(246, 238, 219, .55); }

/* ---------- Pagine a sezioni (v0.5.0) ---------- */
.section--tight { padding-block: clamp(8px, 2vw, 16px) clamp(32px, 5vw, 48px); }
.section--cream + .section--tight { margin-top: calc(-1 * var(--section-y) + 8px); }
.section--night .prose, .section--red .prose { color: var(--testo-chiaro); }
.section--night .prose a, .section--red .prose a { color: var(--candela-chiaro); text-decoration: underline; text-underline-offset: 3px; }
.section--night .prose strong { color: var(--panna); }
.section--cream .route .icon { color: var(--mattone); }
.section--cream .route__text { color: var(--inchiostro); }
.prose--small { font-size: .975rem; }
.prose--small > * + * { margin-top: .6em; }
@media (min-width: 900px) { .split--reverse > .split__media { order: 2; } }
.caption { margin-top: 10px; font-size: .8rem; opacity: .7; }
.media-link { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; }
.media-link img { aspect-ratio: auto !important; }
.split__media img[src*="mappa"] { aspect-ratio: auto; }

/* riquadro avviso */
.alert { display: flex; gap: 18px; padding: 24px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--panna-2); border-left: 6px solid var(--candela); color: var(--inchiostro); }
.alert--importante { border-left-color: var(--mattone); background: #FFF8F2; }
.alert__icon { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--notte); color: var(--candela); }
.alert--importante .alert__icon { background: var(--mattone); color: #fff; }
.alert__title { font-size: 1.3rem; color: var(--notte); }
.alert .prose { color: var(--inchiostro); }

/* domande su sfondo chiaro */
.section--cream .faq { background: #fff; border-color: var(--panna-2); }
.section--cream .faq__a { color: var(--inchiostro); }
.section--cream .faq__q::after { border-color: var(--mattone); }

/* calendario */
.cal-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); align-items: start; }
.cal, .cal-list { padding: 24px; border-radius: var(--radius); background: var(--notte-2); border: 1px solid var(--bordo-oro); color: var(--panna); }
.section--cream .cal, .section--cream .cal-list { background: #fff; border-color: var(--panna-2); color: var(--inchiostro); }
.cal__title { font-size: 1.35rem; margin-bottom: 14px; }
.cal__days, .cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal__days span { font-size: .75rem; font-weight: 600; letter-spacing: .08em; opacity: .6; padding-bottom: 4px; }
.cal__grid { list-style: none; padding: 0; margin: 0; }
.cal__day { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; font-size: .95rem; opacity: .45; }
.cal__day.is-open { opacity: 1; background: var(--mattone); color: #fff; font-weight: 700; box-shadow: 0 0 0 3px rgba(237, 196, 106, .35); }
.cal-list ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.cal-list li { display: flex; gap: 10px; align-items: flex-start; }
.cal-list .icon { color: var(--mattone); margin-top: 4px; flex: none; }
.section--night .cal-list .icon { color: var(--candela); }
.cal-note { max-width: 760px; }

/* eventi nel territorio */
.event-list { display: flex; flex-direction: column; gap: clamp(40px, 6vw, 72px); }
.event { display: grid; gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (min-width: 900px) {
	.event { grid-template-columns: 5fr 6fr; }
	.event--reverse .event__media { order: 2; }
}
.event__media { margin: 0; position: relative; }
.event__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.event__media--empty { aspect-ratio: 4 / 3; border-radius: var(--radius-lg); display: grid; place-items: center; color: var(--candela); background: var(--notte) url("../img/fiocchi-pattern.svg") center / 180px; border: 1px solid var(--bordo-oro); }
.event__title { font-size: var(--fs-h2); }
.event__meta { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.event__meta li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .9rem; background: rgba(167, 29, 25, .08); border: 1px solid rgba(167, 29, 25, .18); }
.event__meta .icon { color: var(--mattone); }
.section--night .event__meta li { background: rgba(237, 196, 106, .1); border-color: var(--bordo-oro); }
.section--night .event__meta .icon { color: var(--candela); }
.event__highlights { padding: 20px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--panna-2); }
.section--night .event__highlights { background: var(--notte-2); border-color: var(--bordo-oro); }
.event__highlights h4 { font-size: 1.1rem; margin-bottom: 10px; }
.event__highlights ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.event__highlights li { display: flex; gap: 10px; align-items: flex-start; }
.event__highlights .icon { color: var(--mattone); margin-top: 4px; flex: none; }
.event__links { display: flex; flex-wrap: wrap; gap: 10px; }
.section--cream .btn--outline { border-color: var(--notte); color: var(--notte); }

/* banda finale */
.cta-band .cta-band__actions { justify-content: center; }
.cta-band .section-title { color: #fff; }
/* sezioni consecutive con lo stesso sfondo: niente doppio spazio */
.section--cream + .section--cream:not(.section--tight), .section--night + .section--night { padding-top: 0; }
/* schede su sfondo chiaro */
.section--cream .card { background: #fff; border-color: var(--panna-2); box-shadow: 0 10px 30px rgba(46, 42, 30, .06); }
.section--cream .card__title { color: var(--notte); }
.section--cream .card__text { color: var(--inchiostro); }
.section--cream .card__media { background: var(--panna-2); }
/* biglietti su sfondo chiaro */
.section--cream .ticket { background: #fff; border-color: var(--panna-2); box-shadow: 0 10px 30px rgba(46, 42, 30, .06); }
.section--cream .ticket--featured { border-color: var(--mattone); }
.section--cream .ticket__name { color: var(--notte); }
.section--cream .ticket__price { color: var(--mattone); }
.section--cream .ticket__text { color: var(--inchiostro); }
.section--cream .ticket__badge { background: var(--mattone); color: #fff; }
.section--cream .notice-box { background: #fff; border-color: var(--panna-2); color: var(--inchiostro); }
figure.split__media { margin: 0; }

/* ---------- Griglie, allineamenti e mobile (v0.5.5) ---------- */
/* larghezza di lettura: allineata a sinistra con il resto della pagina */
.measure, .measure-children > * { max-width: 820px; }
.page-header .measure-children > * { max-width: 900px; }
.notice-box p, .notice-box .prose { max-width: none; flex: 1 1 420px; }

/* griglie bilanciate: 5 elementi → 3 + 2 centrati, 7 → 4 + 3 */
.ticket-grid, .card-grid { --cols: 3; --gap: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.grid-cols-1 { --cols: 1; } .grid-cols-2 { --cols: 2; } .grid-cols-3 { --cols: 3; } .grid-cols-4 { --cols: 4; }
.ticket-grid > *, .card-grid > * { flex: 0 1 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.grid-cols-1 > * { max-width: 560px; }
@media (max-width: 1099px) { .grid-cols-4 { --cols: 2; } }
@media (max-width: 899px) { .grid-cols-3 { --cols: 2; } }

/* mobile: le schede scorrono di lato, con la successiva che si intravede */
@media (max-width: 699px) {
	.is-scroll {
		flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-x: contain;
		scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); -webkit-overflow-scrolling: touch; scrollbar-width: none;
		margin-inline: calc(-1 * var(--gutter)); padding: 18px var(--gutter) 6px; gap: 14px;
	}
	.is-scroll::-webkit-scrollbar { display: none; }
	.is-scroll > * { flex: 0 0 84%; max-width: 340px; scroll-snap-align: start; }
	.is-scroll::after { content: ""; flex: 0 0 1px; }
	.scroll-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
	.scroll-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: currentColor; opacity: .3; transition: width .2s ease, opacity .2s ease; cursor: pointer; }
	.scroll-dots button[aria-current="true"] { width: 22px; opacity: .9; }
	.section--cream .scroll-dots { color: var(--mattone); }
	.section--night .scroll-dots, .section--red .scroll-dots { color: var(--panna); }
	.stack-xl > .scroll-dots { margin-top: 14px; }
}
@media (min-width: 700px) { .scroll-dots { display: none; } }

/* mobile: tipografia e spazi più compatti */
@media (max-width: 699px) {
	:root { --section-y: 52px; }
	.ticket { padding: 26px 20px 22px; }
	.ticket__price { font-size: 2.1rem; }
	.ticket__name { font-size: 1.3rem; }
	.card { padding: 24px 20px; }
	.card__media { margin: 0 -20px; }
	.notice-box { padding: 20px; }
	.alert { flex-direction: column; gap: 12px; padding: 20px; }
	.page-header { padding-block: 44px 36px; }
	.page-header--foto { padding-block: 56px 44px; }
	.page-header__title { font-size: clamp(2rem, 8vw, 2.4rem); }
	.page-header .lead { font-size: 1rem; }
	.section-title { font-size: clamp(1.6rem, 6.5vw, 2rem); }
	.lead { font-size: 1rem; }
	.prose { font-size: 1rem; }
	.event__title { font-size: 1.7rem; }
	.cta-band .hero__actions { flex-direction: column; align-items: stretch; }
	.cal, .cal-list { padding: 18px; }
	.route { gap: 14px; }
	.split { gap: 24px; }
}
.faq-list { width: 100%; }
.alert .prose { max-width: 900px; }
.section--red + .section--tight, .section--night + .section--tight { padding-top: clamp(32px, 5vw, 48px); }

/* ---------- Footer compatto su mobile (v0.5.6) ---------- */
@media (max-width: 719px) {
	.site-footer { padding-block: 36px 20px; text-align: center; font-size: .875rem; }
	.site-footer__grid { gap: 26px; }
	.site-footer__brand { align-items: center; max-width: none; gap: 10px; }
	.footer-logo { width: 112px; }
	.site-footer__brand p { max-width: 300px; margin-inline: auto; font-size: .8125rem; line-height: 1.5; }
	.site-footer__title { margin-bottom: 10px; }
	/* link delle pagine su due colonne, compatti */
	.site-footer .menu, .footer-menu { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; max-width: 360px; margin-inline: auto; }
	.site-footer .menu a, .footer-menu a { display: block; padding: 7px 4px; border-radius: 8px; background: rgba(246, 238, 219, .05); }
	/* contatti centrati, una riga ciascuno */
	.site-footer address { align-items: center; gap: 0; }
	.site-footer address span, .site-footer address a { padding-block: 3px; }
	.social { justify-content: center; margin-top: 12px; }
	.site-footer__bottom { margin-top: 26px; padding-top: 16px; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
	.site-footer__credits { margin-top: 10px; font-size: .75rem; line-height: 1.5; }
}
@media (max-width: 719px) {
	.site-footer .menu > li:last-child:nth-child(odd), .footer-menu > li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 6px); }
}

/* ---------- Pagina link stile Linktree (v0.6.0) ---------- */
.linkpage { background: var(--notte); }
.linkpage__main { position: relative; min-height: 100vh; min-height: 100svh; display: flex; justify-content: center; padding: clamp(36px, 8vh, 72px) 18px 32px; overflow: hidden; }
.linkpage__main::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--mattone) 0 10px, var(--panna) 10px 20px); z-index: 1; }
.linkpage__wrap { position: relative; z-index: 2; width: 100%; max-width: 480px; display: flex; flex-direction: column; gap: 26px; }
.linkpage__head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.linkpage__logo { display: block; width: min(300px, 78vw); }
.linkpage__logo img { width: 100%; height: auto; max-height: 180px; object-fit: contain; }
.linkpage__sub { display: inline-flex; padding: 8px 16px; border-radius: 999px; background: rgba(237, 196, 106, .1); border: 1px solid var(--bordo-oro); color: var(--panna); font-size: .9rem; font-weight: 500; }
.linkpage__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.linkbtn { position: relative; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 12px 16px 12px 12px; border-radius: 16px; background: var(--notte-2); border: 1px solid var(--bordo-oro); color: var(--panna); text-decoration: none; transition: transform .15s ease, border-color .15s ease, background-color .15s ease; }
.linkbtn:hover, .linkbtn:focus-visible { transform: translateY(-2px); border-color: var(--candela); background: #263b2a; color: var(--panna); }
.linkbtn__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(237, 196, 106, .12); color: var(--candela); }
.linkbtn__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.linkbtn__title { font-weight: 600; font-size: 1.02rem; line-height: 1.25; }
.linkbtn__small { font-size: .82rem; opacity: .72; line-height: 1.3; }
.linkbtn__arrow { flex: none; color: var(--candela); opacity: .8; }
.linkbtn--hl { background: var(--mattone); border: 2px solid var(--candela); box-shadow: 0 10px 28px rgba(167, 29, 25, .45); }
.linkbtn--hl:hover, .linkbtn--hl:focus-visible { background: var(--mattone-scuro); }
.linkbtn--hl .linkbtn__icon { background: rgba(255, 255, 255, .16); color: #fff; }
.linkbtn--hl .linkbtn__arrow { color: #fff; }
.linkbtn--hl .linkbtn__small { opacity: .9; }
.linkbtn__badge { position: absolute; top: -10px; right: 14px; padding: 3px 10px; border-radius: 999px; background: var(--candela); color: var(--notte); font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
@media (prefers-reduced-motion: no-preference) {
	.linkbtn--hl { animation: bbn-glow 2.6s ease-in-out infinite; }
	@keyframes bbn-glow { 50% { box-shadow: 0 10px 34px rgba(237, 196, 106, .35); } }
}
.linkpage__foot { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; margin-top: 6px; }
.linkpage__foot .social { justify-content: center; margin-top: 0; }
.linkpage__site { color: var(--candela); font-weight: 600; font-size: .9rem; }
.linkpage__copy { font-size: .75rem; color: rgba(246, 238, 219, .5); }
.linkpage .snow-toggle { display: none; }
.linkpage__sub { text-wrap: balance; justify-content: center; }

/* ---------- Sponsor (v0.7.0) ---------- */
.sponsor-band { background: var(--panna); color: var(--notte); padding-block: clamp(40px, 6vw, 64px); border-top: 1px solid var(--panna-2); text-align: center; }
.sponsor-band__title { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.7rem); margin-bottom: 26px; }
.sponsor-band__group + .sponsor-band__group { margin-top: 22px; }
.sponsor-band__label { font-size: .75rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; color: var(--mattone); margin-bottom: 12px; }
.sponsor-band__more { margin-top: 24px; }
.sponsor-logos { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.sponsor-logo { display: grid; place-items: center; background: #fff; border: 1px solid var(--panna-2); border-radius: 14px; padding: 12px 18px; width: 150px; height: 80px; transition: transform .15s ease, box-shadow .15s ease; color: var(--notte); }
a.sponsor-logo:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(46, 42, 30, .12); }
.sponsor-logo img, .sponsor-logo__img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.sponsor-logo__name { font-family: var(--serif); font-weight: 600; font-size: .95rem; line-height: 1.2; text-align: center; }
.sponsor-band__group--oro .sponsor-logo { width: 240px; height: 120px; padding: 16px 24px; }
.sponsor-band__group--argento .sponsor-logo { width: 180px; height: 96px; }
.sponsor-band__group--bronzo .sponsor-logo, .sponsor-band__group--tecnico .sponsor-logo { width: 130px; height: 68px; padding: 10px 14px; }
@media (max-width: 699px) {
	.sponsor-band__group--oro .sponsor-logo { width: 46vw; height: 96px; }
	.sponsor-band__group--argento .sponsor-logo { width: 40vw; height: 80px; }
	.sponsor-band__group--bronzo .sponsor-logo, .sponsor-band__group--tecnico .sponsor-logo { width: 28vw; height: 58px; padding: 8px 10px; }
	.sponsor-logos { gap: 10px; }
}
/* pagina partner e sostenitori */
.sponsor-level__title { display: flex; align-items: center; gap: 16px; font-size: clamp(1.4rem, 1.2rem + .8vw, 1.9rem); }
.sponsor-level__title::after { content: ""; flex: 1; height: 1px; background: var(--panna-2); }
.sponsor-level--oro .sponsor-level__title span { color: #9A7414; }
.sponsor-cards { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.sponsor-card { display: flex; gap: 20px; align-items: center; padding: 20px; background: #fff; border: 1px solid var(--panna-2); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(46, 42, 30, .06); }
.sponsor-level--oro .sponsor-card { border-top: 4px solid var(--candela); }
.sponsor-card .sponsor-logo--big { flex: none; width: 140px; height: 100px; border: 0; padding: 8px; }
.sponsor-card__name { font-size: 1.3rem; }
.sponsor-card__tag { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; color: var(--mattone); font-weight: 600; }
.sponsor-logos--page { justify-content: flex-start; }
@media (max-width: 559px) { .sponsor-card { flex-direction: column; text-align: center; } .sponsor-card .link-arrow, .sponsor-card__tag { justify-content: center; } }
/* scheda sponsor */
.sponsor-head__inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 800px) { .sponsor-head__inner { grid-template-columns: 260px 1fr; } }
.sponsor-head__logo { display: grid; place-items: center; background: #fff; border-radius: var(--radius-lg); padding: 24px; aspect-ratio: 4 / 3; max-width: 300px; box-shadow: 0 0 0 4px rgba(237, 196, 106, .35); color: var(--notte); }
.sponsor-head__logo img { max-height: 100%; width: auto; object-fit: contain; }
.sponsor-head .event__meta li { color: var(--panna); }
.sponsor-booth { align-self: start; }
.sponsor-booth__where { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 12px; }
.sponsor-booth__where .icon { color: var(--mattone); }
.sponsor-booth__note { margin-top: 12px; font-size: .9rem; opacity: .75; }
.sponsor-gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.sponsor-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 699px) { .sponsor-gallery.is-scroll { display: flex; } }
.sponsor-contacts a { color: var(--panna); }
.sponsor-contacts .route { align-items: center; }
.page-header .sponsor-head__inner { display: grid; gap: 28px; align-items: center; }
@media (min-width: 800px) { .page-header .sponsor-head__inner { grid-template-columns: 280px 1fr; } }
.sponsor-head__logo { width: 100%; max-width: 280px; }
@media (max-width: 799px) { .sponsor-head__logo { max-width: 220px; aspect-ratio: 16 / 9; padding: 16px; } }
.sponsor-head .sponsor-logo__name { font-size: 1.4rem; }

/* ---------- Espositori (v0.8.0) ---------- */
.esp-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.esp-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.esp-chip { min-height: 40px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--panna-2); background: #fff; color: var(--notte); font: 500 .9rem var(--sans); cursor: pointer; }
.esp-chip.is-active { background: var(--mattone); border-color: var(--mattone); color: #fff; }
.esp-search { position: relative; flex: 1 1 260px; max-width: 380px; }
.esp-search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--mattone); }
.esp-search input { width: 100%; min-height: 44px; padding: 10px 14px 10px 40px; border-radius: 999px; border: 1px solid var(--panna-2); background: #fff; font: 1rem var(--sans); color: var(--inchiostro); }
.esp-count { font-size: .9rem; opacity: .7; }
.esp-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.esp-card[hidden] { display: none; }
.esp-card a { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--panna-2); border-radius: var(--radius); overflow: hidden; color: var(--notte); transition: transform .15s ease, box-shadow .15s ease; }
.esp-card a:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(46, 42, 30, .1); color: var(--notte); }
.esp-card__media { position: relative; aspect-ratio: 4 / 3; background: var(--panna-2); display: grid; place-items: center; color: var(--mattone); }
.esp-card__media img { width: 100%; height: 100%; object-fit: cover; }
.esp-card__media--empty { background: var(--notte) url("../img/fiocchi-pattern.svg") center / 160px; color: var(--candela); }
.esp-card__logo { position: absolute; left: 12px; bottom: -22px; width: 56px; height: 56px; border-radius: 50%; overflow: hidden; background: #fff; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.esp-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.esp-card__body { display: flex; flex-direction: column; gap: 4px; padding: 30px 16px 18px; }
.esp-card__cat { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: var(--mattone); }
.esp-card__title { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; line-height: 1.2; }
.esp-card__meta { display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; opacity: .75; }
.esp-empty { text-align: center; padding: 24px; opacity: .75; }
.esp-past { font-size: .95rem; }
.esp-past a { margin-inline: 4px; font-weight: 600; }
@media (max-width: 559px) {
	.esp-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
	.esp-card__logo { width: 42px; height: 42px; bottom: -16px; left: 8px; }
	.esp-card__body { padding: 22px 10px 12px; }
	.esp-card__title { font-size: 1rem; }
	.esp-card__meta { font-size: .78rem; }
	.esp-filters { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
	.esp-chip { flex: none; }
	.esp-search { max-width: none; }
}
/* scheda */
.page-header .esp-head__inner { display: grid; gap: 24px; align-items: center; }
@media (min-width: 760px) { .page-header .esp-head__inner { grid-template-columns: auto 1fr; } }
.esp-head__logo { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px rgba(237, 196, 106, .35); }
.esp-head__logo img { width: 100%; height: 100%; object-fit: contain; }
.esp-head .eyebrow a { color: inherit; }
.esp-head .event__meta li { color: var(--panna); }
@media (max-width: 759px) { .esp-head__logo { width: 96px; height: 96px; } }
.esp-body { display: grid; gap: clamp(28px, 4vw, 48px); align-items: start; }
@media (min-width: 900px) { .esp-body { grid-template-columns: minmax(0, 1fr) 320px; } .esp-side { position: sticky; top: 96px; } }
.esp-h2 { display: flex; align-items: center; gap: 8px; font-size: clamp(1.3rem, 1.1rem + .6vw, 1.6rem); color: var(--notte); }
.esp-h2 .icon { color: var(--mattone); }
.esp-novita { padding: 20px 22px; border-radius: var(--radius); background: #fff; border-left: 5px solid var(--candela); }
.esp-sponsor { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--radius); background: var(--notte); color: var(--panna); border: 1px solid var(--candela); }
.esp-sponsor .icon { color: var(--candela); flex: none; }
.esp-sponsor span { flex: 1; }
.esp-sponsor:hover { color: var(--panna); background: var(--notte-2); }
.esp-gallery { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.esp-gallery figure { margin: 0; }
.esp-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); }
.esp-gallery figcaption { margin-top: 6px; font-size: .85rem; opacity: .75; }
@media (max-width: 699px) { .esp-gallery.is-scroll { display: flex; } }
.esp-side { padding: 22px; background: #fff; border: 1px solid var(--panna-2); border-radius: var(--radius); }
.esp-links { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-direction: column; gap: 8px; }
.esp-links a, .esp-links__text { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panna); color: var(--notte); font-weight: 500; word-break: break-word; }
.esp-links a:hover { background: var(--panna-2); color: var(--notte); }
.esp-links .icon { color: var(--mattone); flex: none; }
.esp-links__text { opacity: .8; }
.esp-nav__inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; align-items: center; }
.esp-nav__link { display: flex; flex-direction: column; gap: 2px; color: var(--panna); }
.esp-nav__link span { font-size: .8rem; opacity: .7; }
.esp-nav__link--next { text-align: right; }
.esp-nav.section { padding-block: 32px 64px; }
@media (max-width: 599px) { .esp-nav__inner { grid-template-columns: 1fr 1fr; } .esp-nav__inner .btn { grid-column: 1 / -1; grid-row: 2; justify-self: center; } .esp-nav__link strong { font-size: .9rem; } }
/* loghi sponsor sempre dentro il riquadro, qualunque proporzione abbiano */
.sponsor-logo, .sponsor-head__logo { display: flex; align-items: center; justify-content: center; overflow: hidden; box-sizing: border-box; }
.sponsor-logo img, .sponsor-logo .sponsor-logo__img, .sponsor-head__logo img { display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; }
