/* Fira de Muntanya · Pantalles editorials per tipus d'activitat (2026).
   Recursos gràfics locals, dades de la Fira, cap informació inventada. */
body:not(.is-fira-home) #main{width:min(1370px,calc(100% - 46px));padding-top:18px}
.category-banner,.event-detail-banner{position:relative;isolation:isolate;overflow:hidden;border-radius:19px;background:#20392f;color:#fff}
.category-banner{min-height:275px;display:flex;align-items:flex-end}
.category-banner-image,.event-detail-banner>img,.category-empty-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2}
.category-banner:after,.event-detail-banner:after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,rgba(8,25,21,.85),rgba(8,25,21,.34) 65%,rgba(8,25,21,.1)),linear-gradient(0deg,rgba(6,21,14,.32),transparent 65%)}
.category-empty-photo{background:linear-gradient(135deg,#42664d,#142d28)}
.category-banner-text{width:min(730px,100%);padding:40px clamp(23px,4.2vw,60px);position:relative}
.category-banner-kicker,.event-detail-badge{display:inline-flex;align-items:center;gap:8px;font-size:12px;letter-spacing:.06em;font-weight:800;color:#e2f0df}
.category-banner-text h1{font-size:clamp(38px,5.8vw,74px);letter-spacing:-.054em;line-height:1.03;margin:13px 0 10px;color:#fff}
.category-banner-text>strong{display:block;font-size:clamp(17px,2.1vw,23px);font-weight:800;letter-spacing:-.02em}
.category-banner-text>p{font-size:14px;line-height:1.55;color:#f1f6f1;max-width:480px;margin:9px 0 17px}
.category-banner-count{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1px solid #ffffff64;border-radius:999px;background:#0d2d2288;color:#fff;font-size:12px;font-weight:800}
.category-banner.cat-talk:after{background:linear-gradient(90deg,#100f2de8,#1e316479 68%,#0002)}
.category-banner.cat-workshop:after{background:linear-gradient(90deg,#3c1c08e8,#85502f77 68%,#0002)}
.category-banner.cat-family:after{background:linear-gradient(90deg,#2d1032e8,#70335c73 68%,#0002)}
.category-banner.cat-culture:after{background:linear-gradient(90deg,#101c35e8,#23518472 68%,#0002)}
.category-listing{padding:16px 0 40px}
.category-navigation{display:flex;gap:8px;align-items:center;min-width:0;padding:4px 0 13px;overflow-x:auto;scrollbar-width:thin;scroll-padding-inline:8px}
.category-navigation a{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:0 0 auto;min-height:39px;padding:8px 13px;border:1px solid #dce7dc;border-radius:999px;background:#fff;color:#355142;font-size:12px;font-weight:760;white-space:nowrap;transition:background .16s,border-color .16s}
.category-navigation a svg{flex:0 0 auto}
.category-navigation a:is(:hover,:focus-visible){border-color:#87aa94;background:#f0f7f0}
.category-navigation a.active{background:#155a43;color:#fff;border-color:#155a43;box-shadow:0 3px 10px #11392119}
.category-navigation .cat-talk:not(.active) svg{color:#6940b4}.category-navigation .cat-workshop:not(.active) svg{color:#b55d23}
.category-navigation .cat-family:not(.active) svg{color:#a53c87}.category-navigation .cat-culture:not(.active) svg{color:#245fbd}
.category-navigation .cat-excursion:not(.active) svg{color:#207347}
.category-intro{display:flex;align-items:flex-start;gap:9px;background:#edf4ec;color:#3b6347;border:1px solid #dfe9de;border-radius:12px;margin:4px 0 17px;padding:11px 14px;font-size:13px;line-height:1.5}
.category-intro svg{color:#18724c;flex:0 0 auto;margin-top:1px}
.category-listing .route-library-link{margin:0 0 14px}
.category-listing .route-library-link .btn{box-shadow:none}
.category-listing .filters{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:0 0 17px;padding:11px;border-color:#e4ebe3;border-radius:13px;box-shadow:0 3px 18px #18352008}
.category-listing .filters>input{min-width:220px;flex:2 1 270px;min-height:42px}
.category-listing .filters select{min-width:0;flex:1 1 155px;min-height:42px;border-radius:9px;font-size:13px}
.category-listing .filters select[hidden]{display:none!important}
.category-results-head{display:flex;justify-content:space-between;align-items:center;gap:14px;padding:1px 2px 13px}
.category-results-head h2{font-size:20px;line-height:1.3;letter-spacing:-.025em;color:#122f24;margin:0}
.category-results-head .result-count{margin:0;font-size:12px;color:#557060}
.category-listing .category-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px}
.category-listing .event-card{min-width:0;border:1px solid #e1e8df;background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 2px 15px #14331d10;display:flex;flex-direction:column;transition:box-shadow .18s,transform .18s}
.category-listing .event-card:hover{box-shadow:0 12px 27px #18351d20;transform:translateY(-3px)}
.category-listing .category-card-image{height:184px;position:relative;overflow:hidden;background:#e7eee8}
.category-listing .category-card-image>img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s}
.category-listing .event-card:hover .category-card-image>img{transform:scale(1.035)}
.category-listing .category-card-label{position:absolute;bottom:10px;left:11px;max-width:calc(100% - 67px);display:inline-flex;align-items:center;gap:5px;background:#e9f3e9;color:#175b3e;border:1px solid #e6efe6;border-radius:999px;padding:6px 10px;font-weight:800;font-size:11px;line-height:1.2}
.category-listing .category-card-label svg{flex:0 0 auto}
.category-listing .fair-type-talk .category-card-label{background:#f1e8fb;color:#64319c}
.category-listing .fair-type-workshop .category-card-label{background:#fff0e6;color:#a24d1c}
.category-listing .fair-type-family .category-card-label{background:#f9e9f3;color:#9c3176}
.category-listing .fair-type-culture .category-card-label{background:#e9effb;color:#234d9d}
.category-listing .category-card-image .fav{position:absolute;right:11px;top:11px;z-index:3;display:grid;place-items:center;width:34px;height:34px;background:#fffdf6f0;border:1px solid #e6e9e3;box-shadow:0 2px 9px #101f1422;font-size:22px;color:#324e3c}
.category-listing .category-card-image .fav[aria-pressed=true]{color:#ae2e54;background:#fff0f4}
.category-listing .card-body{padding:14px 16px 15px;display:flex;flex-direction:column;flex:1 1 auto;min-width:0}
.category-card-when{display:flex;align-items:flex-start;gap:7px;color:#526b58;font-size:12px;line-height:1.4;font-weight:740}
.category-card-when svg,.category-card-place svg{flex:0 0 auto;color:#167047}
.category-listing .card-body h3{color:#142b22;font-size:17px;line-height:1.27;letter-spacing:-.026em;margin:8px 0 6px;overflow-wrap:anywhere}
.category-listing .card-body .category-card-desc{font-size:12px;line-height:1.5;color:#637368;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;margin:0 0 9px}
.category-card-place{display:flex;align-items:flex-start;gap:6px;margin-top:auto!important;color:#526d59;font-size:12px!important}
.category-card-place a{font-weight:740;color:#246145}
.category-listing .card-footer{margin:10px 0 0;padding-top:10px;border-top:1px solid #eff2ed}
.category-listing .card-footer a{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:850;color:#175a40}
.category-listing .card-footer svg{width:15px;height:15px}
.category-listing .event-card .card-footer a::after{content:"";position:absolute;inset:0}
.category-listing .event-card .fav,.category-listing .event-card .event-venue-link{position:relative;z-index:3}
.category-listing .event-card .category-card-image .fav{position:absolute}
.category-listing .empty{margin-top:15px}
.event-detail-banner{height:clamp(270px,33vw,385px);display:flex;align-items:flex-end}
.event-detail-banner-body{padding:clamp(20px,4vw,47px);max-width:850px}
.event-detail-banner-body h1{font-size:clamp(29px,4.4vw,56px);line-height:1.06;letter-spacing:-.047em;color:#fff;margin:11px 0 9px;max-width:18ch}
.event-detail-banner-body p{font-size:15px;font-weight:600;line-height:1.5;margin:0 0 16px;color:#eff6ed;max-width:590px}
.event-detail-badge{background:#f0e9fc;color:#563199;padding:7px 12px;border-radius:99px;letter-spacing:0}
.fair-type-excursion .event-detail-badge{background:#e2f3e6;color:#186040}
.fair-type-workshop .event-detail-badge{background:#ffeddd;color:#914814}
.fair-type-culture .event-detail-badge{background:#e9efff;color:#204995}
.fair-type-family .event-detail-badge{background:#fce6ef;color:#8f2671}
.event-detail-banner-meta{display:flex;align-items:center;gap:8px 18px;flex-wrap:wrap}
.event-detail-banner-meta span{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:720;color:#fff}
.event-detail-sections{display:flex;align-items:center;gap:4px;overflow-x:auto;scrollbar-width:thin;padding:6px 4px 0;margin-bottom:9px;border-bottom:1px solid #e0e9df}
.event-detail-sections button{appearance:none;background:none;border:0;border-bottom:3px solid transparent;min-height:46px;flex:0 0 auto;padding:10px 15px;font-size:13px;font-weight:800;color:#52675c;cursor:pointer}
.event-detail-sections button:first-child{border-color:#176448;color:#124a35}
.event-detail-sections button:hover{color:#124a35;background:#eef5ef}
.category-detail-wrap .detail-context-links{margin:8px 0 12px;display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.category-detail-wrap .detail{grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr);gap:18px;align-items:start}
.category-detail-wrap .detail>div{min-width:0}
.category-detail-wrap .detail>.panel{position:sticky;top:95px}
.category-detail-wrap .panel{border-color:#e1e9e0;border-radius:15px;box-shadow:0 2px 13px #11321d0c}
.category-detail-wrap .event-detail-description{margin-top:0!important}
.category-detail-wrap .event-detail-description h2,.category-detail-wrap .event-detail-route h2,.category-detail-wrap .event-detail-practical h2{font-size:22px;letter-spacing:-.03em;color:#133525;margin:2px 0 14px}
.category-detail-wrap .event-detail-description p{font-size:14px;line-height:1.75;white-space:pre-line}
.category-detail-wrap .event-detail-route{margin-top:15px!important}
.category-detail-wrap .event-detail-route .map-view{min-height:320px}
.category-detail-wrap .elevation-graph{width:100%;height:auto}
.category-detail-wrap .event-detail-practical .meta-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.category-detail-wrap .event-detail-practical .meta-grid>div{min-width:0}
.category-detail-wrap .event-detail-practical .btn{min-height:44px}
.category-detail-wrap .session-options{margin:18px 0;border-radius:15px}
.category-detail-wrap .detail-location{margin-top:16px}
.category-detail-wrap .detail-location h2{font-size:17px}
.category-detail-wrap .detail-venue-map{min-height:210px}
.category-detail-wrap .event-tags{display:flex;flex-wrap:wrap;gap:6px;margin-top:13px}
.category-detail-wrap .event-tags span{border-radius:99px;background:#eaf2eb;color:#2c5940;padding:6px 9px;font-size:11px;font-weight:700}
.category-detail-wrap [id^="event-"]{scroll-margin-top:136px}
.category-detail-wrap #booking-availability{display:flex;flex-direction:column;gap:10px;padding:10px 0}
.category-detail-wrap #booking-availability .btn{width:100%}
.category-detail-wrap .fira-travel-modes{display:flex;flex-wrap:wrap;gap:7px}
.category-detail-wrap .fira-travel-modes a{font-size:11px}
@media(min-width:1000px){
 .category-listing .category-cards{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media(max-width:1050px){
 .category-listing .category-cards{grid-template-columns:repeat(3,minmax(0,1fr))}
 .category-detail-wrap .detail{grid-template-columns:minmax(0,1.1fr) minmax(250px,.9fr)}
}
@media(max-width:780px){
 body:not(.is-fira-home) #main{width:min(100% - 24px,700px);padding-top:12px;padding-bottom:90px}
 .category-banner{min-height:230px;border-radius:14px}
 .category-banner-text{padding:24px}
 .category-banner-text h1{font-size:clamp(37px,9vw,50px)}
 .category-banner-text>strong{font-size:17px}
 .category-banner-text>p{font-size:13px}
 .category-navigation{margin:0 -3px;padding:6px 3px 14px;gap:6px}
 .category-navigation a{min-height:38px;padding:8px 10px;font-size:12px}
 .category-intro{font-size:12px}
 #main .category-listing .filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:10px;gap:8px}
 #main .category-listing .filters>input{grid-column:1/-1;min-width:0;font-size:16px;flex:auto}
 #main .category-listing .filters select{min-width:0;max-width:100%;width:100%;font-size:13px}
 .category-listing .category-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
 .category-listing .category-card-image{height:150px}
 .category-listing .card-body{padding:11px 12px}
 .category-listing .card-body h3{font-size:15px}
 .category-listing .category-card-label{font-size:10px;padding:5px 8px}
 .category-listing .card-footer{margin-top:8px}
 .category-detail-wrap .detail{display:flex;flex-direction:column;gap:13px}
 .category-detail-wrap .detail>div,.category-detail-wrap .detail>.panel{width:100%}
 .category-detail-wrap .detail>.panel{position:static;order:-1}
 .event-detail-banner{height:clamp(310px,60vw,380px);border-radius:14px}
 .event-detail-banner-body{padding:22px}
 .event-detail-banner-body h1{font-size:clamp(30px,6vw,42px)}
 .event-detail-banner-body p{font-size:13px}
 .event-detail-banner-meta span{font-size:12px}
 .event-detail-sections{margin:0;gap:0}
 .event-detail-sections button{font-size:12px;padding:10px 12px}
 .category-detail-wrap .detail-context-links{margin:10px 0}
 .category-detail-wrap .event-detail-route .map-view{min-height:260px}
 .category-detail-wrap .session-grid{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:480px){
 .category-banner{min-height:208px}
 .category-banner-text{padding:19px}
 .category-banner-text h1{font-size:40px;margin:8px 0}
 .category-banner-text>p{display:none}
 .category-banner-count{margin-top:12px}
 .category-results-head h2{font-size:18px}
 .category-listing .category-cards{grid-template-columns:minmax(0,1fr)}
 .category-listing .category-card-image{height:177px}
 .category-listing .card-body h3{font-size:17px}
 .category-listing .category-card-desc{-webkit-line-clamp:2}
 .category-detail-wrap .event-detail-practical .meta-grid{grid-template-columns:minmax(0,1fr)}
 .category-detail-wrap .event-detail-banner-body{padding:19px}
 .event-detail-banner{height:325px}
 .event-detail-banner-body h1{font-size:33px}
 .event-detail-banner-body p{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
}
@media(prefers-reduced-motion:reduce){.category-listing .event-card,.category-listing .category-card-image>img{transition:none}}
@media print{.category-navigation,.event-detail-sections,.category-listing .filters{display:none!important}.category-detail-wrap .detail>.panel{position:static}.category-banner,.event-detail-banner{print-color-adjust:exact}}

/* Dropdown compacte per a la navegació principal. */
.desktop-nav .public-types-menu{position:relative;color:#365343}
.desktop-nav .public-types-menu summary{display:flex;align-items:center;gap:4px;cursor:pointer;list-style:none;padding:10px 11px;border-radius:10px;font-weight:760;font-size:13px;white-space:nowrap}
.desktop-nav .public-types-menu summary::-webkit-details-marker{display:none}
.desktop-nav .public-types-menu summary svg{height:14px;width:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.desktop-nav .public-types-menu[open] summary,.desktop-nav .public-types-menu summary:hover{background:#e9f3eb;color:#145c3e}
.desktop-nav .public-types-list{position:absolute;top:calc(100% + 8px);left:0;width:230px;background:#fff;border:1px solid #dee9e0;padding:7px;box-shadow:0 18px 42px #18342124;border-radius:13px;z-index:85}
.desktop-nav .public-types-list a{display:flex;align-items:center;gap:11px;padding:11px 10px;min-height:42px;border-radius:9px;font-size:13px;font-weight:760;white-space:nowrap}
.desktop-nav .public-types-list a:hover{background:#eef7ef}
.desktop-nav .public-types-list img{width:21px;height:21px;object-fit:contain}
#fira-mobile-menu a{min-height:43px}
.category-detail-wrap .event-detail-route{margin-top:15px;padding:14px;background:#fff;border:1px solid #e1e9e0;border-radius:15px;min-width:0}
.category-detail-wrap .event-detail-route h2{font-size:21px;letter-spacing:-.025em;margin:0 0 13px}
.category-detail-wrap .fira-trail-viewer{min-width:0}
.category-detail-wrap .session-options{scroll-margin-top:110px}
.kind-navigation{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:2px 0 16px}
.kind-navigation span{font-size:12px;color:#657769;font-weight:760;margin-right:4px}
.kind-navigation a{border-radius:99px;padding:6px 10px;border:1px solid #dce8dc;background:#fff;color:#2b5b3d;font-size:12px;font-weight:730}
.kind-navigation a:hover{background:#e8f4e9;border-color:#9ab99d}
.subcategory-heading{margin:3px 0 14px;padding:13px 17px;background:#fff;border-radius:12px;border:1px solid #e1e9df}
.subcategory-heading h2{margin:0 0 3px;font-size:20px;letter-spacing:-.02em}
.subcategory-heading p{margin:0;color:#526e59;font-size:13px}
@media(max-width:1140px){.desktop-nav .public-types-menu summary{padding:9px 7px}.desktop-nav .public-types-list{left:auto;right:0}}
@media(max-width:920px){.desktop-nav .public-types-menu{display:none}}
@media(max-width:780px){.kind-navigation{flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px}.kind-navigation span{flex:0 0 auto}.kind-navigation a{flex:0 0 auto}.category-detail-wrap .event-detail-route{padding:10px}}

/* Perfils reutilitzables de ponents · Fira de Muntanya */
.fira-speakers{margin-top:17px!important;scroll-margin-top:124px}
.fira-speakers>h2{display:flex;gap:9px;align-items:center;color:#153d2b;font-size:22px;margin:0 0 16px}
.fira-speakers-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:13px}
.fira-speaker-card{display:flex;gap:15px;padding:16px;background:#f8faf7;border:1px solid #e3eae1;border-radius:14px;align-items:flex-start;min-width:0}
.fira-speaker-photo,.fira-speaker-avatar{flex:0 0 96px;width:96px;height:112px;border-radius:11px;object-fit:cover;background:#e5eee5;display:grid;place-items:center;color:#3a7251}
.fira-speaker-info{flex:1;min-width:0}
.fira-speaker-role{display:inline-block;font-size:11px;font-weight:800;color:#27724e;background:#e8f2e8;padding:5px 8px;border-radius:99px;margin-bottom:7px}
.fira-speaker-info h3{font-size:18px;letter-spacing:-.03em;line-height:1.2;color:#163b29;margin:0 0 8px}
.fira-speaker-info p{font-size:13px;line-height:1.65;white-space:pre-line;overflow-wrap:anywhere;color:#42594a;margin:0 0 10px}
.fira-speaker-info a{display:inline-flex;align-items:center;gap:5px;color:#155a43;font-weight:750;font-size:12px}
.speaker-activity-config{border:1px solid #dce8dc;border-radius:13px;background:#f6faf5;padding:15px;margin:6px 0}
.speaker-activity-config h3{display:flex;align-items:center;gap:9px;font-size:17px;letter-spacing:-.02em;margin:0 0 7px}
.speaker-activity-config>p{color:#617464;font-size:12px;line-height:1.5;margin:0 0 12px}
.speaker-choice{display:grid;grid-template-columns:22px minmax(130px,1fr) minmax(100px,.6fr) 78px;align-items:center;gap:10px;padding:10px 8px;border-top:1px solid #e2eae1}
.speaker-choice input[type=checkbox]{width:18px;height:18px;accent-color:#155a43}
.speaker-choice>span{font-size:13px;font-weight:800;color:#234730;min-width:0}
.speaker-choice input:not([type=checkbox]){min-height:38px;min-width:0;width:100%;border:1px solid #cadbcc;border-radius:9px;padding:7px 9px;background:#fff;font-size:13px}
@media(max-width:720px){.fira-speakers-list{grid-template-columns:minmax(0,1fr)}.fira-speaker-photo,.fira-speaker-avatar{width:82px;height:92px;flex-basis:82px}.speaker-choice{grid-template-columns:22px 1fr 66px}.speaker-choice input:not([type=checkbox]):not([type=number]){grid-column:2/3}.speaker-choice input[type=number]{grid-column:3/4;grid-row:2/3}.speaker-choice>span{grid-column:2/4}}
@media(max-width:390px){.fira-speaker-card{gap:10px;padding:11px}.fira-speaker-photo,.fira-speaker-avatar{width:69px;height:85px;flex-basis:69px}.fira-speaker-info h3{font-size:16px}}

/* Fitxa d'esdeveniment · jerarquia visual 2026 */
.category-detail-wrap{--fira-line:#dce7e0;--fira-ink:#173a2c}
.category-detail-wrap .event-detail-banner{border-radius:24px;min-height:320px;box-shadow:0 14px 34px rgba(18,42,32,.12)}
.category-detail-wrap .event-detail-banner-body h1{font-weight:820;letter-spacing:-.04em;text-wrap:balance}
.category-detail-wrap .detail>.panel,.category-detail-wrap .event-detail-description,.category-detail-wrap .event-detail-route{border-radius:20px;box-shadow:none;border:1px solid var(--fira-line)}
.category-detail-wrap .event-detail-sections{gap:8px;margin:13px 0 17px;padding:4px 0 9px}
.category-detail-wrap .event-detail-sections button{border:1px solid transparent;border-radius:11px;padding:10px 15px;font-size:13px;font-weight:680}
.category-detail-wrap .event-detail-sections button:first-child{border:1px solid #cbe1d4;background:#edf6ef;color:#155c42}
.category-detail-wrap .fira-travel-modes,.fira-map-details-routes .fira-travel-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;width:100%;margin:18px 0 4px}
.fira-travel-modes .fira-travel-heading{grid-column:1/-1;font-size:13px;font-weight:750;letter-spacing:.01em;color:#214a36}
.category-detail-wrap .fira-travel-modes a.fira-travel-option,.fira-travel-modes a.fira-travel-option,.fira-map-details-routes .fira-travel-modes a.fira-travel-option{display:flex;align-items:center;justify-content:flex-start;gap:10px;min-height:52px;padding:11px 12px;border:1px solid #d8e4db;border-radius:14px;background:#f8fbf9;color:#193e2e;font-size:13px;font-weight:700;text-decoration:none;line-height:1.25;box-shadow:none;transition:background .15s,border-color .15s,transform .15s}
.fira-travel-modes .fira-travel-option svg:first-child{color:#14674a;flex-shrink:0}
.fira-travel-modes .fira-travel-option svg:last-child{margin-left:auto;opacity:.55;flex-shrink:0}
.fira-travel-modes a.fira-travel-option:hover{background:#ebf5ee;border-color:#a9c9b4;transform:translateY(-1px)}
.fira-travel-modes a.fira-travel-option:focus-visible{outline:3px solid #39866b;outline-offset:3px}
@media(max-width:720px){
 .category-detail-wrap .event-detail-banner{border-radius:17px;min-height:300px}
 .category-detail-wrap .fira-travel-modes,.fira-map-details-routes .fira-travel-modes{grid-template-columns:1fr 1fr}
 .fira-travel-modes .fira-travel-option:last-child{grid-column:1/-1}
 .category-detail-wrap .fira-travel-modes a.fira-travel-option,.fira-travel-modes a.fira-travel-option{min-height:54px;font-size:13px}
}


/* Contracte visual de la maqueta aportada · pàgines públiques. */
body:not(.is-fira-home) #main{width:min(1460px,calc(100% - 28px));padding-top:8px}
.category-banner{height:220px;min-height:220px;border-radius:0;align-items:end}
.category-banner:after{background:linear-gradient(0deg,rgba(0,0,0,.73),rgba(0,0,0,.02) 72%)!important}
.category-banner-text{padding:20px 26px;max-width:780px}
.category-banner-text h1{font-size:clamp(29px,3vw,45px);margin:2px 0 3px;line-height:1.05;letter-spacing:-.035em}
.category-banner-text>strong{font-size:16px;line-height:1.3}
.category-banner-text>p,.category-banner-count,.category-banner-kicker{display:none}
.category-listing{padding-top:0!important}
.category-breadcrumb{display:flex;align-items:center;gap:9px;padding:13px 5px 11px;color:#45604e;font-weight:700;font-size:12px}
.category-breadcrumb a{color:#176444;text-decoration:none}
.category-design-talk .category-navigation{background:transparent;padding-bottom:9px}
.category-listing .category-navigation a{border-radius:9px;min-height:32px;padding:6px 10px;background:#edf2f3;font-size:11px}
.category-listing .category-navigation a.active{background:#17543e;color:#fff}
.category-listing .kind-navigation{margin:0 0 8px;padding-bottom:3px}
.category-listing .kind-navigation a{border-radius:8px;background:#ecf3ed}
.category-listing .filters{padding:0!important;border:none;box-shadow:none;margin:10px 0 13px;gap:7px}
.category-listing .filters input,.category-listing .filters select{height:38px;min-height:38px!important;font-size:12px!important;border-radius:7px}
.category-listing .category-results-head{padding:0 2px 9px}
.category-listing .category-results-head .result-count{font-size:12px;color:#1b3224;font-weight:850}
.category-listing .category-cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.category-listing .event-card{border-radius:9px;box-shadow:0 1px 7px #12361b13}
.category-listing .category-card-image{height:168px}
.category-listing .card-body{padding:10px 11px 11px}
.category-listing .card-body h3{font-size:15px;margin:6px 0;line-height:1.23}
.category-listing .category-card-when{font-size:11px;line-height:1.45}
.category-listing .category-card-desc{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;font-size:11px;line-height:1.4;color:#637368;margin:4px 0 7px}
.category-listing .category-card-place{font-size:11px!important;line-height:1.4}
.category-listing .category-card-label{border-radius:7px;padding:4px 7px;bottom:7px;left:7px;font-size:10px}
.category-listing .card-footer{border:0;padding-top:2px;margin:6px 0 0}
.category-listing .card-footer a{font-size:11px}
.reference-detail{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.82fr);column-gap:18px;padding-top:5px;align-items:start}
.reference-detail>.event-detail-banner{grid-column:1;grid-row:1;height:auto;min-height:0;background:#fff;border:0;border-radius:9px;display:flex;flex-direction:column;overflow:visible}
.reference-detail>.event-detail-banner:after{display:none}
.reference-detail>.event-detail-banner>img,.reference-detail>.event-detail-banner>.category-empty-photo{position:relative;inset:auto;width:100%;height:clamp(235px,24vw,340px);border-radius:10px;z-index:auto;object-fit:cover}
.reference-detail>.event-detail-banner-body{padding:13px 0 7px;max-width:none;color:#142e21;width:100%}
.reference-detail>.event-detail-banner-body h1{max-width:none;color:#142a1f;font-size:clamp(24px,2.6vw,34px);font-weight:860;margin:7px 0;letter-spacing:-.035em}
.reference-detail>.event-detail-banner-body p{color:#627366;font-size:13px;margin:0 0 10px}
.reference-detail>.event-detail-banner-meta span{color:#3a5544;font-size:12px}
.reference-detail>.event-detail-banner-meta svg{color:#1e6746}
.reference-detail>.event-detail-sections{grid-column:1;grid-row:2;margin:0 0 8px;border-color:#e0e8df}
.reference-detail>.event-detail-sections button{min-height:38px;padding:8px 11px;font-size:12px}
.reference-detail>.detail-context-links{grid-column:1/-1;grid-row:0;margin:0 0 6px;order:-1}
.reference-detail>.detail-context-links .btn{font-size:12px;min-height:32px;padding:5px 10px;border:0;background:transparent;color:#1f6146}
.reference-detail>.detail-context-links>a:not(.btn){font-size:11px}
.reference-detail>.detail{display:contents}
.reference-detail>.detail>div:first-child{grid-column:1;grid-row:3;min-width:0}
.reference-detail>.detail>.event-detail-practical{grid-column:2;grid-row:1/4;position:sticky;top:76px;border-radius:10px;padding:15px;background:#fff;box-shadow:0 1px 9px #153b1d15;border:1px solid #e4ece4}
.reference-detail .event-detail-practical h2{font-size:15px;margin:0 0 12px}
.reference-detail .event-detail-practical .meta-grid{display:grid;grid-template-columns:1fr;gap:9px}
.reference-detail .event-detail-practical .meta-grid>div{padding:6px 0;border-bottom:1px solid #ecf0ea;display:flex;justify-content:space-between;gap:9px}
.reference-detail .event-detail-practical .meta-grid small{font-size:11px;color:#5b7162}
.reference-detail .event-detail-practical .meta-grid strong{font-size:12px;max-width:70%;text-align:right}
.reference-detail .event-detail-practical .detail-location{margin:12px 0}
.reference-detail .event-detail-practical .detail-venue-map{height:185px;min-height:185px}
.reference-detail .event-detail-practical .button-row{display:flex;flex-wrap:wrap;gap:7px}
.reference-detail .event-detail-practical .button-row .btn{flex:1;min-height:39px;white-space:normal;font-size:12px}
.reference-detail .event-detail-description{border:0;box-shadow:none;padding:5px 0!important}
.reference-detail .event-detail-description h2{font-size:16px;margin:2px 0 7px}
.reference-detail .event-detail-description p{font-size:13px;line-height:1.65;margin:0}
.reference-detail .fira-speakers{margin-top:12px!important;border:0;box-shadow:none;padding:0}
.reference-detail .fira-speakers>h2{font-size:16px;gap:7px;margin:0 0 12px}
.reference-detail .fira-speakers-list{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:10px}
.reference-detail .fira-speaker-card{background:#f9fbf8;border-radius:10px;padding:11px;gap:11px}
.reference-detail .fira-speaker-photo,.reference-detail .fira-speaker-avatar{width:76px;height:82px;flex-basis:76px;border-radius:100%;object-fit:cover}
.reference-detail .fira-speaker-info h3{font-size:15px;margin:2px 0 6px}
.reference-detail .fira-speaker-info p{font-size:12px;line-height:1.55}
.reference-detail .fira-speaker-role{padding:3px 7px;font-size:10px}
.reference-detail .session-options{grid-column:1;grid-row:4;margin-top:12px}
@media(max-width:960px){.category-listing .category-cards{grid-template-columns:repeat(3,minmax(0,1fr))}.reference-detail{grid-template-columns:minmax(0,1.3fr) minmax(235px,.7fr);gap:12px}.reference-detail>.detail>.event-detail-practical{padding:10px}}
@media(max-width:720px){
 body:not(.is-fira-home) #main{width:calc(100% - 18px)}
 .category-banner{height:185px;min-height:185px}
 .category-banner-text{padding:15px 17px}
 .category-banner-text h1{font-size:31px}
 .category-banner-text>strong{font-size:13px}
 .category-listing .category-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
 .category-listing .category-card-image{height:135px}
 .category-listing .card-body h3{font-size:13px}
 .reference-detail{display:flex;flex-direction:column;gap:0}
 .reference-detail>.detail{display:flex;flex-direction:column;width:100%}
 .reference-detail>.detail>div:first-child,.reference-detail>.detail>.event-detail-practical{width:100%;order:initial;position:static}
 .reference-detail>.detail>.event-detail-practical{order:-1;margin-bottom:12px}
 .reference-detail>.event-detail-banner{order:0;width:100%}
 .reference-detail>.event-detail-banner>img{height:225px}
 .reference-detail>.event-detail-sections{order:1;width:100%}
 .reference-detail>.detail-context-links{order:-1;width:100%}
 .reference-detail>.detail{order:2}
 .reference-detail .fira-speakers-list{grid-template-columns:1fr}
 .reference-detail>.detail>.event-detail-practical .detail-location{margin-top:10px}
}
@media(max-width:430px){.category-listing .category-cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.category-listing .category-card-image{height:111px}.category-listing .category-card-when{font-size:10px}.category-listing .card-body{padding:8px}.category-listing .card-body h3{font-size:12px}.category-listing .category-card-desc{font-size:10px;line-height:1.35}.category-listing .category-card-label{font-size:9px}.reference-detail>.event-detail-banner>img{height:210px}}

/* Fix explicit grid tracks: breadcrumb first, media second, tabs third, content fourth. */
@media(min-width:721px){
.reference-detail>.detail-context-links{grid-column:1/-1;grid-row:1!important}
.reference-detail>.event-detail-banner{grid-column:1;grid-row:2!important}
.reference-detail>.event-detail-sections{grid-column:1;grid-row:3!important}
.reference-detail>.detail>div:first-child{grid-column:1;grid-row:4!important}
.reference-detail>.detail>.event-detail-practical{grid-column:2;grid-row:2/5!important}
.reference-detail>.session-options{grid-column:1;grid-row:5!important}
}


/* Fitxes i configuració específiques per tipus d'esdeveniment */
.reference-detail .fira-specific-details{border:0;box-shadow:none;padding:12px 0 4px;margin:9px 0}
.reference-detail .fira-specific-details h2{font-size:17px;display:flex;align-items:center;gap:8px;color:#153e29;margin:0 0 11px}
.reference-detail .fira-specific-agenda{white-space:pre-line;line-height:1.7;font-size:13px;color:#4c6353}
.fira-specific-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.fira-specific-field{display:flex;align-items:start;gap:9px;border:1px solid #e2eae0;padding:11px;border-radius:10px;background:#f8fbf7;min-width:0}
.fira-specific-field>svg{flex:0 0 18px;color:#196342}
.fira-specific-field span{display:flex;flex-direction:column;gap:3px;min-width:0}
.fira-specific-field small{font-size:11px;color:#63776a}
.fira-specific-field strong{font-size:12px;white-space:pre-line;overflow-wrap:anywhere;line-height:1.5;color:#1d412d}
.fira-config-specific{background:#f5f9f5;border:1px solid #dce9dc;border-radius:13px;padding:15px;margin-top:12px}
.fira-config-specific h3{font-size:16px;margin:0 0 5px}
.fira-config-specific>p{font-size:12px;color:#617366}
.fira-config-specific-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.fira-config-specific .field textarea{min-height:85px;resize:vertical}
@media(max-width:600px){.fira-specific-grid,.fira-config-specific-grid{grid-template-columns:minmax(0,1fr)}}


/* Contracte de modalitats 2026 — primera fitxa: ponència / xarrada.
   Colors i jerarquia només per a talk, sense alterar rutes, tallers o cultura. */
.reference-detail.fair-type-talk{--talk-accent:#b62934;--talk-pale:#fff0ef}
.reference-detail.fair-type-talk .event-detail-badge{background:var(--talk-pale);color:#92202a}
.reference-detail.fair-type-talk .event-detail-sections button:first-child{border-color:var(--talk-accent);color:#92202a}
.reference-detail.fair-type-talk .event-detail-sections button:hover{background:var(--talk-pale);color:#92202a}
.reference-detail.fair-type-talk .fira-speakers{border:1px solid #f1d8d7;border-radius:16px;background:#fff;padding:clamp(15px,2.6vw,25px)}
.reference-detail.fair-type-talk .fira-speakers h2{display:flex;align-items:center;gap:9px;color:#731d25;font-size:clamp(20px,2.5vw,27px);margin:0 0 17px}
.reference-detail.fair-type-talk .fira-speakers-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px}
.reference-detail.fair-type-talk .fira-speaker-card{display:flex;align-items:flex-start;gap:14px;background:#fffafa;border:1px solid #f0dfdc;border-radius:13px;padding:15px;min-width:0}
.reference-detail.fair-type-talk .fira-speaker-photo,.reference-detail.fair-type-talk .fira-speaker-avatar{width:88px;height:105px;flex:0 0 88px;object-fit:cover;border-radius:12px}
.reference-detail.fair-type-talk .fira-speaker-role{color:#962631;font-weight:800}
.reference-detail.fair-type-talk .fira-speaker-info{min-width:0;overflow-wrap:anywhere}
.reference-detail.fair-type-talk .fira-speaker-info h3{font-size:17px;line-height:1.25;color:#262422}
.reference-detail.fair-type-talk .fira-speaker-info p{line-height:1.55}
@media(max-width:430px){
 .reference-detail.fair-type-talk .fira-speakers{padding:13px}
 .reference-detail.fair-type-talk .fira-speakers-list{grid-template-columns:minmax(0,1fr)}
 .reference-detail.fair-type-talk .fira-speaker-card{padding:11px;gap:11px}
 .reference-detail.fair-type-talk .fira-speaker-photo,.reference-detail.fair-type-talk .fira-speaker-avatar{width:72px;height:88px;flex-basis:72px}
}


/* Taula redona: llenguatge editorial coral, independent de la ponència. */
.reference-detail.fair-type-talk:has(.fira-roundtable){--roundtable:#aa3031}
.reference-detail.fair-type-talk:has(.fira-roundtable) .event-detail-banner{border-radius:22px}
.reference-detail.fair-type-talk:has(.fira-roundtable) .event-detail-badge{background:#ffe9e7;color:#92262a}
.reference-detail .fira-roundtable{background:#fff8f5;border:1px solid #eed4cd;border-radius:18px;padding:clamp(17px,3vw,30px);box-shadow:0 4px 22px #66331b0c}
.reference-detail .fira-roundtable h2{font-size:clamp(23px,3vw,31px);color:#82292d;letter-spacing:-.035em;margin:0 0 5px}
.reference-detail .fira-roundtable-intro{font-size:13px;color:#785b53;margin:0 0 17px;line-height:1.6}
.reference-detail .fira-roundtable .fira-speakers-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:13px}
.reference-detail .fira-roundtable .fira-speaker-card{display:flex;flex-direction:column;gap:11px;align-items:stretch;background:#fff;border:1px solid #e9dbd5;border-radius:14px;padding:14px;box-shadow:0 2px 8px #55302409}
.reference-detail .fira-roundtable .fira-speaker-photo,.reference-detail .fira-roundtable .fira-speaker-avatar{width:100%;height:155px;max-width:none;flex:0 0 auto;object-fit:cover;object-position:center 25%;border-radius:10px}
.reference-detail .fira-roundtable .fira-speaker-role{display:inline-flex;background:#fcece8;color:#842d32;border-radius:5px;padding:4px 8px;font-size:11px;text-transform:uppercase;letter-spacing:.035em}
.reference-detail .fira-roundtable .fira-speaker-info h3{font-size:18px;margin:8px 0 4px;line-height:1.25}
.reference-detail .fira-roundtable .fira-speaker-info p{font-size:13px;line-height:1.6}
@media(max-width:560px){.reference-detail .fira-roundtable .fira-speakers-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.reference-detail .fira-roundtable .fira-speaker-card{padding:9px}.reference-detail .fira-roundtable .fira-speaker-photo,.reference-detail .fira-roundtable .fira-speaker-avatar{height:115px}.reference-detail .fira-roundtable .fira-speaker-info h3{font-size:14px}.reference-detail .fira-roundtable .fira-speaker-info p{font-size:12px}}
@media(max-width:350px){.reference-detail .fira-roundtable .fira-speakers-list{grid-template-columns:minmax(0,1fr)}}


/* Taller pràctic: sistema visual blau, informació operativa com a protagonista. */
.reference-detail.fair-type-workshop{--workshop-blue:#17618f;--workshop-ink:#123e59;--workshop-light:#eaf5fc}
.reference-detail.fair-type-workshop .event-detail-banner{border-radius:20px}
.reference-detail.fair-type-workshop .event-detail-banner:after{background:linear-gradient(90deg,#07283fe8,#1645648c 63%,#163d5650)}
.reference-detail.fair-type-workshop .event-detail-badge{background:#e4f4ff;color:#104f78}
.reference-detail.fair-type-workshop .event-detail-sections button:first-child{border-color:var(--workshop-blue);color:var(--workshop-ink)}
.reference-detail.fair-type-workshop .fira-workshop-details{background:#f5faff;border:1px solid #c9e3f4;border-radius:18px;padding:clamp(16px,2.5vw,26px);margin:15px 0}
.reference-detail.fair-type-workshop .fira-workshop-details h2{color:var(--workshop-ink);font-size:clamp(21px,2.5vw,26px);letter-spacing:-.025em}
.reference-detail.fair-type-workshop .fira-specific-agenda{font-size:14px;line-height:1.65;color:#2c516b;border-left:4px solid #348bc1;padding-left:13px}
.reference-detail.fair-type-workshop .fira-specific-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.reference-detail.fair-type-workshop .fira-specific-field{border:1px solid #d5e9f7;border-radius:12px;background:#fff;padding:15px;align-items:center}
.reference-detail.fair-type-workshop .fira-specific-field>svg{color:#1975ac}
.reference-detail.fair-type-workshop .fira-specific-field small{font-size:12px;color:#537187}
.reference-detail.fair-type-workshop .fira-specific-field strong{font-size:14px;color:#143e59}
@media(max-width:600px){.reference-detail.fair-type-workshop .fira-workshop-details{padding:14px}.reference-detail.fair-type-workshop .fira-specific-grid{grid-template-columns:minmax(0,1fr);gap:9px}}


/* Activitats infantils: llenguatge lila suau i lectura ràpida per a famílies. */
.reference-detail.fair-type-family{--family:#73459a;--family-light:#f8f0fc}
.reference-detail.fair-type-family .event-detail-banner{border-radius:22px}
.reference-detail.fair-type-family .event-detail-banner:after{background:linear-gradient(90deg,#28183bdc,#44305b7c 70%,#473e4c30)}
.reference-detail.fair-type-family .event-detail-badge{background:#f4e7ff;color:#653a85}
.reference-detail.fair-type-family .event-detail-sections button:first-child{border-color:#73459a;color:#603883}
.reference-detail.fair-type-family .fira-family-details{background:#fcf8ff;border:1px solid #e5d4ee;border-radius:20px;padding:clamp(16px,2.8vw,27px);margin:15px 0}
.reference-detail.fair-type-family .fira-family-details h2{color:#633885;font-size:clamp(21px,2.6vw,28px);letter-spacing:-.03em}
.reference-detail.fair-type-family .fira-family-details .fira-specific-agenda{border-left:4px solid #a47ac4;padding-left:14px;color:#675476}
.reference-detail.fair-type-family .fira-family-details .fira-specific-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}
.reference-detail.fair-type-family .fira-family-details .fira-specific-field{background:#fff;border:1px solid #ecdef2;border-radius:14px;padding:16px}
.reference-detail.fair-type-family .fira-family-details .fira-specific-field>svg{color:#8b57ad}
.reference-detail.fair-type-family .fira-family-details .fira-specific-field small{color:#765e85}
.reference-detail.fair-type-family .fira-family-details .fira-specific-field strong{color:#432f54;font-size:14px}
@media(max-width:600px){.reference-detail.fair-type-family .fira-family-details .fira-specific-grid{grid-template-columns:minmax(0,1fr)}}


/* Ruta — contracte 2026. Visor existent intacte: mapa damunt, perfil baix. */
.reference-detail.fair-type-excursion{--route-green:#276a49;--route-ink:#173e2c}
.reference-detail.fair-type-excursion .event-detail-banner{border-radius:22px}
.reference-detail.fair-type-excursion .event-detail-banner:after{background:linear-gradient(90deg,#0a2d23e8,#22583c7d 65%,#1b49303d)}
.reference-detail.fair-type-excursion .event-detail-badge{background:#e6f5e7;color:#1d613e}
.reference-detail.fair-type-excursion .event-detail-route{background:#f8fbf7;border:1px solid #d8e8db;border-radius:20px;padding:clamp(13px,2.4vw,25px)}
.reference-detail.fair-type-excursion .event-detail-route h2{color:#173e2c;font-size:clamp(22px,2.7vw,29px);letter-spacing:-.035em}
.reference-detail.fair-type-excursion .fira-trail-viewer{display:flex;flex-direction:column;gap:12px;min-width:0;overflow:visible}
.reference-detail.fair-type-excursion .fira-trail-viewer .map-view{width:100%;height:clamp(310px,44vw,520px);min-height:310px;border-radius:15px;overflow:hidden}
.reference-detail.fair-type-excursion .fira-trail-viewer .elevation-graph{display:block;width:100%;max-width:100%;height:auto;border-radius:12px;background:#fff}
@media(max-width:600px){
 .reference-detail.fair-type-excursion .event-detail-route{padding:11px}
 .reference-detail.fair-type-excursion .fira-trail-viewer .map-view{height:clamp(280px,55vh,400px);min-height:280px}
}


/* Visor JS real: map, altimetria i POI en una sola columna, amb el seu DOM reordenat. */
.reference-detail.fair-type-excursion .fira-trail-content .sample-view-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}
.reference-detail.fair-type-excursion .fira-trail-content .sample-map-wrap{grid-column:1;min-width:0;overflow:hidden;border:1px solid #d6e5d9;border-radius:16px 16px 0 0}
.reference-detail.fair-type-excursion .fira-trail-content .sample-profile{grid-column:1;min-width:0;margin:0;border:1px solid #d6e5d9;border-radius:0 0 16px 16px;background:#fff;padding:clamp(10px,2vw,18px)}
.reference-detail.fair-type-excursion .fira-trail-content .sample-elevation{width:100%;min-width:0;overflow:hidden}
.reference-detail.fair-type-excursion .fira-trail-content .sample-elevation svg{display:block;max-width:100%;width:100%;height:auto}
.reference-detail.fair-type-excursion .fira-trail-content .sample-pois{grid-column:1;min-width:0;margin:7px 0 0;border:1px solid #d6e5d9;border-radius:15px;background:#fff}
.reference-detail.fair-type-excursion .fira-trail-content .sample-pois-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,230px),1fr));gap:10px}
@media(max-width:600px){.reference-detail.fair-type-excursion .fira-trail-content .sample-view-grid{gap:9px}.reference-detail.fair-type-excursion .fira-trail-content .sample-pois-list{grid-template-columns:minmax(0,1fr)}}


/* Completar la jerarquia editorial de rutes a la SPA: fitxa, dades i inscripcions. */
.reference-detail.fair-type-excursion .event-detail-banner-body h1{letter-spacing:-.045em;line-height:1.07}
.reference-detail.fair-type-excursion .event-detail-banner-meta{display:flex;flex-wrap:wrap;gap:10px}
.reference-detail.fair-type-excursion .event-detail-banner-meta>span{background:#123b2cbd;border:1px solid #ffffff40;border-radius:999px;padding:8px 12px}
.reference-detail.fair-type-excursion .event-detail-description{background:#fff;border:1px solid #dce8de;border-radius:18px}
.reference-detail.fair-type-excursion .event-detail-description h2{color:#225a3d}
.reference-detail.fair-type-excursion .event-detail-practical{border:1px solid #cfe2d2;border-radius:18px;background:linear-gradient(180deg,#f3f9f2,#fff);min-width:0}
.reference-detail.fair-type-excursion .event-detail-practical h2{color:#195338}
.reference-detail.fair-type-excursion .event-detail-practical .btn{min-height:44px;border-radius:11px}
.reference-detail.fair-type-excursion .fira-trail-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr));gap:9px}
.reference-detail.fair-type-excursion .fira-trail-kpis>div{border:1px solid #d7e8da;background:#f1f8f2;border-radius:12px;padding:12px;min-width:0}
.reference-detail.fair-type-excursion .fira-trail-kpis strong{color:#18593a;font-size:clamp(17px,1.8vw,22px)}
@media(max-width:600px){.reference-detail.fair-type-excursion .fira-trail-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.reference-detail.fair-type-excursion .event-detail-banner-meta>span{padding:7px 10px}}


/* Presentació de llibres: tractament editorial coure, paper i tipografia. */
.reference-detail.fair-kind-book{--book:#90572c;--book-paper:#fffaf1}
.reference-detail.fair-kind-book .event-detail-banner{border-radius:18px;background:#443122}
.reference-detail.fair-kind-book .event-detail-banner:after{background:linear-gradient(90deg,#281b14ed,#67442d91 67%,#382a2450)}
.reference-detail.fair-kind-book .event-detail-banner-body h1{font-weight:850;letter-spacing:-.045em;line-height:1.06}
.reference-detail.fair-kind-book .event-detail-badge{background:#fff1d9;color:#70401e}
.reference-detail.fair-kind-book .event-detail-description,.reference-detail.fair-kind-book .fira-book-details{background:#fffaf2;border:1px solid #ecddc8;border-radius:16px;padding:clamp(16px,2.4vw,25px)}
.reference-detail.fair-kind-book .event-detail-description h2,.reference-detail.fair-kind-book .fira-book-details h2{color:#73421e;font-size:clamp(21px,2.5vw,28px)}
.reference-detail.fair-kind-book .fira-book-details .fira-specific-field{background:#fff;border:1px solid #eadcc9}
.reference-detail.fair-kind-book .fira-book-details .fira-specific-field>svg{color:#96572a}
.reference-detail.fair-kind-book .fira-speakers{background:#fff9ef;border:1px solid #efdfc8;border-radius:16px;padding:clamp(15px,2.2vw,23px)}
.reference-detail.fair-kind-book .fira-speakers h2{color:#73421e}
.reference-detail.fair-kind-book .fira-speaker-card{background:#fff;border:1px solid #ebdfd0}
.reference-detail.fair-kind-book .fira-speaker-role{color:#8a4c23}
@media(max-width:600px){.reference-detail.fair-kind-book .fira-book-details,.reference-detail.fair-kind-book .fira-speakers{padding:14px}}


/* Projeccions audiovisuals: pantalla panoràmica i ambient cinematogràfic. */
.reference-detail.fair-kind-screening{--screening-ink:#1c2338;--screening-accent:#d6a554}
.reference-detail.fair-kind-screening .event-detail-banner{background:#141b2d;border-radius:18px;min-height:clamp(280px,42vw,470px)}
.reference-detail.fair-kind-screening .event-detail-banner:after{background:linear-gradient(90deg,#0a1021ed,#25334b91 70%,#131d35a3)}
.reference-detail.fair-kind-screening .event-detail-badge{color:#f8dda0;background:#273650;border:1px solid #b99758}
.reference-detail.fair-kind-screening .event-detail-banner-body h1{letter-spacing:-.04em;line-height:1.05}
.reference-detail.fair-kind-screening .event-detail-description,.reference-detail.fair-kind-screening .fira-screening-details{background:#f7f8fb;border:1px solid #d9dfeb;border-radius:18px;padding:clamp(15px,2.6vw,25px)}
.reference-detail.fair-kind-screening .event-detail-description h2,.reference-detail.fair-kind-screening .fira-screening-details h2{color:#293756}
.reference-detail.fair-kind-screening .fira-screening-details .fira-specific-field{background:#fff;border-color:#dce2ed}
.reference-detail.fair-kind-screening .fira-screening-details .fira-specific-field>svg{color:#ad7e35}
.reference-detail.fair-kind-screening .fira-speakers{background:#f8f9fd;border:1px solid #dce1ed;border-radius:18px;padding:clamp(15px,2.4vw,25px)}
.reference-detail.fair-kind-screening .fira-speakers h2{color:#293756}
.reference-detail.fair-kind-screening .fira-speaker-role{color:#8e6426}
@media(max-width:600px){.reference-detail.fair-kind-screening .event-detail-banner{min-height:270px}.reference-detail.fair-kind-screening .fira-screening-details{padding:13px}}


/* Exposicions: tractament de galeria — obra, autoria i espai de visita. */
.reference-detail.fair-kind-exhibition{--gallery-ink:#30352f;--gallery-accent:#ae7544}
.reference-detail.fair-kind-exhibition .event-detail-banner{background:#252a25;border-radius:15px;min-height:clamp(310px,44vw,520px)}
.reference-detail.fair-kind-exhibition .event-detail-banner:after{background:linear-gradient(90deg,#17201add,#27382b91 65%,#1d291f55)}
.reference-detail.fair-kind-exhibition .event-detail-banner>img{object-fit:cover}
.reference-detail.fair-kind-exhibition .event-detail-badge{background:#fcf0db;color:#65472a}
.reference-detail.fair-kind-exhibition .event-detail-description,.reference-detail.fair-kind-exhibition .fira-exhibition-details{background:#fffdf8;border:1px solid #e9e3d6;border-radius:16px;padding:clamp(16px,2.7vw,28px)}
.reference-detail.fair-kind-exhibition .event-detail-description h2,.reference-detail.fair-kind-exhibition .fira-exhibition-details h2{color:#384739;font-size:clamp(22px,2.6vw,29px)}
.reference-detail.fair-kind-exhibition .fira-exhibition-details .fira-specific-field{background:#fff;border-color:#e8e4d9}
.reference-detail.fair-kind-exhibition .fira-exhibition-details .fira-specific-field>svg{color:#97744e}
.reference-detail.fair-kind-exhibition .fira-speakers{background:#f9f9f4;border:1px solid #e7e7dc;border-radius:17px;padding:clamp(16px,2.5vw,25px)}
.reference-detail.fair-kind-exhibition .fira-speakers h2{color:#3c473e}
.reference-detail.fair-kind-exhibition .fira-speaker-card{background:#fff;border-color:#e7e7de}
.reference-detail.fair-kind-exhibition .fira-speaker-role{color:#7c6247}
@media(max-width:600px){.reference-detail.fair-kind-exhibition .event-detail-banner{min-height:270px}.reference-detail.fair-kind-exhibition .fira-exhibition-details{padding:14px}}


/* Música i actuacions: cartell escènic violeta, llums i artistes. */
.reference-detail.fair-kind-music{--music-violet:#7549b3;--music-gold:#f0c779}
.reference-detail.fair-kind-music .event-detail-banner{background:#21152f;border-radius:20px;min-height:clamp(290px,43vw,490px)}
.reference-detail.fair-kind-music .event-detail-banner:after{background:linear-gradient(90deg,#190d31ee,#4a245c9b 65%,#582b4160)}
.reference-detail.fair-kind-music .event-detail-badge{background:#efe2ff;color:#583086}
.reference-detail.fair-kind-music .event-detail-banner-body h1{letter-spacing:-.045em;line-height:1.04}
.reference-detail.fair-kind-music .event-detail-description,.reference-detail.fair-kind-music .fira-music-details{background:#faf7ff;border:1px solid #e4dbf0;border-radius:18px;padding:clamp(15px,2.5vw,25px)}
.reference-detail.fair-kind-music .event-detail-description h2,.reference-detail.fair-kind-music .fira-music-details h2{color:#563378}
.reference-detail.fair-kind-music .fira-music-details .fira-specific-field{background:#fff;border-color:#e5dcef}
.reference-detail.fair-kind-music .fira-music-details .fira-specific-field>svg{color:#9065b7}
.reference-detail.fair-kind-music .fira-speakers{background:#f9f5ff;border:1px solid #e5d9f2;border-radius:17px;padding:clamp(15px,2.5vw,25px)}
.reference-detail.fair-kind-music .fira-speakers h2{color:#5d367d}
.reference-detail.fair-kind-music .fira-speaker-card{background:#fff;border-color:#e9dff1}
.reference-detail.fair-kind-music .fira-speaker-role{color:#72449a}
@media(max-width:600px){.reference-detail.fair-kind-music .event-detail-banner{min-height:270px}.reference-detail.fair-kind-music .fira-music-details{padding:13px}}


/* Gastronomia: colors terra i safra, lectura clara de l'experiència i reserves. */
.reference-detail.fair-kind-food{--food-earth:#784730;--food-saffron:#bb723c}
.reference-detail.fair-kind-food .event-detail-banner{background:#563c2b;border-radius:20px}
.reference-detail.fair-kind-food .event-detail-banner:after{background:linear-gradient(90deg,#362117ee,#8656398c 70%,#4e2e225e)}
.reference-detail.fair-kind-food .event-detail-banner-body h1{letter-spacing:-.035em;line-height:1.08}
.reference-detail.fair-kind-food .event-detail-badge{color:#784623;background:#fff0d9}
.reference-detail.fair-kind-food .event-detail-description,.reference-detail.fair-kind-food .fira-food-details{background:#fffbf4;border:1px solid #eadccc;border-radius:18px;padding:clamp(15px,2.5vw,26px)}
.reference-detail.fair-kind-food .event-detail-description h2,.reference-detail.fair-kind-food .fira-food-details h2{color:#77452c}
.reference-detail.fair-kind-food .fira-food-details .fira-specific-field{background:#fff;border:1px solid #ebddcc;border-radius:12px}
.reference-detail.fair-kind-food .fira-food-details .fira-specific-field>svg{color:#a86937}
.reference-detail.fair-kind-food .event-detail-practical{border:1px solid #ebdcc7;border-radius:17px;background:#fff8ed}
.reference-detail.fair-kind-food .event-detail-practical h2{color:#7a4b30}
.reference-detail.fair-kind-food .fira-speakers{background:#fff8ec;border:1px solid #eadbc8;border-radius:17px;padding:clamp(15px,2.5vw,25px)}
.reference-detail.fair-kind-food .fira-speakers h2{color:#76432b}
.reference-detail.fair-kind-food .fira-speaker-role{color:#92633b}
@media(max-width:600px){.reference-detail.fair-kind-food .fira-food-details{padding:13px}}

/* Sistema modalitats complet: estils aïllats per tipus, sense alterar lògica de sessions. */
.reference-detail.fair-kind-guided_visit{--modality-ink:#28636a;--modality-soft:#eaf5f4}
.reference-detail.fair-kind-guided_visit .event-detail-banner{background:#244d54;border-radius:19px}
.reference-detail.fair-kind-guided_visit .event-detail-banner:after{background:linear-gradient(90deg,#244d54f2,#377d8299 70%,#244d5477)}
.reference-detail.fair-kind-guided_visit .event-detail-badge{background:#eaf5f4;color:#28636a}
.reference-detail.fair-kind-guided_visit .event-detail-banner-body h1{letter-spacing:-.038em;line-height:1.07}
.reference-detail.fair-kind-guided_visit .event-detail-description,.reference-detail.fair-kind-guided_visit .fira-specific-details{background:#eaf5f4;border:1px solid #377d8245;border-radius:17px;padding:clamp(15px,2.5vw,25px)}
.reference-detail.fair-kind-guided_visit .event-detail-description h2,.reference-detail.fair-kind-guided_visit .fira-specific-details h2{color:#28636a}
.reference-detail.fair-kind-guided_visit .fira-specific-field{background:#fff;border:1px solid #377d8240;border-radius:12px}
.reference-detail.fair-kind-guided_visit .event-detail-practical{background:#eaf5f4;border:1px solid #377d8240;border-radius:17px}
.reference-detail.fair-kind-guided_visit .fira-speakers{background:#eaf5f4;border:1px solid #377d8240;border-radius:17px;padding:clamp(14px,2.3vw,24px)}
.reference-detail.fair-kind-climbing{--modality-ink:#81572d;--modality-soft:#fbf2e6}
.reference-detail.fair-kind-climbing .event-detail-banner{background:#594436;border-radius:19px}
.reference-detail.fair-kind-climbing .event-detail-banner:after{background:linear-gradient(90deg,#594436f2,#936d4599 70%,#59443677)}
.reference-detail.fair-kind-climbing .event-detail-badge{background:#fbf2e6;color:#81572d}
.reference-detail.fair-kind-climbing .event-detail-banner-body h1{letter-spacing:-.038em;line-height:1.07}
.reference-detail.fair-kind-climbing .event-detail-description,.reference-detail.fair-kind-climbing .fira-specific-details{background:#fbf2e6;border:1px solid #936d4545;border-radius:17px;padding:clamp(15px,2.5vw,25px)}
.reference-detail.fair-kind-climbing .event-detail-description h2,.reference-detail.fair-kind-climbing .fira-specific-details h2{color:#81572d}
.reference-detail.fair-kind-climbing .fira-specific-field{background:#fff;border:1px solid #936d4540;border-radius:12px}
.reference-detail.fair-kind-climbing .event-detail-practical{background:#fbf2e6;border:1px solid #936d4540;border-radius:17px}
.reference-detail.fair-kind-climbing .fira-speakers{background:#fbf2e6;border:1px solid #936d4540;border-radius:17px;padding:clamp(14px,2.3vw,24px)}
.reference-detail.fair-kind-competition{--modality-ink:#833653;--modality-soft:#fdf0f5}
.reference-detail.fair-kind-competition .event-detail-banner{background:#573247;border-radius:19px}
.reference-detail.fair-kind-competition .event-detail-banner:after{background:linear-gradient(90deg,#573247f2,#98486899 70%,#57324777)}
.reference-detail.fair-kind-competition .event-detail-badge{background:#fdf0f5;color:#833653}
.reference-detail.fair-kind-competition .event-detail-banner-body h1{letter-spacing:-.038em;line-height:1.07}
.reference-detail.fair-kind-competition .event-detail-description,.reference-detail.fair-kind-competition .fira-specific-details{background:#fdf0f5;border:1px solid #98486845;border-radius:17px;padding:clamp(15px,2.5vw,25px)}
.reference-detail.fair-kind-competition .event-detail-description h2,.reference-detail.fair-kind-competition .fira-specific-details h2{color:#833653}
.reference-detail.fair-kind-competition .fira-specific-field{background:#fff;border:1px solid #98486840;border-radius:12px}
.reference-detail.fair-kind-competition .event-detail-practical{background:#fdf0f5;border:1px solid #98486840;border-radius:17px}
.reference-detail.fair-kind-competition .fira-speakers{background:#fdf0f5;border:1px solid #98486840;border-radius:17px;padding:clamp(14px,2.3vw,24px)}
.reference-detail.fair-kind-rescue{--modality-ink:#11756f;--modality-soft:#e8f8f6}
.reference-detail.fair-kind-rescue .event-detail-banner{background:#145c5c;border-radius:19px}
.reference-detail.fair-kind-rescue .event-detail-banner:after{background:linear-gradient(90deg,#145c5cf2,#15918c99 70%,#145c5c77)}
.reference-detail.fair-kind-rescue .event-detail-badge{background:#e8f8f6;color:#11756f}
.reference-detail.fair-kind-rescue .event-detail-banner-body h1{letter-spacing:-.038em;line-height:1.07}
.reference-detail.fair-kind-rescue .event-detail-description,.reference-detail.fair-kind-rescue .fira-specific-details{background:#e8f8f6;border:1px solid #15918c45;border-radius:17px;padding:clamp(15px,2.5vw,25px)}
.reference-detail.fair-kind-rescue .event-detail-description h2,.reference-detail.fair-kind-rescue .fira-specific-details h2{color:#11756f}
.reference-detail.fair-kind-rescue .fira-specific-field{background:#fff;border:1px solid #15918c40;border-radius:12px}
.reference-detail.fair-kind-rescue .event-detail-practical{background:#e8f8f6;border:1px solid #15918c40;border-radius:17px}
.reference-detail.fair-kind-rescue .fira-speakers{background:#e8f8f6;border:1px solid #15918c40;border-radius:17px;padding:clamp(14px,2.3vw,24px)}
.reference-detail.fair-kind-opening{--modality-ink:#5c4c98;--modality-soft:#f3f0fc}
.reference-detail.fair-kind-opening .event-detail-banner{background:#3c356b;border-radius:19px}
.reference-detail.fair-kind-opening .event-detail-banner:after{background:linear-gradient(90deg,#3c356bf2,#7667ad99 70%,#3c356b77)}
.reference-detail.fair-kind-opening .event-detail-badge{background:#f3f0fc;color:#5c4c98}
.reference-detail.fair-kind-opening .event-detail-banner-body h1{letter-spacing:-.038em;line-height:1.07}
.reference-detail.fair-kind-opening .event-detail-description,.reference-detail.fair-kind-opening .fira-specific-details{background:#f3f0fc;border:1px solid #7667ad45;border-radius:17px;padding:clamp(15px,2.5vw,25px)}
.reference-detail.fair-kind-opening .event-detail-description h2,.reference-detail.fair-kind-opening .fira-specific-details h2{color:#5c4c98}
.reference-detail.fair-kind-opening .fira-specific-field{background:#fff;border:1px solid #7667ad40;border-radius:12px}
.reference-detail.fair-kind-opening .event-detail-practical{background:#f3f0fc;border:1px solid #7667ad40;border-radius:17px}
.reference-detail.fair-kind-opening .fira-speakers{background:#f3f0fc;border:1px solid #7667ad40;border-radius:17px;padding:clamp(14px,2.3vw,24px)}
.reference-detail.fair-kind-closing{--modality-ink:#624677;--modality-soft:#f4eff9}
.reference-detail.fair-kind-closing .event-detail-banner{background:#382e53;border-radius:19px}
.reference-detail.fair-kind-closing .event-detail-banner:after{background:linear-gradient(90deg,#382e53f2,#6e5b8399 70%,#382e5377)}
.reference-detail.fair-kind-closing .event-detail-badge{background:#f4eff9;color:#624677}
.reference-detail.fair-kind-closing .event-detail-banner-body h1{letter-spacing:-.038em;line-height:1.07}
.reference-detail.fair-kind-closing .event-detail-description,.reference-detail.fair-kind-closing .fira-specific-details{background:#f4eff9;border:1px solid #6e5b8345;border-radius:17px;padding:clamp(15px,2.5vw,25px)}
.reference-detail.fair-kind-closing .event-detail-description h2,.reference-detail.fair-kind-closing .fira-specific-details h2{color:#624677}
.reference-detail.fair-kind-closing .fira-specific-field{background:#fff;border:1px solid #6e5b8340;border-radius:12px}
.reference-detail.fair-kind-closing .event-detail-practical{background:#f4eff9;border:1px solid #6e5b8340;border-radius:17px}
.reference-detail.fair-kind-closing .fira-speakers{background:#f4eff9;border:1px solid #6e5b8340;border-radius:17px;padding:clamp(14px,2.3vw,24px)}
.reference-detail.fair-kind-fair{--modality-ink:#496a4b;--modality-soft:#f2f7f0}
.reference-detail.fair-kind-fair .event-detail-banner{background:#405448;border-radius:19px}
.reference-detail.fair-kind-fair .event-detail-banner:after{background:linear-gradient(90deg,#405448f2,#758e7299 70%,#40544877)}
.reference-detail.fair-kind-fair .event-detail-badge{background:#f2f7f0;color:#496a4b}
.reference-detail.fair-kind-fair .event-detail-banner-body h1{letter-spacing:-.038em;line-height:1.07}
.reference-detail.fair-kind-fair .event-detail-description,.reference-detail.fair-kind-fair .fira-specific-details{background:#f2f7f0;border:1px solid #758e7245;border-radius:17px;padding:clamp(15px,2.5vw,25px)}
.reference-detail.fair-kind-fair .event-detail-description h2,.reference-detail.fair-kind-fair .fira-specific-details h2{color:#496a4b}
.reference-detail.fair-kind-fair .fira-specific-field{background:#fff;border:1px solid #758e7240;border-radius:12px}
.reference-detail.fair-kind-fair .event-detail-practical{background:#f2f7f0;border:1px solid #758e7240;border-radius:17px}
.reference-detail.fair-kind-fair .fira-speakers{background:#f2f7f0;border:1px solid #758e7240;border-radius:17px;padding:clamp(14px,2.3vw,24px)}
.reference-detail.fair-kind-market{--modality-ink:#8f6135;--modality-soft:#faf3e7}
.reference-detail.fair-kind-market .event-detail-banner{background:#665039;border-radius:19px}
.reference-detail.fair-kind-market .event-detail-banner:after{background:linear-gradient(90deg,#665039f2,#b1844a99 70%,#66503977)}
.reference-detail.fair-kind-market .event-detail-badge{background:#faf3e7;color:#8f6135}
.reference-detail.fair-kind-market .event-detail-banner-body h1{letter-spacing:-.038em;line-height:1.07}
.reference-detail.fair-kind-market .event-detail-description,.reference-detail.fair-kind-market .fira-specific-details{background:#faf3e7;border:1px solid #b1844a45;border-radius:17px;padding:clamp(15px,2.5vw,25px)}
.reference-detail.fair-kind-market .event-detail-description h2,.reference-detail.fair-kind-market .fira-specific-details h2{color:#8f6135}
.reference-detail.fair-kind-market .fira-specific-field{background:#fff;border:1px solid #b1844a40;border-radius:12px}
.reference-detail.fair-kind-market .event-detail-practical{background:#faf3e7;border:1px solid #b1844a40;border-radius:17px}
.reference-detail.fair-kind-market .fira-speakers{background:#faf3e7;border:1px solid #b1844a40;border-radius:17px;padding:clamp(14px,2.3vw,24px)}
.reference-detail.fair-kind-solidarity{--modality-ink:#377567;--modality-soft:#f0f9f5}
.reference-detail.fair-kind-solidarity .event-detail-banner{background:#375a56;border-radius:19px}
.reference-detail.fair-kind-solidarity .event-detail-banner:after{background:linear-gradient(90deg,#375a56f2,#61978c99 70%,#375a5677)}
.reference-detail.fair-kind-solidarity .event-detail-badge{background:#f0f9f5;color:#377567}
.reference-detail.fair-kind-solidarity .event-detail-banner-body h1{letter-spacing:-.038em;line-height:1.07}
.reference-detail.fair-kind-solidarity .event-detail-description,.reference-detail.fair-kind-solidarity .fira-specific-details{background:#f0f9f5;border:1px solid #61978c45;border-radius:17px;padding:clamp(15px,2.5vw,25px)}
.reference-detail.fair-kind-solidarity .event-detail-description h2,.reference-detail.fair-kind-solidarity .fira-specific-details h2{color:#377567}
.reference-detail.fair-kind-solidarity .fira-specific-field{background:#fff;border:1px solid #61978c40;border-radius:12px}
.reference-detail.fair-kind-solidarity .event-detail-practical{background:#f0f9f5;border:1px solid #61978c40;border-radius:17px}
.reference-detail.fair-kind-solidarity .fira-speakers{background:#f0f9f5;border:1px solid #61978c40;border-radius:17px;padding:clamp(14px,2.3vw,24px)}
.reference-detail.fair-kind-photography{--modality-ink:#365f78;--modality-soft:#f0f5f9}
.reference-detail.fair-kind-photography .event-detail-banner{background:#273e50;border-radius:19px}
.reference-detail.fair-kind-photography .event-detail-banner:after{background:linear-gradient(90deg,#273e50f2,#52758c99 70%,#273e5077)}
.reference-detail.fair-kind-photography .event-detail-badge{background:#f0f5f9;color:#365f78}
.reference-detail.fair-kind-photography .event-detail-banner-body h1{letter-spacing:-.038em;line-height:1.07}
.reference-detail.fair-kind-photography .event-detail-description,.reference-detail.fair-kind-photography .fira-specific-details{background:#f0f5f9;border:1px solid #52758c45;border-radius:17px;padding:clamp(15px,2.5vw,25px)}
.reference-detail.fair-kind-photography .event-detail-description h2,.reference-detail.fair-kind-photography .fira-specific-details h2{color:#365f78}
.reference-detail.fair-kind-photography .fira-specific-field{background:#fff;border:1px solid #52758c40;border-radius:12px}
.reference-detail.fair-kind-photography .event-detail-practical{background:#f0f5f9;border:1px solid #52758c40;border-radius:17px}
.reference-detail.fair-kind-photography .fira-speakers{background:#f0f5f9;border:1px solid #52758c40;border-radius:17px;padding:clamp(14px,2.3vw,24px)}
.reference-detail.fair-kind-presentation{--modality-ink:#704365;--modality-soft:#fbf0f8}
.reference-detail.fair-kind-presentation .event-detail-banner{background:#4f344a;border-radius:19px}
.reference-detail.fair-kind-presentation .event-detail-banner:after{background:linear-gradient(90deg,#4f344af2,#8d587a99 70%,#4f344a77)}
.reference-detail.fair-kind-presentation .event-detail-badge{background:#fbf0f8;color:#704365}
.reference-detail.fair-kind-presentation .event-detail-banner-body h1{letter-spacing:-.038em;line-height:1.07}
.reference-detail.fair-kind-presentation .event-detail-description,.reference-detail.fair-kind-presentation .fira-specific-details{background:#fbf0f8;border:1px solid #8d587a45;border-radius:17px;padding:clamp(15px,2.5vw,25px)}
.reference-detail.fair-kind-presentation .event-detail-description h2,.reference-detail.fair-kind-presentation .fira-specific-details h2{color:#704365}
.reference-detail.fair-kind-presentation .fira-specific-field{background:#fff;border:1px solid #8d587a40;border-radius:12px}
.reference-detail.fair-kind-presentation .event-detail-practical{background:#fbf0f8;border:1px solid #8d587a40;border-radius:17px}
.reference-detail.fair-kind-presentation .fira-speakers{background:#fbf0f8;border:1px solid #8d587a40;border-radius:17px;padding:clamp(14px,2.3vw,24px)}
.reference-detail.fair-kind-concert{--modality-ink:#58328e;--modality-soft:#f4edfc}
.reference-detail.fair-kind-concert .event-detail-banner{background:#271c47;border-radius:19px}
.reference-detail.fair-kind-concert .event-detail-banner:after{background:linear-gradient(90deg,#271c47f2,#6645a399 70%,#271c4777)}
.reference-detail.fair-kind-concert .event-detail-badge{background:#f4edfc;color:#58328e}
.reference-detail.fair-kind-concert .event-detail-banner-body h1{letter-spacing:-.038em;line-height:1.07}
.reference-detail.fair-kind-concert .event-detail-description,.reference-detail.fair-kind-concert .fira-specific-details{background:#f4edfc;border:1px solid #6645a345;border-radius:17px;padding:clamp(15px,2.5vw,25px)}
.reference-detail.fair-kind-concert .event-detail-description h2,.reference-detail.fair-kind-concert .fira-specific-details h2{color:#58328e}
.reference-detail.fair-kind-concert .fira-specific-field{background:#fff;border:1px solid #6645a340;border-radius:12px}
.reference-detail.fair-kind-concert .event-detail-practical{background:#f4edfc;border:1px solid #6645a340;border-radius:17px}
.reference-detail.fair-kind-concert .fira-speakers{background:#f4edfc;border:1px solid #6645a340;border-radius:17px;padding:clamp(14px,2.3vw,24px)}
.reference-detail.fair-kind-other{--modality-ink:#4b6872;--modality-soft:#f2f5f6}
.reference-detail.fair-kind-other .event-detail-banner{background:#3f4c52;border-radius:19px}
.reference-detail.fair-kind-other .event-detail-banner:after{background:linear-gradient(90deg,#3f4c52f2,#70808999 70%,#3f4c5277)}
.reference-detail.fair-kind-other .event-detail-badge{background:#f2f5f6;color:#4b6872}
.reference-detail.fair-kind-other .event-detail-banner-body h1{letter-spacing:-.038em;line-height:1.07}
.reference-detail.fair-kind-other .event-detail-description,.reference-detail.fair-kind-other .fira-specific-details{background:#f2f5f6;border:1px solid #70808945;border-radius:17px;padding:clamp(15px,2.5vw,25px)}
.reference-detail.fair-kind-other .event-detail-description h2,.reference-detail.fair-kind-other .fira-specific-details h2{color:#4b6872}
.reference-detail.fair-kind-other .fira-specific-field{background:#fff;border:1px solid #70808940;border-radius:12px}
.reference-detail.fair-kind-other .event-detail-practical{background:#f2f5f6;border:1px solid #70808940;border-radius:17px}
.reference-detail.fair-kind-other .fira-speakers{background:#f2f5f6;border:1px solid #70808940;border-radius:17px;padding:clamp(14px,2.3vw,24px)}
@media(max-width:600px){.reference-detail[class*='fair-kind-'] .fira-specific-details{padding:13px;min-width:0}.reference-detail[class*='fair-kind-'] .fira-specific-grid{grid-template-columns:minmax(0,1fr)}}


/* Fitxa pública 2026 · composició editorial mòbil inspirada en el prototip aprovat.
   Només l'aspecte: no substituir contingut real ni informació d'inscripció. */
.reference-detail{--detail-ink:#133f32;display:grid;grid-template-columns:minmax(0,1fr);gap:0;max-width:980px;margin-inline:auto;padding-inline:clamp(0px,2vw,14px);color:#172d27}
.reference-detail>.event-detail-banner{grid-column:1;grid-row:1;min-height:clamp(340px,56vw,520px);position:relative;overflow:hidden;border:0;border-radius:22px 22px 0 0;isolation:isolate;background:#173c31;display:flex;align-items:flex-end;justify-content:flex-start}
.reference-detail>.event-detail-banner:after{display:block!important;content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#061b18d9 0%,#102f2778 63%,#102d2226 100%);pointer-events:none}
.reference-detail>.event-detail-banner>img,.reference-detail>.event-detail-banner>.category-empty-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block;z-index:-2;border-radius:0}
.reference-detail>.event-detail-banner .event-detail-banner-body{position:relative;z-index:1;max-width:810px;width:100%;padding:clamp(24px,5vw,56px);color:white;background:transparent}
.reference-detail>.event-detail-banner .event-detail-banner-body h1{font-size:clamp(32px,5.8vw,62px);line-height:1.06;letter-spacing:-.046em;color:#fff;margin:14px 0 12px;font-weight:830;text-wrap:balance}
.reference-detail>.event-detail-banner .event-detail-banner-body>p{color:#f3f8f5;font-size:clamp(16px,2vw,21px);line-height:1.42;max-width:670px;margin:0 0 18px}
.reference-detail>.event-detail-banner .event-detail-banner-meta{display:flex;flex-wrap:wrap;gap:10px 20px}
.reference-detail>.event-detail-banner .event-detail-banner-meta span,.reference-detail>.event-detail-banner .event-detail-banner-meta svg{color:#fff;font-size:13px}
.reference-detail>.event-detail-banner .event-detail-badge{display:inline-flex;background:#ffcf8d;color:#392f20;font-size:12px;padding:8px 13px;border-radius:999px}
.reference-detail>.detail-context-links{grid-column:1;grid-row:2;order:0;margin:0;padding:11px 18px;background:#fff;border:1px solid #e9eee9;border-top:0}
.reference-detail>.event-detail-sections{grid-column:1;grid-row:3;display:flex;overflow-x:auto;gap:4px;background:#f4f8f5;border:1px solid #e4ebe5;border-top:0;padding:7px;margin:0;scrollbar-width:thin}
.reference-detail>.event-detail-sections button{flex:0 0 auto;min-height:44px;font-size:14px;color:#39554a;background:transparent;padding:10px 17px;border-radius:9px;font-weight:700}
.reference-detail>.event-detail-sections button:is(.active,[aria-selected="true"]){background:#fff;color:#155a42;box-shadow:0 1px 5px #18362115}
.reference-detail>.detail{grid-column:1;grid-row:4;display:grid;grid-template-columns:minmax(0,1fr) minmax(245px,.42fr);gap:20px;padding:clamp(18px,3vw,30px);background:#fff;border:1px solid #e4ebe6;border-top:0;border-radius:0 0 20px 20px}
.reference-detail>.detail>div:first-child{grid-column:1;grid-row:1;min-width:0;display:flex;flex-direction:column;gap:18px}
.reference-detail>.detail>.event-detail-practical{grid-column:2;grid-row:1;position:sticky;top:90px;align-self:start;min-width:0;margin:0;background:#f8faf8;border:1px solid #e4ebe6;border-radius:15px;padding:18px;box-shadow:none}
.reference-detail .event-detail-description,.reference-detail .fira-speakers,.reference-detail .fira-specific-details{position:relative;margin:0;padding:0!important;min-height:0!important;height:auto!important;background:#fff!important;border:0!important;box-shadow:none!important;color:#1b3028!important}
.reference-detail .event-detail-description h2,.reference-detail .fira-speakers h2,.reference-detail .fira-specific-details h2{color:#163f32!important;font-size:clamp(20px,2.6vw,27px);line-height:1.24;margin:0 0 13px}
.reference-detail .event-detail-description p{color:#2c3f36!important;font-size:clamp(16px,1.8vw,18px)!important;line-height:1.65!important;opacity:1!important;visibility:visible!important}
.reference-detail .fira-speakers-list{display:grid;gap:14px}
.reference-detail .fira-speaker-card{background:#f8faf9;border:1px solid #e5ece7;border-radius:16px;padding:16px}
.reference-detail .fira-speaker-photo{object-fit:cover}
.reference-detail .fira-specific-field{background:#f6f9f7!important;color:#18382b!important;border:1px solid #e2ece5!important;border-radius:12px;padding:15px}
.reference-detail .fira-specific-field *{color:inherit;opacity:1}
.reference-detail .event-detail-practical h2{color:#163f32;font-size:19px;line-height:1.3}
@media(max-width:760px){
 body:not(.is-fira-home) #main{width:calc(100% - 22px)}
 .reference-detail{padding:0;display:flex;flex-direction:column;gap:0;max-width:100%;overflow:visible}
 .reference-detail>.event-detail-banner{width:100%;flex:none;min-height:clamp(350px,90vw,470px);border-radius:16px 16px 0 0}
 .reference-detail>.event-detail-banner .event-detail-banner-body{padding:24px 20px 26px}
 .reference-detail>.event-detail-banner .event-detail-banner-body h1{font-size:clamp(30px,8vw,43px)}
 .reference-detail>.event-detail-banner .event-detail-banner-body>p{font-size:16px}
 .reference-detail>.detail-context-links{order:2;padding:8px 11px}
 .reference-detail>.event-detail-sections{order:3}
 .reference-detail>.detail{order:4;display:flex;flex-direction:column;padding:24px 18px;gap:24px;border-radius:0 0 16px 16px}
 .reference-detail>.detail>div:first-child{display:flex;flex-direction:column;gap:20px;width:100%}
 .reference-detail>.detail>.event-detail-practical{position:static;align-self:stretch;order:2;width:100%;padding:18px}
 .reference-detail .event-detail-description p{font-size:16px!important;line-height:1.6!important}
 .reference-detail .fira-speaker-card{min-width:0}
 .reference-detail .fira-specific-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 .reference-detail .fira-specific-field{min-width:0;padding:12px}
}
@media(max-width:420px){.reference-detail>.detail{padding:20px 15px}.reference-detail .fira-specific-grid{grid-template-columns:minmax(0,1fr)}}


/* Una mateixa composició per a totes les xarrades, debats i presentacions.
   Les dades i fotografies canvien; l'estructura i la decoració no. */
.reference-detail.fair-type-talk{--detail-ink:#15533e}
.reference-detail.fair-type-talk>.event-detail-banner{border-radius:20px 20px 0 0}
.reference-detail.fair-type-talk>.event-detail-banner:after{display:block!important;background:linear-gradient(90deg,rgba(7,24,23,.85) 0%,rgba(7,24,23,.43) 68%,rgba(7,24,23,.16) 100%)}
.reference-detail.fair-type-talk>.event-detail-banner .event-detail-banner-body h1{color:#fff!important}
.reference-detail.fair-type-talk>.event-detail-banner .event-detail-banner-body>p{color:#f7f8f5!important}
.reference-detail.fair-type-talk .fira-speakers-list{display:flex;flex-direction:column;gap:14px}
.reference-detail.fair-type-talk .fira-speaker-card{display:grid;grid-template-columns:130px minmax(0,1fr);align-items:center;gap:20px;padding:20px;border-radius:16px;background:#f5f8f6;border:1px solid #e2ebe6}
.reference-detail.fair-type-talk .fira-speaker-card.fira-speaker-reverse{grid-template-columns:minmax(0,1fr) 130px}
.reference-detail.fair-type-talk .fira-speaker-card.fira-speaker-reverse>.fira-speaker-info{grid-column:1;grid-row:1}
.reference-detail.fair-type-talk .fira-speaker-card.fira-speaker-reverse>:is(.fira-speaker-photo,.fira-speaker-avatar){grid-column:2;grid-row:1}
.reference-detail.fair-type-talk .fira-speaker-photo,.reference-detail.fair-type-talk .fira-speaker-avatar{width:130px;height:148px;max-width:100%;border-radius:13px;object-fit:cover}
.reference-detail.fair-type-talk .fira-speaker-info h3{color:#173f32;font-size:clamp(21px,2.5vw,28px);margin:4px 0 7px}
.reference-detail.fair-type-talk .fira-speaker-info p{color:#364b40!important;font-size:15px!important;line-height:1.56!important}
@media(max-width:560px){
 .reference-detail.fair-type-talk .fira-speaker-card{grid-template-columns:85px minmax(0,1fr);gap:12px;padding:12px}
 .reference-detail.fair-type-talk .fira-speaker-card.fira-speaker-reverse{grid-template-columns:minmax(0,1fr) 85px}
 .reference-detail.fair-type-talk .fira-speaker-photo,.reference-detail.fair-type-talk .fira-speaker-avatar{width:85px;height:105px}
 .reference-detail.fair-type-talk .fira-speaker-info h3{font-size:19px}
 .reference-detail.fair-type-talk .fira-speaker-info p{font-size:13px!important}
}


/* Xarrades: disposició de la maqueta aprovada, limitada a la secció.
   Manté el HTML funcional, els filtres i les fotografies administrades. */
.category-banner.cat-talk{border-radius:0;min-height:clamp(270px,36vw,360px);margin-inline:calc(-1 * max(0px,(100vw - 100%)/2));}
.category-banner.cat-talk .category-banner-image{object-position:center 48%}
.category-banner.cat-talk:after{background:linear-gradient(0deg,#071810b8 0%,transparent 75%),linear-gradient(90deg,#09201865,transparent 75%)}
.category-banner.cat-talk .category-banner-text{padding:36px clamp(22px,5vw,60px);width:100%}
.category-banner.cat-talk .category-banner-text h1{font-size:clamp(40px,7vw,64px);margin:0 0 5px;color:#fff;line-height:1.02}
.category-banner.cat-talk .category-banner-text>strong{font-size:clamp(19px,3vw,27px);color:#fff}
.category-banner.cat-talk .category-banner-kicker,.category-banner.cat-talk .category-banner-text>p,.category-banner.cat-talk .category-banner-count{display:none}
.category-banner.cat-talk + .category-listing{max-width:1040px;margin:0 auto;padding:15px 0 50px}
.category-banner.cat-talk + .category-listing .category-navigation{gap:9px;padding:4px 0 12px}
.category-banner.cat-talk + .category-listing .category-navigation a{min-height:44px;padding:9px 14px;border-radius:12px;font-size:13px;background:#f5f8f6}
.category-banner.cat-talk + .category-listing .category-navigation a.active{background:#145b42;color:#fff}
.category-banner.cat-talk + .category-listing .kind-navigation{margin:3px 0 12px;display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.category-banner.cat-talk + .category-listing .kind-navigation a{background:#eef4ef;border:1px solid #e0eae2;border-radius:11px;padding:10px 14px;color:#274b3b;font-weight:680}
.category-banner.cat-talk + .category-listing .filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;background:none;border:0;box-shadow:none;padding:0}
.category-banner.cat-talk + .category-listing .filters>input{grid-column:1/-1;width:100%;font-size:15px;min-height:52px;min-width:0;border-radius:12px}
.category-banner.cat-talk + .category-listing .filters select{font-size:14px;min-height:48px;min-width:0}
.category-banner.cat-talk + .category-listing .category-cards{display:flex;flex-direction:column;gap:12px}
.category-banner.cat-talk + .category-listing .event-card{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:208px;box-shadow:0 5px 17px #22362e12;border-radius:18px;overflow:hidden;background:#fff;transform:none}
.category-banner.cat-talk + .category-listing .event-card .category-card-image{height:100%;min-height:208px;position:relative}
.category-banner.cat-talk + .category-listing .event-card .category-card-image>img{height:100%;object-fit:cover}
.category-banner.cat-talk + .category-listing .event-card .category-card-label{top:12px;bottom:auto;left:13px;background:#ffcd81;border:0;color:#312c1f;border-radius:999px;padding:7px 11px;font-size:11px}
.category-banner.cat-talk + .category-listing .event-card .card-body{padding:20px 38px 18px 22px;justify-content:center;gap:3px}
.category-banner.cat-talk + .category-listing .event-card .card-body h3{font-size:clamp(19px,2.8vw,25px);line-height:1.15;color:#122e25;margin:4px 0}
.category-banner.cat-talk + .category-listing .event-card .category-card-desc{font-size:15px;line-height:1.35;color:#58665e;-webkit-line-clamp:3}
.category-banner.cat-talk + .category-listing .event-card .category-card-when{color:#6a766f;font-size:12px}
@media(max-width:760px){
 body:not(.is-fira-home) #main{width:calc(100% - 24px)}
 .category-banner.cat-talk{margin-left:-12px;margin-right:-12px;min-height:clamp(270px,44vw,350px);border-radius:0}
 .category-banner.cat-talk .category-banner-text{padding:25px 22px}
 .category-banner.cat-talk .category-banner-text h1{font-size:clamp(38px,8vw,52px)}
 .category-banner.cat-talk + .category-listing{padding:13px 0 35px}
 .category-banner.cat-talk + .category-listing .category-navigation{scroll-snap-type:x proximity}
 .category-banner.cat-talk + .category-listing .category-navigation a{scroll-snap-align:start}
 .category-banner.cat-talk + .category-listing .filters{grid-template-columns:repeat(2,minmax(0,1fr))}
 .category-banner.cat-talk + .category-listing .event-card{grid-template-columns:minmax(0,1fr) minmax(0,1fr);min-height:185px}
 .category-banner.cat-talk + .category-listing .event-card .category-card-image{min-height:185px}
 .category-banner.cat-talk + .category-listing .event-card .card-body{padding:13px 27px 11px 13px}
 .category-banner.cat-talk + .category-listing .event-card .card-body h3{font-size:17px}
 .category-banner.cat-talk + .category-listing .event-card .category-card-desc{font-size:12px;-webkit-line-clamp:3}
 .category-banner.cat-talk + .category-listing .event-card .category-card-when{font-size:11px}
}
@media(max-width:400px){
 .category-banner.cat-talk + .category-listing .event-card{grid-template-columns:43% 57%;min-height:170px}
 .category-banner.cat-talk + .category-listing .event-card .category-card-image{min-height:170px}
 .category-banner.cat-talk + .category-listing .event-card .card-body h3{font-size:16px}
}


/* Detall necessari per al grid de filtres: les opcions ocultes no ocupen cel·les. */
.category-banner.cat-talk + .category-listing .filters select[hidden]{display:none!important}
.category-banner.cat-talk + .category-listing .category-results-head{display:flex;align-items:center;justify-content:space-between;margin:14px 0 9px}
.category-banner.cat-talk + .category-listing .category-results-head .result-count{font-size:18px;font-weight:800;color:#173f32;margin:0}


/* Ajust de fidelitat mòbil Xarrades: densitat i fotografia neta. */
@media(max-width:760px){
 .category-banner.cat-talk + .category-listing .category-navigation{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:6px;padding:5px 0 10px}
 .category-banner.cat-talk + .category-listing .category-navigation a{font-size:11px;min-height:38px;padding:7px 10px;gap:5px;white-space:nowrap;flex-shrink:0}
 .category-banner.cat-talk + .category-listing .category-navigation a svg{width:16px;height:16px}
 .category-banner.cat-talk + .category-listing .kind-navigation{flex-wrap:nowrap;overflow-x:auto;gap:6px;margin:0 0 10px;padding-bottom:3px;white-space:nowrap}
 .category-banner.cat-talk + .category-listing .kind-navigation span{font-size:11px;margin-right:2px}
 .category-banner.cat-talk + .category-listing .kind-navigation a{font-size:11px;padding:7px 10px;white-space:nowrap;min-height:34px}
 .category-banner.cat-talk + .category-listing .filters{gap:7px}
 .category-banner.cat-talk + .category-listing .filters>input{min-height:43px;font-size:13px}
 .category-banner.cat-talk + .category-listing .filters select{min-height:41px;font-size:12px;padding-inline:9px}
 .category-banner.cat-talk + .category-listing .category-results-head{margin:10px 0 7px}
 .category-banner.cat-talk + .category-listing .category-results-head .result-count{font-size:16px}
 .category-banner.cat-talk + .category-listing .category-cards{gap:9px}
 .category-banner.cat-talk + .category-listing .event-card{grid-template-columns:49% minmax(0,51%);height:173px;min-height:173px;border-radius:14px}
 .category-banner.cat-talk + .category-listing .event-card .category-card-image{height:173px;min-height:173px;overflow:hidden}
 .category-banner.cat-talk + .category-listing .event-card .category-card-image>img{width:100%;height:100%;object-fit:cover;object-position:center;display:block}
 .category-banner.cat-talk + .category-listing .event-card .category-card-label{left:7px;top:8px;max-width:calc(100% - 15px);font-size:9px;padding:5px 7px;gap:4px}
 .category-banner.cat-talk + .category-listing .event-card .category-card-label svg{width:13px;height:13px}
 .category-banner.cat-talk + .category-listing .event-card .card-body{padding:9px 24px 8px 10px;gap:2px;min-width:0;overflow:hidden}
 .category-banner.cat-talk + .category-listing .event-card .category-card-when{font-size:10px;line-height:1.3;gap:3px}
 .category-banner.cat-talk + .category-listing .event-card .category-card-when svg{width:12px;height:12px}
 .category-banner.cat-talk + .category-listing .event-card .card-body h3{font-size:clamp(13px,3.7vw,16px);line-height:1.15;margin:3px 0;letter-spacing:-.02em}
 .category-banner.cat-talk + .category-listing .event-card .category-card-desc{font-size:11px;line-height:1.26;margin:1px 0 3px;-webkit-line-clamp:2}
 .category-banner.cat-talk + .category-listing .event-card .category-card-place{font-size:10px;margin:2px 0;line-height:1.2}
 .category-banner.cat-talk + .category-listing .event-card .card-footer{margin:0;padding:0}
 .category-banner.cat-talk + .category-listing .event-card .card-footer a{font-size:10px;min-height:0}
 .category-banner.cat-talk + .category-listing .event-card .fav{width:28px;height:28px;font-size:17px;top:7px;right:7px}
}


/* FIX ESTRUCTURAL 17-10: la graella legacy amb grid-row !important
   expulsava descripció i ponents a baix, deixant una columna en blanc. */
.reference-detail{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:0!important}
.reference-detail>.detail-context-links{order:0!important;display:flex;flex-wrap:wrap;grid-row:auto!important;grid-column:auto!important}
.reference-detail>.event-detail-banner{order:1!important;grid-row:auto!important;grid-column:auto!important}
.reference-detail>.event-detail-sections{order:2!important;grid-row:auto!important;grid-column:auto!important}
.reference-detail>.detail{order:3!important;display:grid!important;grid-template-columns:minmax(0,1fr) minmax(270px,.45fr)!important;align-items:start!important;grid-row:auto!important;grid-column:auto!important;min-height:0!important}
.reference-detail>.detail>div:first-child{grid-column:1!important;grid-row:1!important;min-height:0!important;align-self:start!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important}
.reference-detail>.detail>.event-detail-practical{grid-column:2!important;grid-row:1!important;align-self:start!important;top:90px}
.reference-detail>.session-options{order:4!important;grid-row:auto!important;grid-column:auto!important}
.reference-detail .event-detail-description,.reference-detail .fira-speakers,.reference-detail .fira-specific-details{min-height:0!important;transform:none!important}
@media(max-width:760px){
 .reference-detail>.detail{display:flex!important;flex-direction:column!important;gap:20px!important}
 .reference-detail>.detail>div:first-child{width:100%!important;align-self:stretch!important}
 .reference-detail>.detail>.event-detail-practical{width:100%!important;position:static!important}
}


/* Ponents: reproducció estructural de la maqueta de referència.
   Targeta ampla, retrat rectangular i text alineat a dalt, sense avatar gegant.
   La mateixa regla s'aplica a totes les xarrades. */
.reference-detail.fair-type-talk .fira-speakers{display:block!important;margin:0!important;padding:0!important;background:#fff!important}
.reference-detail.fair-type-talk .fira-speakers>h2{margin:0 0 12px!important;color:#123d30!important;font-size:clamp(22px,2.8vw,29px)!important;line-height:1.2!important}
.reference-detail.fair-type-talk .fira-speakers>h2 svg{display:none}
.reference-detail.fair-type-talk .fira-speakers-list{display:flex!important;flex-direction:column!important;gap:12px!important}
.reference-detail.fair-type-talk .fira-speaker-card{display:grid!important;grid-template-columns:minmax(0,29%) minmax(0,1fr)!important;gap:clamp(15px,2.5vw,25px)!important;align-items:start!important;background:#fff!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;min-width:0!important}
.reference-detail.fair-type-talk .fira-speaker-card.fira-speaker-reverse{grid-template-columns:minmax(0,1fr) minmax(0,29%)!important}
.reference-detail.fair-type-talk .fira-speaker-card.fira-speaker-reverse>.fira-speaker-info{grid-column:1!important;grid-row:1!important}
.reference-detail.fair-type-talk .fira-speaker-card.fira-speaker-reverse>:is(.fira-speaker-photo,.fira-speaker-avatar){grid-column:2!important;grid-row:1!important}
.reference-detail.fair-type-talk .fira-speaker-photo,.reference-detail.fair-type-talk .fira-speaker-avatar{display:block;width:100%!important;height:auto!important;aspect-ratio:1/1.12;object-fit:cover;object-position:center;border-radius:14px!important;min-width:0;max-width:none;overflow:hidden}
.reference-detail.fair-type-talk .fira-speaker-avatar{display:flex!important;align-items:center;justify-content:center;background:#ebf2ee!important;color:#32684e}
.reference-detail.fair-type-talk .fira-speaker-info{min-width:0!important;padding:0!important}
.reference-detail.fair-type-talk .fira-speaker-role{display:block;color:#205941!important;font-size:clamp(13px,1.5vw,17px)!important;font-weight:750;line-height:1.4;margin:0 0 3px}
.reference-detail.fair-type-talk .fira-speaker-info h3{font-size:clamp(24px,3vw,36px)!important;line-height:1.1!important;color:#0f362d!important;font-weight:830!important;letter-spacing:-.04em;margin:3px 0 7px!important}
.reference-detail.fair-type-talk .fira-speaker-info p{font-size:clamp(14px,1.7vw,18px)!important;line-height:1.52!important;color:#415066!important;margin:5px 0 10px!important}
.reference-detail.fair-type-talk .fira-speaker-info a{font-size:13px;color:#145b40;font-weight:700}
@media(max-width:760px){
 .reference-detail.fair-type-talk .fira-speaker-card{grid-template-columns:minmax(0,30%) minmax(0,1fr)!important;gap:14px!important}
 .reference-detail.fair-type-talk .fira-speaker-card.fira-speaker-reverse{grid-template-columns:minmax(0,1fr) minmax(0,30%)!important}
 .reference-detail.fair-type-talk .fira-speaker-info h3{font-size:clamp(21px,5vw,29px)!important}
 .reference-detail.fair-type-talk .fira-speaker-info p{font-size:clamp(13px,3.15vw,16px)!important;line-height:1.47!important}
}


/* CONTRACTE PONENTS. Elimina l'aparença de targeta genèrica en xarrades
   i els estils anteriors amb especificitat superior. */
.category-detail-wrap.reference-detail.fair-type-talk .fira-speakers.panel{
 display:block!important;min-height:0!important;height:auto!important;
 padding:0!important;margin:0!important;background:#fff!important;
 border:none!important;border-radius:0!important;box-shadow:none!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .fira-speakers .fira-speakers-list{
 display:flex!important;flex-direction:column!important;gap:24px!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .fira-speakers .fira-speaker-card{
 display:grid!important;grid-template-columns:minmax(0,30%) minmax(0,1fr)!important;
 gap:24px!important;align-items:start!important;min-width:0!important;
 margin:0!important;padding:0!important;background:transparent!important;
 border:0!important;box-shadow:none!important;border-radius:0!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .fira-speakers .fira-speaker-card.fira-speaker-reverse{
 grid-template-columns:minmax(0,1fr) minmax(0,30%)!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .fira-speakers .fira-speaker-card.fira-speaker-reverse .fira-speaker-info{
 grid-column:1!important;grid-row:1!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .fira-speakers .fira-speaker-card.fira-speaker-reverse :is(img.fira-speaker-photo,.fira-speaker-avatar){
 grid-column:2!important;grid-row:1!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .fira-speakers img.fira-speaker-photo{
 display:block!important;width:100%!important;height:auto!important;
 aspect-ratio:1/1.13;object-fit:cover!important;object-position:center 25%;
 border-radius:14px!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .fira-speakers .fira-speaker-role{
 background:none!important;border:0!important;padding:0!important;
 text-transform:none!important;color:#1b563f!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .fira-speakers .fira-speaker-credit{
 font-size:11px!important;color:#67746d!important;line-height:1.35!important;
}
@media(max-width:700px){
 .category-detail-wrap.reference-detail.fair-type-talk .fira-speakers .fira-speaker-card{
  grid-template-columns:minmax(0,31%) minmax(0,1fr)!important;gap:12px!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk .fira-speakers .fira-speaker-card.fira-speaker-reverse{
  grid-template-columns:minmax(0,1fr) minmax(0,31%)!important;
 }
}

/* Crèdit de les fotografies de referència, discret i accessible. */
.reference-detail .event-photo-credit{font-size:10px;line-height:1.35;color:#66786a;margin:6px 0 3px;padding:0 2px}
.reference-detail .event-photo-credit a{color:#276747;text-decoration:underline;text-underline-offset:2px}


/* Composició editorial compartida a xarrades. */
.reference-detail.fair-type-talk{max-width:980px!important;overflow:visible}
.reference-detail.fair-type-talk>.event-detail-banner{min-height:clamp(390px,58vw,560px)!important;overflow:hidden!important;position:relative!important;isolation:isolate}
.reference-detail.fair-type-talk>.event-detail-banner>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;z-index:-2!important}
.reference-detail.fair-type-talk>.event-detail-banner:after{display:block!important;position:absolute;inset:0;content:"";z-index:-1;background:linear-gradient(90deg,#091c19d8,#0a201973 66%,#091c1920)!important}
.reference-detail.fair-type-talk>.event-detail-banner>.event-detail-banner-body{padding:clamp(24px,5vw,55px)!important;align-self:stretch!important;max-width:760px!important}
.reference-detail.fair-type-talk>.event-detail-banner .event-detail-banner-body h1{color:white!important;font-size:clamp(38px,6vw,64px)!important}
.reference-detail.fair-type-talk>.event-detail-banner .event-detail-banner-body>p{color:#fff!important;opacity:1!important}
.reference-detail.fair-type-talk>.event-detail-sections{position:relative!important;z-index:2;background:white!important;border:0!important;border-radius:18px 18px 0 0!important;margin:-26px 0 0!important;padding:9px 22px 0!important;box-shadow:none!important}
.reference-detail.fair-type-talk>.event-detail-sections button{border:0!important;background:none!important;border-radius:0!important;color:#63726c!important;font-size:14px!important;padding:12px 17px!important}
.reference-detail.fair-type-talk>.event-detail-sections button:first-child{border-bottom:3px solid #145d43!important;color:#145d43!important}
.reference-detail.fair-type-talk>.detail{background:white!important;border:0!important;border-radius:0 0 19px 19px!important;padding:26px!important}
.reference-detail.fair-type-talk>.detail>div:first-child{gap:22px!important}
.reference-detail.fair-type-talk .event-detail-description h2{display:none!important}
.reference-detail.fair-type-talk .event-detail-description p{font-size:clamp(16px,2vw,19px)!important;line-height:1.58!important;color:#34455a!important}
.reference-detail.fair-type-talk .talk-editorial-highlights{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));background:#f2f7f3;border-radius:14px;padding:17px 12px;gap:0}
.reference-detail.fair-type-talk .talk-editorial-highlights>div{display:flex;align-items:flex-start;gap:10px;padding:0 12px;border-right:1px solid #dce7df;min-width:0;color:#135d43}
.reference-detail.fair-type-talk .talk-editorial-highlights>div:last-child{border:0}
.reference-detail.fair-type-talk .talk-editorial-highlights svg{flex-shrink:0}
.reference-detail.fair-type-talk .talk-editorial-highlights span{display:flex;flex-direction:column;gap:5px}
.reference-detail.fair-type-talk .talk-editorial-highlights strong{font-size:14px}
.reference-detail.fair-type-talk .talk-editorial-highlights small{font-size:12px;line-height:1.35;color:#526359}
.reference-detail.fair-type-talk .talk-editorial-facts h2{font-size:24px;color:#153f32;margin:0 0 9px}
.reference-detail.fair-type-talk .talk-editorial-facts-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.reference-detail.fair-type-talk .talk-editorial-facts-grid>div{display:flex;align-items:flex-start;gap:10px;background:#f7f7f4;padding:14px 10px;border-radius:14px;min-width:0}
.reference-detail.fair-type-talk .talk-editorial-facts-grid svg{color:#14553c;flex-shrink:0}
.reference-detail.fair-type-talk .talk-editorial-facts-grid span{display:flex;flex-direction:column;min-width:0;gap:4px}
.reference-detail.fair-type-talk .talk-editorial-facts-grid small{font-size:12px;color:#53665b}
.reference-detail.fair-type-talk .talk-editorial-facts-grid strong{font-size:14px;line-height:1.25;color:#182b24;overflow-wrap:anywhere}
@media(max-width:760px){
 .reference-detail.fair-type-talk>.event-detail-banner{min-height:460px!important;border-radius:0!important}
 .reference-detail.fair-type-talk>.event-detail-banner>.event-detail-banner-body{padding:25px 20px 50px!important}
 .reference-detail.fair-type-talk>.event-detail-banner .event-detail-banner-body h1{font-size:clamp(31px,8vw,43px)!important}
 .reference-detail.fair-type-talk>.event-detail-sections{padding:9px 12px 0!important}
 .reference-detail.fair-type-talk>.detail{padding:23px 15px!important}
 .reference-detail.fair-type-talk .talk-editorial-highlights{padding:11px 5px}
 .reference-detail.fair-type-talk .talk-editorial-highlights>div{display:block;padding:0 7px}
 .reference-detail.fair-type-talk .talk-editorial-highlights svg{width:24px;height:24px;margin-bottom:6px}
 .reference-detail.fair-type-talk .talk-editorial-highlights strong{font-size:12px}
 .reference-detail.fair-type-talk .talk-editorial-highlights small{font-size:10px}
 .reference-detail.fair-type-talk .talk-editorial-facts-grid>div{display:flex;flex-direction:column;padding:12px 8px}
 .reference-detail.fair-type-talk .talk-editorial-facts-grid svg{width:23px;height:23px}
 .reference-detail.fair-type-talk .talk-editorial-facts-grid strong{font-size:12px}
 .reference-detail.fair-type-talk .talk-editorial-facts-grid small{font-size:10px}
}


/* XARRADES — CONTRACTE VISUAL DEL 17/10. Una sola fitxa blanca
   i una única columna editorial, amb informació pràctica al final. */
.category-detail-wrap.reference-detail.fair-type-talk{
 --talk-ink:#123d30;--talk-body:#35455a;
 display:flex!important;flex-direction:column!important;
 max-width:1080px!important;width:100%;margin:0 auto!important;
 background:transparent!important;border:0!important;
}
.category-detail-wrap.reference-detail.fair-type-talk>.detail-context-links{
 order:0!important;position:relative!important;z-index:3!important;
 background:#fff!important;border:0!important;padding:12px 20px!important;
 margin:0!important;flex-wrap:wrap!important
}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner{
 order:1!important;position:relative!important;min-height:540px!important;
 display:flex!important;flex-direction:column!important;
 align-items:flex-start!important;justify-content:center!important;
 border-radius:22px 22px 0 0!important;overflow:hidden!important;
 background:#13382c!important
}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner>img{
 position:absolute!important;inset:0!important;width:100%!important;
 height:100%!important;object-fit:cover!important;object-position:center!important;
 z-index:-2!important;border-radius:0!important
}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner:after{
 display:block!important;content:"";position:absolute!important;inset:0!important;
 z-index:-1!important;background:linear-gradient(90deg,#071d18c9 0%,#081c1770 65%,#091b1640 100%)!important
}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner>.event-detail-banner-body{
 flex:0 1 auto!important;align-self:stretch!important;max-width:820px!important;
 padding:48px clamp(26px,5vw,64px)!important;color:white!important
}
.category-detail-wrap.reference-detail.fair-type-talk .event-detail-badge{
 display:inline-flex!important;align-items:center!important;gap:7px!important;
 background:#ffc983!important;border:0!important;border-radius:100px!important;
 color:#362b20!important;font-size:13px!important;font-weight:800!important;
 text-transform:uppercase!important;letter-spacing:0!important;padding:8px 14px!important
}
.category-detail-wrap.reference-detail.fair-type-talk .event-detail-banner-body h1{
 font-size:clamp(42px,6.2vw,70px)!important;line-height:1.03!important;
 letter-spacing:-.045em!important;font-weight:850!important;
 margin:18px 0 4px!important;color:white!important;
 max-width:720px!important;text-wrap:balance
}
.category-detail-wrap.reference-detail.fair-type-talk .event-detail-banner-body .talk-hero-person{
 font-size:clamp(27px,3.7vw,45px)!important;line-height:1.1!important;
 margin:0 0 16px!important;font-weight:450!important;color:white!important;
 letter-spacing:-.025em!important
}
.category-detail-wrap.reference-detail.fair-type-talk .event-detail-banner-body>p:not(.talk-hero-person){
 font-size:clamp(16px,2vw,23px)!important;line-height:1.4!important;
 max-width:630px!important;margin:0 0 22px!important;color:#f7f9f7!important
}
.category-detail-wrap.reference-detail.fair-type-talk .event-detail-banner-meta.talk-hero-meta{
 display:flex!important;flex-wrap:wrap!important;gap:8px 17px!important;
 align-items:center!important;width:fit-content!important;max-width:100%!important;
 padding:14px 16px!important;background:#091b1ac7!important;
 border:1px solid #ffffff4c!important;border-radius:12px!important;
 backdrop-filter:blur(7px)
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta span{
 display:inline-flex!important;gap:7px!important;align-items:center!important;
 color:#fff!important;font-size:14px!important;font-weight:650!important;
 white-space:normal!important
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta svg{color:#ffcc81!important;flex:0 0 auto!important}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-sections{
 order:2!important;display:flex!important;position:relative!important;
 z-index:4!important;margin:-21px 0 0!important;padding:12px 28px 0!important;
 background:#fff!important;border:0!important;border-radius:22px 22px 0 0!important;
 box-shadow:none!important;min-height:68px!important;gap:12px!important
}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-sections button{
 background:none!important;border:0!important;border-bottom:3px solid transparent!important;
 border-radius:0!important;font-size:16px!important;color:#5a6869!important;
 padding:11px 17px!important;min-height:48px!important;font-weight:750!important
}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-sections button:first-child{
 color:#15583f!important;border-bottom-color:#15583f!important
}
.category-detail-wrap.reference-detail.fair-type-talk>.detail{
 order:3!important;display:flex!important;flex-direction:column!important;
 gap:24px!important;padding:26px clamp(22px,4vw,52px) 34px!important;
 background:#fff!important;grid-template-columns:none!important;
 border:0!important;border-radius:0 0 22px 22px!important;
 box-shadow:0 14px 36px #123a2914!important;min-height:0!important;
}
.category-detail-wrap.reference-detail.fair-type-talk>.detail>div:first-child{
 display:flex!important;flex-direction:column!important;gap:26px!important;
 grid-column:auto!important;grid-row:auto!important;min-width:0!important;
 width:100%!important;order:0!important
}
.category-detail-wrap.reference-detail.fair-type-talk>.detail>.event-detail-practical{
 order:1!important;grid-column:auto!important;grid-row:auto!important;
 position:relative!important;top:auto!important;align-self:stretch!important;
 width:100%!important;min-width:0!important;
 background:#f5f8f6!important;border:1px solid #e4ece6!important;
 border-radius:16px!important;box-shadow:none!important;padding:20px!important
}
.category-detail-wrap.reference-detail.fair-type-talk .event-detail-description{
 padding:0!important;margin:0!important;background:#fff!important
}
.category-detail-wrap.reference-detail.fair-type-talk .event-detail-description p{
 margin:0!important;color:#35455a!important;font-size:clamp(16px,1.9vw,20px)!important;
 font-weight:400!important;line-height:1.65!important
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 background:#eef5f0!important;border-radius:13px!important;padding:20px 10px!important;
 gap:0!important
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights>div{
 display:flex!important;align-items:flex-start!important;gap:10px!important;
 padding:0 14px!important;border-right:1px solid #d6e3d9!important
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights>div:last-child{border-right:0!important}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights strong{
 display:block!important;color:#154e3a!important;font-size:15px!important;line-height:1.3!important
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights small{
 display:block!important;font-size:12px!important;color:#4d5c58!important;line-height:1.4!important
}
.category-detail-wrap.reference-detail.fair-type-talk .fira-speakers h2,
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts h2{
 color:#133f32!important;font-size:clamp(22px,3vw,30px)!important;line-height:1.2!important;
 font-weight:800!important;letter-spacing:-.03em!important;margin:0 0 13px!important
}
.category-detail-wrap.reference-detail.fair-type-talk .fira-speakers h2 svg{display:none!important}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts{
 padding:0!important;margin:0!important;border:0!important;background:#fff!important
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid>div{
 display:flex!important;align-items:flex-start!important;gap:12px!important;
 background:#f7f6f2!important;border:0!important;border-radius:17px!important;
 padding:17px 13px!important;min-width:0!important
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid small{font-size:12px!important}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid strong{
 font-size:14px!important;color:#122e25!important
}
@media(max-width:760px){
 .category-detail-wrap.reference-detail.fair-type-talk>.detail-context-links{padding:10px 14px!important}
 .category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner{
  min-height:490px!important;border-radius:0!important
 }
 .category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner>.event-detail-banner-body{
  padding:28px 20px 40px!important
 }
 .category-detail-wrap.reference-detail.fair-type-talk .event-detail-banner-body h1{
  font-size:clamp(32px,8vw,48px)!important
 }
 .category-detail-wrap.reference-detail.fair-type-talk .event-detail-banner-body .talk-hero-person{
  font-size:clamp(25px,6vw,35px)!important
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta span{font-size:12px!important}
 .category-detail-wrap.reference-detail.fair-type-talk>.event-detail-sections{
  padding:9px 12px 0!important;gap:2px!important
 }
 .category-detail-wrap.reference-detail.fair-type-talk>.event-detail-sections button{
  font-size:13px!important;padding:10px 12px!important;white-space:nowrap!important
 }
 .category-detail-wrap.reference-detail.fair-type-talk>.detail{
  padding:20px 16px 26px!important;gap:22px!important
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights{
  padding:15px 5px!important
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights>div{
  display:block!important;padding:0 7px!important
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights>div svg{
  width:23px!important;height:23px!important;margin-bottom:5px!important
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights strong{font-size:11px!important}
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights small{font-size:10px!important}
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid>div{
  flex-direction:column!important;padding:13px 9px!important;gap:7px!important
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid>div svg{width:22px!important;height:22px!important}
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid strong{font-size:12px!important}
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid small{font-size:10px!important}
}


/* Les pestanyes de navegació de xarrades tenen subratllat actiu real. */
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-sections button:first-child:not([aria-selected=true]){
 color:#5a6869!important;border-bottom-color:transparent!important
}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-sections button[aria-selected=true]{
 color:#15583f!important;border-bottom:3px solid #15583f!important
}
/* Jerarquia exacta de la fitxa de ponent: NOM, professió, biografia. */
.category-detail-wrap.reference-detail.fair-type-talk .fira-speaker-info{
 display:flex!important;flex-direction:column!important;align-items:flex-start!important;gap:0!important
}
.category-detail-wrap.reference-detail.fair-type-talk .fira-speaker-info h3{
 order:0!important;font-size:clamp(26px,3.2vw,38px)!important;
 margin:0 0 3px!important;font-weight:850!important;color:#112f37!important
}
.category-detail-wrap.reference-detail.fair-type-talk .fira-speaker-info>.fira-speaker-role{
 order:1!important;font-size:clamp(14px,1.65vw,19px)!important;
 background:none!important;color:#13533a!important;border:0!important;
 padding:0!important;margin:0 0 11px!important;font-weight:780!important
}
.category-detail-wrap.reference-detail.fair-type-talk .fira-speaker-info>p{
 order:2!important;margin:0 0 8px!important;color:#40536a!important;
 font-size:clamp(14px,1.8vw,18px)!important;line-height:1.52!important
}
.category-detail-wrap.reference-detail.fair-type-talk .fira-speaker-info>a{order:3!important}
@media(max-width:760px){
 .category-detail-wrap.reference-detail.fair-type-talk .fira-speaker-info h3{font-size:clamp(22px,5.3vw,29px)!important}
 .category-detail-wrap.reference-detail.fair-type-talk .fira-speaker-info>.fira-speaker-role{font-size:14px!important}
 .category-detail-wrap.reference-detail.fair-type-talk .fira-speaker-info>p{font-size:13px!important}
}


/* Pestanyes en blau clar i accent verd, tal com la composició de referència. */
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-sections{
 background:#f2f7f9!important;border-bottom:1px solid #e5eded!important
}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-sections button{
 color:#245c45!important
}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-sections button[aria-selected=true]{
 color:#12583e!important;border-bottom:3px solid #12583e!important
}
/* Les tres dades finals tanquen el bloc editorial, abans de l'apartat ampli
   de mapa i informació pràctica. */
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts{margin-top:1px!important}
.category-detail-wrap.reference-detail.fair-type-talk .fira-speaker-card+.fira-speaker-card{
 margin-top:10px!important
}


/* El resum de tres dades apareix NOMÉS damunt de la fotografia,
   amb icona, etiqueta i valor; no es duplica sota els ponents. */
.category-detail-wrap.reference-detail.fair-type-talk .event-detail-banner-meta.talk-hero-meta{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 width:min(690px,100%)!important;max-width:100%!important;gap:0!important;
 padding:12px 8px!important;background:rgba(8,22,20,.76)!important;
 border:1px solid rgba(255,255,255,.34)!important;border-radius:13px!important;
 backdrop-filter:blur(9px);box-shadow:0 7px 22px #0003
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta>.talk-hero-datum{
 display:flex!important;align-items:flex-start!important;gap:10px!important;
 min-width:0!important;padding:7px 11px!important;border-right:1px solid #ffffff30!important
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta>.talk-hero-datum:last-child{border-right:0!important}
.category-detail-wrap.reference-detail.fair-type-talk .talk-hero-datum>svg{flex:0 0 auto!important;color:#ffce89!important}
.category-detail-wrap.reference-detail.fair-type-talk .talk-hero-datum>span{display:flex!important;flex-direction:column!important;gap:4px!important;min-width:0!important}
.category-detail-wrap.reference-detail.fair-type-talk .talk-hero-datum small{color:#e7f0e9!important;font-size:11px!important;line-height:1.2!important}
.category-detail-wrap.reference-detail.fair-type-talk .talk-hero-datum strong{color:white!important;font-size:13px!important;line-height:1.32!important;overflow-wrap:anywhere!important}
@media(max-width:560px){
 .category-detail-wrap.reference-detail.fair-type-talk .event-detail-banner-meta.talk-hero-meta{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;padding:8px 3px!important
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta>.talk-hero-datum{
  flex-direction:column!important;gap:5px!important;padding:6px 8px!important
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-hero-datum>svg{width:19px!important;height:19px!important}
 .category-detail-wrap.reference-detail.fair-type-talk .talk-hero-datum small{font-size:10px!important}
 .category-detail-wrap.reference-detail.fair-type-talk .talk-hero-datum strong{font-size:11px!important}
}


/* Xarrades: en escriptori el document aprofita el viewport, no una columna de 980px.
   El text manté longitud de línia llegible mentre foto, ponents i blocs usen l'espai. */
@media(min-width:1024px){
 body:has(.category-detail-wrap.reference-detail.fair-type-talk) #main,
 body:has(.category-detail-wrap.reference-detail.fair-type-talk) main#main,
 body:has(.category-detail-wrap.reference-detail.fair-type-talk) .main-content{
  width:calc(100% - 64px)!important;
  max-width:none!important;
  margin-inline:auto!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk{
  width:100%!important;
  max-width:none!important;
  margin-inline:auto!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner{
  min-height:clamp(490px,43vw,700px)!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner>.event-detail-banner-body{
  max-width:980px!important;
  padding-inline:clamp(48px,6vw,110px)!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk>.detail{
  padding:clamp(32px,4vw,70px)!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk>.detail>div:first-child{
  max-width:none!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk .event-detail-description p{
  max-width:88ch!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk .fira-speaker-card{
  max-width:1200px!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk .fira-speaker-photo{
  max-height:410px!important;
 }
}

/* Evitar que els marges generals del programa limiten la fitxa a 1460px. */
@media(min-width:1024px){
 body:not(.is-fira-home):has(.reference-detail.fair-type-talk) #main{
  width:calc(100vw - clamp(32px,4vw,96px))!important;
  max-width:none!important;
  padding-inline:0!important;
  box-sizing:border-box!important;
 }
 body:not(.is-fira-home):has(.reference-detail.fair-type-talk) #main>.category-detail-wrap.reference-detail.fair-type-talk{
  max-width:none!important;width:100%!important;
 }
}


/* Les targetes originals de Detalls es mouen al hero sense canviar-ne
   el llenguatge: tres superfícies crema amb icones verdes i valors foscos. */
.category-detail-wrap.reference-detail.fair-type-talk .event-detail-banner-meta.talk-hero-meta{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:12px!important;width:min(900px,100%)!important;max-width:100%!important;
 padding:0!important;margin:22px 0 0!important;background:transparent!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;
 backdrop-filter:none!important;overflow:visible!important
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta>.talk-hero-datum{
 display:flex!important;flex-direction:row!important;align-items:flex-start!important;
 gap:13px!important;min-width:0!important;min-height:102px!important;
 padding:19px 17px!important;border:0!important;border-radius:22px!important;
 background:#f7f6f2!important;box-shadow:0 5px 16px #06160c24!important;
 color:#173b2e!important;white-space:normal!important
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta>.talk-hero-datum .talk-hero-icon{
 display:flex!important;align-items:center!important;justify-content:center!important;
 flex:0 0 26px!important;width:26px!important;color:#176447!important
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta .talk-hero-icon svg{
 color:#176447!important;width:25px!important;height:25px!important
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta>.talk-hero-datum>span:last-child{
 display:flex!important;flex-direction:column!important;gap:5px!important;min-width:0!important
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta .talk-hero-datum small{
 font-size:14px!important;line-height:1.2!important;font-weight:450!important;color:#53665b!important
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta .talk-hero-datum strong{
 font-size:17px!important;line-height:1.28!important;font-weight:770!important;color:#17372b!important;
 overflow-wrap:anywhere!important
}
@media(max-width:760px){
 .category-detail-wrap.reference-detail.fair-type-talk .event-detail-banner-meta.talk-hero-meta{
  gap:7px!important;margin-top:15px!important
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta>.talk-hero-datum{
  flex-direction:column!important;min-height:96px!important;padding:10px 9px!important;
  gap:6px!important;border-radius:12px!important
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta .talk-hero-icon svg{
  width:19px!important;height:19px!important
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta .talk-hero-datum small{
  font-size:10px!important
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta .talk-hero-datum strong{
  font-size:11px!important
 }
}


/* Resums editorials: tres columnes com la referència en escriptori;
   en pantalles menudes es prioritza la lectura per damunt de comprimir-les. */
.talk-highlight-editor{min-width:0;border:1px solid #dce7df;border-radius:12px;padding:16px;margin:14px 0;background:#f7faf7}
.talk-highlight-editor legend{font-weight:800;color:#164931;padding:0 7px}
.talk-highlight-editor>p{font-size:13px;color:#536459;margin:0 0 13px}
.talk-highlight-editor[hidden]{display:none!important}
.talk-highlight-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.talk-highlight-fields-item{display:flex;flex-direction:column;gap:7px;min-width:0}
.talk-highlight-fields-item>strong{font-size:13px;color:#174832}
.talk-highlight-fields-item .field{min-width:0}
.talk-highlight-fields-item textarea{min-height:84px;resize:vertical}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights>div{min-width:0}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights strong,
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights small{overflow-wrap:break-word}
@media(max-width:760px){.talk-highlight-fields{grid-template-columns:1fr}}
@media(max-width:540px){
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights{
   grid-template-columns:1fr!important;
   padding:5px 14px!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights>div{
   display:flex!important;gap:12px!important;
   padding:12px 2px!important;border-right:0!important;
   border-bottom:1px solid #d6e3d9!important
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights>div:last-child{border-bottom:0!important}
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights>div svg{
   flex:0 0 30px;width:30px!important;height:30px!important;margin:0!important
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights strong{font-size:14px!important}
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights small{font-size:12px!important;line-height:1.4!important}
}


/* Finestra editorial flotant — geometria de la referència:
   el panell blanc es retira dels laterals i cavalca la foto 30 px.
   Navegació i cos tenen EXACTAMENT la mateixa amplària. */
.category-detail-wrap.reference-detail.fair-type-talk{
 --talk-panel-gutter:clamp(18px,3.8vw,64px);
 --talk-panel-overlap:32px;
}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner{
 border-radius:24px!important;
}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-sections{
 width:calc(100% - (2 * var(--talk-panel-gutter)))!important;
 margin:calc(-1 * var(--talk-panel-overlap)) var(--talk-panel-gutter) 0!important;
 padding:13px clamp(16px,3vw,36px) 0!important;
 border-radius:24px 24px 0 0!important;
 background:#fff!important;
 border:0!important;
 border-bottom:1px solid #e7ece8!important;
 box-shadow:0 -8px 22px #071b130b!important;
 min-height:70px!important;
 align-self:center!important;
 flex:0 0 auto!important;
 position:relative!important;z-index:5!important;
}
.category-detail-wrap.reference-detail.fair-type-talk>.detail{
 width:calc(100% - (2 * var(--talk-panel-gutter)))!important;
 margin:0 var(--talk-panel-gutter) 0!important;
 border-radius:0 0 24px 24px!important;
 box-sizing:border-box!important;
 align-self:center!important;
 box-shadow:0 16px 32px #112f2216!important;
}
@media(max-width:760px){
 .category-detail-wrap.reference-detail.fair-type-talk{
  --talk-panel-gutter:clamp(12px,3.6vw,24px);
  --talk-panel-overlap:29px;
 }
 .category-detail-wrap.reference-detail.fair-type-talk>.event-detail-sections{
  min-height:62px!important;
  padding:9px 12px 0!important;
  border-radius:21px 21px 0 0!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk>.detail{
  border-radius:0 0 21px 21px!important;
 }
}


/* Arquitectura final de la fitxa desktop:
   Hero a full width, fitxa editorial centrada sense estirar el contingut. */
@media(min-width:1024px){
 body:not(.is-fira-home):has(.reference-detail.fair-type-talk) #main{
  width:calc(100vw - 32px)!important;max-width:none!important;padding-inline:0!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk{
  --talk-panel-gutter:0px!important;
  width:100%!important;max-width:none!important;margin:0 auto!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk>.detail-context-links{
  width:min(1320px,calc(100% - 64px))!important;margin-inline:auto!important;
  padding:12px 20px!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner{
  width:100%!important;max-width:none!important;min-height:clamp(480px,39vw,660px)!important;
  border-radius:23px!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner>.event-detail-banner-body{
  width:min(1220px,100%)!important;max-width:1220px!important;
  margin-inline:auto!important;padding:42px clamp(35px,5vw,80px)!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk>.event-detail-sections{
  width:min(1180px,calc(100% - 96px))!important;
  margin:-30px auto 0!important;max-width:1180px!important;
  align-self:center!important;border-radius:24px 24px 0 0!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk>.detail{
  width:min(1180px,calc(100% - 96px))!important;
  max-width:1180px!important;margin:0 auto!important;
  padding:34px clamp(28px,3vw,48px) 48px!important;
  align-self:center!important;box-sizing:border-box!important;
  border-radius:0 0 24px 24px!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk .event-detail-description p{
  max-width:78ch!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk .fira-speaker-card{
  max-width:100%!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk .event-detail-practical .detail-venue-map{
  height:270px!important;min-height:270px!important;
 }
}


/* Reparació de regressió: el hero no conté tres botons crema gegants.
   Un únic quadre de metadades fosc, compacte, com el referent aprovat. */
.category-detail-wrap.reference-detail.fair-type-talk .event-detail-banner-meta.talk-hero-meta{
 display:flex!important;flex-wrap:wrap!important;align-items:center!important;
 gap:0!important;width:fit-content!important;max-width:min(720px,100%)!important;
 margin:18px 0 0!important;padding:9px 12px!important;
 background:rgba(10,25,23,.79)!important;border:1px solid #ffffff5a!important;
 border-radius:12px!important;box-shadow:0 7px 22px #0003!important;
 backdrop-filter:blur(6px)!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta>.talk-hero-datum{
 display:flex!important;flex-direction:row!important;align-items:center!important;
 gap:7px!important;min-width:0!important;min-height:0!important;
 padding:4px 11px!important;margin:0!important;background:transparent!important;
 border:0!important;border-right:1px solid #ffffff40!important;
 border-radius:0!important;box-shadow:none!important;color:#fff!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta>.talk-hero-datum:last-child{border-right:0!important}
.category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta .talk-hero-icon{
 flex:0 0 20px!important;width:20px!important;color:#ffc87e!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta .talk-hero-icon svg{
 width:19px!important;height:19px!important;color:#ffc87e!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta .talk-hero-datum>span:last-child{
 display:flex!important;flex-direction:column!important;gap:3px!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta .talk-hero-datum small{
 color:#ecf2eb!important;font-size:10px!important;line-height:1.15!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta .talk-hero-datum strong{
 color:#fff!important;font-size:12px!important;line-height:1.28!important;
}
@media(max-width:760px){
 .category-detail-wrap.reference-detail.fair-type-talk .event-detail-banner-meta.talk-hero-meta{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  width:100%!important;padding:9px 3px!important;gap:0!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta>.talk-hero-datum{
  flex-direction:column!important;align-items:flex-start!important;
  padding:4px 6px!important;border-right:1px solid #ffffff40!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-hero-meta .talk-hero-datum strong{font-size:10px!important}
}


/* Composició final de conferències, a partir de la referència aprovada.
   Es recuperen tres targetes NOMÉS sota els ponents, mai damunt de la foto. */
@media(min-width:1024px){
 .category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner{
  min-height:clamp(480px,34vw,620px)!important;
  border-radius:0 0 24px 24px!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner>.event-detail-banner-body{
  width:min(1320px,100%)!important;max-width:1320px!important;
  padding:34px clamp(36px,6vw,100px) 70px!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk>.event-detail-sections{
  width:min(1220px,calc(100% - 100px))!important;max-width:1220px!important;
  margin:-34px auto 0!important;
  padding-inline:clamp(22px,4vw,65px)!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk>.detail{
  width:min(1220px,calc(100% - 100px))!important;max-width:1220px!important;
  margin:0 auto!important;
  padding:26px clamp(30px,4vw,65px) 45px!important;
 }
}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner .event-detail-banner-meta.talk-hero-meta{
 display:inline-flex!important;flex-wrap:wrap!important;gap:9px 16px!important;
 width:auto!important;max-width:100%!important;min-height:0!important;
 background:rgba(9,22,21,.77)!important;color:#fff!important;
 border:1px solid #ffffff4d!important;border-radius:12px!important;
 padding:12px 16px!important;margin:18px 0 0!important;
 box-shadow:none!important;backdrop-filter:blur(6px)!important;
}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner .talk-hero-meta>span{
 display:inline-flex!important;color:#fff!important;align-items:center!important;
 min-height:0!important;padding:0!important;margin:0!important;background:none!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;
 font-size:13px!important;line-height:1.4!important;font-weight:650!important;
}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner .talk-hero-meta svg{
 color:#ffcb7c!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts{
 display:block!important;margin:6px 0 0!important;background:#fff!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts h2{
 display:block!important;font-size:clamp(23px,2.6vw,30px)!important;
 margin:0 0 13px!important;color:#123f30!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid{
 display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
 gap:12px!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid>div{
 display:flex!important;flex-direction:row!important;align-items:flex-start!important;
 gap:12px!important;background:#f7f6f3!important;border-radius:17px!important;
 padding:18px 15px!important;min-height:100px!important;
 border:0!important;box-shadow:none!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid>div>svg{
 background:#e0eee5!important;color:#126046!important;
 box-sizing:content-box!important;border-radius:50%!important;
 padding:13px!important;width:25px!important;height:25px!important;flex:0 0 25px!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid>div:nth-child(2)>svg{
 background:#f9dddd!important;color:#a72b31!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid>div:nth-child(3)>svg{
 background:#ffe8c6!important;color:#174d45!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid>div>span{
 display:flex!important;flex-direction:column!important;gap:4px!important;
 min-width:0!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid small{
 color:#50627a!important;font-size:13px!important;line-height:1.28!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid strong{
 color:#132f2c!important;font-size:16px!important;font-weight:800!important;line-height:1.25!important;
}
@media(max-width:760px){
 .category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner .event-detail-banner-meta.talk-hero-meta{
  padding:9px 12px!important;gap:6px 11px!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid{
  gap:8px!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid>div{
  flex-direction:column!important;gap:7px!important;min-height:110px!important;padding:12px 9px!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid>div>svg{
  width:20px!important;height:20px!important;padding:8px!important;flex-basis:20px!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid strong{font-size:12px!important}
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid small{font-size:10px!important}
}


/* Fitxes de conferències: hero enganxat al toolbar, sense back ni ubicació externs.
   La informació pràctica es consulta als diàlegs, no en un panell duplicat. */
body:not(.is-fira-home):has(.reference-detail.fair-type-talk) #main{
 padding-top:0!important;
}
.category-detail-wrap.reference-detail.fair-type-talk>.detail-context-links{
 display:none!important;
}
.category-detail-wrap.reference-detail.fair-type-talk>.detail>.event-detail-practical{
 display:none!important;
}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner{
 border-radius:0 0 22px 22px!important;
}
@media(min-width:1024px){
 body:not(.is-fira-home):has(.reference-detail.fair-type-talk) #main{
  width:100%!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner{
  min-height:clamp(365px,29vw,510px)!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner>.event-detail-banner-body{
  max-width:1250px!important;
  padding:30px clamp(36px,5vw,86px) 55px!important;
 }
}
@media(max-width:760px){
 .category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner{
  min-height:410px!important;
 }
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid>.talk-fact-link{
 appearance:none;cursor:pointer;font:inherit;text-align:left;color:inherit;
 width:100%;display:flex!important;flex-direction:row!important;
 gap:12px!important;align-items:flex-start!important;
 background:#f7f6f3!important;border:1px solid transparent!important;
 border-radius:17px!important;padding:18px 15px!important;min-width:0!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid>.talk-fact-link:hover,
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid>.talk-fact-link:focus-visible{
 border-color:#9dbdaa!important;box-shadow:0 0 0 2px #c4dfcf!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid>.talk-fact-link>svg{
 box-sizing:content-box!important;background:#e0eee5!important;color:#126046!important;
 border-radius:50%!important;padding:13px!important;width:25px!important;height:25px!important;flex:0 0 25px!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid>.talk-fact-link:nth-child(2)>svg{background:#f9dddd!important;color:#a72b31!important}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid>.talk-fact-link:nth-child(3)>svg{background:#ffe8c6!important;color:#174d45!important}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid>.talk-fact-link>span{display:flex;flex-direction:column;gap:4px;min-width:0}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid>.talk-fact-link small{color:#53645f!important;font-size:13px!important}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid>.talk-fact-link strong{color:#142c24!important;font-size:16px!important}
.talk-map-open{overflow:hidden}
.talk-map-overlay{position:fixed;inset:0;z-index:99999;background:#071e18aa;display:flex;align-items:center;justify-content:center;padding:22px}
.talk-map-dialog{display:flex;flex-direction:column;width:min(920px,100%);max-height:calc(100dvh - 44px);overflow:auto;background:#fff;border-radius:20px;box-shadow:0 15px 60px #0005}
.talk-map-dialog>header{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid #e2e8e2}
.talk-map-dialog>header h2{color:#153f32;font-size:22px;margin:2px 0 0}
.talk-map-dialog>header small{color:#586a60}
.talk-map-dialog>header button{display:grid;place-items:center;min-width:44px;min-height:44px;border:0;border-radius:50%;background:#eef4ee;cursor:pointer}
.talk-map-content{position:relative;margin:14px 20px 0}
.talk-dialog-map{height:min(58dvh,520px);min-height:310px;border-radius:14px;overflow:hidden}
.talk-map-dialog .fira-travel-modes{margin:14px 20px 22px}
.talk-map-dialog .fira-map-toolbar{position:relative;z-index:500}
.talk-calendar-highlight{scroll-margin-top:100px;outline:2px solid #b5d8c3;border-radius:12px}
.talk-calendar-selected{background:#e5f2e8!important;outline:2px solid #18754c!important;border-radius:9px}
@media(max-width:760px){
 .talk-map-overlay{padding:0}
 .talk-map-dialog{width:100vw;height:100dvh;max-height:100dvh;border-radius:0}
 .talk-map-content{flex:1;display:flex;flex-direction:column;min-height:0}
 .talk-dialog-map{flex:1;height:auto;min-height:260px}
 .talk-map-dialog .fira-travel-modes{margin:12px 16px 24px}
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid>.talk-fact-link{padding:10px 8px!important;flex-direction:column!important;gap:6px!important}
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid>.talk-fact-link>svg{width:20px!important;height:20px!important;padding:8px!important;flex-basis:20px!important}
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid>.talk-fact-link strong{font-size:12px!important}
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-facts-grid>.talk-fact-link small{font-size:10px!important}
}


/* Ajust final de jerarquia visual de Xarrades — referència del 17/10.
   Titular protagonista, ponent lleuger, placa compacta i pictogrames grans. */
@media(min-width:761px){
 .category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner>.event-detail-banner-body{
  max-width:1120px!important;
  padding-block:clamp(24px,3vw,48px)!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk .event-detail-banner-body h1{
  font-size:clamp(50px,4.5vw,76px)!important;
  line-height:1.025!important;letter-spacing:-.045em!important;
  font-weight:850!important;margin:18px 0 4px!important;
  text-wrap:balance!important;max-width:850px!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk .event-detail-banner-body .talk-hero-person{
  font-size:clamp(32px,2.9vw,45px)!important;
  line-height:1.13!important;font-weight:390!important;
  margin:0 0 15px!important;letter-spacing:-.025em!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk .event-detail-banner-body>p:not(.talk-hero-person){
  font-size:clamp(17px,1.55vw,22px)!important;
  font-weight:420!important;line-height:1.42!important;
  max-width:630px!important;margin:0 0 18px!important;
 }
}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner .event-detail-banner-meta.talk-hero-meta{
 display:inline-flex!important;align-items:center!important;justify-content:flex-start!important;
 width:max-content!important;max-width:100%!important;min-width:0!important;
 padding:11px 15px!important;margin:0!important;gap:10px!important;
 background:rgba(18,20,18,.78)!important;backdrop-filter:blur(8px)!important;
 border:1px solid rgba(253,205,129,.35)!important;border-radius:12px!important;
 box-shadow:0 8px 20px rgba(0,0,0,.18)!important;
}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner .talk-hero-meta>span{
 display:inline-flex!important;align-items:center!important;white-space:nowrap!important;
 gap:7px!important;color:#fff!important;font-size:13px!important;font-weight:650!important;
}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner .talk-hero-meta>span:first-child:before{
 content:"";display:block!important;width:0;height:0;
}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner .talk-hero-meta svg{
 color:#ffc266!important;width:22px!important;height:22px!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights{
 padding:18px 15px!important;align-items:center!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights>div{
 display:flex!important;align-items:center!important;gap:17px!important;
 padding:7px 20px!important;min-height:82px!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights>div svg{
 display:block!important;flex:0 0 54px!important;width:54px!important;height:54px!important;
 margin:0!important;color:#125b42!important;stroke-width:1.55px!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights strong{
 font-size:16px!important;font-weight:800!important;line-height:1.25!important;
}
.category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights small{
 font-size:13px!important;line-height:1.42!important;
}
@media(max-width:760px){
 .category-detail-wrap.reference-detail.fair-type-talk .event-detail-banner-body h1{
  font-size:clamp(35px,8.2vw,49px)!important;letter-spacing:-.04em!important;
  margin:14px 0 3px!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk .event-detail-banner-body .talk-hero-person{
  font-size:clamp(26px,6vw,34px)!important;font-weight:390!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner .event-detail-banner-meta.talk-hero-meta{
  width:max-content!important;max-width:100%!important;
  padding:10px 12px!important;gap:9px!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk>.event-detail-banner .talk-hero-meta>span{
  font-size:11px!important;white-space:normal!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights{
  padding:12px 6px!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights>div{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  padding:9px 7px!important;gap:8px!important;min-height:100px!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights>div svg{
  flex:0 0 37px!important;width:37px!important;height:37px!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights strong{font-size:12px!important}
 .category-detail-wrap.reference-detail.fair-type-talk .talk-editorial-highlights small{font-size:10px!important}
}


/* Retoc puntual de capçalera i pestanyes — 17/10/2026.
   El badge avança cap a l'esquerra i amunt sense desplaçar el titular. */
.category-detail-wrap.reference-detail.fair-type-talk .event-detail-banner-body>.event-detail-badge{
 position:relative!important;left:-16px!important;top:-15px!important;
 margin-bottom:-7px!important;transform:none!important;
}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-sections{
 background:#fff!important;box-shadow:none!important;
}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-sections>button{
 appearance:none!important;background:transparent!important;background-image:none!important;
 border:0!important;border-bottom:3px solid transparent!important;border-radius:0!important;
 box-shadow:none!important;outline-offset:3px!important;
 color:#53665b!important;padding:12px 17px!important;
}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-sections>button:hover{
 background:transparent!important;color:#14583f!important;
}
.category-detail-wrap.reference-detail.fair-type-talk>.event-detail-sections>button[aria-selected="true"]{
 background:transparent!important;border-bottom:3px solid #14583f!important;
 color:#14583f!important;box-shadow:none!important;
}
@media(max-width:760px){
 .category-detail-wrap.reference-detail.fair-type-talk .event-detail-banner-body>.event-detail-badge{
  left:-7px!important;top:-9px!important;margin-bottom:-4px!important;
 }
 .category-detail-wrap.reference-detail.fair-type-talk>.event-detail-sections>button{
  padding:11px 12px!important;
 }
}

/* Proporcions consistents de les fotografies de categoria, fitxa i targeta. */
.category-banner{min-height:unset!important;aspect-ratio:3.8/1;max-height:410px;min-height:265px!important}
.category-banner-image,.event-detail-banner>img{object-fit:cover;object-position:center 42%}
.event-detail-banner{height:auto!important;aspect-ratio:3.5/1;min-height:290px;max-height:430px}
.category-listing .category-card-image{height:auto;aspect-ratio:16/9}
.category-listing .category-card-image>img{position:absolute;inset:0;object-fit:cover}
@media(max-width:700px){.category-banner{aspect-ratio:auto;min-height:245px!important;max-height:none}.category-banner-text{padding:25px 21px}.event-detail-banner{aspect-ratio:auto;min-height:270px;max-height:none}.category-listing .category-card-image{aspect-ratio:16/10}}


/* Esdeveniments esportius: capçalera diferenciada i anunci sense sessió inventada. */
.category-banner.cat-sport{
 min-height:clamp(260px,31vw,410px)!important;
 background:#173a3b!important;
}
.category-banner.cat-sport:after{
 background:linear-gradient(90deg,rgba(7,23,24,.87) 0%,rgba(7,23,24,.52) 47%,rgba(7,23,24,.08) 100%)!important;
}
.category-banner.cat-sport .category-banner-image{
 object-fit:cover!important;
 object-position:center 42%!important;
}
.category-banner.cat-sport .category-banner-text{
 position:relative!important;z-index:1!important;
 width:min(710px,100%)!important;
 padding:clamp(24px,5vw,60px)!important;
}
.category-banner.cat-sport .category-banner-text h1{
 font-size:clamp(34px,5.7vw,62px)!important;color:#fff!important;
 line-height:1.04!important;
}
.category-banner.cat-sport .category-banner-text>strong{
 color:#f8faf9!important;font-size:clamp(15px,2.4vw,22px)!important;
}
.sport-coming-soon{
 box-sizing:border-box;width:min(1080px,calc(100% - 32px));
 margin:22px auto 16px!important;
 padding:clamp(18px,2.5vw,28px)!important;
 border:1px solid #dee7e5!important;border-radius:16px!important;
 background:#f5f8f7!important;
 color:#173a32!important;
}
.sport-coming-soon h2{
 margin:9px 0!important;font-size:clamp(22px,3vw,28px)!important;line-height:1.16!important;
}
.sport-coming-soon p{margin:0 0 9px!important;line-height:1.5!important;font-size:15px!important}
.sport-coming-soon small{display:block;color:#536560!important;font-size:13px!important;line-height:1.55!important}
.sport-coming-badge{
 display:inline-flex;background:#e3ece8;border-radius:99px;
 padding:5px 10px;font-size:11px;font-weight:750;letter-spacing:.01em;color:#315e4c;
}
@media(max-width:700px){
 .category-banner.cat-sport{min-height:248px!important}
 .category-banner.cat-sport .category-banner-text{padding:22px 19px!important}
 .category-banner.cat-sport .category-banner-text h1{font-size:clamp(29px,8vw,43px)!important}
 .sport-coming-soon{margin:13px auto!important;padding:17px!important}
}


/* Animated loading placeholders for programme lists and image decoding. */
.fira-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.fira-skeleton-page{box-sizing:border-box;width:min(1180px,calc(100% - 32px));margin:24px auto 44px;min-height:70vh}
.fira-shimmer{background:linear-gradient(105deg,#e8eeeb 8%,#f8faf8 27%,#e8eeeb 46%);background-size:240% 100%;animation:fira-shimmer 1.55s ease-in-out infinite}
@keyframes fira-shimmer{0%{background-position:110% 0}100%{background-position:-110% 0}}
.fira-skel-hero{height:clamp(190px,25vw,300px);border-radius:17px;margin-bottom:24px}
.fira-skel-toolbar{display:flex;gap:10px;margin-bottom:22px}
.fira-skel-toolbar i{display:block;width:124px;height:37px;border-radius:99px}.fira-skel-toolbar i:first-child{width:210px}
.fira-skel-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.fira-skel-card{border:1px solid #e9eeeb;border-radius:14px;padding:0 0 22px;overflow:hidden}
.fira-skel-photo{height:180px;margin-bottom:20px}
.fira-skel-line{height:17px;border-radius:8px;margin:0 16px 12px;width:calc(100% - 32px)}
.fira-skel-line.short{width:57%}.fira-skel-line.thin{height:12px;width:72%}
.fira-media-waiting{position:relative;isolation:isolate;overflow:hidden}
.fira-media-waiting img{opacity:0!important}
.fira-media-waiting::before{content:"";position:absolute;inset:0;z-index:0;background:#e9efeb}
.fira-media-waiting::after{content:"";position:absolute;inset:0;z-index:0;background:linear-gradient(100deg,transparent 20%,rgba(255,255,255,.65) 45%,transparent 70%);transform:translateX(-100%);animation:fira-media-sweep 1.5s ease-in-out infinite;pointer-events:none}
@keyframes fira-media-sweep{to{transform:translateX(100%)}}
.fira-media-waiting img{position:relative;z-index:1}
@media(max-width:800px){.fira-skel-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.fira-skel-photo{height:145px}}
@media(max-width:520px){.fira-skeleton-page{margin:12px auto;width:calc(100% - 24px)}.fira-skel-grid{grid-template-columns:1fr;gap:12px}.fira-skel-card:nth-child(n+4){display:none}.fira-skel-hero{height:190px}.fira-skel-toolbar i{width:77px}.fira-skel-toolbar i:first-child{width:150px}}
@media(prefers-reduced-motion:reduce){.fira-shimmer,.fira-media-waiting::after{animation:none!important}}

/* Capçalera de totes les activitats: imatge rectangular sense cantonades arredonides. */
.category-detail-wrap.reference-detail .event-detail-banner,
.category-detail-wrap.reference-detail .event-detail-banner > img,
.category-detail-wrap.reference-detail .event-detail-banner::before,
.category-detail-wrap.reference-detail .event-detail-banner::after {
  border-radius: 0 !important;
}

/* Rutes: retícula estable mapa + punts, perfil immediatament davall del mapa. */
.category-detail-wrap.reference-detail.fair-type-excursion .event-detail-route,
.category-detail-wrap.reference-detail.fair-type-excursion .event-detail-practical,
.category-detail-wrap.reference-detail.fair-type-excursion .event-detail-description {
 background:#fff!important;border:1px solid #e0e4e8!important;
 border-radius:14px!important;box-shadow:none!important;color:#263343!important;
}
.category-detail-wrap.reference-detail.fair-type-excursion .event-detail-route{padding:0!important;overflow:hidden}
.category-detail-wrap.reference-detail.fair-type-excursion .fira-trail-content .sample-view-grid {
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(230px,32%)!important;
 grid-template-rows:auto auto!important;gap:0 12px!important;align-items:start!important;
}
.category-detail-wrap.reference-detail.fair-type-excursion .fira-trail-content .sample-map-wrap {
 grid-column:1!important;grid-row:1!important;margin:0!important;
 border:0!important;border-radius:0!important;min-width:0!important;
}
.category-detail-wrap.reference-detail.fair-type-excursion .fira-trail-content .sample-profile {
 grid-column:1!important;grid-row:2!important;margin:0!important;
 border:0!important;border-top:1px solid #e1e5eb!important;
 border-radius:0!important;background:#fff!important;
 padding:0 6px 5px!important;min-width:0!important;
}
.category-detail-wrap.reference-detail.fair-type-excursion .fira-trail-content .sample-profile>h2,
.category-detail-wrap.reference-detail.fair-type-excursion .fira-trail-content .sample-profile>h3,
.category-detail-wrap.reference-detail.fair-type-excursion .fira-trail-content .sample-profile>p,
.category-detail-wrap.reference-detail.fair-type-excursion .fira-trail-content .sample-elevation>h2,
.category-detail-wrap.reference-detail.fair-type-excursion .fira-trail-content .sample-elevation>h3,
.category-detail-wrap.reference-detail.fair-type-excursion .fira-trail-content .sample-elevation>p {display:none!important}
.category-detail-wrap.reference-detail.fair-type-excursion .fira-trail-content .sample-pois {
 grid-column:2!important;grid-row:1/span 2!important;align-self:start!important;
 margin:0!important;background:#fff!important;border:1px solid #e1e5eb!important;
 border-radius:10px!important;min-width:0!important;
}
.category-detail-wrap.reference-detail.fair-type-excursion .fira-trail-content .sample-pois-list {
 display:flex!important;flex-direction:column!important;gap:7px!important;
}
.category-detail-wrap.reference-detail.fair-type-excursion .fira-trail-content .sample-profile svg,
.category-detail-wrap.reference-detail.fair-type-excursion .fira-trail-content .sample-elevation svg {
 display:block!important;width:100%!important;max-width:100%!important;height:auto!important;
 touch-action:pan-y!important;cursor:crosshair;
}
.category-detail-wrap.reference-detail.fair-type-excursion .fira-trail-kpis>div {
 background:#f7f8fa!important;border:1px solid #e3e6eb!important;color:#273546!important;
}
.category-detail-wrap.reference-detail.fair-type-excursion .fira-trail-kpis strong,
.category-detail-wrap.reference-detail.fair-type-excursion .event-detail-practical h2,
.category-detail-wrap.reference-detail.fair-type-excursion .event-detail-description h2 {
 color:#263343!important;
}
.category-detail-wrap.reference-detail.fair-type-excursion .event-detail-banner-meta>span {
 background:rgba(18,28,41,.78)!important;border:1px solid rgba(255,255,255,.22)!important;
}
.category-detail-wrap.reference-detail.fair-type-excursion .event-detail-badge {
 background:#eef2f7!important;color:#263343!important;
}
.category-detail-wrap.reference-detail .fira-booking-spotlight {margin-top:10px!important}
@media(max-width:760px){
 .category-detail-wrap.reference-detail.fair-type-excursion .fira-trail-content .sample-view-grid{
  grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;gap:0!important;
 }
 .category-detail-wrap.reference-detail.fair-type-excursion .fira-trail-content .sample-map-wrap{grid-column:1!important;grid-row:1!important}
 .category-detail-wrap.reference-detail.fair-type-excursion .fira-trail-content .sample-profile{grid-column:1!important;grid-row:2!important}
 .category-detail-wrap.reference-detail.fair-type-excursion .fira-trail-content .sample-pois{grid-column:1!important;grid-row:3!important;margin-top:12px!important}
}


/* Correcció estructural de fitxes i visor; substituir verd heretat per neutres. */
.category-detail-wrap.reference-detail{
 box-sizing:border-box!important;width:100%!important;max-width:100%!important;
 min-width:0!important;overflow-x:clip!important;
}
.category-detail-wrap.reference-detail > *,
.category-detail-wrap.reference-detail .fira-detail-right-column,
.category-detail-wrap.reference-detail .event-detail-route,
.category-detail-wrap.reference-detail .fira-trail-viewer,
.category-detail-wrap.reference-detail .fira-trail-content{box-sizing:border-box!important;min-width:0!important;max-width:100%!important}
.category-detail-wrap.reference-detail .event-detail-banner,
.category-detail-wrap.reference-detail .event-detail-banner > img,
.category-detail-wrap.reference-detail .event-detail-banner::before,
.category-detail-wrap.reference-detail .event-detail-banner::after,
.category-detail-wrap.reference-detail .event-detail-banner-body{border-radius:0!important}
.category-detail-wrap.reference-detail.fair-type-excursion .fira-trail-content .sample-view-grid{
 display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,32%)!important;
 grid-template-rows:auto auto!important;column-gap:12px!important;row-gap:0!important;
 width:100%!important;min-width:0!important;max-width:100%!important;
}
.category-detail-wrap.reference-detail.fair-type-excursion .sample-map-wrap{grid-column:1!important;grid-row:1!important}
.category-detail-wrap.reference-detail.fair-type-excursion .sample-profile{
 grid-column:1!important;grid-row:2!important;min-width:0!important;padding:2px 0!important;
 border:0!important;background:#fff!important;border-radius:0!important;
}
.category-detail-wrap.reference-detail.fair-type-excursion .sample-pois{
 grid-column:2!important;grid-row:1/span 2!important;min-width:0!important;
 background:#fff!important;border:1px solid #e5e7eb!important;
}
.category-detail-wrap.reference-detail.fair-type-excursion .sample-pois-list button,
.category-detail-wrap.reference-detail.fair-type-excursion .sample-poi-icon{
 background:#f5f6f8!important;color:#263746!important;border-color:#e5e7eb!important;
}
.category-detail-wrap.reference-detail.fair-type-excursion .fira-trail-kpis>div,
.category-detail-wrap.reference-detail.fair-type-excursion .activity-fact,
.category-detail-wrap.reference-detail.fair-type-excursion .activity-facts,
.category-detail-wrap.reference-detail.fair-type-excursion .talk-editorial-highlights,
.category-detail-wrap.reference-detail.fair-type-excursion .talk-editorial-highlights>div{
 background:#f5f6f8!important;color:#263746!important;border-color:#e5e7eb!important;
}
.category-detail-wrap.reference-detail.fair-type-excursion .talk-editorial-highlights svg,
.category-detail-wrap.reference-detail.fair-type-excursion .activity-fact svg,
.category-detail-wrap.reference-detail.fair-type-excursion .sample-pois svg{color:#33475c!important}
.category-detail-wrap.reference-detail.fair-type-excursion .fira-trail-section-title{color:#263746!important}
.category-detail-wrap.reference-detail.fair-type-excursion .fira-route-map-tools{
 position:relative!important;height:0!important;z-index:700!important;
}
.category-detail-wrap.reference-detail.fair-type-excursion .fira-map-layer-trigger{
 position:absolute!important;top:10px!important;right:11px!important;z-index:701!important;
 width:39px!important;height:39px!important;min-height:39px!important;padding:0!important;
 border:1px solid #d4dbe3!important;border-radius:9px!important;
 background:#fff!important;color:#22354b!important;font-size:24px!important;box-shadow:0 2px 8px #14233330!important;
}
.category-detail-wrap.reference-detail.fair-type-excursion .sample-map-tabs{
 position:absolute!important;right:10px!important;top:53px!important;z-index:701!important;
 display:flex!important;flex-direction:column!important;width:138px!important;gap:2px!important;
 border:1px solid #dce2e8!important;border-radius:9px!important;padding:5px!important;
 background:#fff!important;box-shadow:0 8px 18px #18243525!important;
}
.category-detail-wrap.reference-detail.fair-type-excursion .sample-map-tabs[hidden]{display:none!important}
.category-detail-wrap.reference-detail.fair-type-excursion .sample-map-tabs button{
 display:block!important;width:100%!important;min-height:34px!important;padding:6px 9px!important;
 font-size:13px!important;text-align:left!important;background:#fff!important;
 color:#293b50!important;border:0!important;border-radius:5px!important;
}
.category-detail-wrap.reference-detail.fair-type-excursion .sample-map-tabs button[aria-pressed="true"]{background:#e9eef6!important;color:#143d71!important}
.category-detail-wrap.reference-detail .fira-booking-main-action{
 background:#174a82!important;border-color:#174a82!important;color:#fff!important;
}
.category-detail-wrap.reference-detail .fira-reservation-confirmed{
 display:block!important;margin:8px 0 12px!important;font-weight:700!important;
 color:#174a82!important;font-size:15px!important;
}
@media(max-width:760px){
 .category-detail-wrap.reference-detail{display:flex!important;flex-direction:column!important;gap:0!important;padding-left:0!important;padding-right:0!important}
 .category-detail-wrap.reference-detail>.event-detail-banner{width:100%!important;flex:none!important}
 .category-detail-wrap.reference-detail .fira-detail-left-column,
 .category-detail-wrap.reference-detail .fira-detail-right-column,
 .category-detail-wrap.reference-detail .event-detail-description,
 .category-detail-wrap.reference-detail .event-detail-route{width:100%!important;max-width:100%!important;min-width:0!important}
 .category-detail-wrap.reference-detail.fair-type-excursion .fira-trail-content .sample-view-grid{
  grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto auto!important;gap:0!important;
 }
 .category-detail-wrap.reference-detail.fair-type-excursion .sample-map-wrap{grid-column:1!important;grid-row:1!important}
 .category-detail-wrap.reference-detail.fair-type-excursion .sample-profile{grid-column:1!important;grid-row:2!important}
 .category-detail-wrap.reference-detail.fair-type-excursion .sample-pois{grid-column:1!important;grid-row:3!important;margin-top:10px!important}
 .category-detail-wrap.reference-detail.fair-type-excursion .sample-pois-list{max-height:none!important}
 .category-detail-wrap.reference-detail .event-detail-banner{border-radius:0!important}
 .category-detail-wrap.reference-detail .event-detail-banner>img{border-radius:0!important;width:100%!important}
}

/* Imatges i blocs informatius de les activitats: eliminar verd residual. */
.category-banner{border-radius:0!important;overflow:hidden}
.category-banner .category-banner-image{border-radius:0!important}
.category-detail-wrap.reference-detail .talk-editorial-highlights,
.category-detail-wrap.reference-detail .talk-editorial-highlights>div,
.category-detail-wrap.reference-detail .activity-facts,
.category-detail-wrap.reference-detail .activity-fact,
.category-detail-wrap.reference-detail .workshop-fact,
.category-detail-wrap.reference-detail .fira-specific-details,
.category-detail-wrap.reference-detail .fira-specific-field{
 background:#f5f6f8!important;border-color:#e2e6eb!important;color:#253648!important;
}
.category-detail-wrap.reference-detail .talk-editorial-highlights strong,
.category-detail-wrap.reference-detail .activity-fact strong,
.category-detail-wrap.reference-detail .workshop-fact strong,
.category-detail-wrap.reference-detail .fira-specific-field strong{color:#253648!important}
.category-detail-wrap.reference-detail .talk-editorial-highlights svg,
.category-detail-wrap.reference-detail .activity-fact svg,
.category-detail-wrap.reference-detail .workshop-fact svg{color:#38506c!important}

/* Perfil de ruta: eixos i unitats llegibles també al mòbil. */
.fira-trail-content .fira-elevation-heading{display:flex!important;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:5px 14px;margin:0 0 8px;color:#243e55}
.fira-trail-content .fira-elevation-heading strong{font-size:15px;font-weight:750}
.fira-trail-content .fira-elevation-heading span{font-size:12px;color:#53687b}
.fira-trail-content .sample-elevation svg text{fill:#314d64!important;font-family:system-ui,sans-serif!important;font-size:15px!important;font-weight:600}
.fira-trail-content .sample-elevation svg{height:auto!important;min-height:190px!important;overflow:visible!important}
@media(max-width:650px){
 .fira-trail-content .sample-elevation{padding:8px 4px!important;overflow:visible!important}
 .fira-trail-content .sample-elevation svg{width:100%!important;min-height:150px!important}
 .fira-trail-content .fira-elevation-heading span{font-size:11px}
}
