/*
Theme Name: HEPscape! 2026
Template: bizberg
Version: 1.1.13
Description: Sito bilingue italiano e inglese HEPscape!.
*/
*{box-sizing:border-box}body{margin:0;color:#315da1;background:white;font:17px/1.65 Arial,Helvetica,sans-serif}a{color:inherit;text-underline-offset:4px}a:focus-visible,summary:focus-visible{outline:3px solid #7cba43;outline-offset:5px}header{padding:18px 5%;display:flex;align-items:center;justify-content:space-between;gap:30px;background:white}header img{width:135px;height:118px;object-fit:contain}header .infn{width:150px}nav{display:flex;gap:24px;flex-wrap:wrap;font-size:14px;font-weight:bold}nav a{text-decoration:none}nav a[aria-current]{border-bottom:3px solid #7cba43}h1,h2,h3{line-height:1.1;letter-spacing:-.04em;margin:0 0 24px}h1{font-size:clamp(40px,5vw,68px)}h2{font-size:clamp(28px,3vw,40px)}h3{font-size:24px}p{margin:0 0 20px}section{position:relative;padding:64px max(7vw,calc((100% - 1140px)/2));overflow:hidden}section>*{position:relative;z-index:1}section:before{content:'';position:absolute;inset:0 auto 0 0;width:52px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 600'%3E%3Cpath d='M26 0 C26 80 46 80 46 160 S6 260 6 320 S46 440 46 500 S26 560 26 600' fill='none' stroke='%237cba43' stroke-width='4' stroke-dasharray='6 12' stroke-linecap='round'/%3E%3C/svg%3E") center/100% 100% repeat-y}.hero{background:white}.hero:after,.blue:after{content:'';position:absolute;inset:0;background:url('https://web.infn.it/hepscape/wp-content/uploads/2026/04/labirinto.svg') -340px center/850px no-repeat;opacity:.65;pointer-events:none}.hero p{max-width:660px;font-size:21px}.eyebrow{font-size:12px;font-weight:bold;letter-spacing:.15em;text-transform:uppercase;display:block;margin-bottom:20px}.blue{background:#315da1;color:white}.green{background:#7cba43;color:#16345a}.green:before{filter:brightness(.45)}.split{display:grid;grid-template-columns:1.1fr 1fr;gap:55px;align-items:center}.hero img{width:100%;max-height:400px;object-fit:cover;border-radius:14px;border:3px solid #9bbad3}.button{display:inline-flex;padding:13px 22px;background:#315da1;color:white;border:2px solid #315da1;border-radius:7px;font-size:15px;font-weight:bold;text-decoration:none}.blue .button{background:white;color:#315da1;border-color:white}.actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:25px}.outline{background:transparent;color:#315da1}.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px}.card{background:white;color:#315da1;padding:26px;border-radius:12px;border-top:5px solid #7cba43}.card p{font-size:15px}.num{display:block;margin-bottom:22px;font-size:13px;letter-spacing:.1em}.measure{font-size:34px;font-weight:bold;display:block}.reading{max-width:820px}.reading p{max-width:760px}details{border-bottom:1px solid #9bbad3;padding:22px 0}summary{cursor:pointer;font-size:23px;font-weight:bold;line-height:1.35}details .inside{padding-top:24px}figure{margin:25px 0}figure img{max-width:100%;height:auto;display:block;margin:auto;border-radius:8px}figcaption{font-size:13px;margin:12px 0 0}details h3{margin-top:25px}.events{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.events figure{margin:0;padding:20px;border:1px solid #9bbad3;border-top:5px solid #7cba43;border-radius:12px;background:#fff;color:#315da1;display:flex;flex-direction:column}.events img{width:100%;height:150px;object-fit:contain}.events figcaption{font-size:16px;font-weight:bold;margin-top:20px}.events figcaption a{display:inline-block}.people{display:grid;grid-template-columns:repeat(4,1fr);gap:22px}.person{background:white;color:#315da1;border:1px solid #9bbad3;border-top:5px solid #7cba43;border-radius:12px;padding:22px}.person img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:50%;margin-bottom:20px}.person h3{font-size:22px;margin-bottom:12px}.person p{font-size:14px;min-height:48px}.person a{font-size:14px;display:block;margin-top:8px}.email{font-size:clamp(20px,3vw,34px);overflow-wrap:anywhere}.notice{font-size:14px;background:#fff;color:#315da1;padding:12px 5%;border-bottom:1px solid #9bbad3}footer{padding:35px 7%;display:flex;gap:25px;justify-content:space-between;font-size:14px}.years{display:flex;gap:12px;flex-wrap:wrap;margin:25px 0}.years a{padding:5px 15px;border:1px solid currentColor;border-radius:30px} @media(max-width:800px){header{flex-wrap:wrap;gap:8px}header img{width:100px;height:90px}header .infn{width:115px}nav{order:3;width:100%;justify-content:center;gap:18px}section{padding:42px 22px 42px 54px}.split,.grid{grid-template-columns:1fr;gap:25px}.people,.events{grid-template-columns:repeat(2,1fr)}.hero p{font-size:18px}section:before{width:32px}footer{flex-direction:column}.hero img{max-height:300px}}@media(max-width:480px){.people,.events{grid-template-columns:1fr}.person{display:grid;grid-template-columns:85px 1fr;gap:12px}.person img{grid-row:1/5}.person p{min-height:0;margin:0}.person h3{margin:0}.person a{grid-column:2}.actions{flex-direction:column}.button{justify-content:center}.card{padding:22px}}h1,h2{position:relative}h1:before,h2:before{content:'';position:absolute;left:-35px;top:10px;width:18px;height:18px;border:4px solid #7cba43;border-radius:50%;background:white}.blue h2:before{background:#315da1}.green h2:before{border-color:#315da1;background:#7cba43}html{scroll-behavior:smooth}section[id]{scroll-margin-top:20px}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}

.project-page .hero{grid-template-columns:1fr 1.15fr}.project-page .hero>img{height:440px;max-height:none;object-position:center}.project-page .reading{max-width:960px}.project-photo{margin:36px 0}.project-photo img{width:100%;max-height:560px;object-fit:cover}.project-page #approfondimenti{padding-top:35px}@media(max-width:800px){.project-page .hero{grid-template-columns:1fr}.project-page .hero>img{height:280px}.project-photo img{max-height:none}}

.project-page .story{display:grid;grid-template-columns:1fr 1.1fr;gap:64px;align-items:center;padding-top:76px;padding-bottom:76px}.project-page .story p{max-width:650px}.project-page .lead{font-size:23px;line-height:1.5}.project-page .story figure{margin:0}.project-page .story img{width:100%;height:410px;object-fit:cover;border-radius:14px;display:block}.project-page .team-story img{object-position:center;height:400px}.project-page .statement{padding-top:70px;padding-bottom:70px}.project-page .statement h2{font-size:clamp(30px,3.5vw,46px);max-width:900px}.project-page .statement p{max-width:850px;font-size:21px}.project-page .text-link{align-self:center;font-size:16px;font-weight:bold}.project-page .blue:after{background-position:calc(100% + 380px) center;opacity:.25}.project-page .story h2{font-size:clamp(30px,3.3vw,44px)}@media(max-width:800px){.project-page .story{grid-template-columns:1fr;gap:30px;padding-top:45px;padding-bottom:45px}.project-page .story img,.project-page .team-story img{height:auto;max-height:420px}.project-page .lead{font-size:21px}.project-page .statement{padding-top:45px;padding-bottom:45px}.project-page .statement p{font-size:18px}.project-page .photo-story figure{order:2}}

.project-page .paper-numbers{display:grid;gap:26px;margin-top:35px}.project-page .paper-numbers strong{font-size:38px;display:block;line-height:1.2;color:#fff}.project-page .paper-numbers span{font-size:15px;display:block;margin-top:8px;max-width:320px}.project-page .paper-source{font-size:12px;line-height:1.55;margin-top:28px;margin-bottom:0;max-width:600px}.project-page .statement p{font-size:19px;line-height:1.7}.project-page .story-copy p:last-child{margin-bottom:0}
/* Shared navigation and archive presentation */
.site-header{position:relative;z-index:20}.site-header>a{flex-shrink:0}.site-header nav{align-items:center;gap:18px}.site-header .navgroup{padding:0;border:0;position:relative}.navgroup summary{font-size:14px;letter-spacing:0}.navgroup>div{position:absolute;z-index:30;top:32px;left:-18px;min-width:240px;background:#fff;border:2px solid #315da1;border-radius:10px;padding:12px;box-shadow:0 10px 25px #315da122}.navgroup a{display:block;padding:8px}.navgroup a:hover{background:#315da1;color:#fff}.notice{border:0;font-size:12px;letter-spacing:.03em}.skip{position:absolute;left:12px;top:-60px;z-index:99;background:white;padding:12px}.skip:focus{top:8px}.network-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:32px}.network-grid a{display:grid;grid-template-columns:1fr auto;text-decoration:none;border:2px solid #315da1;border-radius:12px;padding:24px;gap:8px}.network-grid a:hover{background:#315da1;color:white}.network-grid span{font-size:11px;letter-spacing:.1em;text-transform:uppercase;grid-column:1/-1}.network-grid strong{font-size:25px;line-height:1.2}.photo-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}.photo-open{display:block;background:white;color:#315da1;border-radius:10px;overflow:hidden;text-decoration:none}.photo-open img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block;transition:transform .2s}.photo-open:hover img{transform:scale(1.025)}.photo-open span{display:block;padding:10px 14px;font-size:12px}.year-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:26px}.year-card{display:block;text-decoration:none;border-radius:14px;overflow:hidden;background:#315da1;color:white}.year-card img{width:100%;height:270px;object-fit:cover;display:block}.year-card>div{display:flex;justify-content:space-between;align-items:center;padding:25px}.year-card strong{font-size:36px}.year-card span{font-size:14px}.yearnav{padding-top:0;padding-bottom:20px}.review-links{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.review-links a{padding:16px 0;border-bottom:2px solid currentColor;text-decoration:none;font-size:20px}.legal{max-width:1100px;margin:auto}.legal h1{font-size:44px}.legal h2{margin-top:40px}.legal h3{margin-top:30px}.legal a{overflow-wrap:anywhere}dialog{border:0;background:#fff;color:#315da1;border-radius:12px;padding:16px;max-width:94vw;max-height:94vh}dialog::backdrop{background:#10233dea}dialog img{display:block;max-width:86vw;max-height:72vh;object-fit:contain;margin:10px auto}dialog button{background:#315da1;color:white;border:0;border-radius:6px;padding:12px;cursor:pointer}dialog .dialog-bar{display:flex;gap:15px;align-items:center;justify-content:space-between}.home-mirror section:before,.home-mirror section:after,.home-mirror h1:before,.home-mirror h2:before{display:none}.home-mirror section{padding:0}.home-mirror{background:white}.home-mirror #hep-preview{width:100%;margin:0 auto}.home-mirror header{display:block;padding:0}.home-mirror #hep-preview h1,.home-mirror #hep-preview h2{max-width:100%}body:has(.home-mirror){background:white!important}
@media(max-width:1000px){.site-header{flex-wrap:wrap}.site-header nav{order:3;width:100%;justify-content:center}.site-header img{width:120px;height:110px}.site-header .infn{width:145px}}@media(max-width:600px){.network-grid,.year-grid,.review-links{grid-template-columns:1fr}.photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.photo-open span{font-size:11px;padding:8px}.site-header nav{gap:12px 18px}.navgroup>div{left:auto;right:0}.network-grid strong{font-size:23px}.year-card img{height:230px}.year-card>div{gap:15px}.legal h1{font-size:34px}dialog img{max-width:82vw}.site-header{padding:12px 5%}.site-header img{height:100px}.home-mirror #hep-preview{overflow:hidden}}@media(prefers-reduced-motion:reduce){.photo-open img{transition:none}}
/* Preserve the approved homepage labyrinth layers in the local preview. */
.home-mirror #hep-preview .hp-hero::before,
.home-mirror #hep-preview .hp-section::before{display:block}

.home-mirror #hep-preview .hp-hero::before{display:block!important;width:auto;height:auto;inset:0;z-index:0;background-repeat:no-repeat}
/* Consistent muon tracks, matching the homepage stroke and palette. */
main:not(.home-mirror)>section::before{display:none}
main:not(.home-mirror)>section{--track:#7cba43;--track-fill:#fff}
main:not(.home-mirror)>section.blue{--track-fill:#315da1}
main:not(.home-mirror)>section.green{--track:#315da1;--track-fill:#7cba43}
.section-muon{position:absolute;left:0;top:0;width:52px;height:100%;z-index:2;pointer-events:none;color:var(--track);overflow:visible}
.section-muon path,.section-muon circle{stroke:currentColor;stroke-width:4;vector-effect:non-scaling-stroke}
.section-muon path{fill:none;stroke-dasharray:7 12;stroke-linecap:round}
.section-muon circle{fill:var(--track-fill)}
@media(max-width:800px){.section-muon{width:32px}}

/* White footer with the two institutional marks restored. */
.site-footer{display:block;background:#fff;color:#315da1;padding:38px 7% 28px}
.footer-logos{display:flex;align-items:center;justify-content:space-between;gap:32px;margin-bottom:28px}
.footer-logos a{display:block}.footer-logos img{display:block;width:145px;height:125px;object-fit:contain}.footer-logos img.footer-infn{width:165px}
.footer-info{display:flex;justify-content:space-between;gap:24px;align-items:center;flex-wrap:wrap}.footer-info>div{display:flex;flex-wrap:wrap;gap:24px}
@media(max-width:480px){.footer-logos img{width:115px;height:105px}.footer-logos img.footer-infn{width:135px}.footer-info{font-size:13px}}

/* Compact footer: marks at the sides, navigation and copyright centered. */
.site-footer{display:grid;grid-template-columns:165px minmax(0,1fr) 165px;align-items:center;gap:24px;padding:28px 7%;background:white;color:#315da1}
.site-footer>a{display:block}.site-footer img{display:block;width:145px;height:125px;object-fit:contain}.site-footer .footer-institution{justify-self:end}.site-footer .footer-institution img{width:165px}
.footer-center{text-align:center}.footer-center nav{display:flex;justify-content:center;gap:28px;font-size:15px;font-weight:normal}.footer-center nav a{text-decoration:underline}.footer-center p{margin:14px 0 0;font-size:13px}
@media(max-width:600px){.site-footer{grid-template-columns:85px minmax(0,1fr) 95px;gap:12px;padding:25px 5%}.site-footer img{width:85px;height:90px}.site-footer .footer-institution img{width:95px}.footer-center nav{gap:10px;font-size:13px}.footer-center p{font-size:11px;white-space:nowrap}}

/* A single irregular, continuous track across all sections and headings. */
main{position:relative}
.section-muon,#hep-preview .hp-muon{display:none!important}
main:not(.home-mirror) h1::before,main:not(.home-mirror) h2::before,
#hep-preview .hp-intro h1::before,#hep-preview h2::before,#hep-preview .hp-project::after{display:none!important}
.continuous-muon{position:absolute;inset:0;width:100%;height:100%;z-index:3;pointer-events:none;overflow:hidden}
.continuous-muon path{fill:none;stroke-width:4;stroke-dasharray:7 12;stroke-linecap:round;vector-effect:non-scaling-stroke}
.continuous-muon circle{stroke-width:4;vector-effect:non-scaling-stroke}

.upcoming-events{display:grid;grid-template-columns:1fr 1fr;gap:45px;align-items:center;padding-top:40px;padding-bottom:50px}.upcoming-events .upcoming-copy>p{font-size:20px;max-width:510px}.upcoming-events::after{opacity:.32}.map-figure{margin:0;align-self:center}.italy-map{display:block;width:100%;max-height:640px;overflow:visible}.map-figure figcaption{text-align:center;font-size:13px}.city-pin{cursor:pointer}.city-pin circle{transition:stroke-width .15s}.italy-map a:hover circle,.italy-map a:focus circle{stroke-width:7}.upcoming-list{margin:30px 0;display:grid;grid-template-columns:1fr 1fr;gap:24px}.upcoming-list article{border-top:4px solid #7cba43;padding-top:20px;scroll-margin-top:20px}.upcoming-list .eyebrow{font-size:10px;margin-bottom:10px}.upcoming-list h2{font-size:30px;margin-bottom:12px}.upcoming-list p{font-size:15px}.upcoming-copy>.text-link{font-weight:bold;font-size:15px}
@media(max-width:800px){.upcoming-events{grid-template-columns:1fr;gap:20px}.map-figure{grid-row:2}.italy-map{max-height:510px}.upcoming-list{margin:25px 0;gap:16px}.upcoming-list h2{font-size:25px}}

.upcoming-list .event-date{font-weight:bold;font-size:14px}.event-links{display:flex;flex-direction:column;gap:10px}.event-links a{font-weight:bold;font-size:13px}.upcoming-list .event-pending{font-size:13px}.upcoming-events{align-items:start}.upcoming-events .map-figure{align-self:center}@media(max-width:480px){.upcoming-list{grid-template-columns:1fr}}

.events .archive-2026-card{padding:0;overflow:hidden}.events .archive-2026-card img{height:190px;object-fit:cover;border-radius:0}.events .archive-2026-card figcaption{margin:0;padding:25px;display:flex;flex-direction:column;gap:15px;flex:1}.archive-place{text-transform:uppercase;font-size:12px;letter-spacing:.12em;font-weight:bold}.archive-2026-card h3{font-size:24px;margin:0;line-height:1.25}.archive-year{font-size:14px;font-weight:normal;margin-top:auto}.archive-2026-card a{font-size:14px}.events .text-card{min-height:220px}.events .text-card figcaption{justify-content:center}.archive-2026-card.text-card .archive-year{margin-top:8px}

.events .event-logo-card img.event-logo{object-fit:contain;padding:28px;width:100%;height:160px;background:#fff;box-sizing:border-box}

.events .event-logo-card img.event-logo[src*="logo-s4a.svg"]{background:#315da1}

.events .event-logo-card img.event-logo[src*="ERNEST_long"]{object-fit:cover;object-position:top;padding:50px 24px 20px}

.events .event-logo-card img.etna-logo{background:#315da1}

.events .event-logo-card img.event-logo[src$="foto/ernest-eventi.png"]{height:auto;aspect-ratio:auto;object-fit:contain;padding:0;display:block}

.illustrative-photo{font-size:11px;font-weight:normal}

/* Bilingual navigation */
.site-header .language-switch{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:13px;line-height:1;flex-shrink:0}
.site-header .language-switch a{padding:10px 5px;text-decoration:none;border-bottom:2px solid transparent;font-size:13px;letter-spacing:.03em}
.site-header .language-switch a[aria-current="true"]{border-color:#7cba43;font-weight:800}
.site-header .language-switch a:hover,.site-header .language-switch a:focus-visible{background:#315da1;color:#fff}
@media(min-width:1001px) and (max-width:1250px){.site-header nav{gap:12px}.site-header nav>a,.site-header summary{font-size:13px}}

/* Current page: the same green underline as the language selector. */
.site-header nav > a,
.site-header .navgroup > summary {
  padding-top: 10px;
  padding-bottom: 10px;
  border-bottom: 2px solid transparent;
}
.site-header nav a[aria-current="page"],
.site-header nav a[aria-current="location"],
.site-header .navgroup > summary.current-section {
  border-bottom: 2px solid #7cba43;
}
.site-header .navgroup > div {
  top: calc(100% + 4px);
}
.site-header .navgroup > div a {
  border-bottom: 2px solid transparent;
}
.site-header .navgroup > div a[aria-current="page"],
.site-header .navgroup > div a[aria-current="location"] {
  border-bottom-color: #7cba43;
}
/* Conference contributions */
.events .conference-card{padding:0;overflow:hidden}
.events .conference-card img{width:100%;height:170px;object-fit:contain;padding:20px;border-radius:0;background:white}
.events .conference-card img.conference-cover{object-fit:cover;padding:0}
.conference-card figcaption{padding:24px;margin:0;display:flex;flex-direction:column;gap:14px;flex:1}
.conference-card h3{font-size:23px;line-height:1.25;margin:0;letter-spacing:-.025em}
.conference-card .conference-date,.conference-card .conference-ref{font-size:14px;line-height:1.5;font-weight:normal;margin:0}
.conference-card .conference-ref{font-size:12px}
.conference-card .conference-description{font-size:15px;line-height:1.55;font-weight:normal;margin:0}
.conference-card .conference-link{font-size:14px;margin-top:auto;padding-top:8px;align-self:flex-start}
