/* =========================================================================
 *  Accessibi Theme - override colori brand sopra Infinia.
 *  Va incluso DOPO main.css.
 *
 *  Palette:
 *    Primario:   #1d75bc  (blu Accessibi)
 *    Secondario: #1c3d53  (blu scuro)
 *    Soft bg:    #d8f0f2  (azzurro chiarissimo)
 * ========================================================================= */

:root {
    /* Brand */
    --ac-primary:        #1d75bc;
    --ac-primary-dark:   #1c3d53;
    --ac-primary-light:  #5fa3d8;
    --ac-soft-bg:        #d8f0f2;

    /* Override variabili Infinia */
    --tc-theme-primary:         #1d75bc;
    --tc-theme-primary-light:   #5fa3d8;
    --tc-theme-primary-dark:    #1c3d53;
    --tc-theme-primary-soft:    #d8f0f2;
    --tc-theme-dark-primary:    #1d75bc;
    --tc-theme-dark-primary-light: #5fa3d8;
    --tc-theme-dark-primary-soft:  #1c3d53;
    --tc-theme-dark-primary-dark:  #d8f0f2;

    /* Backgrounds tinted */
    --tc-bg-1: #d8f0f2;          /* era lavanda */
    --tc-bg-2: #c8e8ec;
    --tc-bg-3: #ebf6f7;
    --tc-bg-4: #eff7fb;

    /* Gradients brand */
    --tc-linear-1: linear-gradient(90deg, #d8f0f2 0%, #ffffff 100%);
    --tc-linear-2: linear-gradient(90deg, #1d75bc 0%, #1c3d53 100%);

    /* Bootstrap override */
    --bs-primary:           #1d75bc;
    --bs-primary-rgb:       29, 117, 188;
    --bs-secondary:         #1c3d53;
    --bs-secondary-rgb:     28, 61, 83;
    --bs-link-color:        #1d75bc;
    --bs-link-hover-color:  #1c3d53;
}

/* --- Pulsanti ----------------------------------------------------------- */
.btn-primary,
.btn.btn-primary {
    --bs-btn-bg:                 #1d75bc;
    --bs-btn-border-color:       #1d75bc;
    --bs-btn-hover-bg:           #1c3d53;
    --bs-btn-hover-border-color: #1c3d53;
    --bs-btn-active-bg:          #1c3d53;
    --bs-btn-active-border-color:#1c3d53;
    --bs-btn-color:              #ffffff;
}

.btn-outline-primary {
    --bs-btn-color:              #1d75bc;
    --bs-btn-border-color:       #1d75bc;
    --bs-btn-hover-bg:           #1d75bc;
    --bs-btn-hover-border-color: #1d75bc;
    --bs-btn-hover-color:        #ffffff;
}

.btn-secondary {
    --bs-btn-bg:                 #1c3d53;
    --bs-btn-border-color:       #1c3d53;
    --bs-btn-hover-bg:           #163142;
    --bs-btn-color:              #ffffff;
}

.btn-soft {
    background-color: #d8f0f2;
    color: #1c3d53;
    border: 1px solid #d8f0f2;
    transition: all 0.2s ease;
}
.btn-soft:hover {
    background-color: #1d75bc;
    color: #ffffff;
    border-color: #1d75bc;
}

/* --- Link e testo brand ------------------------------------------------ */
a { color: #1d75bc; }
a:hover { color: #1c3d53; }

.text-primary { color: #1d75bc !important; }
.text-secondary { color: #1c3d53 !important; }
.text-brand { color: #1d75bc !important; }
.text-brand-dark { color: #1c3d53 !important; }

.bg-primary { background-color: #1d75bc !important; }
.bg-secondary { background-color: #1c3d53 !important; }
.bg-brand-soft { background-color: #d8f0f2 !important; }
.bg-soft { background-color: #d8f0f2 !important; }

/* --- Navbar ------------------------------------------------------------- */
.navbar-brand img,
.navbar-brand .accessibi-logo {
    max-height: 38px;
    width: auto;
}
.navbar-brand span {
    color: #1c3d53;
    font-weight: 800;
    margin-left: .5rem;
}
.navbar .nav-link {
    color: #1c3d53;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
    color: #1d75bc !important;
}

/* --- Hero & section accents -------------------------------------------- */
.section-eyebrow,
.text-eyebrow {
    color: #1d75bc;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 14px;
}

.ellipse-rotate-primary,
.ellipse-rotate-primary-sm,
.ellipse-rotate-success,
.ellipse-rotate-success-sm {
    background: radial-gradient(closest-side, rgba(29,117,188,0.18), transparent 70%);
}

/* --- Badge / Pills ------------------------------------------------------ */
.badge.bg-primary { background-color: #1d75bc !important; }
.badge.bg-soft {
    background-color: #d8f0f2 !important;
    color: #1c3d53 !important;
}

/* --- Card hover --------------------------------------------------------- */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 38px -14px rgba(29, 117, 188, 0.25);
}

/* --- Pricing card featured --------------------------------------------- */
.pricing-card.featured,
.pricing-card.is-featured {
    border: 2px solid #1d75bc;
    box-shadow: 0 24px 48px -16px rgba(29, 117, 188, 0.25);
    position: relative;
}
.pricing-card.featured .featured-badge,
.pricing-card.is-featured .featured-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: #1d75bc;
    color: #fff;
    padding: 4px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
}

/* --- Forms ------------------------------------------------------------- */
.form-control:focus,
.form-select:focus {
    border-color: #1d75bc;
    box-shadow: 0 0 0 0.2rem rgba(29, 117, 188, 0.18);
}

/* --- Popup contatto ---------------------------------------------------- */
#contact-popup .modal-dialog .modal-content {
    border-radius: 18px;
    overflow: hidden;
    border: 0;
}
#contact-popup .modal-header {
    background: linear-gradient(135deg, #1d75bc 0%, #1c3d53 100%);
    color: #fff;
    border-bottom: 0;
}
#contact-popup .btn-close {
    filter: invert(1) grayscale(100%);
}

/* --- Floating contact button ------------------------------------------- */
.floating-contact-btn {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1040;
    background: #1d75bc;
    color: #fff;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    box-shadow: 0 12px 28px -10px rgba(29,117,188,0.55);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    transition: transform 0.2s ease, background 0.2s ease;
}
.floating-contact-btn:hover {
    transform: translateY(-2px);
    background: #1c3d53;
    color: #fff;
}
.floating-contact-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

/* --- Misc utilities ---------------------------------------------------- */
.hero-title-highlight {
    background: linear-gradient(180deg, transparent 65%, rgba(216,240,242,0.85) 65%);
}

.divider-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, #1d75bc, transparent);
    opacity: .35;
}

/* --- Footer ------------------------------------------------------------ */
footer.bg-dark,
.footer-dark {
    background-color: #1c3d53 !important;
    color: #d8f0f2;
}
footer.bg-dark a,
.footer-dark a { color: #ffffff; }
footer.bg-dark a:hover,
.footer-dark a:hover { color: #d8f0f2; }
