/* Buildingcase 2026 — sezioni della home: ticker, numeri, scorrimento orizzontale, annunci, sede, CTA, footer. */

/* ------------------------------------------------------------ ticker a testo vuoto */
.bc-ticker { margin-top: 90px; overflow: hidden; background: var(--bc-blue); padding: 18px 0; }
@media (max-width: 959px) { .bc-ticker { margin-top: 50px; } }
.bc-ticker-row { display: flex; align-items: center; gap: 36px; width: max-content; animation: bc-marquee 34s linear infinite; }
.bc-ticker-row span { font: 700 clamp(2rem, 6vw, 4.4rem) / 1 var(--bc-sans); letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; color: transparent; -webkit-text-stroke: 2px #fff; -webkit-text-fill-color: transparent; }
.bc-ticker-row i { width: 16px; height: 16px; background: var(--bc-red); flex: 0 0 auto; transform: rotate(45deg); }
@keyframes bc-marquee { to { transform: translateX(-33.333%); } }

/* ------------------------------------------------------------ numeri */
.bc-nums { padding: 70px 0 30px; }
.bc-nums-grid { display: grid; gap: 0; }
.bc-num { position: relative; padding: 28px 0 28px 28px; border-left: 4px solid var(--bc-blue); }
.bc-num::before { content: ""; position: absolute; left: -4px; top: 0; width: 4px; height: 0; background: var(--bc-red); transition: height 1.2s var(--bc-ease) 0.3s; }
.bc-num.is-in::before { height: 100%; }
.bc-num-v { display: block; font: 700 clamp(3.6rem, 2rem + 7vw, 7rem) / 0.95 var(--bc-sans); letter-spacing: -0.04em; --ink: #234ea2; --ink-strong: #234ea2; }
.bc-num p { margin: 8px 0 0; max-width: 18rem; font: 400 1rem/1.5 var(--bc-sans); --ink: #55607a; }
@media (min-width: 800px) { .bc-nums-grid { grid-template-columns: repeat(3, 1fr); gap: 30px; } }

/* ------------------------------------------------------------ servizi a scorrimento orizzontale */
.bc-hs { position: relative; background: var(--bc-night); padding: 70px 0; --ink: #fff; --ink-strong: #fff; }
.bc-hs-pin { position: relative; }
.bc-hs-head { width: min(1220px, 100% - 36px); margin: 0 auto 30px; }
.bc-hs-head .bc-kicker { --ink: #ffb0b4; --ink-strong: #ffb0b4; }
.bc-hs-head .bc-h2 { --ink: #fff; --ink-strong: #fff; }
.bc-hs-bar { display: none; height: 3px; margin-top: 20px; background: rgba(255, 255, 255, 0.18); }
.bc-hs-bar i { display: block; height: 100%; background: var(--bc-red); transform: scaleX(0); transform-origin: left; }
.bc-hs-track { display: flex; gap: 16px; margin: 0; padding: 4px 18px 20px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.bc-hs-track::-webkit-scrollbar { display: none; }
.bc-hs-card { position: relative; flex: 0 0 min(82vw, 340px); scroll-snap-align: start; display: flex; flex-direction: column; justify-content: flex-end; min-height: 320px; padding: 26px; background: #fff; border-top: 5px solid var(--bc-blue); transition: transform 0.5s var(--bc-ease), border-color 0.3s; }
.bc-hs-card--alt { border-top-color: var(--bc-red); }
.bc-hs-card:hover { transform: translateY(-8px); border-top-color: var(--bc-red); }
.bc-hs-n { position: absolute; top: 14px; right: 18px; font: 700 4.4rem/1 var(--bc-sans); color: transparent; -webkit-text-stroke: 2px var(--bc-line); -webkit-text-fill-color: transparent; }
.bc-hs-card h3 { margin: 0 0 10px; font: 700 1.35rem/1.2 var(--bc-sans); --ink: #14306e; --ink-strong: #14306e; }
.bc-hs-card p { margin: 0; font: 400 0.98rem/1.6 var(--bc-sans); --ink: #55607a; }
.bc-hs-card--intro { background: var(--bc-blue); border-top-color: var(--bc-blue-2); }
.bc-hs-card--intro h3 { font-size: clamp(1.6rem, 1rem + 2vw, 2.1rem); --ink: #fff; --ink-strong: #fff; }
.bc-hs-card--intro small { display: block; margin-bottom: 14px; font: 700 0.78rem/1 var(--bc-sans); letter-spacing: 0.2em; text-transform: uppercase; --ink: #fff; }
.bc-hs-card--red { background: var(--bc-red); border-top-color: var(--bc-red-d); }

@media (min-width: 960px) {
  .bc-hs { padding: 0; }
  .bc-hs.is-pinned .bc-hs-pin { position: sticky; top: 0; padding: 56px 0; overflow: hidden; }
  .bc-hs.is-pinned .bc-hs-bar { display: block; }
  .bc-hs.is-pinned .bc-hs-track { overflow: visible; scroll-snap-type: none; width: max-content; padding: 4px max(32px, calc((100% - 1220px) / 2)); will-change: transform; }
  .bc-hs-head { width: min(1220px, 100% - 64px); }
  .bc-hs-card { flex-basis: 360px; min-height: 340px; }
  .bc-hs:not(.is-pinned) { padding: 80px 0; }
}

/* ------------------------------------------------------------ annunci: griglia asimmetrica */
.bc-featured { padding: 80px 0; }
.bc-section-head { max-width: 46rem; margin-bottom: 30px; }
.bc-listings { display: grid; gap: 18px; }
.bc-listing { position: relative; display: block; background: #fff; text-decoration: none; overflow: hidden; box-shadow: 0 12px 34px rgba(20, 48, 110, 0.09); transition: transform 0.5s var(--bc-ease), box-shadow 0.5s; }
.bc-listing:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(20, 48, 110, 0.2); }
.bc-listing-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--bc-paper); clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transition: clip-path 0.7s var(--bc-ease); }
.bc-listing:hover .bc-listing-media { clip-path: polygon(0 0, 100% 0, 100% 92%, 0 100%); }
.bc-listing-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--bc-ease); }
.bc-listing:hover .bc-listing-media img { transform: scale(1.08); }
.bc-listing-noimg { display: grid; place-items: center; width: 100%; height: 100%; color: var(--bc-blue); }
.bc-listing-noimg .bc-ico { width: 52px; height: 52px; }
.bc-listing-badge { position: absolute; top: 0; left: 0; padding: 9px 14px; background: var(--bc-red); font: 700 0.72rem/1 var(--bc-sans); letter-spacing: 0.12em; text-transform: uppercase; color: #fff; --ink: #fff; }
.bc-listing-body { position: relative; display: grid; gap: 6px; padding: 18px 20px 22px; }
.bc-listing-idx { position: absolute; top: 14px; right: 18px; font: 700 2.2rem/1 var(--bc-sans); color: transparent; -webkit-text-stroke: 1.5px var(--bc-line); -webkit-text-fill-color: transparent; }
.bc-listing-body h3 { margin: 0; font: 700 1.1rem/1.3 var(--bc-sans); --ink: #14306e; --ink-strong: #14306e; }
.bc-listing-city { font: 400 0.9rem/1 var(--bc-sans); --ink: #55607a; }
.bc-listing-price { margin-top: 4px; font: 700 1.35rem/1 var(--bc-sans); --ink: #234ea2; }
@media (min-width: 640px) { .bc-listings { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) {
  .bc-listings { grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; }
  .bc-listing:first-child { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; }
  .bc-listing:first-child .bc-listing-media { aspect-ratio: auto; flex: 1; min-height: 320px; }
  .bc-listing:first-child h3 { font-size: 1.5rem; }
}

/* ------------------------------------------------------------ sede + planimetria che si disegna */
.bc-sede { position: relative; isolation: isolate; padding: 90px 0; background: var(--bc-deep); }
.bc-sede-grid { position: relative; z-index: 1; display: grid; gap: 34px; align-items: center; }
.bc-sede address { display: flex; gap: 12px; margin: 0 0 26px; font: 700 1.2rem/1.6 var(--bc-sans); font-style: normal; }
.bc-plan { width: 100%; max-width: 480px; justify-self: center; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: square; }
.bc-plan path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.bc-plan circle { stroke: var(--bc-red); fill: var(--bc-red); }
.bc-plan-door { stroke: #ffb0b4; stroke-width: 2; }
.bc-js [data-reveal="draw"] { opacity: 1; transform: none; }
.bc-js [data-reveal="draw"] path { stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s var(--bc-ease); }
.bc-js [data-reveal="draw"].is-in path { stroke-dashoffset: 0; }
.bc-js [data-reveal="draw"] circle { opacity: 0; transition: opacity 0.6s 2s; }
.bc-js [data-reveal="draw"].is-in circle { opacity: 1; }
@media (min-width: 900px) { .bc-sede-grid { grid-template-columns: 1.1fr 0.9fr; gap: 60px; } }

/* ------------------------------------------------------------ CTA e footer */
.bc-cta { position: relative; padding: 76px 0; background: var(--bc-red); overflow: hidden; }
.bc-cta::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0 2px, transparent 2px 22px); }
.bc-cta-inner { position: relative; display: grid; gap: 28px; align-items: center; }
.bc-cta .bc-btn--white::before { background: var(--bc-night); }
.bc-cta .bc-btn--white:hover { color: #fff; }
@media (min-width: 900px) { .bc-cta-inner { grid-template-columns: 1.3fr 0.7fr; } .bc-cta .bc-actions { justify-content: flex-end; } }
.bc-footer { padding: 70px 0 100px; background: var(--bc-night); color: #c7d3f0; --ink: #c7d3f0; --ink-strong: #fff; }
.bc-footer-big { margin: 0 0 40px; font: 700 clamp(3rem, 1rem + 11vw, 9rem) / 0.9 var(--bc-sans); letter-spacing: -0.04em; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.28); -webkit-text-fill-color: transparent; }
.bc-footer-cols { display: grid; gap: 28px; }
.bc-footer h3 { margin: 0 0 12px; color: #ffb0b4 !important; font: 700 0.75rem/1 var(--bc-sans); letter-spacing: 0.18em; text-transform: uppercase; --ink: #ffb0b4; --ink-strong: #ffb0b4; }
.bc-footer p { margin: 0 0 8px; font: 400 0.98rem/1.6 var(--bc-sans); }
.bc-footer a { color: #fff; text-decoration: none; }
.bc-footer a:hover { color: #ffb0b4; }
.bc-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.16); font: 400 0.82rem/1.5 var(--bc-sans); }
@media (min-width: 900px) { .bc-footer { padding-bottom: 50px; } .bc-footer-cols { grid-template-columns: repeat(3, 1fr); } }
