.swiper-slide-cover-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body{
    font-size: 16px;
    line-height: 21px;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

footer {
    margin-top: auto;
}
.sottitotolo-categoria {
    font-style: italic;
}

a:hover{
    color: #015096;
}

.hover-text-blue:hover{
    color: #015096;
}

.ct-active{
    color: #015096 !important;
}

.badge-pic-number{
    background-color: #c7c9cb;
    color: #fff;
    padding: 15px 30px;
    border-radius: 5px;
    display: inline-block;
    margin-bottom: 20px;
}

.badge-pic-number-text{
    font-size: 2.5rem;
    line-height: 2.5rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
}

figure.table{
    display: inline-block;
    width: 33%;
}
figure.table tr{
    border-color: #CCC;
}
@media (max-width: 768px) {
    figure.table{        
        width: 48%;
    }
}

.mobile-margin-top-menu {
    margin-top: 145px;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 10px 0;
}

@media (max-width: 991px) {
    .mobile-margin-top-menu {
        margin-top: 8px;
    }
}

/* Logos horizontal scroll */
.logos-scroll-container {
    overflow: visible; /* Cambiato da hidden a visible */
    position: relative;
    cursor: grab;
    padding: 20px 0; /* Aggiungo padding per evitare tagli */
}

/* Blog posts centrati (meno di 4) */
.blog-post-standalone {
    flex: 0 0 auto;
}

/* Blog posts scroll orizzontale (4 o più) */
.blog-horizontal-scroll {
    overflow: hidden;
    padding: 20px 0;
}

.blog-horizontal-swiper {
    overflow: visible;
}

.blog-horizontal-swiper .swiper-slide {
    height: auto;
}

/* Video Instagram scroll orizzontale */
.instagram-videos-horizontal-scroll {
    overflow: hidden;
    padding: 20px 0;
    margin: 20px 0;
}

.instagram-videos-swiper {
    overflow: visible;
}

.instagram-videos-swiper .swiper-slide {
    height: auto;
}

.instagram-videos-swiper .content-video-frame--instagram {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    min-height: 500px;
}

.instagram-videos-swiper .content-video-frame--instagram iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.logos-scroll-container:active {
    cursor: grabbing;
}

.logos-scroll-wrapper {
    display: flex;
    gap: 2rem;
    animation: scroll-logos 30s linear infinite;
    width: max-content;
    user-select: none;
    cursor: grab;
    position: relative; /* Aggiunto per il drag */
}

.logos-scroll-wrapper.dragging {
    animation-play-state: paused;
    cursor: grabbing;
}

.logos-scroll-wrapper:hover {
    animation-play-state: paused;
}

.logo-item {
    flex-shrink: 0;
    text-align: center;
    min-width: 150px;
    pointer-events: none; /* Previene click sui loghi durante il drag */
}

.logo-item img {
    transition: transform 0.3s ease;
    pointer-events: auto; /* Riabilita click sulle immagini */
}

.logo-item:hover img {
    transform: scale(1.1);
}

@keyframes scroll-logos {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .logos-scroll-wrapper {
        gap: 1rem;
    }
    
    .logo-item {
        min-width: 120px;
    }
}

/* ============================================================================
   IMAGE ERROR HANDLING STYLES
   ============================================================================ */

.image-error-placeholder {
    background-color: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.image-error-placeholder:hover {
    opacity: 1;
}

/* Placeholder per diverse categorie */
.image-error-placeholder[data-category="gallery"] {
    background-color: #f1f3f4;
    border-color: #dadce0;
}

.image-error-placeholder[data-category="product"] {
    background-color: #fef7e0;
    border-color: #fbcf33;
}

.image-error-placeholder[data-category="blog"] {
    background-color: #e8f0fe;
    border-color: #4285f4;
}

.image-error-placeholder[data-category="category"] {
    background-color: #f3e8ff;
    border-color: #8b5cf6;
}

/* Stile per il container delle immagini con errore */
.image-container-error {
    position: relative;
    display: inline-block;
}

.image-container-error::after {
    content: "⚠️ Immagine non disponibile";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.image-container-error:hover::after {
    opacity: 1;
}

/* ============================================================================
   CONTENT VIDEO GALLERY
   ============================================================================ */
.content-video-gallery {
    margin-top: 20px;
}

.content-video-group + .content-video-group {
    margin-top: 40px;
}

.content-video-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.content-video-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.content-video-frame--instagram {
    aspect-ratio: 9 / 16;
}

.content-video-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.content-video-caption {
    padding: 14px 16px 16px;
    font-size: 0.95rem;
    color: #555;
}

.content-video-fallback {
    padding: 10px 16px 0;
    font-size: 0.9rem;
}

.content-video-fallback a {
    color: #015096;
    font-weight: 600;
    text-decoration: none;
}

.content-video-fallback a:hover {
    text-decoration: underline;
}

.content-video-link {
    padding: 22px 18px;
    text-align: center;
}

.content-video-link a {
    color: #015096;
    font-weight: 600;
    text-decoration: none;
}

.content-video-link a:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .content-video-frame--instagram {
        aspect-ratio: 3 / 4;
    }
}

/* Stili responsivi per i placeholder */
@media (max-width: 768px) {
    .image-error-placeholder {
        border-width: 1px;
        border-radius: 4px;
    }
    
    .image-container-error::after {
        font-size: 10px;
        padding: 4px 8px;
    }
}

/* ============================================================================
   HOMEPAGE CATEGORIES STYLES
   ============================================================================ */

/* Layout verticale per le categorie (height > width) */
#categories .category-vertical {
    position: relative !important;
    height: 100%;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: #000;
}

#categories .category-vertical .blog-image {
    position: relative !important;
    width: 100% !important;
    padding-bottom: 150% !important; /* Aspect ratio verticale: 2:3 (height > width) */
    overflow: hidden !important;
    margin: 0 !important;
    display: block !important;
    background: #000 !important;
    height: 0 !important;
    /* Sovrascrive le transform del tema che spostano l'immagine */
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    -moz-transform: translate3d(0, 0, 0) !important;
    -ms-transform: translate3d(0, 0, 0) !important;
}

#categories .category-vertical:hover .blog-image {
    /* Mantiene l'animazione ma senza spostare l'immagine */
    transform: translate3d(0, 0, 0) !important;
    -webkit-transform: translate3d(0, 0, 0) !important;
    -moz-transform: translate3d(0, 0, 0) !important;
    -ms-transform: translate3d(0, 0, 0) !important;
    width: 100% !important;
}

#categories .category-vertical .blog-image img {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 100% !important;
    min-height: 100% !important;
}

/* Overlay che appare al hover */
#categories .category-vertical .blog-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(1, 80, 150, 0.3) 0%, rgba(1, 80, 150, 0.1) 100%);
    opacity: 0;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    pointer-events: none;
}

#categories .category-vertical:hover .blog-image img {
    transform: translate(-50%, -50%) scale(1.15) !important;
    filter: brightness(1.1);
}

#categories .category-vertical:hover .blog-image::after {
    opacity: 1;
}

#categories .category-vertical .blog-post-details {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 30px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 20%, rgba(0, 0, 0, 0.85) 25%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    transform: translateY(10px);
    opacity: 0.95;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

#categories .category-vertical:hover .blog-post-details {
    transform: translateY(0);
    opacity: 1;
    padding-bottom: 35px;
}

#categories .category-vertical .post-details {
    width: auto;
    max-width: 90%;
    margin: 0;
    text-align: center;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    transform: translateY(5px);
    opacity: 0.9;
  
}

#categories .category-vertical:hover .post-details {
    transform: translateY(0);
    opacity: 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* Classe per aumentare la dimensione del titolo delle categorie */
#categories .category-title {
    font-size: 1.5em !important;
    line-height: 1.3;
}

/* Responsive adjustments per categorie */
@media (max-width: 1199px) {
    #categories .category-vertical .blog-image {
        padding-bottom: 140%;
    }
}

@media (max-width: 991px) {
    #categories .category-vertical .blog-image {
        padding-bottom: 130%;
    }
}

@media (max-width: 767px) {
    #categories .category-vertical .blog-image {
        padding-bottom: 120%;
    }
    
    #categories .category-vertical .blog-post-details {
        padding: 20px 15px;
    }
    
    #categories .category-vertical .post-details {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
    
    #categories .category-title {
        font-size: 1.2em !important;
    }
    
    #categories .category-vertical:hover .blog-image img {
        transform: translate(-50%, -50%) scale(1.08) !important;
    }
}

/* ============================================================================
   HEADER USER DROPDOWN STYLES
   ============================================================================ */

.header-user .dropdown-menu {
    min-width: 280px;
    padding: 0;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    margin-top: 8px;
}

/* Ponte invisibile per mantenere l'hover tra icona e dropdown */
.header-user .dropdown-menu::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
    background: transparent;
}

/* User Info Header - Sezione superiore con avatar */
.header-user .user-info-header {
    padding: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px 8px 0 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-user .user-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.header-user .user-avatar i {
    font-size: 24px;
    color: white;
}

.header-user .user-details {
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow: hidden;
}

.header-user .user-name {
    color: white;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    display: block;
}

.header-user .user-email {
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Menu Links */
.header-user .dropdown-menu li a {
    padding: 12px 20px;
    color: #2d3748;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    font-size: 14px;
}

.header-user .dropdown-menu li a:hover {
    background-color: #f7fafc;
    color: #667eea;
    padding-left: 24px;
}

.header-user .dropdown-menu li a i {
    font-size: 16px;
    opacity: 0.7;
}

/* Logout Item - Stile speciale */
.header-user .logout-item a {
    color: #dc3545;
}

.header-user .logout-item a:hover {
    background-color: #fff5f5;
    color: #c82333;
}

/* Login Prompt - Per utenti non loggati */
.header-user .login-prompt {
    padding: 16px 20px 0;
    text-align: center;
}

.header-user .login-prompt p {
    margin: 0;
    color: #718096;
    font-size: 13px;
}

/* Login Item - Bottone evidenziato */
.header-user .login-item {
    padding: 0 20px 16px;
}

.header-user .login-item a {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    text-align: center;
    justify-content: center;
    border-radius: 6px;
    padding: 12px 20px !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.header-user .login-item a:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
    padding-left: 20px !important;
}

/* Divider */
.header-user .dropdown-divider {
    margin: 0;
    border-top: 1px solid #e2e8f0;
}

/* ============================================================================
   DASHBOARD STYLES
   ============================================================================ */

.dashboard-container {
    padding: 60px 0;
    min-height: calc(100vh - 200px);
}

.dashboard-container .row {
    align-items: flex-start;
}

.dashboard-sidebar {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 0;
    position: sticky;
    top: 180px;
}

.dashboard-sidebar .nav-link {
    padding: 16px 24px;
    color: #2d3748;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
    font-weight: 500;
}

.dashboard-sidebar .nav-link:hover {
    background-color: #f8f9fa;
    border-left-color: #007bff;
    color: #007bff;
}

.dashboard-sidebar .nav-link.active {
    background-color: #e7f3ff;
    border-left-color: #007bff;
    color: #007bff;
    font-weight: 600;
}

.dashboard-sidebar .nav-link i {
    font-size: 18px;
}

.dashboard-content {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    padding: 40px;
}

.dashboard-welcome h2 {
    font-size: 32px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 12px;
}

.dashboard-welcome p {
    color: #718096;
    font-size: 16px;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.quick-link-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 123, 255, 0.2);
    border-color: #007bff;
    text-decoration: none;
}

.quick-link-card i {
    font-size: 40px;
    margin-bottom: 16px;
    display: block;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.quick-link-card h5 {
    color: #2d3748;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 18px;
}

.quick-link-card p {
    color: #718096;
    font-size: 14px;
    margin: 0;
}

/* Account Type Selector */
.account-type-option {
    position: relative;
}

.account-type-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.account-type-label {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.account-type-label:hover {
    border-color: #007bff;
    background-color: #f8f9ff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.account-type-option input[type="radio"]:checked + .account-type-label {
    border-color: #007bff;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
    transform: translateY(-2px);
}

.account-type-option input[type="radio"]:checked + .account-type-label .account-type-icon {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
}

.account-type-option input[type="radio"]:checked + .account-type-label .account-type-title {
    color: white;
    font-weight: 600;
}

.account-type-option input[type="radio"]:checked + .account-type-label .account-type-subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.account-type-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background-color: #f8f9fa;
    color: #6c757d;
    margin-right: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.account-type-icon i {
    font-size: 20px;
}

.account-type-content {
    flex: 1;
}

.account-type-title {
    font-size: 16px;
    font-weight: 500;
    color: #212529;
    margin-bottom: 4px;
    transition: all 0.3s ease;
}

.account-type-subtitle {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.4;
    transition: all 0.3s ease;
}

/* Dashboard Mobile Select */
.dashboard-mobile-select {
    padding: 16px;
}

.dashboard-mobile-select .form-select {
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 16px;
    font-weight: 500;
    color: #2d3748;
    background-color: #ffffff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dashboard-mobile-select .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    outline: none;
}

/* Responsive Dashboard */
@media (max-width: 991px) {
    .dashboard-sidebar {
        position: static;
        margin-bottom: 30px;
    }

    .quick-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .quick-links {
        grid-template-columns: 1fr;
    }

    .dashboard-content {
        padding: 24px;
    }
}

/* ============================================================================
   HOMEPAGE HERO SECTION STYLES
   ============================================================================ */

.hero-title-wrapper {
    position: relative;
    z-index: 2;
}

.hero-main-title {
    position: relative;
    display: inline-block;
}

.hero-main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, transparent, #015096, transparent);
    border-radius: 2px;
}

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

/* Responsive hero section */
@media (max-width: 991px) {
    .hero-main-title {
        font-size: 2.5rem !important;
    }
    
    .hero-main-title::after {
        width: 60px;
        height: 3px;
    }
}

@media (max-width: 767px) {
    .hero-main-title {
        font-size: 2rem !important;
    }
    
    .hero-content-wrapper .text-extra-large {
        font-size: 1.5rem !important;
    }
}

/* ============================================================================
   HOMEPAGE BORDER-RADIUS CONSISTENCY - Unified 12px for all content cards
   ============================================================================ */

/* Slideshow content box */
.slider-blog-banner .slide-content-box,
.slideshow-single .slide-content-box {
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.85) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* Blog post cards */
.blog-post.bg-white.box-shadow-medium {
    border-radius: 12px !important;
    overflow: hidden;
}

/* Blog post image: match card rounding on top */
.blog-post.bg-white.box-shadow-medium .blog-post-image {
    border-radius: 12px 12px 0 0 !important;
}

/* Blog category badges: more visible rounding */
.blog-grid .blog-post-image .blog-category {
    border-radius: 6px !important;
}

/* Blocca il titolo blog a 2 righe per uniformità altezza card */
#blog .blog-grid .post-details a.alt-font {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ============================================================================
   NAVBAR Z-INDEX FIX - Fix per sovrapposizione sezioni homepage
   ============================================================================ */

/* Aumenta lo z-index della navbar per evitare sovrapposizioni */
.navbar.fixed-top {
    z-index: 1030 !important;
}

/* Assicura che i dropdown menu siano sopra tutto */
.navbar .dropdown-menu {
    z-index: 1040 !important;
}

/* Assicura che il menu mobile (collapse) sia sopra le sezioni */
.navbar-collapse {
    z-index: 1031 !important;
}

/* Fix per i dropdown del header (lingua, user, ecc.) */
.header-language .dropdown-menu,
.header-user .dropdown-menu {
    z-index: 1050 !important;
}

/* Assicura che le sezioni homepage non abbiano z-index che le facciano apparire sopra la navbar */
section.bg-light-blue {
    position: relative;
    z-index: 1;
}

/* Fix specifico per la sezione categorie */
#categories {
    position: relative;
    z-index: 1;
}

/* Assicura che gli elementi interni delle categorie non superino la navbar */
#categories .blog-post-details {
    z-index: 2 !important;
}

/* ============================================================================
   NEWSLETTER FORM STYLES
   ============================================================================ */

/* Messaggi form newsletter */
#newsletter-message {
    min-height: 40px;
    padding: 10px 15px !important;
    font-size: 14px;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    word-wrap: break-word;
}

#newsletter-message.bg-success {
    background-color: #28a745 !important;
    color: #ffffff !important;
}

#newsletter-message.bg-danger {
    background-color: #dc3545 !important;
    color: #ffffff !important;
}

/* Spinner per il bottone durante il caricamento */
#newsletter-submit .spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Disabilitazione bottone durante submit */
#newsletter-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============================================================================
   HOMEPAGE SLIDESHOW STYLES
   ============================================================================ */

/* Slideshow Single Slide - Pagination in basso a destra */
.slideshow-single .swiper-pagination {
    text-align: right !important;
    bottom: 25px !important;
    right: 30px !important;
    left: auto !important;
    width: auto !important;
}

.slideshow-single .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    margin: 0 6px !important;
    transition: all 0.3s ease;
}

.slideshow-single .swiper-pagination-bullet-active {
    background: #ffffff;
    transform: scale(1.2);
}

/* Slide a larghezza piena */
.slideshow-single .swiper-slide {
    width: 100% !important;
}

/* Content box centrato e più elegante */
.slideshow-single .slide-content-box {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 600px;
    width: 90%;
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

@media (max-width: 767px) {
    .slideshow-single .swiper-pagination {
        bottom: 15px !important;
        right: 20px !important;
    }
    
    .slideshow-single .swiper-pagination-bullet {
        width: 10px;
        height: 10px;
        margin: 0 4px !important;
    }
    
    .slideshow-single .slide-content-box {
        bottom: 60px;
        padding: 25px 20px;
    }
}

/* ============================================================================
   HOMEPAGE PHOTOGALLERY MASONRY STYLES
   ============================================================================ */

/* Stili per Photogallery Masonry - Layout Moderno (5 colonne desktop per "La nostra galleria") */
.photogallery-masonry-container {
    -webkit-column-count: 5;
    column-count: 5;
    -webkit-column-gap: 15px;
    column-gap: 15px;
    padding: 0 15px;
}

/* Fix Safari/Chrome: layer e backface per evitare miniature non disegnate fino al hover */
.photogallery-masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    background: #000;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.5s ease;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
    break-inside: avoid;
    margin-bottom: 15px;
    display: inline-block;
    width: 100%;
    /* Forza layer compositing: risolve "invisible until hover" in Safari e lag su Chrome mobile */
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.photogallery-masonry-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    z-index: 10;
}

.photogallery-masonry-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    position: relative;
}

.photogallery-masonry-image-wrapper {
    position: relative;
    width: 100%;
    height: auto;
    overflow: hidden;
    border-radius: 12px;
    /* Forza layer per immagini: evita non-paint in Safari con column-count */
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Badge ID foto per riferimento clienti (es. "Foto 12345") */
.photogallery-photo-id-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 5;
    min-width: 32px;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    pointer-events: none;
}

.photogallery-quote-badge {
    position: absolute;
    top: 38px;
    right: 8px;
    z-index: 5;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    background: linear-gradient(135deg, #005096 0%, #00a3d0 100%);
    border-radius: 6px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 80, 150, 0.4);
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.photogallery-quote-badge:hover {
    filter: brightness(1.25);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 80, 150, 0.5);
    color: #fff;
    text-decoration: none;
}

.photogallery-quote-badge i {
    font-size: 12px;
}

@media (max-width: 768px) {
    .photogallery-quote-badge {
        top: 34px;
        padding: 3px 7px;
        font-size: 10px;
    }
    .photogallery-quote-badge i {
        font-size: 10px;
    }
}

.photogallery-masonry-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: middle;
    /* Layer dedicato per l'immagine: riduce bug Safari/Chrome mobile */
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.photogallery-masonry-item:hover .photogallery-masonry-image-wrapper img {
    transform: scale(1.2);
}

.photogallery-masonry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.5) 40%, rgba(0, 0, 0, 0) 70%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 30px 20px;
    opacity: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    /* Evita interazione con column-count in Safari (position:absolute + column = bug) */
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.photogallery-masonry-item:hover .photogallery-masonry-overlay {
    opacity: 1;
}

.photogallery-masonry-content {
    text-align: center;
    width: 100%;
}

.photogallery-masonry-title {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 15px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    transform: translateY(10px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.photogallery-masonry-item:hover .photogallery-masonry-title {
    transform: translateY(0);
}

.photogallery-masonry-icon {
    width: 60px;
    height: 60px;
    margin: 10px auto 0;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transform: scale(0) rotate(-180deg);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.photogallery-masonry-icon i {
    font-size: 28px;
    color: #fff;
}

.photogallery-masonry-item:hover .photogallery-masonry-icon {
    transform: scale(1) rotate(0deg);
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

/* Responsive: da 5 colonne a 4 sotto ~1400px, poi 3 sotto 1200px */
@media (max-width: 1400px) {
    .photogallery-masonry-container {
        -webkit-column-count: 4;
        column-count: 4;
    }
}

@media (max-width: 1200px) {
    .photogallery-masonry-container {
        -webkit-column-count: 3;
        column-count: 3;
    }
}

@media (max-width: 768px) {
    .photogallery-masonry-container {
        -webkit-column-count: 2;
        column-count: 2;
        -webkit-column-gap: 10px;
        column-gap: 10px;
        padding: 0 10px;
    }
    
    .photogallery-masonry-item {
        margin-bottom: 10px;
        border-radius: 8px;
    }
    
    .photogallery-masonry-image-wrapper {
        border-radius: 8px;
    }
    
    .photogallery-masonry-overlay {
        padding: 20px 15px;
        border-radius: 8px;
    }
    
    .photogallery-masonry-title {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .photogallery-masonry-icon {
        width: 50px;
        height: 50px;
        margin-top: 8px;
        /* Su mobile meno blur = meno lag/repaint su Chrome Android */
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(255, 255, 255, 0.4);
    }
    
    .photogallery-masonry-icon i {
        font-size: 22px;
    }
}

/* Su mobile si mantengono 2 colonne (già impostate in max-width: 768px).
   Solo su schermi molto piccoli (< 360px) si passa a 1 colonna per leggibilità. */
@media (max-width: 359px) {
    .photogallery-masonry-container {
        -webkit-column-count: 1;
        column-count: 1;
    }
}

/* ============================================================================
   FANCYBOX: Caption con bottone Preventivo (globale)
   ============================================================================ */

.fancybox__caption {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.fancybox-preventivo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    background: linear-gradient(135deg, #005096 0%, #00a3d0 100%);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 80, 150, 0.4);
    transition: filter 0.2s, transform 0.2s;
    flex-shrink: 0;
}

.fancybox-preventivo-btn:hover {
    filter: brightness(1.2);
    transform: translateY(-1px);
    color: #fff !important;
}

/* ============================================================================
   CATEGORIA: Hero sottocategorie (al posto slideshow) - foto quadrate, label in basso
   ============================================================================ */
.category-hero-subcategories {
    padding: 2rem 1rem 3rem;
    background: #f8f9fa;
}

.category-hero-subcategories-inner {
    display: grid;
    grid-template-columns: repeat(auto-fill, 170px); /* fallback, JS sovrascrive */
    justify-content: center;
    gap: 1.25rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.category-hero-subcat-card {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-hero-subcat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.category-hero-subcat-image-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.category-hero-subcat-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.category-hero-subcat-label {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    color: #2d2d2d;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

@media (max-width: 768px) {
    .category-hero-subcategories {
        padding: 1.5rem 0.75rem 2rem;
    }
    .category-hero-subcategories-inner {
        grid-template-columns: repeat(auto-fill, 140px); /* fallback mobile, JS sovrascrive */
        gap: 1rem;
        padding: 0 0.75rem;
    }
    .category-hero-subcat-label {
        font-size: 0.9rem;
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 359px) {
    .category-hero-subcategories-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================================================
   HOMEPAGE CATEGORIES STYLES - Updated (sostituisce stili precedenti)
   ============================================================================ */

/* Stili personalizzati per blocco categories - Sfondo bianco con alpha 90% */
#categories .post-details {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #2d2d2d !important;
    font-size: 120% !important;
    line-height: 1.2 !important;
    border: none !important;
    box-shadow: none !important;
    text-shadow: none !important;
}

/* Rimuove eventuali gradient o overlay dalle categorie */
#categories .blog-post-details::before,
#categories .blog-post-details::after {
    display: none !important;
}

#categories .blog-post::before,
#categories .blog-post::after {
    display: none !important;
}

/* Rimuove sfumature dall'immagine */
#categories .blog-image::before,
#categories .blog-image::after {
    display: none !important;
}

/* Assicura che non ci siano gradient di fondo */
#categories .blog-post-details {
    background: transparent !important;
}

/* ============================================================================
   HOMEPAGE BLOG MOBILE CAROUSEL STYLES
   ============================================================================ */

/* Container carousel mobile */
.blog-mobile-carousel {
    padding: 0 15px 50px 15px;
    position: relative;
    width: 100%;
}

/* Slide del carousel */
.blog-mobile-carousel .swiper-slide {
    height: auto;
    display: flex;
    align-items: stretch;
}

/* Blog post nel carousel mobile */
.blog-mobile-carousel .blog-post {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
    overflow: hidden;
}

/* Immagine blog post nel carousel */
.blog-mobile-carousel .blog-post-image {
    position: relative;
    width: 100%;
    padding-bottom: 60%; /* Aspect ratio 5:3 */
    overflow: hidden;
    background: #f0f0f0;
}

.blog-mobile-carousel .blog-post-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-mobile-carousel .blog-post:hover .blog-post-image img {
    transform: scale(1.05);
}

/* Categoria badge */
.blog-mobile-carousel .blog-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(1, 80, 150, 0.9);
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 2;
}

/* Dettagli post nel carousel */
.blog-mobile-carousel .post-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px !important;
}

.blog-mobile-carousel .post-details span {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.blog-mobile-carousel .post-details a {
    font-size: 18px;
    line-height: 1.4;
    color: #2d3748;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-mobile-carousel .post-details a:hover {
    color: #015096;
}

/* Paginazione carousel mobile - Pallini in basso */
.blog-mobile-pagination {
    position: absolute;
    bottom: 15px !important;
    left: 50% !important;
    transform: translateX(-50%);
    width: auto !important;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    z-index: 10;
}

.blog-mobile-pagination .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: #d0d0d0;
    opacity: 1;
    margin: 0 !important;
    transition: all 0.3s ease;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

.blog-mobile-pagination .swiper-pagination-bullet-active {
    background: #888888;
    width: 12px;
    height: 12px;
    transform: scale(1);
    border: none;
}

/* Assicura che il carousel mobile sia nascosto su desktop */
@media (min-width: 768px) {
    .blog-content-mobile {
        display: none !important;
    }
}

/* Assicura che la griglia sia nascosta su mobile */
@media (max-width: 767px) {
    .blog-content {
        display: none !important;
    }
    
    /* Ottimizzazioni per mobile */
    .blog-mobile-carousel {
        padding: 0 10px 50px 10px;
    }
    
    .blog-mobile-carousel .post-details {
        padding: 15px !important;
    }
    
    .blog-mobile-carousel .post-details a {
        font-size: 16px;
    }
}

/* ============================================================================
   GRADIENT SKY BLUE PINK - NUOVA SFUMATURA #005096 a #00a3d0
   ============================================================================ */

/* Bottone con sfumatura */
.btn-gradient-sky-blue-pink {
    background: linear-gradient(135deg, #005096 0%, #00a3d0 100%) !important;
    border: none !important;
    color: white !important;
    transition: all 0.3s ease !important;
}

.btn-gradient-sky-blue-pink:hover {
    background: linear-gradient(135deg, #00a3d0 0%, #005096 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 80, 150, 0.4) !important;
}

.btn-gradient-sky-blue-pink:active,
.btn-gradient-sky-blue-pink:focus {
    background: linear-gradient(135deg, #005096 0%, #00a3d0 100%) !important;
    box-shadow: 0 4px 12px rgba(0, 80, 150, 0.3) !important;
}

/* Background con sfumatura */
.bg-gradient-sky-blue-pink {
    background: linear-gradient(135deg, #005096 0%, #00a3d0 100%) !important;
}

/* Testo con sfumatura (per icone e testo) */
.text-gradient-sky-blue-pink {
    background: linear-gradient(135deg, #005096 0%, #00a3d0 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* Bottone trasparente con bordo sfumato */
.btn-transparent-gradient-sky-blue-pink {
    background: transparent !important;
    border: 2px solid transparent !important;
    background-image: linear-gradient(white, white), linear-gradient(135deg, #005096 0%, #00a3d0 100%) !important;
    background-origin: border-box !important;
    background-clip: padding-box, border-box !important;
    color: #005096 !important;
    transition: all 0.3s ease !important;
}

.btn-transparent-gradient-sky-blue-pink:hover {
    background-image: linear-gradient(135deg, #005096 0%, #00a3d0 100%), linear-gradient(135deg, #005096 0%, #00a3d0 100%) !important;
    background-clip: padding-box, border-box !important;
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 80, 150, 0.3) !important;
}

/* Progress bar con sfumatura */
.progress-bar.bg-gradient-sky-blue-pink {
    background: linear-gradient(135deg, #005096 0%, #00a3d0 100%) !important;
}

/* Responsive iframe wrapper per Google Maps */
.responsive-iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 75%; /* Aspect ratio 4:3 (640x480) */
    height: 0;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.responsive-iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* ============================================
   CONTENT BLOCKS - BLOCCHI COMPONIBILI
   ============================================ */

.content-block {
    margin: 2rem 0;
    padding: 1.5rem 0;
}

.content-block:first-child {
    margin-top: 0;
}

.content-block:last-child {
    margin-bottom: 0;
}

/* Immagine a larghezza piena (sopra o sotto) */
.content-block-image-full {
    margin-bottom: 1.5rem;
}

.content-block-image-full img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Quando l'immagine ha max-width/max-height dall'admin: il contenitore si restringe all'immagine (niente box bianco) */
.content-block-image-constrained {
    display: inline-block;
    max-width: 100%;
}

.content-block-image-constrained img {
    width: auto;
    height: auto;
    max-width: 100%;
    vertical-align: middle;
}

/* Testo del blocco */
.content-block-text {
    /* line-height: 1.8; */
    color: #333;
}

.content-block-text p {
    margin-bottom: 1rem;
}

.content-block-text p:last-child {
    margin-bottom: 0;
}

/* Layout: Immagine sopra 100% */
.content-block-top-100 .content-block-image-full {
    margin-bottom: 1.5rem;
}

.content-block-top-100 .content-block-text {
    margin-top: 0;
}

/* Layout: Immagine sotto 100% */
.content-block-bottom-100 .content-block-image-full {
    margin-top: 1.5rem;
    margin-bottom: 0;
}

.content-block-bottom-100 .content-block-text {
    margin-bottom: 0;
}

/* Layout: Immagine a sinistra 50% */
.content-block-left-50 .row {
    margin: 0;
}

.content-block-left-50 .col-md-6:first-child {
    padding-right: 1rem;
}

.content-block-left-50 .col-md-6:last-child {
    padding-left: 1rem;
}

.content-block-left-50 img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Con dimensioni max dall'admin: immagine non stirata, contenitore si restringe */
.content-block-left-50 .content-block-image-constrained img,
.content-block-right-50 .content-block-image-constrained img {
    width: auto;
    height: auto;
    max-width: 100%;
}

/* Layout: Immagine a destra 50% */
.content-block-right-50 .row {
    margin: 0;
}

.content-block-right-50 .col-md-6:first-child {
    padding-right: 1rem;
}

.content-block-right-50 .col-md-6:last-child {
    padding-left: 1rem;
}

.content-block-right-50 img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive: Su mobile, le immagini laterali vanno sopra */
@media (max-width: 768px) {
    .content-block-left-50 .row,
    .content-block-right-50 .row {
        flex-direction: column;
    }
    
    .content-block-left-50 .col-md-6:first-child,
    .content-block-left-50 .col-md-6:last-child,
    .content-block-right-50 .col-md-6:first-child,
    .content-block-right-50 .col-md-6:last-child {
        padding: 0;
        margin-bottom: 1rem;
    }
    
    .content-block-left-50 .col-md-6:last-child,
    .content-block-right-50 .col-md-6:first-child {
        margin-bottom: 0;
    }
    
    /* Su mobile, l'immagine va sempre sopra */
    .content-block-left-50 .row > .col-md-6:first-child,
    .content-block-right-50 .row > .col-md-6:last-child {
        order: -1;
    }
}

/* Spaziatura tra blocchi */
.content-block + .content-block {
    /* border-top: 1px solid #e1e5e9; */
    padding-top: 2rem;
}

/* Accessibility: touch targets minimi 24x24px */
.header-language .dropdown-menu a,
.header-user .dropdown-menu a {
    min-height: 24px;
    padding: 6px 15px;
    display: flex;
    align-items: center;
}
.navbar-toggler {
    min-width: 30px;
    min-height: 30px;
    padding: 6px;
}
.search-close {
    min-width: 24px;
    min-height: 24px;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer-category-group {
    margin-bottom: 20px;
}

.footer-category-group:last-child {
    margin-bottom: 0;
}

.footer-category-group ul {
    margin-bottom: 0;
}

.footer-category-group ul li {
    margin-bottom: 8px;
}

.footer-category-group ul li:last-child {
    margin-bottom: 0;
}

.footer-category-group ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-category-group ul li a:hover {
    color: #ffffff;
    text-decoration: underline;
}

.footer-column {
    width: 100%;
}

@media (min-width: 576px) {
    .footer-column {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (min-width: 992px) {
    .footer-column {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}

.footer-columns-wrapper {
    display: flex;
    flex-wrap: wrap;
}

.footer-columns-left,
.footer-columns-right {
    width: 100%;
}

.footer-info {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 40px;
    padding-top: 25px;
    color: rgba(255, 255, 255, 0.75);
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}

@media (min-width: 992px) {
    .footer-columns-left {
        flex: 0 0 80%;
        max-width: 80%;
        padding-right: 30px;
    }

    .footer-columns-right {
        flex: 0 0 20%;
        max-width: 20%;
    }

    .footer-info {
        margin-top: 60px;
        padding-top: 30px;
        font-size: 15px;
    }
}

@media (max-width: 768px) {
    .footer-category-group {
        margin-bottom: 25px;
    }
}

/* ===== Mosaico di immagini ===== */
.content-mosaic {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 8px;
    margin: 20px 0;
}
.content-mosaic-item {
    overflow: hidden;
    border-radius: 4px;
}
.content-mosaic-item img {
    display: block;
    width: 100%;
    height: auto;
}
