 body {
    margin: 0;
    padding: 0;
}

/* Navbar Styling */
.navbar-custom {
    background: linear-gradient(135deg, #153673 0%, #289DB9 100%);
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    position: relative;
}

.navbar-custom::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    font-size: 1.5rem;
    color: #fff !important;
    transition: transform 0.3s ease;
}

.navbar-brand img {
  height: 60px;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.logo-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #289DB9, #fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(40, 157, 185, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(40, 157, 185, 0.4); }
    50% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(40, 157, 185, 0.6); }
}

.logo-circle svg {
    width: 28px;
    height: 28px;
    fill: #153673;
}

#navbarNav {
  padding: 1.5rem 0;
}

.navbar-nav {
    gap: 0.5rem;
}

.navbar-custom .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.6rem 1.2rem !important;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.navbar-custom .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: 0;
}

.navbar-custom .nav-link:hover::before {
    left: 0;
}

.navbar-custom .nav-link:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.navbar-custom .nav-link.active {
    background: rgba(255, 255, 255, 0.25);
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-custom .navbar-toggler {
    border: 2px solid rgba(255, 255, 255, 0.5);
padding: 0.5rem 0.75rem;
border-radius: 12px;
transition: all 0.3s ease;
clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);

}

.navbar-custom .navbar-toggler:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: rotate(90deg);
}

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

.navbar-custom .navbar-collapse {
    transition: all 0.4s ease-in-out;
}

/* Button CTA */
.btn-cta {
    background: #fff;
    color: #153673;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-cta:hover {
    background: #289DB9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 157, 185, 0.4);
}

/* Dropdown Menu Styling */
.dropdown-menu {
    background: linear-gradient(135deg, #153673 0%, #289DB9 100%);
    border: none;
    border-radius: 15px;
    padding: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    margin-top: 0.5rem;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.9);
    padding: 0.6rem 1.2rem;
    border-radius: 10px;
    transition: all 0.3s ease;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.15);
    transition: left 0.3s ease;
    z-index: 0;
}

.dropdown-item:hover::before {
    left: 0;
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: translateX(5px);
}

.dropdown-item.active {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    margin: 0.5rem 0;
}

.dropdown-toggle::after {
    transition: transform 0.3s ease;
}

.dropdown.show .dropdown-toggle::after {
    transform: rotate(180deg);
}



/* Button CTA */
.btn-cta {
    background: #fff;
    color: #153673;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

.btn-cta:hover {
    background: #289DB9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 157, 185, 0.4);
}

.header-section {
    position: relative;

 
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.wave-container {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.wave {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 200%;
    height: 100%;
}

.wave-top {
    background: #289DB9;
    clip-path: ellipse(100% 100% at 50% 100%);
    opacity: 0.9;
}

.wave-bottom {
    background: #153673;
    clip-path: ellipse(95% 90% at 48% 100%);
    height: 90%;
}

.wave-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    overflow: hidden;
    z-index: 11;
}

.wave-curve svg {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.circle-image {
    position: absolute;
    bottom: 30px;
    right: 80px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    border: 8px solid #289DB9;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 21;
}

.circle-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #fff;
}

.light-bulb-icon {
    position: absolute;
    top: 30px;
    left: 250px;
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 3px dashed rgba(255, 255, 255, 0.6);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.light-bulb-icon svg {
    width: 60px;
    height: 60px;
    fill: #fff;
}

@media (max-width: 768px) {
    .circle-image {
        width: 150px;
        height: 150px;
        left: 50%;
  transform: translate(-50%, -50%);
        top: 120px;
    }

    .light-bulb-icon {
        left: 30px;
        width: 80px;
        height: 80px;
    }

    .light-bulb-icon svg {
        width: 40px;
        height: 40px;
    }
}


/* Fullscreen carousel */
.carousel,
.carousel-inner,
.carousel-item {
    height: 800px;
}
.carousel-control-prev, .carousel-control-next {
    z-index: 20;
}
/* Background image */
.carousel-item {
    background-size: cover;
    background-position: center;
    position: relative;
}
/* Gradient overlay */
.carousel-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(1,47,93,0.5) 0%,
        rgba(40,157,185,0.3) 80%
    );
    mix-blend-mode: multiply;
    z-index: 1;
}
/* Centered content */
.carousel-caption {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
}

/* Nascondi elementi prima dell'animazione */
.carousel-item:not(.active) [data-aos] {
    opacity: 0;
    transform: translateY(50px);
}

/* --- Desktop (default) --- */
.carousel-item h1 {
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.carousel-item .intro {
    font-size: 2rem;
    color: rgba(255,255,255,0.9);
    font-weight: 700;
    margin-bottom: 30px;
}


/* --- Tablet e smartphone grandi (<768px) --- */
@media (max-width: 768px) {
    .carousel-caption {
        padding-top: 0.5rem;
        padding-top: 0.5rem;
    }
    .carousel,
    .carousel-inner,
    .carousel-item {
        height: 600px;
    }
    .carousel-item h1 {
        font-size: 3rem;
    }

    .carousel-item .intro {
        font-size: 1.5rem;
    }
}


/* --- Smartphone piccoli (<480px) --- */
@media (max-width: 480px) {
    .carousel-item h1 {
        font-size: 2.2rem;
    }

    .carousel-item .intro {
        font-size: 1.2rem;
    }
}

.scroll-down {
    position: absolute;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    z-index: 10;
    font-size: 80px; /* dimensione icona */
    color: #fff;
    animation: blink 1.4s infinite ease-in-out;
    cursor: pointer;
}

@keyframes blink {
    0% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
    50% { opacity: 1; transform: translateX(-50%) translateY(8px); }
    100% { opacity: 0.3; transform: translateX(-50%) translateY(0); }
}

        /* ===== Sezione Intro ===== */
.intro-section {
    position: relative;
    width: 100%;
    background: linear-gradient(90deg, #153673 0%, #289DB9 100%);
    color: #fff;
    overflow: hidden;
    padding-bottom: 6rem;
}

.intro-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    gap: 2rem;
}

.text-content {
    flex: 1;
    max-width: 600px;
    z-index: 3;
    animation: fadeInLeft 1.2s ease forwards;
}

.intro-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(90deg, #fff, #A8E6FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-text {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Lato immagine con effetto fusione */
.image-side {
    flex: 1;
    height: 450px;
    background-image: url('../img/demo.png'); /* 🔄 sostituisci con la tua immagine */
    background-size: cover;
    background-position: center right;
    border-radius: 25px 0 0 25px;
    box-shadow: -10px 10px 25px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInRight 1.2s ease forwards;
}

.image-side::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(1,47,93,0.9) 0%, rgba(40,157,185,0.4) 80%);
    mix-blend-mode: multiply;
}

/* Animazioni */
@keyframes fadeInLeft {
    0% { opacity: 0; transform: translateX(-60px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    0% { opacity: 0; transform: translateX(60px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Responsività */
@media (max-width: 992px) {
    .intro-content {
        flex-direction: column;
        text-align: center;
    }
    .image-side {
        width: 100%;
        height: 300px;
        border-radius: 20px;
    }
}

/* ===== Sezione Intro Chiara ===== */
.intro-section-light {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #f9fafc 0%, #eaf6fa 100%);
    color: #153673;
    overflow: hidden;
    padding: 6rem 0;
}

.intro-content-light {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
    gap: 3rem;
}

.text-content-light {
    flex: 1;
    max-width: 600px;
    z-index: 3;
    animation: fadeInLeft 1.2s ease forwards;
}

.intro-title-light a{
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    background: linear-gradient(90deg, #153673, #289DB9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-decoration: none;
}

.intro-title-light a:hover {
    background: linear-gradient(90deg, #289DB9, #153673);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-text-light {
    font-size: 1.1rem;
    color: rgba(1,47,93,0.8);
    line-height: 1.9;
    margin-bottom: 2rem;
}

/* Bottone chiaro */
.btn-cta-light {
    background: #153673;
    color: #fff;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(1, 47, 93, 0.2);
}

.btn-cta-light:hover {
    background: #289DB9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 157, 185, 0.4);
}

/* ===== Sezione Gradient - Punti Elenco Animati ===== */
.intro-section-gradient {
    position: relative;
    width: 100%;
    background: linear-gradient(135deg, #153673 0%, #289DB9 100%);
    color: #fff;
    overflow: hidden;
    padding: 6rem 0;
}

.intro-content-gradient {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    position: relative;
    z-index: 2;
}

.text-content-gradient {
    flex: 1;
    max-width: 600px;
    animation: fadeInLeft 1.2s ease forwards;
}

.intro-title-gradient a{
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.intro-title-gradient span {
    background: linear-gradient(90deg, #A8E6FF, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-text-gradient {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Lista animata */
.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
}

.feature-list li {
    position: relative;
    font-size: 1.05rem;
    font-weight: 500;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(-30px);
    animation: listFade 0.8s ease forwards;
}

.feature-list li:nth-child(1) { animation-delay: 0.2s; }
.feature-list li:nth-child(2) { animation-delay: 0.4s; }
.feature-list li:nth-child(3) { animation-delay: 0.6s; }
.feature-list li:nth-child(4) { animation-delay: 0.8s; }

.icon-bullet {
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A8E6FF, #289DB9);
    box-shadow: 0 0 12px rgba(168,230,255,0.7);
    animation: pulseBullet 2s infinite;
}

/* Lato immagine */
.image-side-gradient, .image-side-light {
    flex: 1;
    height: 450px;
    background-image: url('../img/preventivo.jpg'); /* 🔄 sostituisci con la tua immagine */
    background-size: cover;
    background-position: right center;
    border-radius: 25px;
    box-shadow: -10px 10px 25px rgba(0,0,0,0.3);
    position: relative;
    animation: fadeInRight 1.2s ease forwards;
}

.image-side-gradient::after, .image-side-light::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(1,47,93,0.5) 0%, rgba(40,157,185,0.3) 80%);
    mix-blend-mode: multiply;
}

.image-side-light, .image-side-light::after {
    border-radius: 0;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}

.image-side-gradient, .image-side-gradient::after {
    border-radius: 0;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
}

/* Animazioni */
@keyframes listFade {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes pulseBullet {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(168,230,255,0.7); }
    50% { transform: scale(1.2); box-shadow: 0 0 20px rgba(40,157,185,0.9); }
}

@keyframes fadeInLeft {
    0% { opacity: 0; transform: translateX(-60px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
    0% { opacity: 0; transform: translateX(60px); }
    100% { opacity: 1; transform: translateX(0); }
}

/* Responsività */
@media (max-width: 992px) {
     .intro-content-gradient, .intro-content-light {
        flex-direction: column; /* ✅ immagine sotto il testo */
        text-align: center;
        gap: 2rem;
    }

    .image-side-gradient, .image-side-light {
        width: 100%;
        height: 250px; /* ✅ Altezza più ridotta ma visibile */
        border-radius: 20px;
        display: block;
        background-size: cover;
        background-position: center;
        box-shadow: 0 5px 20px rgba(0,0,0,0.25);
        animation: fadeInUp 1.2s ease forwards;
        flex: none;
    }

     .image-side-light {
    order: 1; /* Mostra prima l'immagine */
  }

  .text-content-light {
    order: 2; /* Poi il testo */
  }

    .image-side-gradient::after, .image-side-light::after {
      border-radius: 20px;
    }

    .feature-list li {
        padding-left: 0;
    }
    .icon-bullet {
        display: none;
    }
}

/* ===== Sezione Gradient con immagine di sfondo fusa ===== */
.intro-section-gradient.fusion-bg {
    position: relative;
    width: 100%;
    padding: 6rem 0;
    color: #fff;
    overflow: hidden;

    /* 🔹 L’immagine è fusa nel gradiente */
    background: linear-gradient(135deg, rgba(1,47,93,0.95) 0%, rgba(40,157,185,0.75) 40%, rgba(40,157,185,0.2) 75%),
                url('../img/preventivo.jpg');
    background-size: cover;
    background-position: right center;
    background-repeat: no-repeat;
    background-attachment: fixed; /* effetto leggero parallax */
}

.intro-content-gradient {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    position: relative;
    z-index: 2;
}

.text-content-gradient {
    max-width: 650px;
    animation: fadeInLeft 1.2s ease forwards;
}

.intro-title-gradient a {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-decoration: none;
}

.intro-title-gradient span {
  text-transform: uppercase;
    background: linear-gradient(90deg, #A8E6FF, #fff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.intro-text-gradient {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* Lista animata */
.feature-list {
    list-style: none;
    padding: 0;
    margin-bottom: 2.5rem;
}

.feature-list li {
    position: relative;
    font-size: 1.05rem;
    font-weight: 500;
    padding-left: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateX(-30px);
    animation: listFade 0.8s ease forwards;
}

.feature-list li:nth-child(1) { animation-delay: 0.2s; }
.feature-list li:nth-child(2) { animation-delay: 0.4s; }
.feature-list li:nth-child(3) { animation-delay: 0.6s; }
.feature-list li:nth-child(4) { animation-delay: 0.8s; }

.icon-bullet {
    position: absolute;
    left: 0;
    top: 5px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #A8E6FF, #289DB9);
    box-shadow: 0 0 12px rgba(168,230,255,0.7);
    animation: pulseBullet 2s infinite;
}

/* Bottone */
.btn-cta {
    background: #fff;
    color: #153673;
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    border-radius: 12px;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.btn-cta:hover {
    background: #289DB9;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40,157,185,0.4);
}

/* Animazioni */
@keyframes fadeInLeft {
    0% { opacity: 0; transform: translateX(-60px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes listFade {
    0% { opacity: 0; transform: translateX(-30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes pulseBullet {
    0%, 100% { transform: scale(1); box-shadow: 0 0 10px rgba(168,230,255,0.7); }
    50% { transform: scale(1.2); box-shadow: 0 0 20px rgba(40,157,185,0.9); }
}

/* Responsività */
@media (max-width: 992px) {
    .intro-content-gradient {
        text-align: center;
        justify-content: center;
    }
    .text-content-gradient {
        max-width: 90%;
    }
    .intro-section-gradient.fusion-bg {
        background-attachment: scroll;
        background-position: center;
    }
}

/* ===== Stile Base Pagina ===== */
.page {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #153673;
    line-height: 1.6;
}

/* ===== Header Pagina con Breadcrumb ===== */
.page .page-intro {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(1,47,93,0.95) 0%, rgba(40,157,185,0.85) 100%);
}

.page .page-intro.img {
    background-blend-mode: overlay;
    background-position: right center !important;
}

.page .page-intro::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(1,47,93,0.5) 0%, rgba(40,157,185,0.3) 80%);
    z-index: 1;
    mix-blend-mode: multiply;
}

.page .page-intro .title {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    width: 100%;
}

.page .page-intro .title .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.page .page-intro .title .inner h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
    animation: fadeInDown 1s ease forwards;
    text-align: left;
}

.page .page-intro .title .inner h1 span {
  background: linear-gradient(90deg, #A8E6FF, #fff);
    background-clip: border-box;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page .page-intro .title .inner .intro {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.9);
    text-align: left;
    animation: fadeInUp 1s ease forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

/* =====================================
   BREADCRUMB - CORREZIONE BORDO DOPPIO
   ===================================== */



.mod-breadcrumbs.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.mod-breadcrumbs__here {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mod-breadcrumbs__item a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.8rem;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    display: inline-block;
}

.mod-breadcrumbs__item a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #A8E6FF;
    transform: translateY(-2px);
}

.mod-breadcrumbs__item + .mod-breadcrumbs__item::before {
    content: "\F285";
    font-family: "bootstrap-icons";
    color: #A8E6FF;
    margin: 0 4px;
    font-size: 0.9rem;
    vertical-align: middle;
}

.mod-breadcrumbs__item.active span {
    color: #A8E6FF;
    font-weight: 700;
    padding: 4px 8px;
    background: rgba(0,0,0, 0.3);
    border-radius: 6px;
    display: inline-block;
}

.mod-breadcrumbs__wrapper {
 
    border-radius: 40px;
    padding: 8px 16px;
    display: flex;
    justify-content: flex-end;
    flex: 0 0 auto;
    width: fit-content;
    margin: 0 auto;
}

.mod-breadcrumbs.breadcrumb {
  
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
}

/* === MOBILE OPTIMIZATION === */
@media (max-width: 600px) {
  .mod-breadcrumbs.breadcrumb {
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    gap: 6px;
    font-size: 0.75rem;
    padding: 8px 10px;
  }

  .mod-breadcrumbs__item a,
  .mod-breadcrumbs__item.active span {
    font-size: 0.75rem;
    padding: 3px 6px;
  }

  .mod-breadcrumbs__wrapper {
    padding: 6px 12px;
    border-radius: 30px;
  }

  .mod-breadcrumbs__item + .mod-breadcrumbs__item::before {
    margin: 0 3px;
    font-size: 0.8rem;
  }

  /* Rende lo scroll laterale fluido e invisibile */
  .mod-breadcrumbs.breadcrumb::-webkit-scrollbar {
    display: none;
  }
}


/* ===== Contenuto Principale ===== */
.page .page-list {
    background: #f9fafc;
    position: relative;
    padding-top: 50px;
    
}

.page .article-list {
    padding-top:0;
}

.page .page-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255,255,255,0.9);
    z-index: 0;
}

.page .page-list .row {
    position: relative;
    z-index: 1;
}

/* ===== Articolo ===== */
.page .article {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(1,47,93,0.08);
    padding: 3rem;
    margin-bottom: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: fadeInUp 1s ease forwards;
}

.page .article:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(40,157,185,0.15);
}

.page .article .inner {
    position: relative;
}

/* Linea decorativa */
.page .article .line {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #289DB9, #A8E6FF);
    border-radius: 4px;
    margin-bottom: 2rem;
    animation: shimmerLine 3s infinite linear;
}

/* Testo Articolo */
.page .article .full {
    color: #153673;
    font-size: 1.05rem;
    line-height: 1.8;
}

.page .article .full p {
    margin-bottom: 1.5rem;
    color: rgba(1,47,93,0.85);
}

.page .article .full h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #153673;
    margin-top: 2.5rem;
    margin-bottom: 1.2rem;
    position: relative;
    padding-left: 1rem;
}

.page .article .full h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px;
    height: 70%;
    background: linear-gradient(180deg, #289DB9, #A8E6FF);
    border-radius: 5px;
    box-shadow: 0 0 15px rgba(40,157,185,0.4);
}

.page .article .full strong {
    color: #289DB9;
    font-weight: 600;
}

/* Liste */
.page .article .full ul {
    list-style: none;
    padding-left: 0;
    margin: 1.5rem 0;
}

.page .article .full ul li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 1rem;
    color: rgba(1,47,93,0.85);
    transition: transform 0.3s ease;
}

.page .article .full ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #289DB9, #A8E6FF);
    box-shadow: 0 0 10px rgba(40,157,185,0.5);
    animation: pulseBullet 2s infinite;
}

.page .article .full ul li:hover {
    transform: translateX(5px);
}

.page .article .full ul li strong {
    color: #153673;
    font-weight: 600;
}

/* Separatore */
.page .separator {
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(40,157,185,0.3), transparent);
    margin: 2rem 0;
}

/* ===== Sidebar ===== */
.page #col-item {
    position: sticky;
    top: 100px;
}

.page .cat-menu {
    background: linear-gradient(135deg, #153673 0%, #289DB9 100%);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(1,47,93,0.15);
    margin-bottom: 2rem;
    animation: fadeInRight 1s ease forwards;
}

.page .cat-menu h3 {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.8rem;
}

.page .cat-menu h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: #A8E6FF;
    border-radius: 3px;
}

.page .cat-menu .nav-pills {
    flex-direction: column;
    gap: 0.5rem;
}

.page .cat-menu .nav-link {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
    border-radius: 12px;
    padding: 0.8rem 1.2rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.page .cat-menu .nav-link:hover {
    background: rgba(255,255,255,0.2);
    transform: translateX(5px);
    border-color: rgba(255,255,255,0.3);
}

.page .cat-menu .nav-link.active {
    background: #fff;
    color: #153673;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255,255,255,0.3);
}

.page .cat-menu .nav-link a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page .cat-menu .nav-link.active a {
    color: #153673;
}

.page .cat-menu .glyphicon {
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ===== Animazioni ===== */
@keyframes fadeInDown {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    0% { opacity: 0; transform: translateX(30px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes shimmerLine {
    0% { opacity: 0.6; transform: scaleX(1); }
    50% { opacity: 1; transform: scaleX(1.2); }
    100% { opacity: 0.6; transform: scaleX(1); }
}

@keyframes pulseBullet {
    0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(40,157,185,0.5); }
    50% { transform: scale(1.15); box-shadow: 0 0 15px rgba(40,157,185,0.8); }
}

/* ===== Responsività ===== */
@media (max-width: 992px) {
    .page .page-intro {
        height: 325px;
    background-size: 210% !important;
    }

     .intro-section-gradient.fusion-bg {
        background-position: center right !important;
    }

    .feature-list li {
        padding-left: 0;
    }

    .page .page-intro .title .inner h1 {
        font-size: 2.2rem;
    }

    .page .article {
        padding: 2rem;
    }

    .page .article .full h2 {
        font-size: 1.5rem;
    }

    .page #col-item {
        position: static;
        margin-top: 2rem;
    }
}

@media (max-width: 768px) {
    .page .page-intro .title .inner h1 {
        font-size: 1.8rem;
    }

    .page .article {
        padding: 1.5rem;
    }

    .page .article .full h2 {
        font-size: 1.3rem;
    }

    .page .cat-menu {
        padding: 1.5rem;
    }
}

.form-contact {
  position: relative;
  width: 100%;
  background: linear-gradient(135deg, #153673 0%, #289DB9 100%);
  color: #fff;
  overflow: hidden;
  padding: 6rem 0;
}


/* Campi del form */
.form-contact .form-control {
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.form-control::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.form-control:focus {
  background-color: rgba(255, 255, 255, 0.2);
  border-color: #00d9ff;
  color: #fff;
  box-shadow: 0 0 0 0.25rem rgba(0, 217, 255, 0.25);
}

/* Label flottante */
.form-contact .form-floating > label {
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.3s;
}

.form-contact  .form-floating > .form-control:focus ~ label {
  color: #00d9ff;
}

/* Checkbox privacy */
.form-contact .form-check-label {
  color: #fff;
  font-size: 0.9rem;
}

.form-contact .form-check-input {
  background-color: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.form-contact .form-check-input:checked {
  background-color: #00d9ff;
  border-color: #00d9ff;
}

/* Bottone */
.btn-success {
  background-color: #00b894;
  border: none;
  color: #fff;
  padding: 0.75rem 2rem;
  font-weight: 600;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.btn-success:hover {
  background-color: #00997a;
  transform: translateY(-2px);
}

/* Link */
a {
  color: #00d9ff;
  text-decoration: underline;
}

a:hover {
  color: #fff;
}

/* Messaggio (textarea) */
textarea.form-control {
  resize: vertical;
}

/* Effetti e spaziatura */
.mb-3 label,
.form-label {
  color: rgba(255, 255, 255, 0.9);
}

.text-center.mt-4 {
  margin-top: 2rem !important;
}

/* Stato invalid con accento ciano */
.form-check-input.is-invalid ~ .form-check-label,
.was-validated .form-check-input:invalid ~ .form-check-label {
  color: #00e0ff; /* Ciano acceso */
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
  border-color: #00e0ff;
  color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%2300e0ff'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%2300e0ff' stroke='none'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(.375em + .1875rem) center;
  background-size: calc(.75em + .375rem) calc(.75em + .375rem);
  background-color: rgba(255, 255, 255, 0.1);
}

.form-control.is-invalid:focus, .was-validated .form-control:invalid:focus {
  border-color: #00e0ff;
  box-shadow: 0 0 0 .25rem rgba(220,255,255,.7);
}

/* Stato VALID - accento verde acqua brillante */
.form-check-input.is-valid ~ .form-check-label,
.was-validated .form-check-input:valid ~ .form-check-label {
  color: #00ffa3; /* Verde acqua neon */
}

.form-control.is-valid,
.was-validated .form-control:valid {
  border-color: #00ffa3;
  color: #fff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%2300ffa3'%3e%3cpath stroke-linecap='round' stroke-linejoin='round' d='M3 6l2.5 2.5L9 4'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(.375em + .1875rem) center;
  background-size: calc(.75em + .375rem) calc(.75em + .375rem);
  background-color: rgba(255, 255, 255, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .form-contact {
    padding: 3rem 1rem;
  }
}

/* Sezione contatti - stile chiaro */
.contact {
  background-color: #f9fafc;
  color: #1a1a1a;
  position: relative;
}



/* Titolo o paragrafo introduttivo */
.contact p {
  color: #4a4a4a;
  font-size: 1.1rem;
  text-align: center;
  margin-bottom: 2rem;
}

/* Blocchi "address" */
.contact address {
  background-color: #ffffff;
  border: 1px solid #e3e6ea;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  font-style: normal;
  line-height: 1.7;
  font-size: 1rem;
  color: #333;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
  transition: all 0.3s ease;
}

.contact address:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
}

/* Titolo sezione singola */
.contact strong {
  display: block;
  font-size: 1.15rem;
  color: #153673; /* riprende il blu del form */
  margin-bottom: 0.5rem;
  font-weight: 600;
}

/* Icone */
.contact i {
  color: #289DB9; /* azzurro coerente col gradiente del form */
  margin-right: 0.5rem;
  font-size: 1.1rem;
}

/* Testo secondario */
.contact address br {
  line-height: 1.8;
}

/* Responsive */
@media (max-width: 768px) {
  .contact {
    padding: 3rem 1rem;
  }
  .contact address {
    margin-bottom: 1.5rem;
  }
}


/* ===== CAROUSEL  ===== */
#category {
  position: relative;
  background: linear-gradient(135deg, #f9fafc 0%, #eaf6fa 100%);
  padding: 40px;
  overflow: hidden;
}

#category::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(40,157,185,0.1), transparent);
  animation: floatGeo 8s ease-in-out infinite alternate;
}

#category::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 150px;
  height: 150px;
  border: 3px solid rgba(1,47,93,0.1);
  border-radius: 20px;
  transform: rotate(45deg);
  animation: floatGeo 10s ease-in-out infinite alternate-reverse;
}

/* Titolo sezione */
#category h2 {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  z-index: 2;
}

#category h2 a {
  background: linear-gradient(90deg, #153673, #289DB9);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
}

#category h2 a:hover {
  background: linear-gradient(90deg, #289DB9, #153673);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  transform: translateY(-3px);
}




/* Card del tour */
#category .item {
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 20px rgba(1,47,93,0.08);
  transition: all 0.4s ease;
  position: relative;
  animation: fadeInUp 0.8s ease forwards;
  margin: 20px 10px;
}

#category .item:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 60px rgba(40,157,185,0.2);
}

/* Immagine */
#category .item img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

#category .item .img-wrap {
  position: relative;
  overflow: hidden;
}

#category .item .img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(1,47,93,0.5) 0%,
    rgba(40,157,185,0.3) 80%
  );
  z-index: 1;
  mix-blend-mode: multiply;
  pointer-events: none;
   transition: opacity 0.3s ease;
}

#category .item:hover .img-wrap::before {
  opacity: 0;
}


#category .item:hover img {
  transform: scale(1.1);
}

/* Titolo del tour */
#category .item h3 {
  padding: 1.5rem 1.5rem 1rem;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

#category .item h3 a {
  color: #153673;
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

#category .item h3 a:hover {
  color: #289DB9;
}

/* Intro con testo e bottone */
#category .intro {
  padding: 0 1.5rem 1.5rem;
}

#category .intro .inner {
  margin-bottom: 1.5rem;
  min-height: 100px;
}

#category .intro .inner p {
  color: rgba(1,47,93,0.75);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bottone */
#category .button-container {
  display: flex;
  justify-content: center;
}

#category .btn-light {
  background: linear-gradient(135deg, #153673 0%, #289DB9 100%);
  color: #fff;
  border: none;
  padding: 0.7rem 1.8rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(1,47,93,0.2);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

#category .btn-light:hover {
  background: linear-gradient(135deg, #289DB9 0%, #153673 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40,157,185,0.4);
  color: #fff;
}

#category .btn-light i {
  font-size: 1rem;
}

/* Navigazione slider */
#category .slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, #153673, #289DB9);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(1,47,93,0.3);
}

#category .slider-nav::before {
  content: '\F285';
  font-family: 'bootstrap-icons';
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: rotate(180deg);
}

#category .slider-nav:hover {
  background: linear-gradient(135deg, #289DB9, #153673);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(40,157,185,0.5);
}

#category .slider-nav:first-of-type {
  left: -25px;
}

#category .slider-nav-next {
  right: -25px;
  left: auto;
}

#category .slider-nav-next::before {
  transform: rotate(0deg);
}

/* Indicatori */
#category .slider-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 2.5rem;
  list-style: none;
  padding: 0;
}

#category .slider-indicators li {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(1,47,93,0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

#category .slider-indicators li:hover {
  background: rgba(1,47,93,0.4);
  transform: scale(1.2);
}

#category .slider-indicators li.active {
  background: linear-gradient(135deg, #153673, #289DB9);
  width: 32px;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(40,157,185,0.4);
}

/* Animazioni */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatGeo {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(-20px) rotate(10deg);
  }
}

/* Responsività mobile */
@media (max-width: 768px) {
  #category {
    padding: 4rem 0;
  }

  #category h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
  }

  #category .item img {
    height: 200px;
  }

  #category .slider-nav {
    width: 40px;
    height: 40px;
  }

  #category .slider-nav:first-of-type {
    left: 10px;
  }

  #category .slider-nav-next {
    right: 10px;
  }
}

/* ===== FOOTER Aioti Mobile con elementi geometrici ===== */
.footer-section {
    position: relative;
    background: linear-gradient(135deg, #153673 0%, #289DB9 100%);
    color: #fff;
    overflow: hidden;
    padding-top: 6rem;
}

/* ===== Elementi geometrici animati ===== */
.footer-geometry {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 1;
}

.footer-geometry .circle,
.footer-geometry .triangle,
.footer-geometry .square,
.footer-geometry .line {
    position: absolute;
    opacity: 0.15;
    animation: floatGeo 12s ease-in-out infinite alternate;
}

/* Cerchio */
.footer-geometry .circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid #A8E6FF;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

/* Triangolo */
.footer-geometry .triangle {
    width: 0;
    height: 0;
    border-left: 50px solid transparent;
    border-right: 50px solid transparent;
    border-bottom: 80px solid #A8E6FF;
    bottom: 15%;
    right: 8%;
    transform: rotate(15deg);
    animation-delay: 2s;
}

/* Quadrato */
.footer-geometry .square {
    width: 80px;
    height: 80px;
    border: 3px solid #fff;
    border-radius: 10px;
    top: 50%;
    right: 25%;
    animation-delay: 4s;
}

/* Linea diagonale */
.footer-geometry .line {
    width: 200px;
    height: 2px;
    background: rgba(255,255,255,0.3);
    top: 10%;
    right: 10%;
    transform: rotate(45deg);
    animation-delay: 6s;
}

/* Animazione di fluttuazione */
@keyframes floatGeo {
    0% { transform: translateY(0) rotate(0deg); opacity: 0.15; }
    50% { transform: translateY(-15px) rotate(10deg); opacity: 0.25; }
    100% { transform: translateY(0) rotate(-10deg); opacity: 0.15; }
}

/* ===== Contenuto del footer ===== */
.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 3;
    padding: 4rem 0 3rem;
}

/* Logo + descrizione */
.footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: bold;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-logo .logo-circle {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #289DB9, #fff);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(40,157,185,0.4);
    animation: pulse 2s infinite;
}

.footer-logo svg {
    width: 28px;
    height: 28px;
    fill: #153673;
}

.footer-description {
    color: rgba(255,255,255,0.85);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* Link */
.footer-links h5 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    position: relative;
}

.footer-links h5::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 40px;
    height: 3px;
    background: #A8E6FF;
    border-radius: 3px;
    animation: shimmerLine 3s infinite linear;
}

@keyframes shimmerLine {
    0% { opacity: 0.4; width: 20px; }
    50% { opacity: 1; width: 60px; }
    100% { opacity: 0.4; width: 20px; }
}

.footer-links ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li {
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.footer-links ul li a {
    color: rgba(255,255,255,0.85);
    text-decoration: none;
    transition: color 0.3s ease;
    padding-left: 0;
}

.footer-links ul li:hover {
    transform: translateX(5px);
}

.footer-links ul li a:hover, .footer-links ul li a.active {
    color: #A8E6FF;
}

/* Social */
.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

.social-icons a {
    color: #fff;
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.social-icons a:hover {
    transform: scale(1.2);
    color: #A8E6FF;
}

/* Bottom */
.footer-bottom {
    background: rgba(0,0,0,0.15);
    text-align: center;
    padding: 1.2rem 0;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.8);
    border-top: 1px solid rgba(255,255,255,0.2);
    z-index: 3;
    position: relative;
}

/* Animazioni extra */
@keyframes pulse {
    0%, 100% { transform: scale(1); box-shadow: 0 4px 15px rgba(40,157,185,0.4); }
    50% { transform: scale(1.05); box-shadow: 0 6px 20px rgba(40,157,185,0.6); }
}

/* Responsività */
@media (max-width: 768px) {
    .navbar-custom { 
        padding: 10px 0;
    }

    .navbar-brand img {
        height: 50px;
    }

    .footer-logo {
       display: inherit;
    }

    .social-icons {
        display: inherit;
    }

    .footer-brand {
      padding: 0 20px;
    }
    .footer-content {
        text-align: center;
    }
    .footer-links h5::after {
        left: 50%;
        transform: translateX(-50%);
    }
    .footer-geometry .circle,
    .footer-geometry .triangle,
    .footer-geometry .square,
    .footer-geometry .line {
        opacity: 0.1;
    }
}