/* ══════════════════════════════════════════════════════
   BIRRAMENTE — DEFAULT CSS (IDCliente = 34)
   Caricato da /inc/header.asp come /css/<IDCliente>/default.css
   Porting di _Documenti/Birramente/Sito/default.css:
   tutte le classi hanno prefisso "bm-" per non entrare in
   conflitto con Bootstrap 5 (.btn, .card, .close, ...) e con
   i CSS globali del CMS.
══════════════════════════════════════════════════════ */

:root {
    --bm-cream: #FDF0E0;
    --bm-cream-deep: #FBE3C9;
    --bm-cream-band: #F8E8D4;
    --bm-ink: #15140F;
    --bm-ink-soft: #3A362F;
    --bm-muted: #736A5D;
    --bm-orange: #DD6A0A;
    --bm-orange-bright: #EE7315;
    --bm-orange-burnt: #B0530F;
    --bm-line: rgba(21,20,15,.12);
    --bm-maxw: 1180px;
    --bm-hdr-h: 78px;
    --bm-disp: "Poppins",system-ui,sans-serif;
    --bm-body: "Inter",system-ui,sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bm-hdr-h) + 6px); }

body {
    margin: 0;
    font-family: var(--bm-body);
    font-size: 16px;
    color: var(--bm-ink-soft);
    background: radial-gradient(1200px 700px at 88% -8%, #FCE0BE 0%, rgba(252,224,190,0) 55%), linear-gradient(160deg,#FEF6EC 0%,#FDF0E0 40%,#FBE6CE 100%);
    background-color: var(--bm-cream);
    background-attachment: fixed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    min-height: 100vh;
}
body *, body *::before, body *::after { box-sizing: border-box; }
body img { max-width: 100%; }

::selection { background: var(--bm-orange); color: #fff; }

body a { color: inherit; text-decoration: none; }
body a:hover { color: inherit; }

.bm-wrap { max-width: var(--bm-maxw); margin: 0 auto; padding: 0 28px; }

body h1, body h2, body h3, body h4 {
    font-family: var(--bm-disp);
    color: var(--bm-ink);
    margin: 0;
    line-height: 1.05;
    letter-spacing: -.01em;
}

/* ── NAV ── */
.bm-hdr {
    position: sticky; top: 0; z-index: 1000;
    transition: background .3s, box-shadow .3s, border-color .3s;
    border-bottom: 1px solid transparent;
}
.bm-hdr.bm-solid,
.bm-hdr.bm-open {
    background: rgba(253,240,224,.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 6px 24px rgba(120,70,10,.08);
    border-bottom-color: var(--bm-line);
}
.bm-nav { display: flex; align-items: center; gap: 16px; height: var(--bm-hdr-h); }

.bm-brand {
    font-family: var(--bm-disp); font-weight: 800; font-size: 20px; letter-spacing: .02em;
    color: var(--bm-ink); margin-right: auto;
}
.bm-brand:hover { color: var(--bm-ink); }
.bm-brand span { color: var(--bm-orange); }

.bm-menu { display: flex; gap: 18px; align-items: center; margin-right: 0; }
.bm-menu a {
    font-size: 13px; font-weight: 600; letter-spacing: .08em; color: var(--bm-ink);
    opacity: .82; white-space: nowrap; transition: opacity .2s, color .2s;
}
.bm-menu a:hover, .bm-menu a.bm-active { opacity: 1; color: var(--bm-orange-burnt); }

.bm-btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--bm-disp); font-weight: 700; letter-spacing: .06em; font-size: 14px; line-height: 1.6;
    color: #fff; background: var(--bm-orange);
    padding: 13px 22px; border: none; cursor: pointer; border-radius: 2px; white-space: nowrap;
    box-shadow: 0 8px 20px rgba(221,106,10,.28);
    transition: transform .18s, box-shadow .18s, background .2s;
}
body a.bm-btn, body a.bm-btn:hover { color: #fff; }
.bm-btn:hover {
    background: var(--bm-orange-bright); transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(221,106,10,.36);
}
.bm-btn.bm-ghost { background: transparent; color: var(--bm-orange-burnt); border: 1.6px solid var(--bm-orange); box-shadow: none; }
.bm-btn.bm-ghost:hover { background: var(--bm-orange); color: #fff; }
.bm-btn .bm-arw { transition: transform .2s; }
.bm-btn:hover .bm-arw { transform: translateX(4px); }
.bm-btn-admin { box-shadow: none; padding: 9px 14px; font-size: 12px; background: var(--bm-ink); }
.bm-btn-admin:hover { background: var(--bm-ink-soft); box-shadow: none; }

.bm-hamb { display: none; background: none; border: none; cursor: pointer; padding: 8px; margin-left: auto; }
.bm-hamb span { display: block; width: 26px; height: 2px; background: var(--bm-ink); margin: 5px 0; transition: .25s; }
.bm-hdr.bm-open .bm-hamb span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.bm-hdr.bm-open .bm-hamb span:nth-child(2) { opacity: 0; }
.bm-hdr.bm-open .bm-hamb span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Social nel menu (Facebook / Instagram dopo "Contatti") */
.bm-nav-social { display: inline-flex; gap: 6px; align-items: center; margin-left: -4px; }
.bm-menu .bm-nav-social a {
    width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
    border: 1.4px solid rgba(221,106,10,.45); color: var(--bm-orange-burnt);
    opacity: 1; letter-spacing: 0;
    transition: background .2s, color .2s, border-color .2s, transform .18s;
}
.bm-menu .bm-nav-social a:hover { background: var(--bm-orange); border-color: var(--bm-orange); color: #fff; transform: translateY(-2px); }
.bm-nav-social svg { width: 15px; height: 15px; }

/* ── DIVIDER (separatore fra sezioni) ── */
.bm-divider { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 8px 0; }
.bm-divider::before, .bm-divider::after { content: ""; height: 1px; flex: 1; max-width: 190px; background: var(--bm-line); }
.bm-divider svg { width: 24px; height: 30px; color: var(--bm-orange); opacity: .92; }
/* Divider adiacente a una fascia .bm-band: spazio sul lato della fascia */
.bm-band + .bm-wrap > .bm-divider { padding-top: 80px; }
.bm-wrap:has(+ .bm-band) > .bm-divider { padding-bottom: 80px; }

/* ── SECTION HEAD ── */
.bm-sec-head { max-width: 780px; margin: 0 auto 22px; text-align: center; }
body .bm-sec-head h1,
body .bm-sec-head h2 { font-size: clamp(30px,4.4vw,50px); font-weight: 800; margin-top: 0; }
.bm-kicker {
    font-family: var(--bm-disp); font-weight: 600; letter-spacing: .18em; font-size: 13px;
    color: var(--bm-orange-burnt); text-transform: uppercase;
}
.bm-rule { width: 56px; height: 4px; background: var(--bm-orange); border-radius: 2px; margin: 16px auto 26px; }
.bm-band { background: var(--bm-cream-band); border-top: 1px solid var(--bm-line); border-bottom: 1px solid var(--bm-line); }

.bm-sec { padding: 90px 0; }
.bm-sec p { margin-top: 0; }

/* ── HERO ── */
.bm-hero { padding: 34px 0 60px; }
.bm-hero .bm-grid { display: grid; grid-template-columns: 1.02fr 1.28fr; gap: 40px; align-items: center; }
.bm-eyebrow { display: flex; flex-direction: column; gap: 14px; margin-bottom: 22px; }
.bm-eyebrow b { font-family: var(--bm-disp); font-weight: 600; font-size: 14px; letter-spacing: .18em; color: var(--bm-orange-burnt); }
.bm-eyebrow i { width: 64px; height: 4px; background: var(--bm-orange); border-radius: 2px; }
body .bm-hero h1 { font-size: clamp(44px,6vw,78px); font-weight: 800; }
.bm-hero h1 em { font-style: normal; display: block; }
.bm-hero .bm-accent { font-family: var(--bm-disp); font-weight: 700; color: var(--bm-orange); font-size: clamp(26px,3.4vw,40px); margin: 18px 0 22px; line-height: 1.2; }
.bm-hero p.bm-lead { font-size: 19px; max-width: 34ch; color: var(--bm-ink-soft); margin: 0 0 30px; }
.bm-hero-art { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.bm-hero-art img { width: 100%; max-width: 620px; height: auto; display: block; filter: drop-shadow(0 18px 30px rgba(140,70,10,.14)); }

.bm-quote { display: flex; align-items: flex-start; gap: 12px; max-width: 440px; text-align: center; justify-content: center; }
.bm-quote svg { flex: none; color: var(--bm-orange); }
.bm-quote p { font-family: var(--bm-disp); font-weight: 500; font-style: italic; font-size: 19px; color: var(--bm-ink); line-height: 1.4; margin: 0; }

/* ── IL PROGETTO ── */
#progetto.bm-sec { padding: 70px 0; }
.bm-about { max-width: 760px; margin: 0 auto; text-align: center; }
.bm-lead-center { max-width: 52ch; margin: 0 auto; text-align: center; color: var(--bm-ink-soft); font-size: 18px; }
.bm-about p { font-size: 19px; color: var(--bm-ink-soft); margin: 0 auto 16px; max-width: 60ch; }
.bm-about strong { color: var(--bm-ink); }
.bm-about .bm-stats { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; margin-top: 36px; }
.bm-about .bm-stat { border: 1px solid var(--bm-line); border-top: 3px solid var(--bm-orange); border-radius: 2px; padding: 18px 26px; background: rgba(255,255,255,.4); }
.bm-about .bm-stat b { display: block; font-family: var(--bm-disp); font-weight: 800; font-size: 26px; color: var(--bm-ink); }
.bm-about .bm-stat span { font-size: 13px; letter-spacing: .06em; color: var(--bm-muted); }

/* ── ESPERIENZA ── */
.bm-manifesto { text-align: center; }
.bm-manifesto .bm-steps { font-family: var(--bm-disp); font-weight: 600; letter-spacing: .04em; color: var(--bm-orange); font-size: clamp(15px,2vw,20px); margin-bottom: 34px; }
.bm-manifesto .bm-steps span { white-space: nowrap; }
.bm-manifesto .bm-mbody { max-width: 640px; margin: 0 auto; font-size: 20px; color: var(--bm-ink-soft); }
.bm-manifesto .bm-mbody strong { color: var(--bm-ink); font-weight: 600; }
.bm-manifesto .bm-verbs { display: flex; flex-direction: column; gap: 2px; margin: 28px 0; font-size: 18px; color: var(--bm-muted); }
.bm-closing-line { font-family: var(--bm-disp); font-weight: 700; font-size: clamp(22px,3vw,30px); color: var(--bm-ink); text-align: center; max-width: 720px; margin: 40px auto 0; line-height: 1.25; }

/* ── PILLARS ── */
.bm-pillars { margin-top: 64px; }
.bm-pillar {
    display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 52px;
    align-items: start; padding: 52px 0; border-top: 1px solid var(--bm-line); text-align: left;
}
.bm-pillar .bm-media { display: flex; flex-direction: column; gap: 22px; }
.bm-icon-badge {
    width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(221,106,10,.10); border: 1.5px solid rgba(221,106,10,.30); color: var(--bm-orange);
}
.bm-icon-badge svg { width: 38px; height: 38px; }
body .bm-pillar h3 { font-size: clamp(26px,3.4vw,38px); font-weight: 800; }
.bm-pillar .bm-sub { font-family: var(--bm-disp); font-weight: 600; color: var(--bm-orange-burnt); font-size: 19px; margin: 0 0 16px; line-height: 1.3; }
.bm-pillar .bm-txt { font-size: 17.5px; color: var(--bm-ink-soft); }
.bm-pillar .bm-txt p { margin: 0 0 12px; }
.bm-pillar .bm-txt strong { color: var(--bm-ink); }
.bm-pull { margin-top: 20px; padding-left: 18px; border-left: 3px solid var(--bm-orange); font-family: var(--bm-disp); font-weight: 700; color: var(--bm-ink); font-size: 18px; line-height: 1.35; }
.bm-pillar.bm-rev .bm-media { order: 2; }
.bm-pillar.bm-rev .bm-copy { order: 1; }

/* ── PROGRAMMA / TIMELINE ── */
.bm-timeline { max-width: 680px; margin: 12px auto 0; position: relative; padding-left: 34px; }
.bm-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 26px; width: 2px; background: linear-gradient(var(--bm-orange),rgba(221,106,10,.25)); }
.bm-beat { position: relative; padding: 11px 0; }
.bm-beat::before { content: ""; position: absolute; left: -34px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: var(--bm-cream-band); border: 3px solid var(--bm-orange); }
.bm-beat p { margin: 0; font-family: var(--bm-disp); font-weight: 600; font-size: 19px; color: var(--bm-ink); }
.bm-beat.bm-dim p { color: var(--bm-muted); font-weight: 500; }

.bm-finale { max-width: 680px; margin: 40px auto 0; text-align: center; }
.bm-finale p { font-family: var(--bm-disp); font-weight: 800; font-size: clamp(22px,3vw,30px); color: var(--bm-ink); line-height: 1.3; }
.bm-finale .bm-hl { color: var(--bm-orange); }

/* ── ESPOSITORI ── */
.bm-exhib { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 44px; }
.bm-exhib .bm-card { background: rgba(255,255,255,.42); border: 1px solid var(--bm-line); border-top: 3px solid var(--bm-orange); padding: 32px 28px; border-radius: 2px; }
.bm-exhib .bm-card svg { width: 36px; height: 36px; color: var(--bm-orange); margin-bottom: 14px; }
body .bm-exhib .bm-card h4 { font-weight: 700; font-size: 21px; color: var(--bm-ink); margin: 0 0 10px; line-height: 1.2; }
.bm-exhib .bm-card p { margin: 0; font-size: 16px; color: var(--bm-ink-soft); }
.bm-cta-row { text-align: center; margin-top: 44px; }

/* ── PARTNER ── */
.bm-partner-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; margin-top: 20px; }
.bm-partner-grid .bm-copy p { font-size: 18px; color: var(--bm-ink-soft); margin: 0 0 14px; }
.bm-partner-panel { background: #15140F; color: #EEE4D6; border-radius: 4px; padding: 40px 36px; position: relative; overflow: hidden; }
.bm-partner-panel::after { content: ""; position: absolute; inset: 0; background: radial-gradient(400px 260px at 80% -20%,rgba(221,106,10,.35),transparent 60%); pointer-events: none; }
body .bm-partner-panel h3 { color: #fff; font-size: 26px; font-weight: 800; position: relative; margin-bottom: 14px; }
.bm-partner-panel p { position: relative; color: #E4D6C4; font-size: 16px; margin: 0 0 22px; }
.bm-partner-panel .bm-btn { position: relative; z-index: 1; }

/* ── BLOG ── */
.bm-posts { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; margin-top: 44px; }
.bm-post { background: rgba(255,255,255,.5); border: 1px solid var(--bm-line); border-radius: 3px; overflow: hidden; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s; }
a.bm-post:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(120,70,10,.12); }
.bm-post .bm-thumb { height: 130px; background: linear-gradient(135deg,#F4CB92,#DD6A0A); position: relative; background-size: cover; background-position: center; }
.bm-post .bm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bm-post .bm-thumb svg { position: absolute; right: 14px; bottom: 10px; width: 46px; height: 46px; color: rgba(255,255,255,.55); }
.bm-post .bm-tag { position: absolute; top: 12px; left: 12px; background: #15140F; color: #fff; font-family: var(--bm-disp); font-weight: 600; font-size: 11px; letter-spacing: .12em; padding: 5px 11px; border-radius: 2px; }
.bm-post .bm-pbody { padding: 22px 24px; }
.bm-post .bm-date { font-size: 12px; letter-spacing: .12em; color: var(--bm-muted); text-transform: uppercase; }
body .bm-post h4 { font-weight: 700; font-size: 18px; color: var(--bm-ink); margin: 9px 0 8px; line-height: 1.25; }
.bm-post p { margin: 0; font-size: 14.5px; color: var(--bm-ink-soft); }

/* ── CLOSING ── */
.bm-close { background: #15140F; color: #EEE4D6; padding: 110px 0; text-align: center; position: relative; overflow: hidden; }
.bm-close::after { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 380px at 50% -10%,rgba(221,106,10,.22),transparent 60%); pointer-events: none; }
body .bm-close h2 { color: #fff; font-size: clamp(30px,4vw,46px); font-weight: 800; position: relative; }
.bm-close .bm-vibes { display: flex; flex-wrap: wrap; gap: 8px 26px; justify-content: center; margin: 26px 0 46px; position: relative; }
.bm-close .bm-vibes span { font-family: var(--bm-disp); font-weight: 600; color: #F0C79C; font-size: 22px; }
.bm-close .bm-big { position: relative; font-family: var(--bm-disp); font-weight: 800; font-size: clamp(24px,3.2vw,36px); color: #fff; line-height: 1.25; max-width: 760px; margin: 0 auto 10px; }
.bm-close .bm-big em { font-style: normal; color: var(--bm-orange-bright); display: block; }
.bm-close .bm-btn { margin-top: 34px; position: relative; z-index: 1; }

/* ── FOOTER ── */
.bm-footer { background: var(--bm-cream-deep); border-top: 1px solid var(--bm-line); padding: 46px 0 30px; }
.bm-foot-top { display: flex; flex-wrap: wrap; gap: 26px 40px; align-items: flex-start; justify-content: space-between; }
.bm-foot-top .bm-brand { margin: 0; }
.bm-foot-cols { display: flex; flex-wrap: wrap; gap: 22px; }
.bm-foot-cols a { font-size: 13px; font-weight: 600; letter-spacing: .1em; color: var(--bm-ink); opacity: .72; }
.bm-foot-cols a:hover { opacity: 1; color: var(--bm-orange-burnt); }
.bm-foot-legal { width: 100%; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--bm-line); display: flow-root; }
.bm-foot-legal .bm-cr { float: left; font-size: 13px; color: var(--bm-muted); }
.bm-foot-legal .bm-cr a { border-bottom: 1px solid rgba(221,106,10,.45); }
.bm-foot-legal .bm-cr a:hover { color: var(--bm-orange-burnt); }
.bm-credits { float: right; font-size: 13px; white-space: nowrap; color: #000; font-family: var(--bm-body); }
.bm-credits a { color: #000; font-weight: 700; white-space: nowrap; }
.bm-credits a:hover { color: #000; }
.bm-credits img { height: 16px; width: auto; vertical-align: middle; display: inline; }

/* Social nel footer */
.bm-social { display: flex; gap: 12px; align-items: center; }
.bm-social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--bm-orange); color: #fff; transition: transform .18s, background .2s; }
body .bm-social a:hover { background: var(--bm-orange-bright); color: #fff; transform: translateY(-3px); }
.bm-social svg { width: 21px; height: 21px; }

/* ── REVEAL ── */
.bm-reveal { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; }
.bm-reveal.bm-in { opacity: 1; transform: none; }

@media(prefers-reduced-motion:reduce) {
    .bm-reveal { opacity: 1; transform: none; transition: none; }
    .bm-btn, .bm-btn .bm-arw { transition: none; }
}

@media(max-width:1180px) {
    .bm-menu { display: none; }
    .bm-hamb { display: block; }
    .bm-nav > .bm-btn { display: none; }
    .bm-hdr.bm-open .bm-menu {
        display: flex; position: absolute; top: var(--bm-hdr-h); left: 0; right: 0;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bm-cream); border-bottom: 1px solid var(--bm-line);
        padding: 6px 0; box-shadow: 0 12px 24px rgba(120,70,10,.12);
        max-height: calc(100vh - var(--bm-hdr-h)); overflow-y: auto;
    }
    .bm-hdr.bm-open .bm-menu a { padding: 14px 28px; width: 100%; letter-spacing: .1em; }
    .bm-hdr.bm-open .bm-menu .bm-nav-social { margin: 10px 28px 12px; gap: 12px; }
    .bm-hdr.bm-open .bm-menu .bm-nav-social a { width: 38px; height: 38px; padding: 0; }
    .bm-hdr.bm-open .bm-menu .bm-nav-social svg { width: 18px; height: 18px; }
    .bm-hdr.bm-open .bm-menu .bm-menu-cta { display: block; }
}
.bm-menu .bm-menu-cta { display: none; }

@media(max-width:900px) {
    .bm-hero .bm-grid { grid-template-columns: 1fr; gap: 14px; }
    .bm-hero-art { order: -1; }
    .bm-hero p.bm-lead { max-width: none; }
    .bm-band + .bm-wrap > .bm-divider { padding-top: 50px; }
    .bm-wrap:has(+ .bm-band) > .bm-divider { padding-bottom: 50px; }
    .bm-pillar, .bm-pillar.bm-rev { grid-template-columns: 1fr; gap: 22px; }
    .bm-pillar.bm-rev .bm-media, .bm-pillar.bm-rev .bm-copy { order: 0; }
    .bm-exhib, .bm-posts { grid-template-columns: 1fr; }
    .bm-partner-grid { grid-template-columns: 1fr; gap: 26px; }
    .bm-foot-legal .bm-cr, .bm-credits { float: none; display: block; }
    .bm-credits { margin-top: 8px; }
}

@media(max-width:520px) {
    .bm-wrap { padding: 0 20px; }
    body .bm-hero h1 { font-size: 40px; }
    .bm-brand { font-size: 18px; }
}
