/* Solo sito italiano: il template condiviso e le demo restano invariati. */
.site-it .skip-link { position: fixed; left: 1rem; top: -6rem; z-index: 100000; padding: .75rem 1rem; background: #fff; color: #333; border: 2px solid #333; }
.site-it .skip-link:focus { top: 1rem; }
.site-it :is(a, button, input, textarea, select):focus-visible { outline: 3px solid #333; outline-offset: 3px; box-shadow: 0 0 0 5px #fff; }
.site-it [id] { scroll-margin-top: 120px; }
.site-it #contenuto:focus { outline: none; }
.site-it p.h4, .site-it p.fs-1 { font-family: "Roboto", sans-serif; font-weight: 500; line-height: 1.2; }
.site-it p.display-1 { font-family: "Roboto", sans-serif; }
.site-it .navbar button.nav-link { border: 0; background: transparent; text-align: left; font: inherit; }
.site-it .navbar .dropdown-item.active { background-color: var(--bs-primary); color: var(--bs-dark); }
.site-it .navbar .dropdown-menu.show { visibility: visible; opacity: 1; transform: rotateX(0deg); }
@media (min-width: 1200px) {
    /* Bootstrap .show è l'unica fonte dello stato aperto, anche con tastiera. */
    .site-it .navbar .nav-item:hover .dropdown-menu:not(.show) { visibility: hidden; opacity: 0; transform: rotateX(-75deg); }
}
@media (max-width: 1199.98px) {
    .site-it .navbar-brand { max-width: calc(100% - 70px); }
    .site-it .navbar-brand img { max-width: 100%; height: auto; }
    .site-it .navbar button.nav-link { width: 100%; margin: 15px 0; }
    .site-it .navbar .navbar-nav .nav-item.nav-link { margin: 15px 0 !important; }
    .site-it .navbar-collapse.show { max-height: calc(100dvh - 110px); overflow-y: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .site-it *, .site-it *::before, .site-it *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .site-it .wow { visibility: visible !important; }
}

/* Selettore bilingue condiviso: accessibile anche con menu mobile chiuso. */
.site-it .language-switcher { display: flex; gap: .5rem; align-items: center; margin-left: .5rem; white-space: nowrap; font-size: .875rem; }
.site-it .language-switcher a { color: var(--bs-dark); padding: .25rem; }
.site-it .language-switcher a[aria-current] { color: var(--bs-dark); font-weight: 700; text-decoration: underline; text-underline-offset: .25em; }
@media (max-width: 1199.98px) {
    .site-it .language-switcher { order: 2; margin-left: auto; margin-top: .5rem; flex-basis: 100%; justify-content: flex-end; }
    .site-it #navbarCollapse { order: 3; }
}

.site-it .topbar .language-switcher a { color: var(--bs-light); }
.site-it .topbar .language-switcher a[aria-current] { color: var(--bs-primary); }

/* Fase 4: rivelazione in dissolvenza senza traslare colonne fuori dal viewport. */
@keyframes gibertiFadeInLeft { from { opacity: 0; transform: none; } to { opacity: 1; transform: none; } }
@keyframes gibertiFadeInRight { from { opacity: 0; transform: none; } to { opacity: 1; transform: none; } }
.site-it .wow.fadeInLeft { animation-name: gibertiFadeInLeft; }
.site-it .wow.fadeInRight { animation-name: gibertiFadeInRight; }
.site-it { color: #666; }
.site-it .topbar a.text-muted { color: #d6d6d6 !important; }
.site-it .footer .footer-item a, .site-it .footer .footer-pending { color: #c6c6c6; }
.site-it .footer .footer-item a:hover { color: var(--bs-primary); }
.site-it .copyright .text-body { color: #c6c6c6 !important; }
.site-it .btn.btn-primary { color: #333 !important; }
.site-it .btn.btn-primary:hover, .site-it .btn.btn-primary:focus-visible { color: #fff !important; }
.site-it .owl-prev, .site-it .owl-next { color: #333; }
.site-it .owl-prev:hover, .site-it .owl-next:hover { color: #fff; }
.site-it .contact .d-flex > .ms-4 { min-width: 0; overflow-wrap: anywhere; }
.site-it .contact .d-flex > .rounded-circle { flex-shrink: 0; }
.site-it .contact-form-preview { min-width: 0; margin: 0; padding: 0; border: 0; }
.site-it .contact-form-status { padding: 1rem; border-left: 3px solid var(--bs-primary); background: #fff; color: #333; }
.site-it .reference-logo { display: inline-block; width: 100%; }
.site-it .footer-pending { padding: .25rem 0; }
@media (max-width: 992px) {
    .site-it .header-carousel .owl-prev { left: auto; right: 100px; }
    .site-it .header-carousel .owl-next { left: auto; right: 30px; }
}

.site-it main .text-primary:not(.breadcrumb-item) { color: #946216 !important; }
.site-it .contact a:not(.btn) { color: #80550f; text-decoration: underline; text-underline-offset: .15em; }

.site-it .navbar .navbar-nav .nav-link.active, .site-it .navbar .navbar-nav .nav-link:hover { color: #946216 !important; }
.site-it .btn.btn-light { color: #333 !important; }
.site-it .btn.btn-light:hover { color: #333 !important; }

/* Schede prodotto: stessa altezza e CTA allineate, immagini senza ritaglio. */
.site-it .blog .row > [class*="col-"] { display: flex; }
.site-it .blog .blog-item { display: flex; flex-direction: column; width: 100%; min-width: 0; }
.site-it .blog .blog-item > .my-4 { flex: 1; }
.site-it .blog .blog-item > .btn { align-self: flex-start; }
@media (min-width: 768px) {
    .site-it .blog .blog-item > .mb-4 { min-height: 4.1rem; }
}

/* Informative provvisorie e documenti di errore, nel template esistente. */
.site-it .policy-content { max-width: 960px; overflow-wrap: anywhere; }
.site-it .policy-content a:not(.btn) { color: #80550f; text-decoration: underline; text-underline-offset: .15em; }
.site-it .policy-content h2 { scroll-margin-top: 7rem; }
.site-it .policy-draft { border-left: 4px solid var(--bs-primary); padding: 1rem; background: #fff4d2; color: #333; }
.site-it .policy-placeholder { padding: .75rem; border: 1px dashed #946216; background: #fff; color: #333; }
.site-it .policy-toc { padding: 1rem 1rem .25rem; background: #fff; }
.site-it .policy-content .table-responsive { max-width: 100%; }
.site-it .policy-content .table { min-width: 680px; color: #333; }
.site-it .policy-content .table th:first-child { width: 32%; }
.site-it .policy-content .table thead th:nth-child(2) { width: 25%; }
.site-it .error-content { max-width: 900px; }
.site-it .map-placeholder { min-height: 450px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; background: #f6f6f6; border: 1px solid #ddd; text-align: center; }
.site-it .map-placeholder p { max-width: 640px; }

/* Nota immagini bilingue: discreta e leggibile anche su mobile. */
.site-it .image-disclaimer { font-size: .75rem; line-height: 1.5; color: #767676; }
.site-it .image-disclaimer strong { font-weight: 500; }
