/* Bioforest: stili limitati al contenuto dei blocchi Gutenberg, nessuna modifica globale al tema. */
.bf-home{--bf-green:#173f33;--bf-deep:#10332a;--bf-paper:#f4f3ed;--bf-sage:#e4eae1;--bf-text:#24372e;--bf-muted:#52695c;--bf-border:#c5d0c8;font-family:Arial,Helvetica,sans-serif;color:var(--bf-text);line-height:1.7;max-width:none!important;margin:0!important}
.bf-home *{box-sizing:border-box}.bf-home .bf-section{max-width:none!important;width:100%;margin:0!important;clear:both}.bf-home .bf-container{width:min(1300px,calc(100% - 88px));margin:auto!important;max-width:none!important}.bf-home .bf-section-title{font-family:Georgia,serif;font-size:clamp(42px,5.3vw,78px)!important;line-height:1.06!important;font-weight:400;letter-spacing:-.046em;color:var(--bf-green);margin:8px 0 24px}.bf-home p{line-height:1.75}.bf-home .bf-eyebrow{font-size:11px!important;font-weight:700;text-transform:uppercase;letter-spacing:.16em;margin:0 0 18px}.bf-home .bf-link{margin:18px 0 0;font-size:12px;font-weight:700;letter-spacing:.09em;text-transform:uppercase}.bf-home .bf-link a{color:inherit;text-decoration:none;border-bottom:1px solid currentColor;padding-bottom:8px}.bf-home .bf-link span{margin-left:15px}.bf-home .bf-note{font-size:12px;color:var(--bf-muted);margin:25px 0 0}.bf-home .wp-block-columns{gap:clamp(20px,3vw,45px)}.bf-home .wp-block-image{margin:0}.bf-home .wp-block-image img{width:100%;height:100%;object-fit:cover;display:block}.bf-home .bf-section:not(.bf-header):not(.bf-hero):not(.bf-footer){padding:100px 0}
/* Header integrato nel contenuto; puoi cancellare questo gruppo se il tema ha già una testata. */
.bf-home .bf-header{background:var(--bf-paper);padding:16px 0!important}.bf-home .bf-header-inner{display:flex;justify-content:space-between;gap:30px;align-items:center}.bf-home .bf-brand{display:flex;gap:14px;align-items:center;flex-shrink:0}.bf-home .bf-logo{width:50px;min-width:50px;height:66px}.bf-home .bf-logo img{width:100%;height:100%;object-fit:contain}.bf-home .bf-wordmark{font:800 27px/1 Arial,Helvetica,sans-serif;letter-spacing:-.07em;margin:0;color:var(--bf-green)}.bf-home .bf-brand-sub{max-width:220px;font-size:8px;letter-spacing:.085em;text-transform:uppercase;line-height:1.35;margin:5px 0 0}.bf-home .bf-nav{font-size:11px!important;letter-spacing:.055em;text-transform:uppercase;font-weight:700;text-align:right;margin:0}.bf-home .bf-nav a{color:var(--bf-green);text-decoration:none;margin-left:5px}.bf-home .bf-nav a:hover{text-decoration:underline}
/* Hero: fotografia dentro un vero blocco Immagine */
.bf-home .bf-hero{position:relative;background:var(--bf-deep);color:white;min-height:630px;padding:0!important;overflow:hidden}.bf-home .bf-hero .bf-container{position:relative;min-height:630px;display:flex;align-items:center;isolation:isolate}.bf-home .bf-hero-photo{position:absolute;inset:0;width:100%;height:100%;z-index:0;max-width:none}.bf-home .bf-hero-photo img{height:100%;width:100%;object-fit:cover;filter:brightness(.55)}.bf-home .bf-hero .bf-container:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,30,22,.60),transparent 85%);z-index:1;pointer-events:none}.bf-home .bf-hero-copy{position:relative;z-index:2;max-width:830px;padding:80px 0}.bf-home .bf-display{font:400 clamp(60px,8vw,119px)/.98 Georgia,'Times New Roman',serif;letter-spacing:-.055em;color:#fff;margin:18px 0 26px}.bf-home .bf-hero .bf-lead{max-width:520px;font-size:17px;line-height:1.65}.bf-home .bf-hero .bf-link{margin-top:33px}
/* Intro */
.bf-home .bf-intro{background:var(--bf-paper)}.bf-home .bf-intro>.bf-container{display:grid;grid-template-columns:1fr 1.08fr;gap:8%}.bf-home .bf-intro-body>p{font-size:16px}.bf-home .bf-intro-body>p:first-child{font-size:19px}.bf-home .bf-intro-head{max-width:520px}
.bf-home .bf-keywords{background:var(--bf-sage);padding:34px 0!important}.bf-home .bf-keywords-cols{margin:0;gap:16px}.bf-home .bf-keywords-cols .wp-block-heading{font-size:12px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;margin:0}
/* Projects */
.bf-home .bf-projects{background:#fff}.bf-home .bf-intro-text{max-width:700px;font-size:16px;color:var(--bf-muted)}.bf-home .bf-project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:23px;margin-top:50px}.bf-home .bf-card-img{height:clamp(230px,26vw,350px);overflow:hidden;margin-bottom:25px}.bf-home .bf-card-img img{transition:transform .4s}.bf-home .bf-card:hover .bf-card-img img{transform:scale(1.035)}.bf-home .bf-card-title{font:400 clamp(28px,3vw,40px)/1.1 Georgia,serif;letter-spacing:-.04em;margin:0 0 17px}.bf-home .bf-card-desc{font-size:14px;color:var(--bf-muted)}.bf-home .bf-card .bf-eyebrow{font-size:10px!important;color:#536c5a}.bf-home .bf-card .bf-link{margin-top:25px}
/* Detailed project introductions */
.bf-home .bf-detail{background:var(--bf-paper);border-top:1px solid var(--bf-border)}.bf-home .bf-detail:nth-of-type(2n){background:#e9eee7}.bf-home .bf-detail-cols{align-items:center;gap:7%!important}.bf-home .bf-detail-title{font:400 clamp(38px,4.6vw,65px)/1.08 Georgia,serif;letter-spacing:-.04em;margin:10px 0 25px;color:var(--bf-green)}.bf-home .bf-detail-text>p:not(.bf-eyebrow){font-size:15px}.bf-home .bf-historical{border-left:2px solid var(--bf-green);padding-left:16px;color:var(--bf-muted);font-size:13px!important;margin-top:26px}.bf-home .bf-detail-img{height:500px}.bf-home .bf-detail-img img{height:100%;object-fit:cover}
/* Science */
.bf-home .bf-science{background:var(--bf-green);color:#edf5ee}.bf-home .bf-science-cols{align-items:center;gap:8%!important}.bf-home .bf-science-img{height:470px}.bf-home .bf-light-title{font:400 clamp(42px,5.4vw,78px)/1.06 Georgia,serif;letter-spacing:-.045em;color:#fff;margin:12px 0 25px}.bf-home .bf-science-text>p:not(.bf-eyebrow){color:#dce8dc;font-size:16px}
/* Impact and donations */
.bf-home .bf-impact{background:var(--bf-paper)}.bf-home .bf-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--bf-border);margin-top:45px}.bf-home .bf-metric{padding:30px 22px;min-height:185px;border-right:1px solid var(--bf-border)}.bf-home .bf-metric:last-child{border:0}.bf-home .bf-metric-num{font:400 clamp(35px,3.5vw,55px)/1.1 Georgia,serif;letter-spacing:-.05em;color:var(--bf-green);margin:0 0 14px}.bf-home .bf-metric-desc{font-size:13px;margin:0}.bf-home .bf-donations{background:white}.bf-home .bf-donations-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-top:45px}.bf-home .bf-donation-cell{padding:25px 18px;border-top:1px solid var(--bf-border);background:var(--bf-paper)}.bf-home .bf-money{font:400 clamp(26px,3vw,42px)/1.1 Georgia,serif;color:var(--bf-green);white-space:nowrap;letter-spacing:-.04em;margin:0 0 15px}.bf-home .bf-donation-label{font-size:13px}
/* Mission */
.bf-home .bf-mission{background:#e7eee6}.bf-home .bf-mission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 35px;margin-top:48px}.bf-home .bf-mission-item{border-top:1px solid #a5b9ac;padding-top:22px}.bf-home .bf-mission-item .wp-block-heading{font:400 30px/1.2 Georgia,serif;margin:0 0 15px}.bf-home .bf-mission-item>p:last-child{font-size:14px;color:var(--bf-muted)}
/* CTA + footer */
.bf-home .bf-cta{background:var(--bf-green);color:#fff}.bf-home .bf-cta .bf-container{max-width:900px}.bf-home .bf-cta p{color:#dce8dc}.bf-home .bf-footer{background:var(--bf-deep);color:#e9eee9;padding:55px 0!important}.bf-home .bf-footer-inner{display:flex;justify-content:space-between;gap:30px;align-items:start}.bf-home .bf-footer .bf-wordmark,.bf-home .bf-footer a{color:#fff}.bf-home .bf-footer .bf-brand-sub{color:#c1d0c4}.bf-home .bf-footer-contacts p{margin:5px 0}.bf-home .bf-footnote{font-size:11px;opacity:.65;border-top:1px solid #506a5c;margin-top:60px;padding-top:20px}
/* Theme compatibility and editor preview */
.bf-home .wp-block-group:empty{display:none}.bf-home a:focus-visible{outline:2px solid #8da896;outline-offset:3px}.editor-styles-wrapper .bf-home .bf-section{max-width:none}.editor-styles-wrapper .bf-home .bf-hero-photo{min-height:100%}
@media(max-width:980px){.bf-home .bf-container{width:min(100% - 44px,1300px)}.bf-home .bf-nav{max-width:390px;line-height:2}.bf-home .bf-project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bf-home .bf-card:last-child{grid-column:span 2}.bf-home .bf-card:last-child .bf-card-img{height:320px}.bf-home .bf-donations-grid{grid-template-columns:repeat(2,1fr)}.bf-home .bf-mission-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bf-home .bf-detail-img{height:400px}}
@media(max-width:680px){.bf-home .bf-container{width:calc(100% - 36px)}.bf-home .bf-section:not(.bf-header):not(.bf-hero):not(.bf-footer){padding:65px 0}.bf-home .bf-header-inner,.bf-home .bf-footer-inner{display:block}.bf-home .bf-nav{text-align:left;line-height:2.2;margin-top:15px}.bf-home .bf-hero,.bf-home .bf-hero .bf-container{min-height:575px}.bf-home .bf-display{font-size:clamp(54px,12vw,76px)}.bf-home .bf-intro>.bf-container{display:block}.bf-home .bf-keywords-cols{display:grid;grid-template-columns:1fr 1fr;gap:18px}.bf-home .bf-project-grid{grid-template-columns:1fr}.bf-home .bf-card:last-child{grid-column:auto}.bf-home .bf-card-img,.bf-home .bf-card:last-child .bf-card-img{height:310px}.bf-home .bf-detail-cols,.bf-home .bf-science-cols{display:flex;flex-direction:column}.bf-home .bf-detail-img,.bf-home .bf-science-img{height:310px;width:100%}.bf-home .bf-metrics,.bf-home .bf-mission-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.bf-home .bf-metric:nth-child(2){border-right:0}.bf-home .bf-metric{border-bottom:1px solid var(--bf-border)}.bf-home .bf-metric:nth-last-child(-n+2){border-bottom:0}.bf-home .bf-metric-num{font-size:34px}.bf-home .bf-money{font-size:30px}.bf-home .bf-section-title{font-size:clamp(40px,9vw,58px)!important}}
@media(max-width:420px){.bf-home .bf-metrics,.bf-home .bf-donations-grid,.bf-home .bf-mission-grid{grid-template-columns:1fr}.bf-home .bf-metric{border-right:0;border-bottom:1px solid var(--bf-border)!important}.bf-home .bf-metric:last-child{border-bottom:0!important}.bf-home .bf-wordmark{font-size:23px}}
@media(prefers-reduced-motion:reduce){.bf-home *{transition:none!important;scroll-behavior:auto!important}}
