/*
Theme Name: BRF Modern - 2026 - v2
Theme URI: https://www.boxerivierafriulana.it/
Author: Boxe Riviera Friulana
Description: Tema WordPress moderno, responsive e personalizzabile per ASD Boxe Riviera Friulana.
Version: 2.9.1
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: brf
*/
:root{--navy:#071f43;--blue:#0d315f;--orange:#f5a300;--cream:#f7f8fa;--text:#14233a;--muted:#637086;--line:#dfe5ec;--white:#fff;--radius:22px;--shadow:0 20px 60px rgba(7,31,67,.12)}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);line-height:1.6}a{text-decoration:none;color:inherit}img{max-width:100%;height:auto}.container{width:min(1160px,92%);margin:auto}.skip-link{position:absolute;left:-9999px}.skip-link:focus{left:15px;top:15px;background:#fff;padding:10px;z-index:9999}.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.96);backdrop-filter:blur(12px);border-bottom:1px solid rgba(7,31,67,.08)}.header-inner{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:25px}.brand{display:flex;align-items:center;gap:12px;color:var(--navy);font-weight:900}.brand img,.brand .custom-logo{width:58px;height:58px;object-fit:contain}.brand span{font-size:13px;line-height:1.05;letter-spacing:.08em;text-transform:uppercase}nav ul{display:flex;gap:24px;align-items:center;list-style:none;margin:0;padding:0}nav a{font-size:14px;font-weight:800;opacity:.8}nav a:hover{color:var(--orange);opacity:1}.menu-cta a{background:var(--orange);color:var(--navy);padding:12px 19px;border-radius:999px;opacity:1}.menu-toggle{display:none;border:0;background:none;font-size:28px;color:var(--navy)}.btn{display:inline-flex;align-items:center;justify-content:center;border:0;border-radius:999px;padding:13px 22px;font-weight:900;cursor:pointer}.primary{background:var(--orange);color:var(--navy);box-shadow:0 10px 25px rgba(245,163,0,.24)}.darkbtn{background:var(--navy);color:#fff}.outline{border:1px solid rgba(255,255,255,.3);color:#fff}.hero{background:linear-gradient(135deg,var(--navy),var(--blue) 58%,var(--navy));color:#fff;overflow:hidden}.hero-grid{min-height:650px;display:grid;grid-template-columns:1.08fr .92fr;gap:40px;align-items:center}.eyebrow{color:var(--orange);font-size:12px;font-weight:900;letter-spacing:.16em;text-transform:uppercase}.hero h1{font-size:clamp(48px,7vw,86px);line-height:.94;letter-spacing:-.055em;text-transform:uppercase;margin:18px 0 24px}.hero h1 span{color:var(--orange)}.hero p{max-width:650px;color:#dbe6f5;font-size:18px}.actions{display:flex;gap:12px;flex-wrap:wrap;margin:28px 0}.stats{display:flex;gap:28px;flex-wrap:wrap}.stats strong{display:block;font-size:22px}.stats small{color:#aebed3}.logo-card{width:min(470px,90%);margin:auto;padding:26px;background:#fff;border-radius:34px;box-shadow:0 30px 80px rgba(0,0,0,.25);transform:rotate(1.5deg)}section{padding:95px 0}.cream{background:var(--cream)}.head{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:42px}h2{font-size:clamp(34px,4.5vw,56px);line-height:1.02;letter-spacing:-.04em;color:var(--navy);margin:8px 0}.lead{max-width:610px;color:var(--muted)}.two{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center}.card{background:#fff;border-radius:var(--radius);padding:34px;box-shadow:var(--shadow)}.values,.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.value{padding:18px;background:#f6f8fb;border-left:4px solid var(--orange);border-radius:16px}.value b{display:block;color:var(--navy)}.course{padding:28px;border:1px solid var(--line);border-radius:var(--radius);background:#fff;transition:.2s}.course:hover{transform:translateY(-5px);box-shadow:var(--shadow)}.course-thumb{margin:-10px -10px 20px}.course-thumb img{width:100%;height:160px;object-fit:cover;border-radius:16px}.icon{width:48px;height:48px;border-radius:14px;background:var(--navy);color:var(--orange);display:grid;place-items:center;font-weight:900;margin-bottom:20px}.course h3,.post h3{color:var(--navy);font-size:22px;margin:0 0 8px}.course p,.post p{color:var(--muted);font-size:15px}.course a,.post a{font-weight:900;color:var(--navy)}.dark{background:var(--navy);color:#fff}.dark h2{color:#fff}.schedule{background:#fff;color:var(--text);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}.row{display:grid;grid-template-columns:110px 1fr 110px;gap:12px;padding:18px 22px;border-bottom:1px solid var(--line)}.row:last-child{border:0}.tag{padding:6px 10px;border-radius:999px;background:#fff3d5;color:#8a5a00;font-size:11px;font-weight:900;text-align:center}.posts{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.post{padding:28px;border:1px solid var(--line);border-radius:var(--radius);background:#fff}.post img{width:100%;height:190px;object-fit:cover;border-radius:14px}.placeholder{height:190px;border-radius:14px;background:linear-gradient(135deg,var(--blue),var(--navy));display:grid;place-items:center;color:#fff;font-size:42px;font-weight:900}.meta{color:var(--orange);font-size:11px;font-weight:900;margin-top:18px}.cta{padding:70px 0;background:linear-gradient(100deg,var(--orange),#ffbd35)}.cta-inner{display:flex;justify-content:space-between;align-items:center;gap:30px}.cta h2{color:var(--navy);max-width:650px}.formgrid{display:grid;grid-template-columns:1fr 1fr;gap:14px}label{font-size:12px;font-weight:800;color:var(--navy)}input,textarea,select{width:100%;margin-top:6px;padding:13px;border:1px solid var(--line);border-radius:12px;font:inherit}textarea{min-height:120px}.full{grid-column:1/-1}.consent{display:flex;gap:8px;align-items:flex-start;font-weight:600;color:var(--muted)}.consent input{width:auto;margin:2px 0 0}.success{margin-top:15px;padding:14px 18px;border-radius:12px;background:#e7f7ed;color:#176437;font-weight:700}footer{background:#04152d;color:#aab8ca;padding:35px 0}.footer{display:flex;justify-content:space-between;gap:25px;align-items:flex-start}.footer b{color:#fff}.footer-links{display:flex;gap:22px;align-items:center}.footer-links ul{list-style:none;padding:0;margin:0;display:flex;gap:14px}.social{display:flex;gap:12px}.entry{max-width:820px;margin:auto}.entry h1{font-size:clamp(38px,5vw,64px);line-height:1.05;color:var(--navy)}.entry p,.entry li{font-size:17px;color:#42516a}.entry>img{border-radius:20px;margin:15px 0 30px}.entry .card{margin-top:35px}
@media(max-width:850px){.menu-toggle{display:block}nav{display:none;position:absolute;left:0;right:0;top:82px;background:#fff;padding:15px 4%;box-shadow:0 15px 30px rgba(7,31,67,.08)}nav.open{display:block}nav ul{flex-direction:column;align-items:stretch;gap:0}nav a{display:block;padding:12px}.menu-cta a{text-align:center}.hero-grid,.two{grid-template-columns:1fr}.logo-side{order:-1}.logo-card{width:270px}.grid,.posts{grid-template-columns:1fr 1fr}.head,.cta-inner,.footer{flex-direction:column;align-items:flex-start}.footer-links{flex-wrap:wrap}}
@media(max-width:560px){.grid,.posts,.formgrid,.values{grid-template-columns:1fr}section{padding:70px 0}.hero h1{font-size:54px}.row{grid-template-columns:80px 1fr}.tag{display:none}.head{align-items:flex-start}.brand span{display:none}}

/* BRF Modern v2 — social feed and contact refinements */
.social-feed-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px}.social-feed-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}.social-feed-head{padding:22px 24px;display:flex;align-items:center;justify-content:space-between;gap:15px}.social-feed-head h3{margin:0;color:var(--navy)}.social-feed-frame{width:100%;height:440px;border:0;display:block;background:#f3f5f8}.social-feed-fallback{padding:0 24px 24px;color:var(--muted)}.contact-person{padding:17px 19px;border:1px solid var(--line);border-radius:15px;margin:12px 0;background:#fff}.contact-person b{display:block;color:var(--navy)}.contact-person a{font-size:19px;font-weight:850;color:var(--navy)}.contact-person a:hover{color:var(--orange)}
@media(max-width:700px){.social-feed-grid{grid-template-columns:1fr}.social-feed-frame{height:380px}.contact-person a{font-size:17px}}

/* BRF Modern 2026 v2.1: illustrated course cards */
.course-illustration{height:142px;margin:0 0 20px;display:flex;align-items:center;justify-content:center;background:linear-gradient(145deg,#f7f9fc,#fff);border-radius:16px;overflow:hidden}
.course-illustration img{width:100%;height:100%;max-width:190px;object-fit:contain;padding:10px;transition:transform .25s ease}
.course:hover .course-illustration img{transform:scale(1.06) rotate(-2deg)}
.course-illustration + h3{margin-top:0}
.social-section + .cream{border-top:1px solid var(--line)}
@media(max-width:560px){.course-illustration{height:170px}.course-illustration img{max-width:210px}}

/* BRF Modern 2026 v2.2: sponsor and location links */
.footer-sponsors{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:12px 16px;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:rgba(255,255,255,.04)}.footer-sponsors span{font-size:11px;text-transform:uppercase;letter-spacing:.14em;color:#f5a300;font-weight:900}.footer-sponsors a{display:inline-flex;align-items:center;justify-content:center;padding:8px 13px;border-radius:999px;background:#fff;color:#071f43;font-weight:900;font-size:13px}.footer-sponsors a:hover{background:#f5a300}.maps-button{margin-top:4px}.course-illustration{height:165px;background:linear-gradient(135deg,#fff,#f0f4fa);border:1px solid #e6ebf2}.course-illustration img{max-width:100%;padding:4px;filter:drop-shadow(0 7px 5px rgba(7,31,67,.10))}.course:hover .course-illustration{background:#fff7e5}
@media(max-width:700px){.footer-sponsors{width:100%}}

/* BRF Modern 2026 v2.4 — richer course cards and balanced sponsor footer */
.course{position:relative;overflow:hidden;padding:18px;box-shadow:0 8px 24px rgba(7,31,67,.06)}
.course-illustration{height:178px;margin:-2px -2px 20px;border:0;border-radius:18px;background:linear-gradient(135deg,#071f43 0%,#174a80 58%,#f5a300 160%);position:relative;isolation:isolate}
.course-illustration:before{content:"";position:absolute;width:145px;height:145px;border:22px solid rgba(255,255,255,.13);border-radius:50%;right:-22px;top:-42px;z-index:-1}
.course-illustration:after{content:"BRF";position:absolute;right:12px;bottom:5px;font-size:12px;font-weight:950;letter-spacing:.18em;color:rgba(255,255,255,.72)}
.course-illustration img{width:100%;height:100%;max-width:100%;padding:8px;object-fit:contain;filter:drop-shadow(0 10px 9px rgba(0,0,0,.22));transition:transform .3s ease}
.course:hover .course-illustration img{transform:scale(1.09) rotate(-3deg)}
.course h3{font-size:20px;letter-spacing:-.02em}
.footer{display:grid;grid-template-columns:1fr auto;align-items:center;column-gap:36px;row-gap:24px}
.footer-links{justify-content:flex-end;flex-wrap:wrap}
.footer-sponsors{grid-column:1/-1;display:flex;align-items:center;justify-content:center;gap:18px 26px;flex-wrap:wrap;padding:22px 24px;border:1px solid rgba(255,255,255,.14);border-radius:18px;background:linear-gradient(110deg,rgba(255,255,255,.045),rgba(255,255,255,.09))}
.sponsor-heading{flex-basis:100%;text-align:center;font-size:10px;text-transform:uppercase;letter-spacing:.2em;color:#f5a300;font-weight:900;margin-bottom:0}
.footer-sponsors .sponsor-logo{display:inline-flex;align-items:center;gap:10px;min-width:185px;padding:10px 16px;border-radius:12px;background:#fff;color:#071f43;text-decoration:none;box-shadow:0 8px 22px rgba(0,0,0,.15);transition:transform .2s ease,background .2s ease}
.footer-sponsors .sponsor-logo:hover{transform:translateY(-3px);background:#fff7e5}
.sponsor-mark{width:34px;height:34px;display:grid;place-items:center;flex:0 0 34px;border-radius:10px;background:#071f43;color:#f5a300;font-weight:950;font-size:13px;letter-spacing:-.05em}
.sponsor-smartsquad .sponsor-mark{background:#f5a300;color:#071f43;border-radius:50%}
.sponsor-word{display:flex;flex-direction:column;font-weight:950;font-size:15px;line-height:1.05;letter-spacing:-.03em;white-space:nowrap}
.sponsor-word small{font-size:7px;letter-spacing:.13em;margin-top:5px;color:#637086;font-weight:800}
.footer>small{grid-column:1/-1;border-top:1px solid rgba(255,255,255,.12);padding-top:18px}
@media(max-width:700px){.footer{display:flex;flex-direction:column;align-items:stretch}.footer-links{justify-content:flex-start}.footer-sponsors{gap:12px;padding:18px 12px}.footer-sponsors .sponsor-logo{width:min(100%,240px)}}

/* v2.4 — sponsor logos reali e footer compatto; fotografia reale per i corsi */
.footer-compact{display:flex;align-items:center;justify-content:space-between;gap:18px;flex-wrap:nowrap}
.footer-brand{display:flex;flex-direction:column;line-height:1.25;min-width:max-content}.footer-brand b{font-size:12px;letter-spacing:.04em}.footer-brand small{font-size:10px;margin-top:4px}
.footer-compact .footer-links{gap:14px;align-items:center;flex:0 1 auto}.footer-compact .footer-sponsors{display:flex;align-items:center;gap:10px;padding:0;border:0;background:none;flex:0 0 auto;grid-column:auto;border-radius:0}.footer-compact .sponsor-heading{flex-basis:auto;margin:0;white-space:nowrap;font-size:9px;letter-spacing:.1em}.footer-compact .sponsor-logo{min-width:0;width:auto;height:38px;padding:4px 8px;border-radius:7px;box-shadow:none}.footer-compact .sponsor-sicurity img{display:block;width:120px;height:30px;object-fit:contain}.footer-compact .sponsor-smartsquad{background:#071f43}.footer-compact .sponsor-smartsquad img{display:block;width:31px;height:31px;object-fit:contain}.footer-compact .copyright{border:0;padding:0;grid-column:auto;white-space:nowrap;font-size:10px}
.course-photo{height:190px;overflow:hidden;background:#071f43;border-radius:16px;position:relative;margin:-2px -2px 20px}
.course-photo:before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(7,31,67,.02) 35%,rgba(7,31,67,.6));z-index:1;pointer-events:none}
.course-photo img{display:block;width:100%;height:100%;max-width:none;padding:0;object-fit:cover;filter:none;transition:transform .4s ease}
.course:hover .course-photo img{transform:scale(1.06)}
.course-photo:after{z-index:2}
@media(max-width:1000px){.footer-compact{flex-wrap:wrap;justify-content:center}.footer-compact .footer-brand{align-items:center}.footer-compact .copyright{width:100%;text-align:center}}
@media(max-width:700px){.footer-compact{align-items:center;gap:16px}.footer-compact .footer-links{justify-content:center}.footer-compact .footer-sponsors{flex-wrap:wrap;justify-content:center}.footer-compact .sponsor-heading{width:100%;text-align:center}.footer-compact .footer-brand{min-width:0;text-align:center}}

/* BRF Modern 2026 v2.5 — footer ridotto a una/due righe */
.footer-compact{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;padding-top:18px;padding-bottom:18px}
.footer-compact .footer-brand{min-width:0;flex:0 1 auto;line-height:1.15}
.footer-compact .footer-brand b{font-size:10px;letter-spacing:.025em;white-space:nowrap}
.footer-compact .footer-brand small{font-size:9px;margin-top:2px;white-space:nowrap}
.footer-compact .footer-links{display:flex;align-items:center;gap:10px;flex:0 1 auto;flex-wrap:nowrap;font-size:10px}
.footer-compact .footer-links ul{display:flex;gap:9px;flex-wrap:nowrap}
.footer-compact .footer-links a{font-size:10px;white-space:nowrap}
.footer-compact .social{display:flex;gap:8px;white-space:nowrap}
.footer-compact .footer-sponsors{display:flex;align-items:center;gap:7px;flex:0 1 auto;flex-wrap:nowrap;padding:0;border:0;background:none}
.footer-compact .sponsor-heading{font-size:9px;letter-spacing:.06em;white-space:nowrap;flex:0 0 auto}
.footer-compact .sponsor-logo{display:inline-flex;align-items:center;justify-content:center;height:29px;min-width:0;padding:3px 6px;border-radius:5px;background:#fff;box-shadow:none}
.footer-compact .sponsor-sicurity img{display:block;width:92px;height:23px;object-fit:contain}
.footer-compact .sponsor-smartsquad{background:#071f43}
.footer-compact .sponsor-smartsquad img{display:block;width:22px;height:22px;object-fit:contain}
.footer-compact .copyright{flex:0 0 100%;border-top:1px solid rgba(255,255,255,.1);padding-top:7px;margin-top:0;text-align:center;font-size:9px;white-space:normal}
@media(max-width:1050px){.footer-compact{justify-content:center;gap:10px 16px}.footer-compact .copyright{flex-basis:100%}}
@media(max-width:700px){.footer-compact{flex-direction:column;align-items:center;gap:10px}.footer-compact .footer-brand{align-items:center;text-align:center}.footer-compact .footer-links{justify-content:center;flex-wrap:wrap}.footer-compact .footer-sponsors{justify-content:center;flex-wrap:nowrap}.footer-compact .footer-brand b,.footer-compact .footer-brand small{white-space:normal;text-align:center}}


/* BRF Modern 2026 v2.6 — footer realmente compatto: una riga desktop, due righe al massimo */
.site-footer{padding:12px 0 9px!important;background:#04152d;color:#aab8ca}
.site-footer .footer-compact{display:block!important;padding:0!important;margin-inline:auto}
.site-footer .footer-mainline{display:flex;align-items:center;justify-content:space-between;gap:12px 18px;flex-wrap:nowrap;min-width:0}
.site-footer .footer-brand{flex:0 0 auto;min-width:0;line-height:1.15}
.site-footer .footer-brand b{display:block;font-size:10px;letter-spacing:.025em;white-space:nowrap}
.site-footer .footer-brand small{display:block;font-size:9px;margin-top:3px;white-space:nowrap}
.site-footer .footer-links{display:flex;align-items:center;justify-content:center;gap:12px;flex:0 1 auto;min-width:0}
.site-footer .footer-links ul{display:flex;align-items:center;gap:10px;list-style:none;margin:0;padding:0}
.site-footer .footer-links li,.site-footer .footer-links a,.site-footer .social a{font-size:10px;line-height:1.2;white-space:nowrap}
.site-footer .social{display:flex;align-items:center;gap:9px}
.site-footer .footer-sponsors{display:flex;align-items:center;justify-content:flex-end;gap:6px;flex:0 0 auto;margin:0;padding:0;border:0;border-radius:0;background:none}
.site-footer .sponsor-heading{display:inline-block;flex:0 0 auto;margin:0 2px 0 0;font-size:9px;line-height:1;letter-spacing:.05em;white-space:nowrap;color:#f5a300}
.site-footer .sponsor-logo{display:flex;align-items:center;justify-content:center;flex:0 0 auto;height:27px;min-width:0;padding:3px 6px;margin:0;border-radius:4px;background:#fff;box-shadow:none}
.site-footer .sponsor-sicurity img{display:block;width:86px;height:21px;object-fit:contain}
.site-footer .sponsor-smartsquad{background:#fff}
.site-footer .sponsor-smartsquad img{display:block;width:24px;height:24px;object-fit:contain}
.site-footer .copyright{display:block;margin:6px 0 0;padding:5px 0 0;border-top:1px solid rgba(255,255,255,.12);font-size:9px;line-height:1.2;text-align:center;color:#aab8ca}
@media(max-width:1050px){.site-footer .footer-mainline{flex-wrap:wrap;justify-content:center;gap:10px 16px}.site-footer .footer-brand{flex-basis:auto}.site-footer .footer-links{flex-wrap:wrap}.site-footer .footer-sponsors{justify-content:center}}
@media(max-width:600px){.site-footer{padding:12px 0 8px!important}.site-footer .footer-mainline{flex-direction:column;align-items:center;gap:9px}.site-footer .footer-brand{text-align:center}.site-footer .footer-links{flex-wrap:wrap;justify-content:center;gap:8px}.site-footer .footer-sponsors{flex-wrap:nowrap}.site-footer .copyright{margin-top:8px}}


/* BRF Modern 2026 v2.7 — accessibilità footer, contatti e orari */
.site-footer .footer-mainline{gap:14px 20px}
.site-footer .footer-brand b{font-size:13px;letter-spacing:.035em;color:#fff}
.site-footer .footer-brand small{font-size:11px;color:#d4deeb}
.site-footer .footer-links{gap:13px;flex-wrap:wrap}
.site-footer .footer-links a,.site-footer .social a,.site-footer .legal-link{display:inline-flex;align-items:center;gap:5px;font-size:12px!important;font-weight:800;color:#fff!important;text-decoration:none;line-height:1.35;padding:5px 0;border-bottom:1px solid transparent}
.site-footer .footer-links a:hover,.site-footer .social a:hover,.site-footer .legal-link:hover{color:#ffc247!important;border-bottom-color:#ffc247}
.site-footer .social{display:flex;align-items:center;gap:12px}
.site-footer .social-link span{display:inline-grid;place-items:center;width:20px;height:20px;border-radius:50%;font-size:14px;font-weight:950;color:#04152d;background:#fff}
.site-footer .instagram-link span{border-radius:6px;font-size:19px;line-height:1}
.site-footer .footer-sponsors{gap:9px}
.site-footer .sponsor-heading{font-size:11px;color:#ffc247}
.site-footer .sponsor-sicurity img{width:112px;height:28px}
.site-footer .sponsor-smartsquad img{width:104px;height:28px;object-fit:contain}
.site-footer .sponsor-logo{height:34px;padding:3px 7px}
.site-footer .copyright{font-size:11px;color:#d4deeb}
#orari .eyebrow{font-size:14px;color:#ffc247}
#orari h2{font-size:clamp(38px,4.8vw,60px)}
#orari .two>div:first-child>p{font-size:18px;line-height:1.75;color:#f0f5fc;max-width:540px}
#orari .schedule .row{padding:20px 22px;grid-template-columns:120px 1fr 140px;font-size:16px;align-items:center}
#orari .schedule .row strong{font-size:17px;color:#071f43}
#orari .schedule .tag{font-size:14px;padding:9px 12px;background:#fff0c7;color:#694300}
.contact-person{padding:14px 18px}
.contact-person b{font-size:16px}
@media(max-width:1050px){.site-footer .footer-mainline{flex-wrap:wrap}.site-footer .footer-links{justify-content:center}.site-footer .footer-brand{flex-basis:100%;text-align:center}}
@media(max-width:700px){.site-footer .footer-links{gap:10px}.site-footer .footer-links a,.site-footer .social a,.site-footer .legal-link{font-size:12px!important}.site-footer .footer-sponsors{flex-wrap:wrap}.site-footer .sponsor-smartsquad img{width:95px}#orari .schedule .row{grid-template-columns:90px 1fr;padding:15px}#orari .schedule .tag{grid-column:2;text-align:left;width:max-content;max-width:100%}}


/* BRF Modern 2026 v2.8 — news visuali con locandine senza testo aggiunto */
.news-image-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;align-items:stretch}
.news-image-card{display:block;overflow:hidden;border-radius:18px;background:#fff;box-shadow:0 14px 34px rgba(4,21,45,.12);line-height:0;transition:transform .2s ease,box-shadow .2s ease}
.news-image-card:hover,.news-image-card:focus-visible{transform:translateY(-4px);box-shadow:0 20px 42px rgba(4,21,45,.2);outline:3px solid var(--orange);outline-offset:3px}
.news-image-card img{display:block;width:100%;height:clamp(300px,42vw,560px);object-fit:contain;background:#04152d}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){.news-image-grid{grid-template-columns:1fr;gap:16px}.news-image-card img{height:auto;max-height:78vh;object-fit:contain}}


/* BRF Modern 2026 v2.9 — homepage news from WordPress posts, visual cards only */
.news-image-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;align-items:stretch}
.news-image-card{display:block;position:relative;min-width:0;overflow:hidden;aspect-ratio:16/10;border-radius:20px;background:#04152d;box-shadow:0 16px 36px rgba(4,21,45,.16);line-height:0;transition:transform .22s ease,box-shadow .22s ease}
.news-image-card img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.news-image-card:hover,.news-image-card:focus-visible{transform:translateY(-4px);box-shadow:0 22px 44px rgba(4,21,45,.24);outline:3px solid var(--orange);outline-offset:3px}
.news-image-card:hover img,.news-image-card:focus-visible img{transform:scale(1.035)}
.news-empty{grid-column:1/-1;color:var(--muted);padding:20px 0}
.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:700px){.news-image-grid{grid-template-columns:1fr;gap:18px}.news-image-card{aspect-ratio:4/3}}

/* BRF Modern 2026 v2.9.1 — layout Orari ottimizzato per smartphone */
#orari .schedule{width:100%;min-width:0;overflow:hidden}
#orari .schedule .row{min-width:0;grid-template-columns:minmax(105px,.72fr) minmax(0,1.4fr) minmax(120px,.9fr);gap:12px;align-items:center}
#orari .schedule .row strong,#orari .schedule .row span{min-width:0;overflow-wrap:anywhere}
#orari .schedule .tag{display:inline-flex;justify-content:center;align-items:center;white-space:normal;overflow-wrap:anywhere;max-width:100%}
@media(max-width:700px){
  #orari .two{grid-template-columns:minmax(0,1fr);gap:28px}
  #orari .two>div:first-child{min-width:0}
  #orari .schedule{border-radius:16px}
  #orari .schedule .row{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:15px 16px}
  #orari .schedule .row strong{grid-column:1;grid-row:1;font-size:16px;line-height:1.3}
  #orari .schedule .row .tag{grid-column:2;grid-row:1;justify-self:end;font-size:13px;padding:7px 10px;text-align:center}
  #orari .schedule .row>span:not(.tag){grid-column:1/-1;grid-row:2;font-size:14px;line-height:1.4;color:#526176}
}
@media(max-width:380px){
  #orari .schedule .row{grid-template-columns:minmax(0,1fr);gap:7px;padding:14px}
  #orari .schedule .row strong,#orari .schedule .row .tag,#orari .schedule .row>span:not(.tag){grid-column:1;grid-row:auto;justify-self:start}
  #orari .schedule .row .tag{max-width:100%;font-size:13px}
  #orari h2{font-size:36px}
  #orari .two>div:first-child>p{font-size:16px}
}
