﻿:root {
    --site-dark: #111827;
    --site-red: #dc2626;
    --site-gray: #f3f4f6;
    --site-border: #e5e7eb;
}

/* =========================================================
   BASE
   ========================================================= */

html,
body {
    font-family: Arial, Helvetica, sans-serif;
    color: #111827;
    background: #fff;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--site-red);
}

img {
    max-width: 100%;
    height: auto;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-logo {
    max-height: 32px;
}

.site-header .nav-link {
    color: #111827;
    font-weight: 800;
    text-transform: uppercase;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus,
.site-header .nav-link.show {
    color: var(--site-red);
}

.menuRicerca {
    position: absolute;
    z-index: 1050;
    right: 0;
    left: 0;
    max-height: 70vh;
    overflow-y: auto;
}

.pezzi-carrello {
    min-width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 20px;
}

.btn-sali-su {
    z-index: 1050;
}

/* =========================================================
   MENU PRINCIPALE
   ========================================================= */

.catalog-nav {
    position: relative;
    z-index: 1040;
}

.catalog-nav .navbar-nav {
    align-items: stretch;
    gap: .25rem;
}

.catalog-nav .nav-item {
    position: static;
}

.catalog-nav .nav-link {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: .55rem .65rem;
    color: #111827;
    font-size: .99rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.catalog-nav .nav-link:hover,
.catalog-nav .nav-link:focus,
.catalog-nav .nav-link.show {
    color: var(--site-red);
}

.mega-menu {
    position: static !important;
}

.mega-menu > .nav-link {
    cursor: pointer;
}

/* =========================================================
   MEGA MENU
   ========================================================= */

.mega-menu-container {
    position: absolute !important;
    top: 100%;
    right: 0 !important;
    left: 0 !important;

    width: 100% !important;
    min-width: 100% !important;

    margin: 0 !important;
    padding: 1.5rem !important;

    border-width: 1px 0 0;
    border-radius: 0;

    background: #fff;
    box-shadow: 0 1rem 2rem rgba(17, 24, 39, .14);

    max-height: calc(100vh - 210px);

    overflow-x: hidden;
    overflow-y: auto;
}

.mega-menu-container .container,
.mega-menu-container .container-fluid {
    width: 100%;
    max-width: 1320px;
    margin-right: auto;
    margin-left: auto;
}

.mega-menu-container .row {
    --bs-gutter-x: 2rem;
    --bs-gutter-y: 1.5rem;

    display: flex;
    flex-wrap: wrap;
}

.mega-menu-container [class*="col-"] {
    min-width: 0;
}

.menu-category-col {
    min-width: 0;
}

.menu-category-title {
    display: block;

    margin-bottom: .75rem;
    padding-bottom: .65rem;

    border-bottom: 1px solid var(--site-border);

    color: #111827;

    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;

    overflow-wrap: anywhere;
}

.menu-category-title:hover,
.menu-category-title:focus {
    color: var(--site-red);
}

.menu-subcategory-list {
    margin: 0;
    padding: 0;
}

.menu-subcategory-link {
    display: block;

    padding: .22rem 0;

    color: #6b7280;

    font-size: .92rem;
    line-height: 1.3;

    overflow-wrap: anywhere;
}

.menu-subcategory-link:hover,
.menu-subcategory-link:focus {
    color: var(--site-red);
}

/* =========================================================
   DESKTOP
   Il menu si apre solo al clic tramite Bootstrap.
   Nessun hover automatico.
   ========================================================= */

@media (min-width: 992px) {
    .mega-menu > .dropdown-menu {
        display: none;
    }

    .mega-menu > .dropdown-menu.show {
        display: block;
    }

    .catalog-nav .navbar-nav > .nav-item:not(.mega-menu) > .dropdown-menu {
        max-height: 75vh;
        overflow-y: auto;
    }
}

/* =========================================================
   TABLET / DESKTOP MEDIO
   ========================================================= */

@media (max-width: 1199.98px) and (min-width: 992px) {
    .catalog-nav .navbar-nav {
        gap: .1rem;
    }

    .catalog-nav .nav-link {
        padding-right: .45rem;
        padding-left: .45rem;
        font-size: .99rem;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 991.98px) {
    .site-logo {
        max-height: 52px;
    }

    .site-header .nav-link {
        padding: .75rem 0;
    }

    .catalog-nav .navbar-nav {
        align-items: stretch;
        gap: 0;
    }

    .catalog-nav .nav-link {
        width: 100%;
        min-height: auto;

        padding: .8rem .25rem;

        white-space: normal;
    }

    .mega-menu-container {
        position: static !important;

        width: 100% !important;
        min-width: 0 !important;
        max-height: none;

        padding: .75rem 0 .75rem 1rem !important;

        border: 0;
        box-shadow: none;

        overflow: visible;
    }

    .mega-menu-container .container,
    .mega-menu-container .container-fluid {
        max-width: none;
        padding-right: 0;
        padding-left: 0;
    }

    .mega-menu-container .row {
        --bs-gutter-x: 1rem;
        --bs-gutter-y: 1rem;
    }

    .menu-category-title {
        margin-bottom: .35rem;
    }

    .order-1-mobile {
        order: 1 !important;
    }

    .order-2-mobile {
        order: 2 !important;
    }
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
    color: #111827;
}

.site-footer a {
    color: inherit;
}

.site-footer a:hover,
.site-footer a:focus {
    color: var(--site-red);
}

/* =========================================================
   NEWSLETTER
   ========================================================= */

.background-newsletter {
    background: var(--site-gray);
}

.btn.tastoNewsletter {
    color: #fff;
    background: var(--site-dark);
}

/* =========================================================
   UTILITY
   ========================================================= */

.text-ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.c-pointer {
    cursor: pointer;
}

.bg-site-dark {
    background: var(--site-dark);
}

.text-site-red {
    color: var(--site-red);
}

.btn-site-red {
    color: #fff;
    background: var(--site-red);
    border-color: var(--site-red);
}

.btn-site-red:hover,
.btn-site-red:focus {
    color: #fff;
    background: #b91c1c;
    border-color: #b91c1c;
}

/* =========================================================
   CARD PRODOTTO
   ========================================================= */

.product-card {
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    border-color: #ced4da !important;
    box-shadow: 0 .75rem 1.5rem rgba(0, 0, 0, .08);
}

.product-card-img {
    object-fit: contain;
    object-position: center;
    background-color: #fff;
    padding: .35rem !important;
    transition: transform .25s ease;
}

.product-card:hover .product-card-img {
    transform: scale(1.03);
}

.product-card .card-title {
    min-height: 3rem;
}

/* =========================================================
   PREZZI
   ========================================================= */

.prezzo-partenza {
    color: #6b7280;
    text-decoration: line-through;
}

.prezzo-finale,
.prezzo-scontato {
    color: var(--site-red);
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.1;
}

/* =========================================================
   BADGE PRODOTTO
   ========================================================= */

.product-badge {
    position: absolute;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    min-height: 29px;
    padding: .42rem .72rem;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: .015em;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(17, 24, 39, .12);
}

.product-badge-discount {
    top: 12px;
    right: 12px;
    color: #fff;
    background: #e53935;
}

.product-badge-new {
    top: 12px;
    left: 12px;
    color: #fff;
    background: #111827;
    text-transform: uppercase;
}

.product-badge-ready {
    bottom: 12px;
    left: 12px;
    color: #157347;
    background: #eefbf3;
    border: 1px solid #b8e6c6;
}

.product-badge-ready .bi {
    color: #16a34a;
    font-size: .82rem;
}

.product-badge-unavailable {
    top: 12px;
    right: 12px;
    color: #4b5563;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
}

@media (max-width: 575.98px) {
    .product-badge {
        min-height: 27px;
        padding: .38rem .62rem;
        font-size: .7rem;
    }

    .product-badge-discount,
    .product-badge-new {
        top: 9px;
    }

    .product-badge-discount,
    .product-badge-unavailable {
        right: 9px;
    }

    .product-badge-new,
    .product-badge-ready {
        left: 9px;
    }

    .product-badge-ready {
        bottom: 9px;
    }
}
/* =========================================================
   CATEGORIE DELLA PAGINA GRUPPO
   ========================================================= */

.categoria-card {
    min-height: 72px;
    color: var(--site-dark);
    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease,
        color .2s ease;
}

.categoria-card:hover,
.categoria-card:focus {
    color: var(--site-red);
    border-color: var(--site-red) !important;
    transform: translateY(-2px);
    box-shadow: 0 .5rem 1rem rgba(17, 24, 39, .10) !important;
}

.categoria-card .bi {
    transition: transform .2s ease;
}

.categoria-card:hover .bi,
.categoria-card:focus .bi {
    transform: translateX(3px);
}


/* =========================================================
   FILTRI DELLA PAGINA CATEGORIA
   ========================================================= */

.filtro-catalogo {
    font-size: .88rem;
    line-height: 1.2;
    transition:
        color .2s ease,
        background-color .2s ease,
        border-color .2s ease;
}

.filtro-catalogo:hover,
.filtro-catalogo:focus {
    color: #fff;
    background-color: var(--site-dark);
    border-color: var(--site-dark);
}

.filtro-catalogo.active {
    color: #fff;
    background-color: var(--site-red);
    border-color: var(--site-red);
}

@media (max-width: 575.98px) {
    .categoria-card {
        min-height: 64px;
        padding: .75rem !important;
        font-size: .88rem;
    }

    .filtro-catalogo {
        padding: .5rem .75rem !important;
        font-size: .82rem;
    }
}
.catalog-filter-dropdown {
    max-height: 360px;
    overflow-y: auto;
}

.catalog-filter-dropdown .dropdown-item {
    white-space: normal;
    line-height: 1.25;
}

.catalog-filter-dropdown .dropdown-item:hover,
.catalog-filter-dropdown .dropdown-item:focus {
    color: #fff;
    background-color: var(--site-dark);
}
.catalog-filter-dropdown {
    display: none;
    width: 100%;
    max-height: 360px;
    overflow-x: hidden;
    overflow-y: auto;
}

.catalog-filter-dropdown.show {
    display: block;
}

.catalog-filter-dropdown .dropdown-item {
    white-space: normal;
    line-height: 1.25;
}

.catalog-filter-dropdown .dropdown-item:hover,
.catalog-filter-dropdown .dropdown-item:focus {
    color: #fff;
    background-color: var(--site-dark);
}

.catalog-dropdown-toggle.show {
    color: #fff;
    background-color: var(--site-dark);
    border-color: var(--site-dark);
}

.catalog-dropdown-toggle.show::after {
    transform: rotate(180deg);
}
.logo-bn {max-height: 60px;}
/* Compatibilità con badge legacy ancora presenti in altre pagine */
.bollino,
.bollino-lista,
.bollino-new {
    border-radius: 999px;
}


/* =========================================================
   RICERCA AUTOCOMPLETE V2
   ========================================================= */

#divRicerca.ricerca-v2-panel {
    position: absolute;
    z-index: 1085;
    top: 0;
    left: 50%;
    width: min(920px, calc(100% - 1.5rem));
    max-height: min(72vh, 680px);
    overflow-y: auto;
    transform: translateX(-50%);
    border-radius: 0 0 16px 16px;
}

.ricerca-v2-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    padding: 1.25rem;
    color: #6b7280;
}

.ricerca-v2-section {
    padding: .65rem;
}

.ricerca-v2-section + .ricerca-v2-section {
    border-top: 1px solid #e5e7eb;
}

.ricerca-v2-heading {
    padding: .45rem .65rem .6rem;
    color: #6b7280;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ricerca-v2-option {
    color: #111827;
    text-decoration: none;
}

.ricerca-v2-option:hover,
.ricerca-v2-option.is-active {
    color: #111827;
    background: #f6f7f8;
}

.ricerca-v2-product {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-height: 92px;
    padding: .65rem;
    border-radius: 12px;
}

.ricerca-v2-image {
    flex: 0 0 76px;
    width: 76px;
    height: 76px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
}

.ricerca-v2-image img {
    width: 100%;
    height: 100%;
    padding: 4px;
    object-fit: contain;
}

.ricerca-v2-product-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: .24rem;
}

.ricerca-v2-title {
    display: -webkit-box;
    overflow: hidden;
    font-size: .95rem;
    font-weight: 700;
    line-height: 1.25;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ricerca-v2-code {
    overflow: hidden;
    color: #6b7280;
    font-size: .75rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ricerca-v2-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .15rem;
}

.ricerca-v2-old-price {
    color: #6b7280;
    font-size: .78rem;
    text-decoration: line-through;
}

.ricerca-v2-price {
    color: #dc3545;
    font-size: 1rem;
    font-weight: 800;
}

.ricerca-v2-ready {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .22rem .48rem;
    border: 1px solid #b8e6c6;
    border-radius: 999px;
    color: #157347;
    background: #eefbf3;
    font-size: .68rem;
    font-weight: 700;
}

.ricerca-v2-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .3rem;
}

.ricerca-v2-links .ricerca-v2-heading {
    grid-column: 1 / -1;
}

.ricerca-v2-link {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .72rem .75rem;
    border-radius: 10px;
    font-size: .9rem;
    font-weight: 600;
}

.ricerca-v2-link .bi:first-child {
    color: #6b7280;
}

.ricerca-v2-all {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    padding: 1rem;
    border-top: 1px solid #e5e7eb;
    color: #fff;
    background: #111827;
    font-weight: 700;
}

.ricerca-v2-all:hover,
.ricerca-v2-all.is-active {
    color: #fff;
    background: #000;
}

.ricerca-v2-empty {
    display: flex;
    min-height: 140px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: .4rem;
    padding: 1.5rem;
    color: #6b7280;
    text-align: center;
}

@media (max-width: 991.98px) {
    #divRicerca.ricerca-v2-panel {
        position: fixed;
        top: 126px;
        bottom: 0;
        left: 0;
        width: 100%;
        max-height: none;
        transform: none;
        border: 0 !important;
        border-radius: 0;
    }
}

@media (max-width: 575.98px) {
    #divRicerca.ricerca-v2-panel {
        top: 118px;
    }

    .ricerca-v2-links {
        grid-template-columns: 1fr;
    }

    .ricerca-v2-product {
        min-height: 84px;
        gap: .7rem;
        padding: .55rem;
    }

    .ricerca-v2-image {
        flex-basis: 68px;
        width: 68px;
        height: 68px;
    }

    .ricerca-v2-title {
        font-size: .88rem;
    }
}


/* =========================================================
   RICERCA V3 - RIFINITURE
   ========================================================= */

#divRicerca.ricerca-v2-panel {
    height: auto !important;
    min-height: 0 !important;
    max-height: min(76vh, 720px);
    overscroll-behavior: contain;
}

#ricercaV2Contenuto:empty {
    display: none;
}

.ricerca-v2-section {
    padding: .8rem .85rem;
}

.ricerca-v2-product {
    min-height: 106px;
    padding: .72rem;
}

.ricerca-v2-image {
    flex: 0 0 92px;
    width: 92px;
    height: 92px;
}

.ricerca-v2-title {
    font-size: 1rem;
}

.ricerca-v2-price {
    font-size: 1.12rem;
}

.ricerca-v2-highlight {
    padding: 0 .08em;
    color: inherit;
    background: #fff1a8;
    border-radius: 3px;
}

.ricerca-v2-all {
    min-height: 58px;
    font-size: 1rem;
}

@media (max-width: 575.98px) {
    .ricerca-v2-product {
        min-height: 94px;
    }

    .ricerca-v2-image {
        flex-basis: 78px;
        width: 78px;
        height: 78px;
    }
}


/* =========================================================
   FIX POPUP RICERCA CON HEADER STICKY
   Il posizionamento reale viene calcolato dal JavaScript
   rispetto alla barra di ricerca visibile.
   ========================================================= */

#divRicerca.ricerca-v2-panel {
    position: fixed !important;
    z-index: 2000 !important;
    right: auto !important;
    bottom: auto !important;
    margin: 0 !important;
    transform: none !important;
    overscroll-behavior: contain;
    box-shadow: 0 18px 45px rgba(17, 24, 39, .22) !important;
}

@media (max-width: 991.98px) {
    #divRicerca.ricerca-v2-panel {
        border-radius: 0 0 14px 14px;
    }
}


/* =========================================================
   HEADER MOBILE - LOGO + MENU FIX 2026-08-07
   ========================================================= */

.site-navbar-brand {
    display: inline-flex;
    align-items: center;
}

.site-logo {
    display: block;
    width: auto;
    height: 40px;
    max-width: 245px;
    object-fit: contain;
}

@media (max-width: 991.98px) {

    /*
     * Header a tre colonne:
     * hamburger | logo | carrello
     */
    .site-header .navbar > .container {
        display: grid;
        grid-template-columns: 44px minmax(0, 1fr) 44px;
        align-items: center;
        column-gap: .55rem;
        padding-top: .45rem;
        padding-bottom: .45rem;
    }

    .mobile-menu-toggle {
        width: 44px;
        height: 44px;
        margin: 0 !important;
        padding: 0 !important;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        justify-self: start;
        border-radius: .65rem;
        box-shadow: none !important;
    }

    .mobile-menu-toggle:focus {
        box-shadow: 0 0 0 .2rem rgba(17, 24, 39, .12) !important;
    }

    .site-navbar-brand {
        min-width: 0;
        margin: 0 !important;
        padding: 0 !important;
        justify-self: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .site-logo {
        width: min(55vw, 210px);
        height: auto;
        max-height: 50px;
        max-width: 100%;
        object-fit: contain;
    }

    .header-cart {
        width: 44px;
        height: 44px;
        padding: 0 !important;
        justify-content: center;
        justify-self: end;
        border-radius: .65rem;
    }

    /*
     * Tra 768 e 991 Bootstrap mostrerebbe la scritta
     * "Carrello": la nascondiamo per mantenere il logo centrato.
     */
    .header-cart > span:not(.pezzi-carrello) {
        display: none !important;
    }

    /*
     * Il collapse adesso ha ClientIDMode=Static e quindi
     * data-bs-target="#pagineMenu" funziona realmente.
     */
    #pagineMenu {
        width: 100%;
    }

    #pagineMenu.show,
    #pagineMenu.collapsing {
        display: block !important;
    }

    .catalog-nav {
        position: relative;
        z-index: 1090;
    }

    .catalog-nav #pagineMenu.show {
        max-height: calc(100vh - 155px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: .35rem .8rem .9rem;
        background: #fff;
        border-top: 1px solid var(--site-border);
        box-shadow: 0 .85rem 1.6rem rgba(17, 24, 39, .10);
    }

    .catalog-nav #pagineMenu .navbar-nav {
        padding-top: .25rem !important;
        padding-bottom: .25rem !important;
    }

    .catalog-nav #pagineMenu .nav-link {
        padding: .72rem .35rem;
        border-bottom: 1px solid #f1f3f5;
        font-size: .99rem;
        line-height: 1.2;
    }

    .catalog-nav #pagineMenu .nav-item:last-child > .nav-link {
        border-bottom: 0;
    }

    .mega-menu-container {
        padding: .5rem 0 .8rem .8rem !important;
        background: #fafafa;
    }

    .menu-category-title {
        padding: .55rem 0;
        margin: 0;
        font-size: .88rem;
    }

    .menu-subcategory-link {
        padding: .4rem 0;
        font-size: .84rem;
    }

    /*
     * Ricerca mobile più vicina alla navbar,
     * evitando troppo spazio sotto il logo.
     */
    #formRicercaMobile {
        margin-top: .1rem;
    }
}

@media (max-width: 420px) {
    .site-logo {
        width: min(57vw, 190px);
        max-height: 46px;
    }

    .site-header .navbar > .container {
        grid-template-columns: 42px minmax(0, 1fr) 42px;
        column-gap: .35rem;
    }

    .mobile-menu-toggle,
    .header-cart {
        width: 42px;
        height: 42px;
    }
}

/* =========================================================
   MOBILE CARD - TITOLO FINO A 3 RIGHE
   FIX 2026-08-09
   ========================================================= */

@media (max-width: 575.98px) {
    .product-card .card-title {
        display: -webkit-box !important;
        min-height: 3.30rem !important;
        max-height: 3.30rem !important;
        overflow: hidden !important;
        font-size: .95rem;
        line-height: 1.15 !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3 !important;
    }
}

@media (max-width: 420px) {
    .product-card .card-title {
        min-height: 3.10rem !important;
        max-height: 3.10rem !important;
        font-size: .90rem;
        line-height: 1.15 !important;
        -webkit-line-clamp: 3 !important;
    }
}


/* =========================================================
   CHECKOUT - METODI DI PAGAMENTO
   ========================================================= */

#boxPagamenti .pagamento {
    position: relative;
    cursor: pointer;
}

#boxPagamenti .pagamento > .form-check-input {
    cursor: pointer;
}

#boxPagamenti [class*="FunzioniPagamento"] {
    width: 100%;
    margin-right: 0;
    margin-left: 0;
}

#boxPagamenti .pagamento.checked {
    background: #fafafa;
}

#boxPagamenti .confermaPagamento {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 46px;
    padding-right: 0;
}

#boxPagamenti .pagamento:not(.checked) .confermaPagamento {
    display: none !important;
}

#boxPagamenti .confermaPagamento > a {
    display: block;
    width: 100%;
    max-width: 260px;
    text-decoration: none !important;
}

#boxPagamenti .confermaPagamento .btn-pagamento {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;

    padding: .7rem 1.15rem;

    border: 1px solid #111827;
    border-radius: 4px;

    color: #fff !important;
    background: #111827;

    font-size: .92rem;
    font-weight: 700;
    line-height: 1.15;
    text-align: center;

    transition:
        background-color .15s ease,
        border-color .15s ease,
        transform .15s ease,
        box-shadow .15s ease;
}

#boxPagamenti .confermaPagamento .btn-pagamento:hover,
#boxPagamenti .confermaPagamento .btn-pagamento:focus {
    color: #fff !important;
    background: #000;
    border-color: #000;
    transform: translateY(-1px);
    box-shadow: 0 .35rem .85rem rgba(17, 24, 39, .14);
}

/* Satispay */
#boxPagamenti .FunzioniPagamento10 .btn-pagamento {
    color: #fff !important;
    background: #f4511e;
    border-color: #f4511e;
}

#boxPagamenti .FunzioniPagamento10 .btn-pagamento:hover,
#boxPagamenti .FunzioniPagamento10 .btn-pagamento:focus {
    color: #fff !important;
    background: #df4317;
    border-color: #df4317;
}

/* PayPal usa il proprio markup restituito dal server */
#boxPagamenti .FunzioniPagamento1 .confermaPagamento {
    overflow: visible;
}

#boxPagamenti .FunzioniPagamento1 .confermaPagamento > * {
    width: 100%;
    max-width: 320px;
}

@media (min-width: 992px) {

    #boxPagamenti
    [class*="FunzioniPagamento"].d-flex {
        align-items: center;
    }

    #boxPagamenti .descrizione-pagamento {
        padding-right: 1rem;
    }
}

@media (max-width: 991.98px) {

    #boxPagamenti .confermaPagamento {
        width: 100%;
        margin-top: .8rem !important;
        justify-content: stretch;
    }

    #boxPagamenti .confermaPagamento > a,
    #boxPagamenti
    .FunzioniPagamento1
    .confermaPagamento > * {
        width: 100%;
        max-width: none;
    }

    #boxPagamenti .confermaPagamento .btn-pagamento {
        min-height: 48px;
        font-size: .95rem;
    }
}

/* =========================================================
   NEWS - ARCHIVIO E DETTAGLIO
   ========================================================= */

.news-archive-header,
.news-detail-header {
    max-width: 860px;
}

.news-kicker {
    margin-bottom: .65rem;
    color: #6c757d;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.news-archive-title,
.news-detail-title {
    margin: 0;
    color: #111827;
    font-weight: 800;
    letter-spacing: -.035em;
}

.news-archive-title {
    font-size: clamp(2.1rem, 5vw, 3.7rem);
    line-height: 1.02;
}

.news-archive-intro {
    max-width: 680px;
    margin: 1rem auto 0;
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1.7;
}

.news-card {
    overflow: hidden;
    border: 1px solid #e6e8eb;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 8px 28px rgba(17, 24, 39, .045);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.news-card:hover {
    border-color: #d6d9dd;
    transform: translateY(-4px);
    box-shadow: 0 15px 38px rgba(17, 24, 39, .09);
}

.news-card-link {
    color: inherit;
    text-decoration: none !important;
}

.news-card-media {
    overflow: hidden;
    background: #f2f3f5;
}

.news-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .28s ease;
}

.news-card:hover .news-card-image {
    transform: scale(1.035);
}

.news-card-placeholder {
    width: 100%;
    height: 100%;
    color: #adb5bd;
    background: linear-gradient(135deg, #f7f7f8, #eceff2);
    font-size: 2.5rem;
}

.news-card-body {
    min-height: 250px;
    padding: 1.35rem 1.35rem 1.4rem;
}

.news-card-date,
.news-detail-date {
    color: #818892;
    font-size: .76rem;
    font-weight: 700;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.news-card-title {
    margin: .65rem 0 .7rem;
    color: #111827;
    font-size: 1.28rem;
    font-weight: 750;
    line-height: 1.22;
    letter-spacing: -.018em;
}

.news-card-excerpt {
    margin: 0 0 1.15rem;
    color: #68707a;
    font-size: .94rem;
    line-height: 1.65;
}

.news-card-more,
.news-all-link,
.news-back-link,
.news-source a {
    color: #111827;
    font-size: .86rem;
    font-weight: 750;
    text-decoration: none;
}

.news-card-more {
    display: inline-flex;
    align-items: center;
    padding-top: .4rem;
}

.news-card:hover .news-card-more,
.news-all-link:hover,
.news-back-link:hover,
.news-source a:hover {
    text-decoration: underline;
}

.news-pagination .page-link {
    min-width: 42px;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px !important;
    border: 1px solid #e0e3e6;
    color: #212529;
    background: #fff;
    font-weight: 650;
    box-shadow: none !important;
}

.news-pagination .page-item.active .page-link {
    border-color: #111827;
    background: #111827;
    color: #fff;
}

.news-pagination .page-item.disabled .page-link {
    color: #adb5bd;
    background: #f8f9fa;
}

.news-empty {
    max-width: 720px;
    margin: 0 auto;
}

/* Dettaglio */
.news-detail {
    max-width: 1120px;
}

.news-detail-header {
    margin-bottom: 2.1rem;
}

.news-detail-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    color: #8a9098;
    font-size: .8rem;
}

.news-detail-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}

.news-detail-breadcrumb a:hover {
    color: #111827;
    text-decoration: underline;
}

.news-detail-meta .news-kicker {
    color: #111827;
}

.news-detail-title {
    max-width: 980px;
    margin: .85rem auto 0;
    font-size: clamp(2.25rem, 5.5vw, 4.6rem);
    line-height: 1.02;
}

.news-detail-lead {
    max-width: 780px;
    margin: 1.2rem auto 0;
    color: #636b75;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.65;
}

.news-detail-author {
    margin: 1rem 0 0;
    color: #8a9098;
    font-size: .85rem;
}

.news-detail-author strong {
    color: #454b53;
}

.news-detail-hero {
    max-width: 1040px;
    overflow: hidden;
}

.news-detail-hero img {
    display: block;
    max-height: 680px;
    border-radius: 16px;
    object-fit: cover;
    background: #f4f5f6;
}

.news-image-caption {
    line-height: 1.5;
}

.news-detail-body,
.news-detail-footer {
    max-width: 820px;
}

.news-content {
    color: #292f36;
    font-size: 1.05rem;
    line-height: 1.85;
}

.news-content > *:first-child {
    margin-top: 0;
}

.news-content p {
    margin-bottom: 1.35rem;
}

.news-content h2 {
    margin: 2.4rem 0 .85rem;
    color: #111827;
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 780;
    line-height: 1.18;
    letter-spacing: -.02em;
}

.news-content h3 {
    margin: 2rem 0 .75rem;
    color: #111827;
    font-size: 1.3rem;
    font-weight: 750;
}

.news-content ul,
.news-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.35rem;
}

.news-content li {
    margin-bottom: .45rem;
}

.news-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.news-content blockquote {
    margin: 2rem 0;
    padding: .35rem 0 .35rem 1.35rem;
    border-left: 3px solid #111827;
    color: #555d66;
    font-size: 1.12rem;
}

.news-content-secondary {
    margin-top: 2rem;
}

.news-video {
    overflow: hidden;
    border-radius: 14px;
    background: #111;
}

.news-gallery-item {
    overflow: hidden;
}

.news-gallery-item img {
    display: block;
    max-height: 560px;
    border-radius: 12px;
    object-fit: cover;
    background: #f4f5f6;
}

.news-related {
    max-width: 1120px;
    margin-left: auto;
    margin-right: auto;
}

.news-related .news-card-body {
    min-height: 225px;
}

@media (max-width: 767.98px) {
    .news-archive-header,
    .news-detail-header {
        text-align: left !important;
    }

    .news-archive-intro,
    .news-detail-lead {
        margin-left: 0;
        margin-right: 0;
    }

    .news-detail-breadcrumb,
    .news-detail-meta {
        justify-content: flex-start !important;
    }

    .news-detail-title {
        margin-left: 0;
        margin-right: 0;
        font-size: clamp(2rem, 10vw, 3rem);
    }

    .news-detail-hero img {
        border-radius: 10px;
        max-height: 520px;
    }

    .news-card-body {
        min-height: 0;
    }

    .news-content {
        font-size: 1rem;
        line-height: 1.75;
    }
}


/* =========================================================
   HOME - ULTIME NEWS
   ========================================================= */

.home-news-section {
    margin-top: 1rem;
    padding-top: 4rem;
    border-top: 1px solid #e5e7eb;
}

.home-news-kicker {
    margin-bottom: .4rem;
    color: #6b7280;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.home-news-all-link {
    display: inline-flex;
    align-items: center;
    color: #111827;
    font-size: .9rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.home-news-all-link:hover,
.home-news-all-link:focus {
    color: #111827;
    text-decoration: underline;
}

.home-news-section .news-card {
    border-color: #e5e7eb;
    box-shadow: none;
}

.home-news-section .news-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 .8rem 1.8rem rgba(15, 23, 42, .08);
}

@media (max-width: 767.98px) {
    .home-news-section {
        padding-top: 3rem;
    }

    .home-news-all-link {
        align-self: flex-start;
    }
}

/* =========================================================
   SEZIONE SERVIZI ECOMMERCE
   ========================================================= */

.sezione-servizi {
    width: 100%;
    margin-top: 4rem;
    margin-bottom: 5rem;
    padding-left: 1rem;
    padding-right: 1rem;
}

.servizio-ecommerce {
    position: relative;
    height: 100%;
    padding: 0 0.5rem;
}

.servizio-intestazione {
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: flex-end;
}

/* Numero grande dietro al titolo */
.servizio-numero {
    position: absolute;
    top: -20px;
    left: -5px;
    z-index: 0;

    font-size: 9.5rem;
    font-weight: 300;
    line-height: 1;

    color: transparent;
    -webkit-text-stroke: 2px #dedede;
    text-stroke: 2px #dedede;

    user-select: none;
    pointer-events: none;
}

/* Titolo sovrapposto al numero */
.servizio-titolo {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 310px;
    margin: 0;
    padding-bottom: 0.5rem;

    font-size: clamp(1.65rem, 2vw, 2.15rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.035em;

    color: #202126;
}

/* Linea sotto il titolo */
.servizio-linea {
    display: block;
    width: 48px;
    height: 1px;
    margin-top: 1.1rem;
    margin-bottom: 1.4rem;
    background-color: #d8d8d8;
}

/* Testo descrittivo */
.servizio-descrizione {
    max-width: 330px;
    margin: 0;

    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;

    color: #292a2e;
}

.servizio-descrizione strong {
    display: inline-block;
    margin-bottom: 0.15rem;

    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1199.98px) {

    .sezione-servizi {
        margin-top: 3.5rem;
    }

    .servizio-ecommerce {
        padding-bottom: 2rem;
    }

    .servizio-intestazione {
        min-height: 140px;
    }

    .servizio-numero {
        font-size: 8.5rem;
    }

    .servizio-descrizione {
        max-width: none;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .sezione-servizi {
        margin-top: 2.5rem;
        margin-bottom: 3rem;
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .servizio-ecommerce {
        padding: 0 0.25rem 1.5rem;
    }

    .servizio-intestazione {
        min-height: 125px;
    }

    .servizio-numero {
        top: -10px;
        left: 0;

        font-size: 7.5rem;
        -webkit-text-stroke-width: 1.5px;
    }

    .servizio-titolo {
        max-width: 100%;
        font-size: 1.75rem;
    }

    .servizio-descrizione {
        max-width: 100%;
        font-size: 0.98rem;
        line-height: 1.6;
    }
}

/* ==========================================================
   FASI DI REALIZZAZIONE
   Versione completa: più alta, più stretta, simile al mockup
   ========================================================== */

.sezione-fasi-realizzazione {
    width: 100%;
    max-width: 1180px;
    margin: 4rem auto 6rem;
    padding: 0 3.5rem;
}

/* Singola fase */
.fase-realizzazione {
    position: relative;
    width: 100%;
    margin-bottom: 3.5rem;
}

/* ==========================================================
   CORNICE PRINCIPALE
   ========================================================== */

.fase-cornice {
    position: relative;

    width: calc(100% - 110px);
    min-height: 340px;

    overflow: visible;

    border: 1px solid #3f3f3f;
    border-radius: 0;

    background-color: #fff;
}

/* Progettazione e Arredo */
.fase-realizzazione-sinistra .fase-cornice {
    margin-left: 85px;
}

/* Render */
.fase-realizzazione-destra .fase-cornice {
    margin-right: 85px;
}

/* ==========================================================
   IMMAGINE A TUTTO RIQUADRO
   ========================================================== */

.fase-immagine {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    overflow: hidden;

    background-color: #f4f4f4;
}

/* La foto riempie completamente la cornice */
.fase-immagine img,
.fase-img {
    display: block;

    width: 100% !important;
    height: 100% !important;
    max-width: none !important;

    object-fit: cover;
    object-position: center center;

    border: 0;
    border-radius: 0;
}

/* ==========================================================
   DIDASCALIA SOVRAPPOSTA
   ========================================================== */

.fase-testo {
    position: absolute;
    top: 50%;
    z-index: 3;

    width: 37%;
    min-height: 190px;

    padding: 2rem;

    transform: translateY(-50%);

    font-size: 1rem;
    line-height: 1.6;

    color: #202020;
    background-color: #fff;

    border: 1px solid #333;
    border-radius: 0;
}

/* Testo a sinistra */
.fase-realizzazione-sinistra .fase-testo {
    left: -38px;
}

/* Testo a destra */
.fase-realizzazione-destra .fase-testo {
    right: -38px;
}

.fase-testo p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.fase-testo p:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   TITOLO VERTICALE
   ========================================================== */

.fase-titolo-laterale {
    position: absolute;
    top: 50%;
    z-index: 4;

    color: #d8d8d8;

    font-size: clamp(2rem, 3vw, 3.4rem);
    font-weight: 700;
    line-height: 1;

    text-transform: uppercase;
    white-space: nowrap;

    writing-mode: vertical-rl;

    user-select: none;
    pointer-events: none;
}

/* Titolo a sinistra */
.fase-realizzazione-sinistra .fase-titolo-laterale {
    left: 0;
    transform: translateY(-50%) rotate(180deg);
}

/* Titolo a destra */
.fase-realizzazione-destra .fase-titolo-laterale {
    right: 0;
    transform: translateY(-50%);
}

/* ==========================================================
   ALTEZZE DELLE TRE FASI
   ========================================================== */

.fase-realizzazione:nth-child(1) .fase-cornice {
    min-height: 400px;
}

.fase-realizzazione:nth-child(2) .fase-cornice {
    min-height: 400px;
}

.fase-realizzazione:nth-child(3) .fase-cornice {
    min-height: 400px;
}

/* ==========================================================
   REGOLAZIONE POSIZIONE FOTO
   ========================================================== */

/* Progettazione */
.fase-realizzazione:nth-child(1) .fase-img {
    object-position: center center;
}

/* Render */
.fase-realizzazione:nth-child(2) .fase-img {
    object-position: center center;
}

/* Arredo */
.fase-realizzazione:nth-child(3) .fase-img {
    object-position: center center;
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 991.98px) {

    .sezione-fasi-realizzazione {
        max-width: 900px;
        margin-top: 3rem;
        padding: 0 2rem;
    }

    .fase-realizzazione {
        margin-bottom: 3rem;
    }

    .fase-cornice {
        width: calc(100% - 70px);
        min-height: 310px;
    }

    .fase-realizzazione-sinistra .fase-cornice {
        margin-left: 55px;
    }

    .fase-realizzazione-destra .fase-cornice {
        margin-right: 55px;
    }

    .fase-testo {
        width: 43%;
        min-height: 165px;

        padding: 1.4rem;

        font-size: 0.92rem;
        line-height: 1.55;
    }

    .fase-titolo-laterale {
        font-size: 2.2rem;
    }

    .fase-realizzazione:nth-child(1) .fase-cornice,
    .fase-realizzazione:nth-child(2) .fase-cornice,
    .fase-realizzazione:nth-child(3) .fase-cornice {
        min-height: 310px;
    }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767.98px) {

    .sezione-fasi-realizzazione {
        width: 100%;
        max-width: none;

        margin: 3rem auto 4rem;
        padding: 0 1rem;
    }

    .fase-realizzazione {
        margin-bottom: 3rem;
        padding-top: 3rem;
    }

    .fase-cornice,
    .fase-realizzazione-sinistra .fase-cornice,
    .fase-realizzazione-destra .fase-cornice {
        display: flex;
        flex-direction: column;

        width: 100%;
        min-height: auto;

        margin: 0;

        overflow: visible;

        border: 1px solid #333;
        border-radius: 0;
    }

    /* Immagine sopra */
    .fase-immagine,
    .fase-realizzazione-sinistra .fase-immagine,
    .fase-realizzazione-destra .fase-immagine {
        position: relative;
        inset: auto;

        width: 100%;
        height: 270px;

        overflow: hidden;
    }

    .fase-immagine img,
    .fase-img {
        width: 100% !important;
        height: 100% !important;

        object-fit: cover;
        object-position: center center;
    }

    /* Didascalia sotto */
    .fase-testo,
    .fase-realizzazione-sinistra .fase-testo,
    .fase-realizzazione-destra .fase-testo {
        position: relative;
        top: auto;
        right: auto;
        left: auto;

        width: 100%;
        min-height: auto;

        padding: 1.5rem;

        transform: none;

        border: 0;
        border-top: 1px solid #333;
        border-radius: 0;
    }

    /* Titolo orizzontale */
    .fase-titolo-laterale,
    .fase-realizzazione-sinistra .fase-titolo-laterale,
    .fase-realizzazione-destra .fase-titolo-laterale {
        top: 0;
        right: auto;
        left: 0;

        font-size: 2rem;
        writing-mode: horizontal-tb;

        transform: none;
    }

    .fase-realizzazione:nth-child(1) .fase-cornice,
    .fase-realizzazione:nth-child(2) .fase-cornice,
    .fase-realizzazione:nth-child(3) .fase-cornice {
        min-height: auto;
    }
}


#carouselRealizzazioniDesktop .ratio,
#carouselRealizzazioniMobile .ratio {
    border-radius: 12px;
    overflow: hidden;
}
/* ==========================================================
   PAGINA I NOSTRI SERVIZI
   ========================================================== */

.pagina-nostri-servizi {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

/* ==========================================================
   TESTATA
   ========================================================== */

.testata-servizi {
    max-width: 1120px;
    margin: 0 auto 4.5rem;
}

.testata-servizi h1 {
    margin: 0 0 1.4rem;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.descrizione-testata-servizi {
    font-size: 1rem;
    line-height: 1.65;
    color: #222;
}

.descrizione-testata-servizi p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.descrizione-testata-servizi p:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   SEZIONI
   ========================================================== */

.sezione-servizio {
    width: 100%;
    margin-bottom: 4.5rem;
}

.titolo-servizio {
    margin: 0 0 1.25rem;
    color: #e2e2e2;
    font-size: clamp(2.2rem, 3.5vw, 4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.035em;
}

.descrizione-servizio {
    width: 100%;
    max-width: 1180px;
    color: #202020;
    font-size: 1rem;
    line-height: 1.55;
}

.descrizione-servizio p {
    margin-top: 0;
    margin-bottom: 1rem;
}

.descrizione-servizio p:last-child {
    margin-bottom: 0;
}

/* ==========================================================
   CAROSELLO PROGETTI
   ========================================================== */

.carosello-servizi {
    margin-top: 2.5rem;
}

.carosello-servizi .carousel-inner {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.controllo-servizi {
    width: 46px;
    opacity: 1;
}

/* ==========================================================
   IMMAGINI
   ========================================================== */

.box-immagine-servizio {
    width: 100%;
    background-color: #f3f3f3;
}

.img-servizio-cover {
    display: block;
    object-fit: cover;
    object-position: center;
}

/* ==========================================================
   CORSI
   ========================================================== */

.immagini-corsi {
    max-width: 870px;
    margin-left: 1.5rem;
}

/* ==========================================================
   CLEANING
   ========================================================== */

.sezione-cleaning .descrizione-servizio {
    max-width: 1200px;
}

.vantaggio-cleaning {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.vantaggio-cleaning:last-child {
    margin-bottom: 0;
}

.vantaggio-cleaning i {
    width: 32px;
    flex: 0 0 32px;
    padding-top: 0.25rem;
    font-size: 1.3rem;
    text-align: center;
}

.vantaggio-cleaning strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.98rem;
}

.vantaggio-cleaning p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
}

/* ==========================================================
   PREVENTIVO
   ========================================================== */

.sezione-preventivo-servizi {
    margin-top: 5rem;
}

.form-preventivo-servizi {
    width: 100%;
    max-width: 650px;
}

/* ==========================================================
   TABLET
   ========================================================== */

@media (max-width: 991.98px) {

    .pagina-nostri-servizi {
        padding: 2.5rem 1.5rem 4rem;
    }

    .testata-servizi {
        margin-bottom: 3.5rem;
    }

    .sezione-servizio {
        margin-bottom: 3.5rem;
    }

    .immagini-corsi {
        max-width: none;
        margin-left: 0;
    }
}

/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 767.98px) {

    .pagina-nostri-servizi {
        padding: 2rem 1rem 3rem;
    }

    .testata-servizi {
        margin-bottom: 3rem;
    }

    .titolo-servizio {
        font-size: 2rem;
    }

    .descrizione-testata-servizi,
    .descrizione-servizio {
        font-size: 0.96rem;
        line-height: 1.6;
    }

    .carosello-servizi .carousel-inner {
        padding-left: 2.75rem !important;
        padding-right: 2.75rem !important;
    }

    .immagini-corsi {
        margin-top: 1.5rem !important;
    }

    .sezione-preventivo-servizi {
        margin-top: 3.5rem;
    }
}
.immagini-montaggio {
    max-width: 1000px;
}

.immagini-montaggio .box-immagine-servizio {
    width: 100%;
}
.immagini-montaggio {
    max-width: 1000px;
}

.immagini-corsi {
    max-width: 870px;
    margin-left: 1.5rem;
}

.immagini-montaggio .box-immagine-servizio,
.immagini-corsi .box-immagine-servizio {
    width: 100%;
}

@media (max-width: 991.98px) {
    .immagini-montaggio,
    .immagini-corsi {
        max-width: none;
        margin-left: 0;
    }
}
/* ==========================================================
   CAROSELLO LE NOSTRE REALIZZAZIONI
   UNA SOLA FOTO PER SLIDE
   ========================================================== */

.sezione-carosello-realizzazioni {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.sezione-carosello-realizzazioni .carousel-inner {
    padding-left: 3.5rem !important;
    padding-right: 3.5rem !important;
}

.realizzazione-slide-box {
    width: 100%;
    height: 520px;

    overflow: hidden;

    background-color: #fff;
}

.realizzazione-slide-img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;
    object-position: center;

    background-color: #fff;
}

.controllo-realizzazioni {
    width: 48px;
}

.carousel-control-prev.controllo-realizzazioni {
    left: 0;
}

.carousel-control-next.controllo-realizzazioni {
    right: 0;
}

/* Tablet */
@media (max-width: 991.98px) {

    .realizzazione-slide-box {
        height: 430px;
    }
}

/* Mobile */
@media (max-width: 767.98px) {

    .sezione-carosello-realizzazioni {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .sezione-carosello-realizzazioni .carousel-inner {
        padding-left: 2.5rem !important;
        padding-right: 2.5rem !important;
    }

    .realizzazione-slide-box {
        height: 330px;
    }

    .controllo-realizzazioni {
        width: 36px;
    }
}


/* ================= PAROLIN LAYOUT OVERRIDES ================= */

:root {
    --parolin-border: #d7dadd;
    --parolin-text: #171717;
}

body {
    color: var(--parolin-text);
    background: #fff;
}

.site-header {
    box-shadow: none !important;
}

.site-header .navbar {
    padding-top: 1rem;
    padding-bottom: .45rem;
}

.site-header .navbar > .container {
    min-height: 78px;
}

.site-header .navbar-brand {
    margin-right: 2rem;
}

.site-header .navbar-brand .site-logo {
    max-height: 82px;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

.site-header .parolin-search-form {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    border-bottom: 1px solid #1f1f1f;
}

.site-header .parolin-search-form .form-control {
    padding-left: 0;
    border-radius: 0;
    background: transparent;
    font-size: .9rem;
}

.site-header .parolin-search-button {
    text-decoration: none;
    border: 0;
    border-radius: 0;
}

.site-header .brico-header-actions {
    min-width: 90px;
    display: flex;
    justify-content: flex-end;
}

.site-header .parolin-cart-link {
    border: 0 !important;
    text-decoration: none;
    padding: .5rem .75rem;
    font-size: 1.1rem;
}

.site-header .catalog-nav {
    border-top: 0 !important;
}

.site-header .catalog-nav .navbar-nav {
    gap: .25rem .55rem;
}

.site-header .catalog-nav .nav-link {
    color: #111;
    font-size: .99rem;
    letter-spacing: .01em;
    padding: .65rem .55rem;
}

.site-header .catalog-nav .nav-link:hover,
.site-header .catalog-nav .nav-link:focus {
    color: #555;
}

.parolin-shop-menu {
    position: relative;
}

.parolin-shop-dropdown {
    min-width: min(900px, 92vw);
    left: 50% !important;
    transform: translateX(-50%) !important;
    border-radius: 0;
    border: 1px solid #dedede;
    box-shadow: 0 12px 28px rgba(0,0,0,.10);
}

.parolin-shop-group {
    border-right: 1px solid #e5e5e5;
}

.parolin-shop-group:last-child {
    border-right: 0;
}

.parolin-shop-group-title,
.parolin-shop-categories a {
    color: #111;
    text-decoration: none;
}

.parolin-shop-categories .dropdown-item {
    white-space: normal;
    background: transparent;
    font-size: .88rem;
}

.parolin-shop-categories .dropdown-item:hover,
.parolin-shop-categories .dropdown-item:focus {
    text-decoration: underline;
}

.parolin-home-video video {
    max-height: 650px;
    object-fit: cover;
}

.parolin-company-image-box {
    border-radius: 1.75rem;
    background: #f5f5f5;
}

.parolin-company-image {
    object-fit: cover;
}

.parolin-contact-section {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
}

.parolin-contact-row {
    font-size: .92rem;
}

.parolin-contact-title {
    font-size: 1.45rem;
    border-color: #888 !important;
}

.parolin-contact-info a,
.parolin-contact-form a {
    color: inherit;
}

.parolin-contact-info .brico-footer-social {
    justify-content: flex-start;
    margin-top: 1rem;
}

.parolin-opening-hours {
    line-height: 1.6;
}

.parolin-contact-form input,
.parolin-contact-form textarea,
.form-preventivo-servizi input,
.form-preventivo-servizi textarea {
    border-radius: 0 !important;
}

.parolin-contact-form button,
.form-preventivo-servizi button,
.parolin-contact-form input[type="submit"],
.form-preventivo-servizi input[type="submit"] {
    border-radius: 0 !important;
}

.brico-footer {
    background: #fff !important;
    border-top: 1px solid #dedede;
    color: #111 !important;
}

.brico-footer .brico-footer-main {
    padding-top: 2rem !important;
    padding-bottom: 1.5rem !important;
}

.parolin-footer-logo {
    max-width: 155px;
    max-height: 95px;
    object-fit: contain;
}

.parolin-footer-nav a {
    color: #111 !important;
    text-decoration: none;
    font-size: .85rem;
}

.parolin-footer-nav a:hover,
.parolin-footer-nav a:focus {
    text-decoration: underline;
}

.parolin-footer-legal {
    padding: .8rem 0;
}

.brico-footer-bottom {
    border-top: 1px solid #eee;
}

.brico-footer-extra-legal {
    background: transparent !important;
}

.recaptcha-disclosure {
    font-size: .72rem;
    color: #777;
    padding-bottom: 1.25rem;
}

@media (max-width: 991.98px) {
    .site-header .navbar > .container {
        min-height: auto;
    }

    .site-header .navbar-brand .site-logo {
        max-height: 62px;
        max-width: 135px;
    }

    .site-header .catalog-nav .navbar-nav {
        gap: 0;
    }

    .site-header .catalog-nav .nav-link {
        padding: .65rem 0;
    }

    .parolin-shop-dropdown {
        position: static !important;
        transform: none !important;
        min-width: 100%;
        width: 100%;
        box-shadow: none;
        border: 0;
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }

    .parolin-shop-group {
        border-right: 0;
        border-bottom: 1px solid #eee;
        padding-bottom: .8rem;
    }

    .parolin-company-image-box {
        border-radius: 1.1rem;
    }

    .parolin-contact-form {
        padding-left: .75rem !important;
    }
}

/* ================= /PAROLIN LAYOUT OVERRIDES ================= */

/* =========================================================
   PAROLIN - rifiniture layout 2026-09-05
   Manteniamo catalogo/scheda prodotto Bricofer; qui tocchiamo
   soltanto shell e pagine istituzionali personalizzate.
   ========================================================= */

@media (min-width: 992px) {
    .site-header .navbar > .container {
        min-height: 104px;
        padding-top: .8rem;
        padding-bottom: .55rem;
    }

    .site-header .navbar-brand {
        width: 180px !important;
        max-width: 180px !important;
        flex: 0 0 180px !important;
    }

    .site-header .navbar-brand .site-logo {
        width: 150px !important;
        height: auto !important;
        max-width: 150px !important;
        max-height: none !important;
    }

    .site-header .catalog-nav .nav-link {
        font-size: .99rem;
        padding-left: .7rem !important;
        padding-right: .7rem !important;
    }
}

/* La pagina Azienda può avere una singola immagine panoramica già composta. */
.parolin-company-single {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    background: transparent;
}

.parolin-company-single-image {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* Le tre fasi sono immagini editoriali: niente crop aggressivo e un po' più di respiro. */
@media (min-width: 992px) {
    .sezione-fasi-realizzazione {
        max-width: 1120px;
        margin-top: 4.25rem;
        margin-bottom: 5.25rem;
        padding-left: 2.75rem;
        padding-right: 2.75rem;
    }

    .fase-cornice {
        width: calc(100% - 92px);
    }

    .fase-realizzazione-sinistra .fase-cornice {
        margin-left: 72px;
    }

    .fase-realizzazione-destra .fase-cornice {
        margin-right: 72px;
    }

    .fase-testo {
        width: 39%;
        min-height: 180px;
        padding: 1.65rem;
    }
}

@media (max-width: 991.98px) {
    .site-header .navbar-brand .site-logo {
        width: 118px !important;
        height: auto !important;
        max-width: 118px !important;
        max-height: none !important;
    }
}

/* ================= /PAROLIN rifiniture layout ================= */


/* FIX 06/09/2026 - controlli slider pagina 412 */
.sezione-carosello-realizzazioni .controllo-realizzazioni {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 5;
}
