/* ==========================================================================
   PIGLIACELLI AUTOTRASPORTI - CUSTOM STYLES
   Integrated with Cargon / Theme 2
   Brand Color: Purple #522b79
   Button Accent: Yellow #FDC513 with Dark Grey #222 Text
   ========================================================================== */

:root {
    --pig-brand: #522b79;
    --pig-brand-rgb: 82, 43, 121;
    --pig-btn-bg: #FDC513;
    --pig-btn-text: #222222;
    --pig-btn-hover: #e5b00e;
}

/* ==========================================================================
   Bootstrap Overrides for Brand Colors
   ========================================================================== */
.text-danger {
    color: #fdc513 !important
}

.bg-danger {
    background-color: #522b79 !important;
}

.border-danger {
    border-color: #522b79 !important;
}

.badge.bg-danger {
    background-color: #522b79 !important;
    color: #ffffff !important;
}

.theme-color-2 {
    color: #442763 !important;
}

.theme-bg-2 {
    background-color: #522b79 !important;
}

/* ==========================================================================
   BUTTONS (Sfondo Giallo #FDC513, Scritte Grigio Scuro #222)
   ========================================================================== */
.ca-btn-primary-22,
.btn-danger,
.ca-btn-primary-2,
.ca-btn-primary-3,
.ca-btn-header .ca-btn-primary-22,
.ca-slider-btn-2 .ca-btn-primary-22,
.ca-offcanvas-contact .ca-btn-primary-22,
button[type="submit"].ca-btn-primary-22 {
    background-color: #FDC513 !important;
    color: #222222 !important;
    border: 2px solid #FDC513 !important;
    font-weight: 700 !important;
    padding: 14px 26px;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: 0.5px;
    border-radius: 5px;
    display: inline-block;
    position: relative;
    z-index: 1;
    transition: all 0.3s ease;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(253, 197, 19, 0.25);
}

.ca-btn-primary-22 span,
.ca-btn-primary-22 i,
.btn-danger i,
.ca-btn-primary-22 span i {
    color: #222222 !important;
    transition: all 0.3s ease;
}

.ca-btn-primary-22:after {
    position: absolute;
    content: "";
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: #e5b00e !important;
    z-index: -1;
    transform: scaleX(0);
    transition: .3s;
    border-radius: 3px;
}

.ca-btn-primary-22:hover:after {
    transform: scaleX(1);
}

.ca-btn-primary-22:hover,
.ca-btn-primary-22:focus,
.btn-danger:hover,
.btn-danger:focus,
.ca-btn-header .ca-btn-primary-22:hover {
    background-color: #e5b00e !important;
    color: #111111 !important;
    border-color: #e5b00e !important;
    box-shadow: 0 6px 20px rgba(229, 176, 14, 0.35);
    transform: translateY(-1px);
}

.ca-btn-primary-22:hover span,
.ca-btn-primary-22:hover i,
.btn-danger:hover i {
    color: #111111 !important;
}

/* Outline Buttons */
.btn-outline-danger {
    border: 2px solid #522b79 !important;
    color: #522b79 !important;
    background: transparent;
    font-weight: 700;
    transition: all 0.3s ease;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    background-color: #FDC513 !important;
    border-color: #FDC513 !important;
    color: #222222 !important;
    box-shadow: 0 4px 15px rgba(253, 197, 19, 0.25);
}

.btn-outline-danger:hover i,
.btn-outline-danger:hover span {
    color: #222222 !important;
}

/* Call to action banner button override */
.bg-danger .btn-light,
.bg-danger .btn-light.text-danger {
    background-color: #FDC513 !important;
    color: #222222 !important;
    border: 2px solid #FDC513 !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.bg-danger .btn-light:hover,
.bg-danger .btn-light.text-danger:hover {
    background-color: #e5b00e !important;
    color: #111111 !important;
    border-color: #e5b00e !important;
}

.bg-danger .btn-light.text-danger i {
    color: #222222 !important;
}

/* Scroll top button */
#topBtn2 {
    background: #FDC513;
    color: #222222;
    border: 2px solid #FDC513;
}

#topBtn2:hover {
    background: #e5b00e;
    color: #111111;
}

/* ==========================================================================
   Topbar
   ========================================================================== */
.pig-topbar {
    background-color: #17191e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 13px;
    position: relative;
    z-index: 1001;
}

.pig-topbar a {
    color: #e2e8f0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pig-topbar a:hover {
    color: #FDC513;
}

.pig-topbar-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 18px;
}

.pig-topbar-item i {
    color: #FDC513;
}

.pig-topbar-item span {
    color: #fff;
}

/* Lang switcher */
.pig-lang-dropdown .dropdown-toggle {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
}

.pig-lang-dropdown .dropdown-menu {
    background: #1f2228;
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 140px;
}

.pig-lang-dropdown .dropdown-item {
    color: #cbd5e1;
    font-size: 13px;
    padding: 6px 14px;
}

.pig-lang-dropdown .dropdown-item:hover,
.pig-lang-dropdown .dropdown-item.active {
    background: #522b79;
    color: #fff;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.ca-header-bg-2 {
    background: rgba(22, 25, 32, 0.88) !important;
    backdrop-filter: blur(12px) !important;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    top: 55px !important;
}

header.header-2.stiky.scroll-header .ca-header-bg-2 {
    background: #1a1d24 !important;
    top: 0 !important;
    border-radius: 0;
}

.pig-logo-wrap {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    transition: transform 0.2s ease;
}

.pig-logo-wrap:hover {
    transform: scale(1.02);
}

.pig-logo-wrap img {
    height: 44px;
    max-height: 74px;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Main menu typography & hierarchy */
.ca-main-menu-2 ul li a {
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.ca-main-menu-2 ul li:hover>a {
    color: #FDC513 !important;
}

.ca-main-menu-2 ul li .sub-menu {
    width: 250px;
    background: #1f2228;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border-top: 3px solid #522b79;
    border-radius: 0 0 6px 6px;
}

.ca-main-menu-2 ul li .sub-menu li a {
    color: #e2e8f0;
    font-size: 13px;
    text-transform: none;
    font-weight: 500;
    padding: 10px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.ca-main-menu-2 ul li .sub-menu li a:hover {
    background: #522b79;
    color: #fff;
    padding-left: 24px;
}

/* ==========================================================================
   Inner Breadcrumb
   ========================================================================== */
.inner-page-header .ca-header-bg-2 {
    position: relative;
    top: 0 !important;
    margin-top: 15px;
    margin-bottom: 15px;
    background: #1a1d24 !important;
}

.inner-breadcrumb-hero {
    background: linear-gradient(135deg, #181b22 0%, #292d36 100%);
    padding-top: 90px;
    padding-bottom: 70px;
    position: relative;
    overflow: hidden;
}

.inner-breadcrumb-hero .breadcrumb-title {
    font-size: 42px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 15px;
}

.inner-breadcrumb-hero .breadcrumb-nav {
    font-size: 15px;
    color: #94a3b8;
}

.inner-breadcrumb-hero .breadcrumb-nav a {
    color: #cbd5e1;
    text-decoration: none;
}

.inner-breadcrumb-hero .breadcrumb-nav a:hover {
    color: #FDC513;
}

/* ==========================================================================
   Content Cards & Components
   ========================================================================== */
.pig-card-feature {
    background: #ffffff;
    border-radius: 12px;
    padding: 32px 26px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border: 1px solid #edf2f7;
    height: 100%;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.pig-card-feature:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(82, 43, 121, 0.12);
    border-color: #522b79;
}

.pig-card-feature .icon-box {
    width: 65px;
    height: 65px;
    background: rgba(82, 43, 121, 0.08);
    color: #522b79;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 26px;
    margin-bottom: 22px;
    transition: all 0.3s ease;
}

.pig-card-feature:hover .icon-box {
    background: #522b79;
    color: #ffffff;
}

/* Timeline */
.pig-timeline {
    position: relative;
    padding-left: 35px;
}

.pig-timeline::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 3px;
    background: #e2e8f0;
}

.pig-timeline-item {
    position: relative;
    margin-bottom: 35px;
}

.pig-timeline-dot {
    position: absolute;
    left: -35px;
    top: 5px;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: #522b79;
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px #522b79;
}

.pig-timeline-year {
    font-size: 22px;
    font-weight: 800;
    color: #522b79;
    margin-bottom: 6px;
}

/* Hub card */
.pig-hub-card {
    background: #fff;
    border-radius: 10px;
    padding: 24px;
    border-left: 4px solid #522b79;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06);
    height: 100%;
}

.pig-hub-card h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1e293b;
}

/* Certification badge list */
.pig-cert-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.pig-cert-badge:hover {
    border-color: #522b79;
    background: #fff;
    box-shadow: 0 10px 25px rgba(82, 43, 121, 0.10);
}

.pig-cert-badge .cert-icon {
    font-size: 36px;
    color: #522b79;
    margin-bottom: 12px;
}

/* PDF Download Card */
.pig-doc-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    transition: all 0.3s ease;
}

.pig-doc-card:hover {
    border-color: #522b79;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.pig-doc-card .doc-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    background: rgba(82, 43, 121, 0.1);
    color: #522b79;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.pig-footer-wrap {
    background: #14171d;
    color: #94a3b8;
    padding-top: 70px;
    position: relative;
    border-top: 4px solid #522b79;
}

.pig-footer-wrap h4 {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 24px;
    position: relative;
    padding-bottom: 12px;
}

.pig-footer-wrap h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background: #FDC513;
}

.pig-footer-wrap p {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
}

.pig-footer-wrap a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pig-footer-wrap a:hover {
    color: #FDC513;
}

.pig-footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pig-footer-menu li {
    margin-bottom: 10px;
}

.pig-footer-menu li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

/* Font Awesome 6 Free fallback alias pointing to local Pro solid font */
@font-face {
    font-family: 'Font Awesome 6 Free';
    font-style: normal;
    font-weight: 900;
    font-display: block;
    src: url("../fonts/fa-solid-900.woff2") format("woff2"), url("../fonts/fa-solid-900.ttf") format("truetype");
}

.pig-footer-menu li a::before {
    content: '\f105';
    font-family: 'Font Awesome 6 Pro', 'Font Awesome 6 Free';
    font-weight: 900;
    color: #FDC513;
    font-size: 12px;
    display: inline-block;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.pig-footer-bottom {
    /* background: #0d0f13; */
    padding: 24px 0;
    margin-top: 60px;
    font-size: 13px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ==========================================================================
   Preloader Logo & Spinner Customization
   ========================================================================== */
.ctn-preloader .animation-preloader .spinner {
    border: 3px solid rgba(82, 43, 121, 0.15) !important;
    border-top-color: #522b79 !important;
    border-bottom-color: #FDC513 !important;
    height: 90px !important;
    width: 90px !important;
    margin: 0 auto 20px auto !important;
}

.pig-loader-logo {
    text-align: center;
    max-width: 260px;
    margin: 0 auto;
    animation: pigLogoPulse 2s infinite ease-in-out;
}

.pig-loader-logo img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.08));
}

@keyframes pigLogoPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.95;
    }
    50% {
        transform: scale(1.03);
        opacity: 1;
    }
}