:root {
  /* Modern Color Palette */
    /* Brand Colors - Blue & Gold Identity */
    --primary-color: #256cb5; /* Blu Piu Chiaro */
    --accent-color: #d4b24e;  /* Giallo Oro Astacerta */
    --primary-blue: #153050;
    --primary-blue-rgb: 21, 48, 80;
  --secondary-color: #6c757d;
  --dark-bg: #212529;
  --light-bg: #f8f9fa;
  --text-dark: #212529;
  --text-light: #f8f9fa;
  
  /* Legacy Colors */
  --ml-white-color: #fff;
  --ml-red-color: #dc3545;
  --ml-green-color: #198754;
  --ml-arancione-color: #fd7e14;
  
  /* Glassmorphism */
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: 1px solid rgba(255, 255, 255, 0.18);
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

html {
    scrollbar-gutter: stable;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f6f9;
    color: var(--text-dark);
    padding-top: 70px; /* Space for fixed navbar */
}

/* Override Bootstrap Primary Colors with Red Brand */
.btn-primary {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
}

.btn-outline-primary {
    color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

.badge.bg-primary {
    background-color: var(--primary-color) !important;
    color: white !important;
}

.badge.bg-primary.bg-opacity-10 {
    background-color: rgba(37, 108, 181, 0.1) !important; /* Reverted to 10% Opacity */
    color: var(--primary-color) !important; /* Text is Primary Blue */
    box-shadow: none;
}

.footer-accent {
    color: var(--accent-color) !important;
}

/* Navbar Toggler - Gold Brand Color */
.navbar-toggler {
    border-color: rgba(212, 178, 78, 0.5);
    padding: 0.5rem 0.75rem;
    transition: all 0.3s ease;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(212, 178, 78, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23d4b24e' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
    transition: transform 0.3s ease;
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-icon {
    transform: rotate(90deg);
}

/* Pagination & Table Controls Override - BLUE PRIMARY (Default) */
.page-link {
    color: var(--primary-color) !important;
}

.page-link:hover {
    color: var(--accent-color) !important;
}

.page-item.active .page-link {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.bootstrap-table .btn-secondary {
    background-color: var(--light-bg) !important;
    border-color: #dee2e6 !important;
    color: var(--primary-color) !important;
}

.bootstrap-table .btn-secondary:hover, 
.bootstrap-table .btn-secondary.active {
    background-color: var(--primary-color) !important;
    color: white !important;
}

/* Table Header Accent - DEEP DARK BLUE for Professional Look */
.table-accent {
    background-color: #153050 !important; /* Deep Blue Night */
    color: white !important;
    border-color: #2c3e50;
}

.table-accent th {
    background-color: #153050 !important;
    color: white !important;
}


h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
}

/* Increase container width for large monitors */
@media (min-width: 1600px) {
    .container, .container-lg, .container-md, .container-sm, .container-xl, .container-xxl {
        max-width: 1600px !important;
    }
}

/* --- Navbar --- */
.navbar {
    background-color: var(--primary-blue) !important; /* Deep Blue Night - 100% solido e opaco */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    padding: 1rem 0;
    transition: padding-top 0.3s ease, padding-bottom 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    z-index: 1040 !important; /* Sempre sopra a tutte le card, countdown e contenuti */
    isolation: isolate; /* Protegge lo stacking context da bleed-through */
    padding-right: 0 !important; /* AC-098: Previene layout shift/traballamento quando si apre un offcanvas o modale */
}

.navbar-scrolled {
    background-color: var(--primary-blue) !important; /* 100% solido e opaco */
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    padding: 0.5rem 0;
    z-index: 1040 !important;
}

.navbar-brand.ac-nav-brand {
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.4px;
    color: #ffffff !important;
}

.navbar-brand.ac-nav-brand img {
    border-radius: 8px;
    object-fit: contain;
}

.nav-link {
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    color: rgba(255,255,255,0.85) !important; /* Brighter text for better contrast on blue */
    transition: color 0.3s;
    position: relative;
    z-index: 1041;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--accent-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-color) !important;
}

/* Pulsante Vendi Auto Brand Accent */
.btn-vendi-auto {
    background-color: var(--accent-color) !important;
    border-color: var(--accent-color) !important;
    color: #0d1e33 !important;
    font-weight: 700 !important;
    transition: all 0.25s ease-in-out;
}

.btn-vendi-auto:hover,
.btn-vendi-auto:focus {
    background-color: #c4a13e !important;
    border-color: #b39134 !important;
    color: #050e19 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 178, 78, 0.4) !important;
}

/* Badge Gratis Componente Globale Condiviso (DRY) */
.ac-badge-gratis {
    background-color: #fef08a !important; /* Giallo chiaro pastello ben visibile */
    color: #1c1917 !important; /* Testo scuro/nero a massimo contrasto */
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 2px 7px;
    border-radius: 9999px;
    letter-spacing: 0.3px;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.btn-vendi-auto .badge-gratis {
    background-color: #fef08a !important;
    color: #1c1917 !important;
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 9999px;
    letter-spacing: 0.3px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
}

/* Icona Info Dentro il Pulsante Vendi Auto */
.btn-vendi-info-inline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(13, 30, 51, 0.7);
    font-size: 0.88rem;
    line-height: 1;
    margin-left: 2px;
    transition: color 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn-vendi-auto:hover .btn-vendi-info-inline,
.btn-vendi-info-inline:hover {
    color: #0d1e33;
    transform: scale(1.15);
}

.ac-mobile-sell-control {
    display: inline-flex;
    align-items: center;
    background: var(--accent-color);
}
.ac-mobile-sell-control .ac-btn-vendi-mobile {
    border: 0;
}
.ac-mobile-sell-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    min-height: 36px;
    padding: 0 5px 0 0;
    border: 0;
    border-radius: 0 999px 999px 0;
    color: #0f2238;
    background: transparent;
    flex-shrink: 0;
}
.ac-mobile-sell-info .material-icons-outlined { font-size: 18px; }
.ac-sell-mobile-hint {
    position: fixed;
    top: var(--ac-sell-hint-top, 80px);
    left: 12px;
    right: 12px;
    z-index: 1055;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 28px 24px 24px;
    min-height: 240px;
    max-height: calc(100dvh - var(--ac-sell-hint-top, 80px) - 16px);
    overflow-y: auto;
    border: 1px solid rgba(212, 178, 78, 0.35);
    border-radius: 18px;
    background: #153050;
    color: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 34, 56, 0.2);
}
.ac-sell-mobile-hint[hidden] { display: none; }
.ac-sell-mobile-hint h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    line-height: 1.15;
    margin: 0;
    max-width: 90%;
}
.ac-sell-mobile-hint p { margin: 0; font-size: 15px; line-height: 1.55; }
.ac-sell-hint-badge { color: var(--accent-color); font-size: 12px; font-weight: 800; letter-spacing: 0.08em; }
.ac-sell-hint-close {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #ffffff;
}
.ac-sell-hint-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ac-sell-hint-cta { padding: 11px 18px; font-weight: 700; color: #0f2238; background: var(--accent-color); }
.ac-sell-hint-cta:hover { background: #c4a13e; color: #0f2238; }
.ac-sell-hint-dismiss { border: 0; background: transparent; color: #ffffff; min-height: 44px; padding: 8px 10px; text-decoration: underline; }
.ac-mobile-sell-info:focus-visible,
.ac-sell-mobile-hint button:focus-visible { outline: 2px solid #ffffff; outline-offset: 2px; }
.ac-desktop-sell-control {
    background: #e5a93c;
    padding: 2px 4px 2px 2px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}
.ac-desktop-sell-control .btn-vendi-auto {
    background: transparent !important;
    color: #153050 !important;
    border: none !important;
    box-shadow: none !important;
}
.ac-desktop-sell-control .btn-vendi-auto:hover {
    color: #0b1a2d !important;
}
.ac-desktop-sell-info {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: rgba(21, 48, 80, 0.15);
    color: #153050;
    margin-left: 2px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}
.ac-desktop-sell-info:hover {
    background: rgba(21, 48, 80, 0.28);
    transform: scale(1.08);
}
.ac-sell-desktop-hint {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 320px;
    padding: 16px 18px 14px;
    border-radius: 14px;
    background: #153050;
    color: #ffffff;
    border: 1px solid rgba(212, 178, 78, 0.4);
    z-index: 1060;
    text-align: left;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35);
}
.ac-sell-desktop-hint[hidden] {
    display: none !important;
}
.ac-sell-desktop-hint::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 18px;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-bottom: 8px solid #153050;
    filter: drop-shadow(0 -1px 0 rgba(212, 178, 78, 0.4));
}
.ac-sell-desktop-hint p {
    font-size: 13.5px;
    line-height: 1.5;
    color: #e0e8f3;
}
.ac-sell-desktop-close {
    width: 28px !important;
    height: 28px !important;
    top: 8px !important;
    right: 8px !important;
    opacity: 0.8;
}
.ac-sell-desktop-close:hover {
    opacity: 1;
}
.ac-sell-desktop-close span {
    font-size: 18px;
}
.ac-sell-hint-cta-sm {
    background: #e5a93c !important;
    border: none !important;
    font-size: 12.5px;
}
.ac-sell-hint-cta-sm:hover {
    background: #d49a30 !important;
}

@media (min-width: 992px) {
    .ac-sell-mobile-hint { display: none; }
}
@media (max-width: 991.98px) {
    .ac-sell-desktop-hint { display: none !important; }
}

/* Ottimizzazione Mobile Navbar: Singola Riga Rigorosa (Stile Coches.net) */
@media (max-width: 991.98px) {
    #mainNav .container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 6px;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .ac-nav-left {
        flex-shrink: 1;
        min-width: 0;
    }

    .ac-nav-brand {
        font-size: clamp(17px, 4.8vw, 22px) !important;
        font-weight: 800 !important;
        letter-spacing: -0.3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .ac-nav-brand img {
        width: clamp(32px, 8.5vw, 38px) !important;
        height: clamp(32px, 8.5vw, 38px) !important;
    }

    .ac-nav-mobile-actions {
        flex-shrink: 0;
        display: flex !important;
        align-items: center !important;
        flex-wrap: nowrap !important;
        gap: 6px !important;
    }

    .ac-nav-mobile-actions .navbar-toggler {
        padding: 0.35rem 0.5rem !important;
        font-size: 1rem !important;
        border-radius: 8px;
    }

    .ac-btn-vendi-mobile {
        font-size: clamp(11.5px, 3.2vw, 13.5px) !important;
        padding: 3px clamp(6px, 1.8vw, 10px) !important;
        white-space: nowrap !important;
        line-height: 1.2 !important;
    }

    .ac-btn-vendi-mobile i,
    .ac-btn-vendi-mobile .material-icons-outlined {
        font-size: clamp(13px, 3.5vw, 16px) !important;
    }

    .ac-btn-vendi-mobile .badge-gratis,
    .ac-btn-vendi-mobile .ac-badge-gratis {
        font-size: clamp(9px, 2.5vw, 11px) !important;
        padding: 1.5px 5px !important;
    }

    .ac-btn-vendi-mobile .btn-vendi-info-inline {
        font-size: clamp(12px, 3.2vw, 14px) !important;
    }

    @media (max-width: 576px) {
        .ac-nav-left {
            flex-shrink: 1 !important;
        }
    }

    .ac-btn-user-mobile {
        width: clamp(34px, 9.5vw, 40px) !important;
        height: clamp(34px, 9.5vw, 40px) !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        flex-shrink: 0 !important;
    }

    .ac-btn-user-mobile i {
        font-size: clamp(15px, 4.2vw, 18px) !important;
        margin: 0 !important;
        line-height: 1 !important;
    }
}

/* Tooltip Stile Premium Brand */
@media (max-width: 400px) {
    .ac-btn-vendi-mobile .ac-sell-add-icon { display: none; }
}
@media (max-width: 340px) {
    #mainNav .container { padding-left: 8px !important; padding-right: 8px !important; gap: 4px; }
    .ac-nav-brand { font-size: 14px !important; }
    .ac-nav-brand img { width: 24px !important; height: 24px !important; }
    .ac-mobile-sell-info { width: 24px; }
}

.tooltip-inner {
    max-width: 280px !important;
    padding: 10px 14px !important;
    background-color: #0d1e33 !important;
    color: #f8fafc !important;
    border: 1px solid rgba(212, 178, 78, 0.3) !important;
    border-radius: 10px !important;
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    box-shadow: 0 10px 25px rgba(0,0,0,0.4) !important;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #0d1e33 !important;
}

/* Footer & Social Icons Styling */
footer.bg-dark {
    background-color: #153050 !important; /* Deep Blue Night Override */
}

footer a.text-white:hover {
    color: var(--accent-color) !important;
}

.fab, .fas {
    transition: color 0.3s ease;
}

/* Social Icons specific styling */
footer .fab,
footer .social-svg-x {
    color: var(--accent-color); /* Gold Icons by default */
    transition: color 0.3s ease;
}

footer .footer-social-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

footer .footer-social-icon,
footer .footer-contact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

footer .footer-contact-icon {
    color: var(--accent-color);
    margin-top: 1px;
}

footer .footer-contact-icon .material-icons-outlined {
    font-size: 1.15rem;
    line-height: 1;
    color: inherit;
}

footer .footer-social-icon i {
    font-size: 1.15rem;
    line-height: 1;
}

footer .footer-social-icon .social-svg-x {
    width: 17px;
    height: 17px;
    display: block;
    fill: currentColor;
}

.list-inline .btn-floating {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    text-decoration: none;
    vertical-align: middle;
}

.list-inline .btn-floating .fab {
    font-size: 1.15rem;
    line-height: 1;
}

.list-inline .btn-floating .social-svg-x {
    width: 17px;
    height: 17px;
    display: block;
    fill: currentColor;
}

footer a:hover .fab,
footer a:hover .social-svg-x {
    color: white !important; /* White on hover */
}

/* --- Affiliate Coupon Badge --- */
.affiliate-coupon-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #fff1f2;
    color: #991b1b;
    border: 1px dashed #f87171;
    border-radius: 8px;
    padding: 3px 10px;
    font-size: 0.73rem;
    font-weight: 600;
    margin: 6px 0 10px 0;
    width: fit-content;
    box-sizing: border-box;
}

.affiliate-coupon-badge strong {
    color: #b91c1c;
    font-weight: 800;
    letter-spacing: 0.05em;
    background: #fee2e2;
    padding: 1px 5px;
    border-radius: 4px;
}

/* --- Hero Section --- */
.hero-section {
    background: linear-gradient(135deg, #1e2024 0%, #2c3036 100%);
    color: white;
    padding: 170px 0 80px; /* 100px originali + 70px per compensare il margin-top negativo */
    margin-top: -70px; /* Annulla il padding-top del body: tocca direttamente la navbar fissa */
    position: relative;
    overflow: hidden;
}

@media (max-width: 768px) {
    .hero-section::before {
        background-size: unset !important; /* Cover full area always */
    }
}
    

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://static.astacerta.com/images/hero-bg.png");
    background-position: center 59%; /* Desktop focus */
    background-repeat: no-repeat;
    background-size: cover; /* Cover full area always */
    opacity: 0.3; /* Increased opacity for better visibility */
    z-index: 0;
    pointer-events: none; /* Ensure clicks pass through */
}

@media (max-width: 768px) {
    .hero-section::before {
        background-position: center center; /* Reset for mobile */
    }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #ccc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    color: rgba(255,255,255,0.8);
}

/* --- Blog Section --- */
.blog-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
}

/* Universal hover lift effect for cards */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
}

/* Blog Carousel Controls - Outside positioning */
#blogCarousel {
    position: relative;
    padding: 0; /* No padding - arrows fully outside */
}

#blogCarousel .carousel-control-prev,
#blogCarousel .carousel-control-next {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.2s ease, border-color 0.2s ease;
    outline: none;
    box-shadow: none;
}

#blogCarousel .carousel-control-prev:focus,
#blogCarousel .carousel-control-next:focus,
#blogCarousel .carousel-control-prev:active,
#blogCarousel .carousel-control-next:active {
    outline: none;
    box-shadow: none;
}

#blogCarousel .carousel-control-prev {
    left: -60px;
}

#blogCarousel .carousel-control-next {
    right: -60px;
}

#blogCarousel .carousel-control-prev:hover,
#blogCarousel .carousel-control-next:hover {
    background: #fff;
    border-color: var(--primary-color);
}

#blogCarousel .carousel-control-prev-icon,
#blogCarousel .carousel-control-next-icon {
    filter: brightness(0) invert(1);
}

#blogCarousel .carousel-control-prev:hover .carousel-control-prev-icon,
#blogCarousel .carousel-control-next:hover .carousel-control-next-icon {
    filter: invert(24%) sepia(79%) saturate(3370%) hue-rotate(342deg) brightness(93%) contrast(88%);
}

#blogCarousel .carousel-indicators {
    bottom: -50px;
}

#blogCarousel .carousel-indicators button {
    background-color: var(--primary-color);
}

/* Mobile: hide outside arrows, show only indicators */
@media (max-width: 768px) {
    #blogCarousel {
        padding: 0;
    }
    
    #blogCarousel .carousel-control-prev,
    #blogCarousel .carousel-control-next {
        display: none;
    }
}

/* Blog Load More Button - Minimal Design */
.blog-load-more {
    background: none;
    border: none;
    color: var(--accent-color);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    letter-spacing: 0.3px;
}

.blog-load-more:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

.blog-load-more:hover i {
    animation: bounce-down 0.6s ease infinite;
}

.blog-load-more::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: var(--accent-color);
    transition: width 0.3s ease;
}

.blog-load-more:hover::after {
    width: 80%;
    background: var(--primary-color);
}

@keyframes bounce-down {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

.blog-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.blog-body {
    padding: 1.5rem;
}

.blog-category {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    display: block;
}

.blog-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-meta {
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-top: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Article Page Styling */
.article-hero-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.article-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
}

.article-content h3 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: #2c3e50;
}

.article-content ul, .article-content ol {
    margin-bottom: 1.5rem;
}

.article-content li {
    margin-bottom: 0.5rem;
}

/* Mobile Navbar Styling - Modern & Fast */
/* Mobile Navbar Styling - Modern & Fast */
@media (max-width: 991px) {
    .navbar-collapse {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #153050; /* Solid Deep Blue */
        padding: 3rem 2rem; /* Balanced Padding (Top/Bottom equal) */
        border-bottom: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 10px 40px rgba(0,0,0,0.5);
        text-align: center;
        z-index: 1000;
        /* Ensure no layout jump */
        max-height: 85vh;
        overflow-y: auto;
    }
    
    /* Overlay Effect - Fixed on Screen */
    .navbar-collapse.show::before {
        content: '';
        position: fixed;
        top: 70px; /* Below navbar header */
        left: 0;
        width: 100vw;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.1); /* Light "frosted" tint */
        backdrop-filter: blur(4px); /* Returns the "offuscato" effect */
        z-index: -1;
        pointer-events: none; /* JS handles click, this is visual only */
        opacity: 0;
        animation: fadeInOverlay 0.3s forwards;
    }

    @keyframes fadeInOverlay {
        to { opacity: 1; }
    }
    
    /* Removed container animation to fix 'bounce/glitch' */
    /* Relying on staggered item animations for the 'slow emotion' feel */
    
    .navbar-nav .nav-item {
        margin: 1rem 0;
        opacity: 0;
        transform: translateY(15px);
        /* Only animate explicitly when open */
    }

    .navbar-collapse.show .navbar-nav .nav-item {
        animation: fadeInUp 0.5s ease-out forwards;
    }
    
    @keyframes fadeInUp {
        to { opacity: 1; transform: translateY(0); }
    }
    
    .navbar-nav .nav-item:nth-child(1) { animation-delay: 0.1s; }
    .navbar-nav .nav-item:nth-child(2) { animation-delay: 0.2s; }
    .navbar-nav .nav-item:nth-child(3) { animation-delay: 0.3s; }
    .navbar-nav .nav-item:nth-child(4) { animation-delay: 0.4s; }
    .navbar-nav .nav-item:nth-child(5) { animation-delay: 0.5s; }
    
    .navbar-nav .btn {
        width: 100%;
        max-width: 250px;
        margin: 1rem auto;
        padding: 0.8rem;
    }
}

/* --- Auction Table Section --- */
.auction-section {
    background: white;
    border-radius: 20px;
    padding: 4rem;
    box-shadow: 0 0 40px rgba(0,0,0,0.03);
    margin-top: -50px; /* Overlap with hero/blog */
    position: relative;
    z-index: 10;
}

.auction-section .d-flex {
    flex-wrap: wrap;
    gap: 1rem;
}

@media (max-width: 768px) {
    .auction-section {
        padding: 0.5rem !important;
    }
    .auction-section .d-flex {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 0.5rem;
    }
    
    .auction-section h2 {
        font-size: 1rem;
        margin-bottom: 0 !important;
    }
    
    .auction-section .badge {
        font-size: 0.65rem;
        white-space: nowrap;
    }
    
    /* Remove all padding on mobile for auction section */
    #auctions-section.py-5 {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    /* Mobile: Search bar and buttons on same line */
    .bootstrap-table .fixed-table-toolbar {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .fixed-table-toolbar .search {
        flex: 1;
        margin-right: 0;
        order: 1;
    }
    
    .fixed-table-toolbar .columns {
        order: 2;
        margin-left: 0;
    }
    
    /* Mobile: Pagination full width */
    .bootstrap-table .fixed-table-pagination {
        width: 100%;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .fixed-table-pagination .float-left {
        float: none !important;
        width: 100%;
        text-align: right;
    }
    
    .fixed-table-pagination .float-right {
        float: none !important;
        width: 100%;
        text-align: center;
    }
    
    .fixed-table-pagination .pagination {
        justify-content: space-between;
        margin-top: 0.5rem;
        width: 100%;
    }
}

/* --- Legacy & Utility Styles --- */
.m-l-60{ margin-left:60px }
pre{
    background: black;
    color: white;
    height: 100vh;
    padding: 25px;
    overflow-y: scroll;
    border: 1px solid #ccc;
    font-size:20px !important;
}

.rotate { animation: rotation 2s infinite linear; }
@keyframes rotation {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Bootstrap Table Customization */
.fixed-table-loading.table.table-bordered.table-hover.open{
    align-items: baseline !important;
    padding-top: 2rem !important;
}

.verde{
    color: var(--ml-green-color) !important;
    font-weight: bold !important;
    min-width: 115px !important;
    text-align: right !important;
    font-family: 'Digital', sans-serif;
    font-size: x-large;
    padding: 0 6px 0 0 !important;
}

.bg-rosso { background-color: var(--ml-red-color) !important; color: white !important; }
.bg-verde { background-color: var(--ml-green-color) !important; color: white !important; }
.bg-arancione { background-color: var(--ml-arancione-color) !important; color: white !important; }

/* PDF icon color - keep link text blue but icon red */
.fa-file-pdf {
    color: var(--ml-red-color) !important;
}

.preview{
    width: 200px !important;
    height: 200px !important;
    object-fit: cover !important;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

@media (max-width: 768px) {
    .preview{
        width: 130px !important;
        max-height: 130px !important;
    }
    .hero-title { font-size: 2.5rem; }
    
    /* Stack hero buttons vertically on mobile */
    .hero-section .d-flex {
        flex-direction: column !important;
        gap: 1rem !important;
        align-items: center !important;
    }
    .hero-section .btn {
        width: 100%;
        max-width: 300px;
    }
}

/* Scroll offset for anchor links to account for fixed navbar */
#hero, #blog, #auctions-section, #footer-contact {
    scroll-margin-top: 80px;
}

/* Digital Font - Ensure it loads properly */
@font-face {
    font-family: 'Digital';
    src: url('https://static.astacerta.com/css/font/digital-7.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.timer {
    font-family: 'Digital', monospace;
    font-weight: bold;
    float:right;
}


/* .verde em - "Totale con oneri" styling */
.verde em {
    font-size: 0.3em !important;
    float: right !important;
    color: #000 !important;
    font-weight: 300 !important;
    font: 400 13px / 1.3 "Roboto", Arial, "Lucida Grande", sans-serif;
}

.giorni{ font-size: xx-large; padding-right:3px; }
.smalls{ font-size: x-small; }
.fa-clock{
    vertical-align: -webkit-baseline-middle;
    padding-top: 18px !important;
}

/* Back to Top */
#backToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1100;
    background-color: var(--primary-color) !important;
    color: #ffffff !important;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    transform: scale(0);
    opacity: 0;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}
#backToTop.show { transform: scale(1); opacity: 1; }
#backToTop:hover {  
    text-decoration: none !important; 
    transform: scale(1.1); 
    box-shadow: 0 6px 16px #28282866; 
}

/* Table Fixes */
th[data-field="preview"] { width: 165px; } /* Adjusted for smaller preview */
.bootstrap-table .search .input-group { flex-wrap: nowrap !important; }
.bootstrap-table .search button { width: auto !important; }

/* Pagination Z-Index Fix */
.bootstrap-table > .fixed-table-pagination:last-child { background-color: white; }
.bootstrap-table > .fixed-table-pagination:last-child .pagination {
    position: relative;
    z-index: 9999 !important;
}

/* Sticky header positioning - align below navbar */
.fix-sticky {
    top: 70px !important;
    z-index: 1020 !important; /* Below navbar (1030) */
}

/* Customize pagination text - remove verbose words */
.pagination-info::before {
    content: '' !important;
}

/* Legacy em a style */
em a {
    font-size: 1.8em !important;
}

/* Hide "Visualizzazione" and "elementi" words */
.page-list .btn-group .dropdown-menu {
    min-width: auto;
}

/* Expandable Content */
.expandable-content {
    max-height: 60px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.5s ease-in-out;
}
.expandable-content.expanded { max-height: 500px; }
.expand-toggle {
    cursor: pointer;
    font-weight: bold;
    color: var(--primary-color);
    display: block;
    margin-top: 5px;
}

/* Footer Mobile Layout */
@media (max-width: 768px) {
    /* Keep Link Utili and Social columns side by side on mobile */
    footer .row > div[class*="col-md-2"],
    footer .row > div[class*="col-md-3"][class*="col-lg-2"] {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        text-align: left !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 3rem !important;
        padding-right: 3rem !important;
    }
    
    /* Full width for other footer sections */
    footer .row > div:not([class*="col-md-2"]):not([class*="col-lg-2"]) {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 1.5rem;
    }
}

/* Blog Load More Button - Modern & Harmonious */
.btn-blog-loadmore {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    color: var(--primary-blue, #153050);
    border: 1.5px solid #d5e0ea;
    border-radius: 50px;
    padding: 10px 24px;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    text-decoration: none;
    box-shadow: 0 2px 8px rgba(21, 48, 80, 0.05);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    min-height: 44px;
    cursor: pointer;
}

.btn-blog-loadmore:hover,
.btn-blog-loadmore:focus {
    background: #f4f8fc;
    color: var(--primary-color, #256cb5);
    border-color: var(--primary-color, #256cb5);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(37, 108, 181, 0.12);
}

.btn-blog-loadmore:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(21, 48, 80, 0.08);
}

.btn-blog-loadmore.disabled,
.btn-blog-loadmore:disabled {
    opacity: 0.7;
    pointer-events: none;
    border-color: #d5e0ea;
}

.btn-blog-loadmore .btn-icon-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(37, 108, 181, 0.1);
    color: var(--primary-color, #256cb5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.btn-blog-loadmore:hover .btn-icon-circle {
    background: var(--primary-color, #256cb5);
    color: #ffffff;
    transform: rotate(90deg);
}

#loadMoreSection {
    margin-top: 12px !important;
    margin-bottom: 0px !important;
    padding-top: 0px !important;
}

@media (max-width: 768px) {
    #blog {
        padding-bottom: 20px !important;
    }
}

/* ==========================================================================
   AC-089: USER ACCOUNT OFFCANVAS SIDEBAR HUB (CARVERTICAL MINIMAL CLEAN STYLE)
   ========================================================================== */
.ac-user-offcanvas {
    width: 380px !important;
    max-width: 90vw !important;
    background-color: #f8fafc !important;
    color: #334155 !important;
    border-left: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: -10px 0 35px rgba(15, 34, 56, 0.12) !important;
    z-index: 1055 !important;
}

.ac-user-offcanvas-header {
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 16px 22px;
}

.ac-offcanvas-header-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f0f7ff;
    color: var(--primary-color, #256cb5);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ac-offcanvas-header-icon .material-icons-outlined {
    font-size: 20px;
}

.ac-user-offcanvas-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: #0f2238;
    letter-spacing: -0.02em;
    margin: 0;
    line-height: 1.2;
}

.ac-user-offcanvas-subtitle {
    font-size: 0.75rem;
    color: #64748b;
    display: block;
}

.ac-user-offcanvas-close {
    opacity: 0.6;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.ac-user-offcanvas-close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

.ac-user-offcanvas-body {
    padding: 20px;
    overflow-y: auto;
}

/* Bento Box 1: Hero Card Profilo (Navy Primario AstaCerta) */
.ac-user-bento-profile {
    background: linear-gradient(135deg, #153050 0%, #0f2238 100%);
    border-radius: 20px;
    padding: 20px 18px;
    color: #ffffff;
    box-shadow: 0 8px 24px -6px rgba(15, 34, 56, 0.25);
    position: relative;
    overflow: hidden;
    margin-bottom: 14px;
}

.ac-user-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #256cb5 0%, #d4b24e 100%);
    font-family: 'Outfit', sans-serif;
    font-size: 1.35rem;
    font-weight: 800;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.ac-user-profile-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.ac-user-profile-email {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
}

.ac-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ac-role-pill .material-icons-outlined {
    font-size: 13px;
}

.ac-role-pill-admin {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid #fde68a;
}

.ac-role-pill-pro {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.ac-role-pill-private {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.ac-user-company-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: #d4b24e;
}

/* Bento Box 2: Griglia Metriche Veicoli */
.ac-bento-stat-card {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    box-shadow: 0 4px 12px -2px rgba(15, 34, 56, 0.04);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}

.ac-bento-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(15, 34, 56, 0.08);
    border-color: #cbd5e1;
}

.ac-bento-stat-card-warn {
    background: #fffdf5;
    border-color: #fef3c7;
}

.ac-bento-stat-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ac-bento-stat-icon .material-icons-outlined {
    font-size: 18px;
}

.ac-bento-stat-icon-active {
    background: #ecfdf5;
    color: #10b981;
}

.ac-bento-stat-icon-draft {
    background: #fffbeb;
    color: #d97706;
}

.ac-bento-stat-pill {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
}

.ac-bento-stat-pill-active {
    background: #ecfdf5;
    color: #047857;
}

.ac-bento-stat-pill-draft {
    background: #fffbeb;
    color: #b45309;
}

.ac-bento-stat-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f2238;
    line-height: 1.1;
    margin-top: 4px;
}

.ac-bento-stat-label {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 2px;
}

/* CTA Primaria Full-Pill */
.ac-offcanvas-cta-sell {
    width: 100%;
    padding: 10px 18px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(212, 178, 78, 0.35);
}

.ac-offcanvas-cta-sell .material-icons-outlined {
    font-size: 20px;
}

/* Navigazione Minimal Clean Card */
.ac-crm-nav {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ac-crm-nav-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ac-crm-nav-heading {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    padding-left: 6px;
    margin-bottom: 2px;
}

.ac-crm-nav-heading-admin {
    color: #b45309;
}

.ac-crm-nav-link {
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.9);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #0f2238;
    box-shadow: 0 2px 6px rgba(15, 34, 56, 0.02);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ac-crm-nav-link:hover {
    background: #f0f7ff;
    border-color: #93c5fd;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px -2px rgba(13, 110, 253, 0.1);
    color: #0d6efd;
}

.ac-crm-nav-link-admin {
    border-color: #fde68a;
}

.ac-crm-nav-link-admin:hover {
    background: #fffdf5;
    border-color: #f59e0b;
    box-shadow: 0 6px 16px -2px rgba(245, 158, 11, 0.15);
    color: #b45309;
}

.ac-crm-nav-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #f0f7ff;
    color: #0d6efd;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.ac-crm-nav-icon .material-icons-outlined {
    font-size: 19px;
}

.ac-crm-nav-link:hover .ac-crm-nav-icon {
    background: #0d6efd;
    color: #ffffff;
}

.ac-crm-nav-icon-admin {
    background: #fffbeb;
    color: #d97706;
}

.ac-crm-nav-link-admin:hover .ac-crm-nav-icon-admin {
    background: #d97706;
    color: #ffffff;
}

.ac-crm-nav-text {
    flex-grow: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.ac-crm-nav-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: inherit;
    line-height: 1.25;
}

.ac-crm-nav-desc {
    font-size: 0.72rem;
    color: #64748b;
    margin-top: 1px;
}

.ac-crm-nav-chevron {
    font-size: 18px;
    color: #94a3b8;
    transition: transform 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.ac-crm-nav-link:hover .ac-crm-nav-chevron {
    color: inherit;
    transform: translateX(3px);
}

/* Footer Logout */
.ac-crm-logout-btn {
    width: 100%;
    padding: 10px 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #fee2e2;
    background: #ffffff;
    color: #dc2626;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.ac-crm-logout-btn .material-icons-outlined {
    font-size: 18px;
}

.ac-crm-logout-btn:hover {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #b91c1c;
    transform: translateY(-1px);
}

/* Navbar Avatar & Sezione "Il Mio Profilo" (AC-093) */
.ac-navbar-user-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    background-color: #ffffff;
    display: block;
}

.ac-nav-user-icon {
    font-size: 19px;
    line-height: 1;
}

.ac-nav-user-name {
    max-width: 150px;
}

.ac-nav-user-dash-icon {
    font-size: 17px;
    opacity: 0.75;
}

.ac-sell-info-icon {
    font-size: 15px;
    line-height: 1;
}

.ac-user-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.ac-user-avatar {
    overflow: hidden;
}

.ac-user-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    background-color: #ffffff;
}

.ac-avatar-edit-trigger {
    position: absolute;
    right: -4px;
    bottom: -2px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #d4b24e;
    color: #0f2238;
    border: 2px solid #153050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.ac-avatar-edit-trigger:hover {
    transform: scale(1.1);
    background: #eab308;
}

.ac-avatar-edit-trigger .material-icons-outlined {
    font-size: 13px;
}

.ac-profile-quick-hint {
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.75);
}

.ac-btn-toggle-profile {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.28);
    font-size: 0.76rem;
    font-weight: 600;
    padding: 4px 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.ac-btn-toggle-profile:hover {
    background: #ffffff;
    color: #0f2238;
}

.ac-btn-toggle-profile .material-icons-outlined {
    font-size: 14px;
}

.ac-profile-edit-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 18px;
    padding: 16px;
    box-shadow: 0 10px 25px -5px rgba(15, 34, 56, 0.08);
}

.ac-profile-edit-title {
    font-family: 'Outfit', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    color: #0f2238;
}

.ac-profile-avatar-upload-box {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 12px;
}

.ac-profile-avatar-preview {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid #ffffff;
    box-shadow: 0 2px 8px rgba(15, 34, 56, 0.12);
}

.ac-profile-avatar-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #ffffff;
}

.ac-profile-upload-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0f2238;
    display: block;
}

.ac-profile-upload-subtext {
    font-size: 0.71rem;
    color: #475569;
    line-height: 1.35;
}

.ac-profile-field-label {
    font-size: 0.74rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 3px;
    display: block;
}

.ac-profile-input {
    border-radius: 10px;
    font-size: 0.84rem;
}

.ac-profile-type-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.ac-profile-type-btn {
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 10px;
}

.btn-check:checked + .ac-profile-type-btn {
    background: #153050;
    color: #ffffff;
    border-color: #153050;
}

.ac-profile-type-btn .material-icons-outlined {
    font-size: 16px;
}

.ac-profile-feedback {
    font-size: 0.78rem;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 10px;
}

.ac-profile-feedback-ok {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.ac-profile-feedback-err {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.ac-icon-xs {
    font-size: 15px;
}

.ac-icon-sm {
    font-size: 17px;
}

/* ==========================================================================
   BLOG ADSENSE RESPONSIVE SLOTS (AC-107)
   DEFAULT-HIDDEN: Il blocco rimane display: none di default e a zero pixel di altezza.
   Appare ESCLUSIVAMENTE quando l'iframe pubblicitario di Google AdSense è stato
   scaricato ed erogato con successo (Zero spazi bianchi a vuoto).
   ========================================================================== */
.blog-adsense-wrapper {
    display: none !important;
    margin: 28px auto;
    text-align: center;
    width: 100%;
    max-width: 100%;
}

.blog-adsense-wrapper:has(iframe),
.blog-adsense-wrapper.has-ad {
    display: block !important;
}

.blog-adsense-wrapper ins.adsbygoogle {
    display: block !important;
    width: 100%;
    margin: 0 auto;
}

