/* ==========================================================================
   Studio Piluso — tema Elegante/Istituzionale
   Palette: blu navy profondo + oro tenue, tipografia serif per i titoli
   ========================================================================== */

:root {
    --sp-navy: #0f2340;
    --sp-navy-dark: #0a1830;
    --sp-gold: #b8925f;
    --sp-gold-dark: #9a7746;
    --sp-cream: #faf8f4;
    --sp-text: #1c2733;

    /* Override Bootstrap accent color so buttons/badges/icons use gold */
    --bs-primary: var(--sp-gold);
    --bs-primary-rgb: 184, 146, 95;
    --bs-link-color: var(--sp-navy);
    --bs-link-hover-color: var(--sp-gold-dark);
    --bs-body-font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
    background-color: var(--sp-cream);
    color: var(--sp-text);
}

h1, h2, h3, .display-5 {
    font-family: "Playfair Display", Georgia, "Times New Roman", serif;
    letter-spacing: 0.01em;
}

.navbar-brand {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.4rem;
    letter-spacing: 0.03em;
}

/* Navy replaces the default near-black for nav, hero, footer */
.bg-dark {
    background-color: var(--sp-navy) !important;
    background-image: linear-gradient(160deg, var(--sp-navy) 0%, var(--sp-navy-dark) 100%);
}

/* Hero header gets a subtle radial glow instead of a flat block */
header.bg-dark {
    position: relative;
    overflow: hidden;
}
header.bg-dark::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 80% 20%, rgba(184, 146, 95, 0.18), transparent 55%);
    pointer-events: none;
}
header.bg-dark .container {
    position: relative;
}
header.bg-dark h1::after {
    content: "";
    display: block;
    width: 72px;
    height: 3px;
    background: var(--sp-gold);
    margin-top: 1.1rem;
}
header.bg-dark.text-center h1::after,
.text-center header.bg-dark h1::after {
    margin-left: auto;
    margin-right: auto;
}

/* Buttons: refined, less "bootstrap default" */
.btn {
    border-radius: 2px;
    letter-spacing: 0.02em;
    font-weight: 600;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
/* Bootstrap 5.2 bakes component colors as fixed hex values, it does not
   read --bs-primary at the component level, so .btn-primary / .bg-primary
   need explicit overrides rather than a single CSS variable. */
.btn-primary {
    color: #fff;
    background-color: var(--sp-gold);
    border-color: var(--sp-gold);
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: #fff !important;
    background-color: var(--sp-gold-dark) !important;
    border-color: var(--sp-gold-dark) !important;
}
.btn-outline-primary {
    color: var(--sp-gold-dark);
    border-color: var(--sp-gold);
}
.btn-outline-primary:hover {
    color: #fff;
    background-color: var(--sp-gold);
    border-color: var(--sp-gold);
}
.btn-lg:hover, .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 35, 64, 0.18);
}
.btn-outline-light:hover {
    color: var(--sp-navy);
}

/* Feature icon blocks: gold gradient instead of default blue */
.feature.bg-primary {
    background: linear-gradient(135deg, var(--sp-gold), var(--sp-gold-dark)) !important;
    box-shadow: 0 6px 14px rgba(184, 146, 95, 0.25);
}

/* Cards: soft lift on hover */
.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-radius: 6px;
}
.card.shadow:hover {
    transform: translateY(-4px);
    box-shadow: 0 1rem 2rem rgba(15, 35, 64, 0.12) !important;
}

.badge.bg-primary {
    background: var(--sp-navy) !important;
}

/* Section title accent */
.section-eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--sp-gold-dark);
    margin-bottom: 0.5rem;
}

/* Footer refinement */
footer a.link-light {
    opacity: 0.85;
    transition: opacity 0.15s ease;
}
footer a.link-light:hover {
    opacity: 1;
}

/* Scroll-reveal (paired with AOS library) */
[data-aos] {
    transition-property: transform, opacity;
}

/* ==========================================================================
   Pulsanti flottanti: accesso amministrazione + WhatsApp
   ========================================================================== */
.sp-fab {
    position: fixed;
    bottom: 16px;
    z-index: 1998;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: opacity 0.2s ease, bottom 0.25s ease, transform 0.15s ease;
}
.sp-fab:hover {
    transform: translateY(-2px);
}
.sp-fab-admin {
    left: 14px;
    width: 30px;
    height: 30px;
    background: rgba(15, 35, 64, 0.35);
    color: rgba(255, 255, 255, 0.55);
    font-size: 15px;
    opacity: 0.55;
}
.sp-fab-admin:hover {
    opacity: 1;
    color: #fff;
}
.sp-fab-whatsapp {
    right: 18px;
    width: 56px;
    height: 56px;
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}
.sp-fab-whatsapp:hover {
    background: #1fb855;
    color: #fff;
}
body.sp-cookie-banner-open .sp-fab {
    bottom: 104px;
}
@media (max-width: 576px) {
    .sp-fab-whatsapp {
        width: 50px;
        height: 50px;
        right: 14px;
    }
    body.sp-cookie-banner-open .sp-fab {
        bottom: 164px;
    }
}

/* ==========================================================================
   Banner e overlay per il consenso cookie
   ========================================================================== */
.sp-cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2500;
    background-color: var(--sp-navy);
    background-image: linear-gradient(160deg, var(--sp-navy) 0%, var(--sp-navy-dark) 100%);
    color: #fff;
    padding: 1.1rem 1.25rem;
    box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25);
}
.sp-cookie-banner .sp-cookie-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.sp-cookie-banner p {
    margin: 0;
    font-size: 0.92rem;
    max-width: 720px;
    color: rgba(255, 255, 255, 0.85);
}
.sp-cookie-banner a {
    color: var(--sp-gold);
    text-decoration: underline;
}
.sp-cookie-banner .sp-cookie-actions {
    display: flex;
    gap: 0.6rem;
    flex-shrink: 0;
}
.sp-cookie-banner .btn {
    white-space: nowrap;
}

.sp-maps-overlay {
    position: absolute;
    inset: 0;
    background-color: var(--sp-navy);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 1.5rem;
}
.sp-maps-overlay p {
    max-width: 380px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1rem;
}
