/* Footer con recapiti, sedi e social: uguale in homepage, pagine interne, categorie e articoli. Unica fonte degli stili del footer
   (caricato in tutte le pagine da inc/footer.php, dopo gli altri fogli): category.css e article.css non ne hanno più copie.
   Le pagine col vecchio aspetto (storia, sponsor…) hanno ancora il vecchio footer giallo, fatto di <div class="stadium-footer"> (testo nelle opzioni del
   vecchio tema): per non toccarlo, le regole sulla classe stessa valgono solo per l'elemento <footer>. :where(footer) non aggiunge specificità. */
:where(footer).stadium-footer { padding:70px var(--stadium-gutter) 20px; background:var(--navy); color:#fff; font-size:17px; line-height:1.55; }
/* Corpo base del footer fissato qui (17px, 16px su mobile), così non dipende dalla pagina in cui si trova. */
@media (max-width:700px) { :where(footer).stadium-footer { font-size:16px; } }
/* Link senza sottolineatura e bianchi al passaggio del mouse: prima arrivava da style.css, che ora vale solo per il vecchio footer. Stessa specificità e
   stessa posizione rispetto alle regole sotto (i social restano navy al passaggio). */
:where(footer).stadium-footer a { text-decoration:none; }
:where(footer).stadium-footer a:hover { color:#ffffff !important; text-decoration:none !important; }
.stadium-footer__main { display:flex; min-height:190px; align-items:center; justify-content:space-between; gap:45px; padding:10px 0 42px; }
/* Intestazione del footer: stessa resa in tutte le pagine (14px su desktop, 12px su mobile), senza dipendere da home.css o style.css. */
:where(footer).stadium-footer .section-index { margin:0; color:rgba(255,255,255,.65); font:500 14px/1.4 'Newsreader',serif; letter-spacing:.1em; text-transform:uppercase; }
@media (max-width:700px) { :where(footer).stadium-footer .section-index { font-size:12px; } }
.stadium-footer__locations { min-width:0; flex:1; }
.stadium-footer__locations .section-index { margin:0 0 22px; }
.stadium-footer__locations-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 36px; }
.stadium-footer__locations-grid address { display:grid; gap:5px; color:rgba(255,255,255,.76); font:400 13px/1.45 'Newsreader',Georgia,serif; font-style:normal; }
.stadium-footer__locations-grid strong { color:#ffdb00; font:600 12px/1.2 'Newsreader',Georgia,serif; letter-spacing:.1em; text-transform:uppercase; }
.stadium-footer__email { display:inline-block; margin-top:20px; padding-bottom:3px; border-bottom:1px solid rgba(255,255,255,.42); font:400 14px/1.4 'Newsreader',Georgia,serif; }
.stadium-footer__socials { display:grid; width:min(100%,310px); grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; margin-left:auto; }
.stadium-footer__socials a { display:flex; min-height:42px; align-items:center; gap:9px; padding:8px 11px; border:1px solid rgba(255,255,255,.34); color:#fff; font:500 12px/1.2 'Newsreader',Georgia,serif; transition:color .2s ease,border-color .2s ease,background-color .2s ease; }
.stadium-footer__socials a:hover, .stadium-footer__socials a:focus-visible { border-color:var(--yellow); background:var(--yellow); color:var(--navy)!important; }
.stadium-footer__socials a:hover span, .stadium-footer__socials a:focus-visible span { color:var(--navy)!important; }
.stadium-footer__socials i { width:15px; color:var(--yellow); font-size:14px; font-style:normal; text-align:center; }
.stadium-footer__socials a:hover i, .stadium-footer__socials a:focus-visible i { color:var(--navy); }
.stadium-footer__base { display:flex; min-height:56px; align-items:center; justify-content:space-between; gap:15px; border-top:1px solid rgba(255,255,255,.25); color:rgba(255,255,255,.65); font:400 12px 'Newsreader',Georgia,serif; }
.stadium-footer__base a { color:#fff; }
@media (max-width:760px) {
	:where(footer).stadium-footer { padding:55px var(--stadium-gutter) 17px; }
	.stadium-footer__main { min-height:0; flex-direction:column; align-items:stretch; gap:26px; padding:12px 0 30px; }
	.stadium-footer__locations-grid { gap:16px 20px; }
	.stadium-footer__locations-grid address { font-size:12px; }
	.stadium-footer__email { font-size:13px; }
	.stadium-footer__socials { width:min(100%,360px); margin-left:0; }
	.stadium-footer__base { min-height:72px; flex-wrap:wrap; justify-content:space-between; gap:5px 12px; padding:11px 0; font-size:11px; }
	.stadium-footer__base span:nth-child(2) { order:3; width:100%; }
}
@media (max-width:420px) {
	.stadium-footer__locations-grid { grid-template-columns:minmax(0,1fr); }
	.stadium-footer__locations-grid address, .stadium-footer__base span { overflow-wrap:anywhere; }
}
.stadium-footer--full { display:flex; min-height:100vh; min-height:100dvh; flex-direction:column; justify-content:space-between; }
.stadium-footer__legal { display:flex; flex-wrap:wrap; align-items:center; gap:10px 28px; padding:22px 0; border-top:1px solid rgba(255,255,255,.25); font:400 14px/1.4 'Newsreader',Georgia,serif; color:rgba(255,255,255,.76); }
.stadium-footer__legal a { color:#fff; padding-bottom:3px; border-bottom:1px solid rgba(255,255,255,.42); }
.stadium-footer__legal a:hover, .stadium-footer__legal a:focus-visible { color:var(--yellow); border-bottom-color:var(--yellow); }
.stadium-footer__copy { position:relative; display:inline-flex; align-items:baseline; gap:6px; padding:0; border:0; background:none; text-decoration:none; -webkit-text-decoration:none; text-decoration-skip-ink:none; color:rgba(255,255,255,.76); font:inherit; cursor:copy; user-select:none; -webkit-user-select:none; transition:color .2s ease,border-color .2s ease; }
.stadium-footer__copy span { color:rgba(255,255,255,.6); }
.stadium-footer__copy:hover, .stadium-footer__copy:focus-visible { color:#fff; }
.stadium-footer__copy:focus-visible { outline:3px solid var(--yellow); outline-offset:4px; }
.stadium-footer__copy::after { content:'Copiato'; position:absolute; bottom:calc(100% + 10px); left:50%; padding:6px 9px; background:var(--yellow); color:var(--navy); font:600 12px/1 'Newsreader',Georgia,serif; white-space:nowrap; opacity:0; transform:translate(-50%,4px); pointer-events:none; transition:opacity .2s ease,transform .2s ease; }
.stadium-footer__copy[data-copied="true"]::after { opacity:1; transform:translate(-50%,0); }
@media (prefers-reduced-motion:reduce) { .stadium-footer__copy, .stadium-footer__copy::after { transition:none; } }
.stadium-footer__copy, .stadium-footer__copy::after { text-shadow:none; box-shadow:none; }
:where(footer).stadium-footer .stadium-footer__copy, :where(footer).stadium-footer .stadium-footer__copy:hover, :where(footer).stadium-footer .stadium-footer__copy:focus, :where(footer).stadium-footer .stadium-footer__copy:active { box-shadow:none !important; text-shadow:none !important; -webkit-tap-highlight-color:transparent; }
:where(footer).stadium-footer .stadium-footer__copy:active, :where(footer).stadium-footer .stadium-footer__copy:active span, :where(footer).stadium-footer .stadium-footer__copy:focus:active { background:var(--yellow) !important; color:var(--navy) !important; }
:where(footer).stadium-footer .stadium-footer__copy:active span { color:var(--navy) !important; }
:where(footer).stadium-footer .stadium-footer__copy::selection, :where(footer).stadium-footer .stadium-footer__copy span::selection { background:var(--yellow); color:var(--navy); }
html body :where(footer).stadium-footer .stadium-footer__copy, html body :where(footer).stadium-footer .stadium-footer__copy:focus, html body :where(footer).stadium-footer .stadium-footer__copy:focus-visible, html body :where(footer).stadium-footer .stadium-footer__copy:focus-within { box-shadow:none !important; text-shadow:none !important; border-bottom:0 !important; }
.stadium-footer--full { position:relative; isolation:isolate; overflow:visible; }
.stadium-footer--full::before { content:""; position:absolute; z-index:0; background:var(--yellow); -webkit-mask:url("images/mirandola-mura.svg") center / contain no-repeat; mask:url("images/mirandola-mura.svg") center / contain no-repeat; pointer-events:none; }
.stadium-footer--full > * { position:relative; z-index:1; }
.stadium-footer--full::before { top:auto; left:auto; right:-30%; bottom:-14%; width:82%; height:48%; transform:rotate(90deg); opacity:1; }
@media (max-width:700px) {
	.stadium-footer__legal { flex-wrap:nowrap; font-size:13px; }
	.stadium-footer__copy { font-size:13px; }
	.stadium-footer__legal { flex-direction:column; align-items:flex-start; gap:10px; white-space:normal; }
}

/* Footer senza mura (pagine interne, categorie, articoli): più compatto. La versione a schermo intero della homepage non cambia. */
:where(footer).stadium-footer:not(.stadium-footer--full) { padding:48px var(--stadium-gutter) 16px; }
:where(footer).stadium-footer:not(.stadium-footer--full) .stadium-footer__main { min-height:140px; padding:8px 0 30px; }
@media (max-width:760px) {
	:where(footer).stadium-footer:not(.stadium-footer--full) { padding:40px var(--stadium-gutter) 14px; }
	:where(footer).stadium-footer:not(.stadium-footer--full) .stadium-footer__main { min-height:0; padding:10px 0 24px; }
}

/* Megafooter della homepage: sedi in colonna unica; social come sole icone gialle allineate a sinistra, sotto l'email (il nome resta nell'aria-label del link). */
.stadium-footer--full .stadium-footer__locations-grid { grid-template-columns:minmax(0,1fr); gap:14px; }
.stadium-footer--full .stadium-footer__main { flex-direction:column; align-items:flex-start; justify-content:center; gap:18px; }
.stadium-footer--full .stadium-footer__locations { flex:none; }
.stadium-footer--full .stadium-footer__socials { display:flex; width:auto; flex-wrap:wrap; justify-content:flex-start; gap:6px; margin:0 0 0 -14px; }
.stadium-footer--full .stadium-footer__socials a { width:44px; min-height:44px; justify-content:center; padding:0; border:0; }
.stadium-footer--full .stadium-footer__socials a span { position:absolute; width:1px; height:1px; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.stadium-footer--full .stadium-footer__socials i { width:auto; font-size:24px; line-height:1; }
