/*
Theme Name: BBRE Group
Theme URI: https://www.bbre.it
Author: BBRE Group SRL
Description: Tema ufficiale BBRE Group — Immobiliare, Finance, Opere Edili, Consulenza Credito
Version: 1.0.0
License: Proprietary
Text Domain: bbre-group
*/

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; color: #2C3E50; background: #fff; }
img { max-width: 100%; height: auto; }
a { color: inherit; }

/* === NAVBAR === */
.bbre-nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(10, 25, 41, 0.97); backdrop-filter: blur(10px);
    padding: 0 40px; height: 70px;
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgba(201,169,98,0.2);
    transition: box-shadow 0.3s;
}
.bbre-nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.4); }
.nav-logo { font-family: Georgia, serif; font-size: 1.5rem; font-weight: 900; color: #fff; text-decoration: none; }
.nav-logo span { color: #C9A962; }
.nav-links { display: flex; gap: 30px; list-style: none; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.8); text-decoration: none; font-size: 0.9rem; font-weight: 500; letter-spacing: 0.5px; transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: #C9A962; }
.nav-cta { background: #C9A962; color: #fff !important; padding: 10px 24px; border-radius: 4px; font-weight: 600 !important; transition: background 0.2s !important; }
.nav-cta:hover { background: #b8934f !important; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Nav */
.mobile-nav {
    display: none; position: fixed; top: 70px; left: 0; right: 0; bottom: 0;
    background: rgba(10,25,41,0.98); z-index: 999;
    flex-direction: column; padding: 40px; gap: 0; overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 1.2rem; font-weight: 500; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.08); transition: color 0.2s; }
.mobile-nav a:hover { color: #C9A962; }
.mobile-nav .mobile-cta { background: #C9A962; color: #fff; text-align: center; border-radius: 4px; padding: 16px; margin-top: 20px; font-weight: 700; border: none; }

/* === FOOTER === */
.bbre-footer { background: #0A1929; color: rgba(255,255,255,0.7); padding: 60px 20px 0; }
.footer-grid { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand .logo { font-family: Georgia, serif; font-size: 1.8rem; font-weight: 900; color: #fff; margin-bottom: 14px; }
.footer-brand .logo span { color: #C9A962; }
.footer-brand p { font-size: 0.9rem; line-height: 1.7; opacity: 0.75; }
.footer-col h4 { color: #C9A962; font-size: 0.75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; font-size: 0.88rem; }
.footer-col ul li a { color: rgba(255,255,255,0.65); text-decoration: none; transition: color 0.2s; }
.footer-col ul li a:hover { color: #C9A962; }
.footer-col ul li span { color: rgba(255,255,255,0.45); }
.footer-bottom { max-width: 1200px; margin: 0 auto; padding: 20px 0; text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-bottom a { color: #C9A962; text-decoration: none; }

/* === BACK TO TOP === */
.back-to-top {
    position: fixed; bottom: 30px; right: 30px; z-index: 500;
    width: 44px; height: 44px; border-radius: 50%;
    background: #C9A962; color: #fff; border: none;
    font-size: 1.2rem; cursor: pointer;
    opacity: 0; visibility: hidden; transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(201,169,98,0.4);
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: #b8934f; transform: translateY(-3px); }

/* === COOKIE BANNER === */
#cookieBanner {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
    background: #0A1929; color: rgba(255,255,255,0.9);
    padding: 18px 30px; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    border-top: 2px solid #C9A962;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
#cookieBanner p { margin: 0; font-size: 0.88rem; line-height: 1.6; max-width: 680px; }
#cookieBanner a { color: #C9A962; }
.cookie-btns { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn-necessary { background: transparent; color: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.3); padding: 9px 20px; border-radius: 4px; cursor: pointer; font-size: 0.85rem; }
.cookie-btn-accept { background: #C9A962; color: #fff; border: none; padding: 9px 20px; border-radius: 4px; cursor: pointer; font-size: 0.85rem; font-weight: 600; }

/* === FADE-IN ANIMATIONS === */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .bbre-nav { padding: 0 20px; }
    .nav-links, .nav-cta { display: none; }
    .hamburger { display: flex; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; }
    #cookieBanner { padding: 16px 20px; }
}
