
/* ===================== */
/* Palette e variabili  */
/* ===================== */
:root {
    /* Fallback palette (verrà sovrascritta dallo script in base al logo) */
    --brand-accent: #0d6efd;
    --brand-bg: #0b1f3a;
    --brand-grad: #113663;
    --button-bg: #F2AA1A;
    --gray-chiaro: #F8F9FA
    
}

/* ===================== */
/* Stili generali       */
/* ===================== */
body {
    scroll-behavior: smooth;
}

/* ===================== */
/* Navbar               */
/* ===================== */
.navbar {
    backdrop-filter: saturate(120%) blur(6px)
}
.navbar-toggler {
    padding: 0;
    border-color: transparent;
}
.navbar-brand img {
    max-width: 250px;
    width: auto;
}
@media (max-width: 576px) {
    .navbar-brand img {
        max-width: 180px;
    }
}

/* ===================== */
/* Theming dinamico     */
/* ===================== */
.text-primary {
    color: var(--brand-accent) !important;
}

.link-primary {
    color: var(--brand-accent) !important;
}


.btn-primary {
    background-color: var(--button-bg);
    border-color: var(--button-bg);
    color: #fff;
}
.btn-primary:hover {
    filter: brightness(.95);
    color: #fff;
}

.form-check-input:checked {
    background-color: var(--brand-accent);
    border-color: var(--brand-accent);
}

/* ===================== */
/* Hero section         */
/* ===================== */
.hero {
    background: linear-gradient(140deg, var(--brand-bg), var(--brand-grad));
    color: #fff;
    position: relative;
}

.hero .badge {
    background: rgba(255, 255, 255, .15);
    border: 1px solid rgba(255, 255, 255, .25);
}

.hero-illustration {
    max-width: 520px;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .25));
}

/* ===================== */
/* Titoli e sezioni     */
/* ===================== */
.section-title .eyebrow {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-weight: 700;
    color: var(--brand-accent);
}

.card-feature {
    height: 100%
}

.form-section {
    background: #f7f9fc;
    border-top: 1px solid #e6ecf5;
    border-bottom: 1px solid #e6ecf5;
}
/* ===================== */
/* FAQ Accordion         */
/* ===================== */
.accordion-button{
    font-size: 1.2rem;
}
.accordion-button:not(.collapsed) {
    background: #fff;
    color: #000000 !important;
    font-weight: 700;
}
.accordion-button:not(.collapsed):hover,
.accordion-button:not(.collapsed):focus {
    color: #000000 !important;
}

/* ===================== */
/* Credits               */
/* ===================== */
.credits{
    max-width: 600px;
    margin: 0 auto;
}

.credits figcaption{
    font-size: .9rem;
    color: #6c757d;
}


/* ===================== */
/* Utility e dettagli   */
/* ===================== */
.required::after {
    content: " *";
    color: #dc3545
}

.privacy-note {
    font-size: .9rem;
    color: #6c757d
}

.brand-logos img {
    max-height: 48px;
    opacity: .8
}

/* ===================== */
/* Pulsante WhatsApp    */
/* ===================== */
.btn-whatsapp {
    background: #25D366;
    color: #fff
}

.btn-whatsapp:hover {
    filter: brightness(.95);
    color: #fff
}

#whatsapp-icon {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    transition: transform 0.2s ease, background 0.3s ease;
}

#whatsapp-icon img {
    width: 35px;
    height: 35px;
}

#whatsapp-icon:hover {
    transform: scale(1.1);
    background-color: #20b954;
}

/* ===================== */
/* Footer               */
/* ===================== */
footer {
    background: var(--gray-chiaro);
    color: var(--bs-tertiary-bg-rgb);
}
footer a {
    color: var(--bs-tertiary-bg-rgb);
    text-decoration: none;
}
footer a:hover {
    color: var(--brand-accent);
    text-decoration: underline;
}
/* --- Footer: link responsive orizzontali/verticali compatti --- */
.link-footer-r {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0;
    margin-bottom: 0.5rem;
}
.link-footer-r li {
    margin: 0;
}
.link-footer-r a {
    padding: 0em;
    border-radius: 4px;
    line-height: 1.2;
}
@media (min-width: 576px) {
    .link-footer-r {
        flex-direction: row;
        align-items: center;
        gap: 1.1rem;
    }
}