#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 3.5rem;
        top: 0.5rem;
    }


@keyframes bubblePop {
    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    .news-bubble {
        bottom: 85px;
        left: 15px;
    }

    .news-window {
        width: 95%;
        max-height: 85vh;
        border-radius: 20px;
    }
}

@media (max-width: 768px) {
    .news-bubble-container {
        bottom: 85px;
        left: 15px;
    }

    .news-modal-window {
        width: 95%;
        max-height: 85vh;
    }
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5M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em/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* =========================
   HEADER - BIO (WHITE BG)
   ========================= */

:root {
    --brand-green: #2F5D3A;
    --brand-green-dark: #1E3D27;
    --brand-brown: #5A3D2B;
    --brand-brown-dark: #3E2A1E;
    --header-height: 86px;
}

.main-content {
    padding-top: 90px; /* aumenta/diminuisci in base all’altezza header */
}

/* Header fisso */
.it-header-navbar-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
    background: var(--brand-green);
    border-bottom: 1px solid rgba(255,255,255,.18);
    box-shadow: 0 6px 20px rgba(0,0,0,.12);
}

/* Container */
.navbar-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Compensa header fixed (metti class="content" al main nel layout) */
.content {
    flex: 1;
    padding-top: var(--header-height,86px);
}


/* 1. Rimuove il bordo da TUTTI gli elementi dentro il carosello quando ricevono il focus */
#heroCarousel *,
#heroCarousel *:focus,
#heroCarousel *:active,
#heroCarousel .carousel-indicators button {
    outline: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent; /* Per dispositivi mobile */
}

/* 2. Specifico per i bottoni degli indicatori (spesso i colpevoli del riquadro largo) */
.carousel-indicators [data-bs-target] {
    border-top: 10px solid transparent !important;
    border-bottom: 10px solid transparent !important;
    background-clip: padding-box;
}

/* 3. Rimuove il bordo blu/nero predefinito dei browser moderni */
:focus-visible {
    outline: none !important;
}

/* Brand/logo */
.brand-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
    filter: none !important;
}

/* Link menu */
.navbar-nav .nav-link {
    font-weight: 600;
    color: rgba(255,255,255,.92) !important;
    padding: 0.75rem 1rem;
    position: relative;
    transition: color .2s ease, transform .2s ease;
}

    .navbar-nav .nav-link:hover,
    .navbar-nav .nav-link:focus {
        color: #fff !important;
        transform: translateY(-1px);
    }

    /* Underline animata */
    .navbar-nav .nav-link::after {
        content: '';
        position: absolute;
        bottom: 6px;
        left: 50%;
        width: 0;
        height: 2px;
        background: rgba(255,255,255,.9);
        transition: width .2s ease, left .2s ease;
    }

    .navbar-nav .nav-link:hover::after {
        width: 80%;
        left: 10%;
    }

/* Bottoni azione a destra (outline bianco) */
.btn-header-action {
    font-weight: 700;
    border-radius: 999px;
    padding: 8px 18px;
    text-transform: uppercase;
    font-size: .85rem;
    background: transparent;
    border: 1px solid rgba(255,255,255,.85);
    color: #fff;
    transition: all .2s ease;
}

    .btn-header-action:hover {
        background: #fff;
        color: var(--brand-green);
    }

/* hamburger bianco */
.navbar-toggler {
    border: 1px solid rgba(255,255,255,.35);
    padding: .45rem .6rem;
}

.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='%23ffffff' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Responsive: header un po’ più basso su mobile */
@media (max-width: 576px) {
    :root {
        --header-height: 74px;
    }

    .brand-logo {
        height: 50px;
    }
}

/* =========================
   FOOTER - BIO (GREEN BG)
   ========================= */
.bio-footer {
    background: var(--brand-brown);
    color: #fff;
}

.footer-sep {
    border-color: rgba(255,255,255,.35) !important;
}

.bio-footer h5 {
    font-size: 0.95rem;
    margin-bottom: 6px;
}

.bio-footer ul li {
    margin-bottom: 4px !important;
    font-size: 0.9rem;
}

/* wrapper più centrato e compatto */
.footer-wrap {
    max-width: 1200px;
}

/* colonne: tutto centrato e con spacing coerente */
.footer-col {
    display: flex;
    flex-direction: column;
    align-items: center; /* centra i blocchi */
}

/* logo: più “spostato” verso l’interno e centrato */
.footer-logo-col {
    align-items: center;
    justify-content: center;
    padding-left: 18px; /* spostamento verso destra */
    padding-right: 18px;
}

.footer-logo {
    height: 120px !important; /* regola qui */
    width: auto !important;
    max-width: 100%;
    object-fit: contain;
    display: inline-block;
}

/* titoli e liste più compatti */
.footer-title {
    font-size: .95rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.footer-list {
    font-size: .9rem;
    display: grid;
    gap: 6px;
    text-align: center; /* centra testo */
}

/* link */
.footer-link {
    color: rgba(255,255,255,.9);
    text-decoration: none;
}

    .footer-link:hover {
        color: #fff;
        text-decoration: underline;
    }

.bio-footer {
    box-shadow: inset 0 10px 0 rgba(0,0,0,.08);
}

.footer-social {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-top: 10px;
}

.social-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
    transition: all .25s ease;
}

    .social-icon svg {
        width: 20px;
        height: 20px;
        fill: white;
    }

    /* hover con colori ufficiali */
    .social-icon:nth-child(1):hover {
        background: #E1306C;
    }

    .social-icon:nth-child(2):hover {
        background: #1877F2;
    }

    .social-icon:nth-child(3):hover {
        background: #25D366;
    }

    .social-icon:hover {
        transform: translateY(-4px);
    }

   /* HOME */

.cat-wrapper {
    position: relative;
}

.cat-scroll {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
}

    .cat-scroll::-webkit-scrollbar {
        display: none;
    }

.cat-item {
    flex: 0 0 260px;
}

.cat-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    transition: transform .3s ease, box-shadow .3s ease;
    text-decoration: none;
    color: inherit;
}

    .cat-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 14px 35px rgba(0,0,0,0.12);
    }

.cat-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.cat-body {
    padding: 1rem;
}

.cat-title {
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.cat-sub {
    font-size: .9rem;
    color: #6c757d;
}

.cat-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    background: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 6px 15px rgba(0,0,0,.15);
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
}

    .cat-arrow.left {
        left: -20px;
    }

    .cat-arrow.right {
        right: -20px;
    }

/* ===== FADE LATERALE PROFESSIONALE ===== */

.cat-wrapper {
    position: relative;
}

    .cat-wrapper::before,
    .cat-wrapper::after {
        content: "";
        position: absolute;
        top: 0;
        width: 80px;
        height: 100%;
        pointer-events: none;
        z-index: 5;
    }

    .cat-wrapper::before {
        left: 0;
        background: linear-gradient(to right, #f8f9fa 0%, rgba(248,249,250,0) 30%);
    }

    .cat-wrapper::after {
        right: 0;
        background: linear-gradient(to left, #f8f9fa 0%, rgba(248,249,250,0) 30%);
    }

@media (max-width: 768px) {
    .cat-item {
        flex: 0 0 200px;
    }
}

       .hero-logo {
        width: 250px;
        max-width: 28vw;
        height: auto;
        margin-bottom: 8px;
    }

.hero-img {
    width: 100%;
    height: 50vh;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.40);
}

    .hero-caption {
        bottom: 16%;
        text-shadow: 0 2px 18px rgba(0,0,0,.55);
    }
    .hero-caption h1, .hero-caption h2 { font-weight: 800; }
    .hero-caption p { font-size: 1.05rem; max-width: 860px; margin: 0 auto 12px auto; }

    .trust { padding: 14px; }
    .trust-icon { font-size: 1.8rem; }
    .trust-title { font-weight: 800; margin-top: 6px; }
    .trust-text { color: #6c757d; font-size: .95rem; }

    .cat-card {
        display: block;
        border: 1px solid rgba(0,0,0,.08);
        border-radius: 16px;
        overflow: hidden;
        text-decoration: none;
        color: inherit;
        background: #fff;
        transition: transform .12s ease, box-shadow .12s ease;
        box-shadow: 0 6px 16px rgba(0,0,0,.06);
        height: 100%;
    }
    .cat-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.10); }
.cat-img {
    width: 100%;
    aspect-ratio: 1 / 1; /* perfetto per 550x550 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 12px 12px 0 0;
}
    .cat-body { padding: 12px 12px 14px; }
    .cat-title { font-weight: 800; }
    .cat-sub { color: #6c757d; font-size: .9rem; }

    .step-card {
        background: #fff;
        border: 1px solid rgba(0,0,0,.08);
        border-radius: 16px;
        padding: 16px;
        height: 100%;
        box-shadow: 0 6px 16px rgba(0,0,0,.06);
    }
    .step-num {
        width: 36px; height: 36px;
        border-radius: 999px;
        display: grid; place-items: center;
        font-weight: 800;
        background: rgba(13,110,253,.12);
        color: #0d6efd;
        margin-bottom: 10px;
    }
    .step-title { font-weight: 800; }
    .step-text { color: #6c757d; }

    .sticky-cta {
        position: fixed;
        bottom: 0; left: 0; right: 0;
        display: flex;
        z-index: 1030;
        box-shadow: 0 -10px 30px rgba(0,0,0,.18);
    }

.layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}



.product-list-item {
    background: white;
    border-radius: 16px;
    padding: 15px;
    border: 1px solid rgba(0,0,0,.05);
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.product-list-item:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    border-color: #2a9d8f;
}

.list-img-wrap {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    position: relative;
}

    .list-img-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        border-radius: 12px;
    }

.mini-badge-promo {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e63946;
    color: white;
    font-size: 0.7rem;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-weight: bold;
    border: 2px solid white;
}

.price-tag {
    font-size: 1.3rem;
    font-weight: 800;
    color: #264653;
}

/* Ottimizzazione mobile */
@media (max-width: 576px) {
    .list-img-wrap {
        width: 70px;
        height: 70px;
    }

    .price-tag {
        font-size: 1.1rem;
    }

    .product-list-item {
        padding: 10px;
    }
}
/* Responsive Borders */
@media (min-width: 768px) {
    .border-start-md {
        border-left: 1px solid #f1f1f1 !important;
    }

    .rounded-start-lg {
        border-top-left-radius: 16px;
        border-bottom-left-radius: 16px;
    }
}

@media (max-width: 767px) {
    .fornitore-row {
        text-align: center;
    }

    .border-start-md {
        border-top: 1px solid #f1f1f1 !important;
    }
}



/* Animazione del riflesso */
@keyframes sunGlare {
    0% { left: -150%; }
    20% { left: 150%; }
    100% { left: 150%; }
}

/* Animazione pulsazione (opzionale, per dare vita) */
@keyframes bubbleGlow {
    0% { box-shadow: 0 0 0 0 rgba(176, 145, 79, 0.4); }
    70% { box-shadow: 0 0 0 15px rgba(176, 145, 79, 0); }
    100% { box-shadow: 0 0 0 0 rgba(176, 145, 79, 0); }
}

.bubble-inner {
    position: relative; /* Necessario per posizionare la luce */
    overflow: hidden;   /* Taglia la luce quando esce dai bordi */
    background: white;
    /* Aggiungiamo una leggera pulsazione al bordo */
    animation: bubbleGlow 3s infinite; 
}

/* Lo strato "Luce del Sole" */
.bubble-inner::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    /* Gradiente che simula il riflesso */
    background: linear-gradient(
        to right, 
        rgba(255, 255, 255, 0) 0%, 
        rgba(255, 255, 255, 0.8) 50%, 
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-25deg); /* Inclina il raggio di luce */
    animation: sunGlare 4s infinite ease-in-out;
}

/* Modifica specifica per l'animazione di entrata che avevi già */
@keyframes bubblePop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.bubble-inner::after {
    content: "";
    position: absolute;
    top: 0;
    left: -150%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.9), transparent);
    transform: skewX(-30deg);
    animation: riflessoSole 3s infinite;
}

/* L'ANIMAZIONE */
@keyframes riflessoSole {
    0% {
        left: -150%;
    }

    30% {
        left: 150%;
    }

    100% {
        left: 150%;
    }
}
    @keyframes sun-glow {
        0% { transform: scale(1.15) rotate(-10deg); box-shadow: 0 0 12px #ffcc00, 0 0 25px rgba(255, 140, 0, 0.6); }
        50% { transform: scale(1.25) rotate(-5deg); box-shadow: 0 0 20px #ffcc00, 0 0 35px rgba(255, 140, 0, 0.8); }
        100% { transform: scale(1.15) rotate(-10deg); box-shadow: 0 0 12px #ffcc00, 0 0 25px rgba(255, 140, 0, 0.6); }
    }

@keyframes sun-pulse {
    0%, 100% {
        transform: scale(1.1) rotate(-10deg);
        box-shadow: 0 0 15px #ffcc00, 0 0 30px rgba(255, 140, 0, 0.6), inset -2px -2px 6px rgba(255, 100, 0, 0.5);
    }

    50% {
        transform: scale(1.25) rotate(-5deg);
        box-shadow: 0 0 25px #ffcc00, 0 0 45px rgba(255, 140, 0, 0.8), inset -3px -3px 8px rgba(255, 100, 0, 0.7);
    }
}

@keyframes rays-rotate {
    from {
        outline-offset: 1px;
        transform: rotate(0deg);
    }

    to {
        outline-offset: 3px;
        transform: rotate(360deg);
    }
}