/* Sfondo bianco per il resto della pagina */
main,
footer,
.banner-fade,
.row.g-4,
.card,
.navbar {
    background: #fff;
}

.navbar-brand img {
    width: 150px !important;
    height: 100px !important;
    object-fit: contain;
}

/* Responsive layout for main sections and cards */
@media (max-width: 991.98px) {
    .row.g-4 > .col-md-4,
    .row.g-4 > .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    .card {
        margin-bottom: 1.5rem;
    }
    .navbar-nav.flex-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100%;
    }
    .navbar-collapse {
        background: #111;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.18);
        padding: 1rem 0.5rem;
    }
    .navbar-toggler {
        border: none;
        background: transparent;
        font-size: 1.7rem;
        color: #fff;
        margin-right: 0.5rem;
    }
    .navbar-toggler:focus {
        outline: none;
        box-shadow: none;
    }
    .navbar-nav .nav-link {
        padding: 0.7rem 1rem;
        font-size: 1.1rem;
        border-radius: 8px;
        margin-bottom: 0.2rem;
        width: 100%;
    }
    .navbar .ms-auto {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }
    .hero-section {
        height: 30vh !important;
        min-height: 160px !important;
    }
    .banner-fade,
    .bg-primary.banner-fade {
        padding: 1.5rem 0.5rem !important;
    }
    .container.my-5 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .col-lg-10, .col-lg-8 {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .col-md-5, .col-md-7 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .ps-md-5, .pe-md-5 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .btn-art-impact {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    .img-fluid {
        max-width: 100% !important;
        height: auto !important;
    }
    .navbar-brand img {
        width: 110px !important;
        height: 70px !important;
    }
}

/* Extra small devices */
@media (max-width: 575.98px) {
    .hero-section {
        height: 22vh !important;
        min-height: 100px !important;
    }
    .display-4 {
        font-size: 2rem !important;
    }
    .card-title {
        font-size: 1.2rem !important;
    }
    .btn-art-impact {
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
    }
    .navbar-brand img {
        width: 80px !important;
        height: 50px !important;
    }
    .banner-fade,
    .bg-primary.banner-fade {
        padding: 1rem 0.2rem !important;
    }
    .container.my-5 {
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }
}

/* Responsive for social section */
@media (max-width: 991.98px) {
    .col-md-5.text-center.d-flex.flex-column.align-items-end.pe-md-5,
    .col-md-7.d-flex.flex-column.align-items-start.ps-md-5 {
        align-items: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center !important;
    }
    .col-md-7 h4,
    .col-md-7 p {
        text-align: center !important;
    }
    .gap-5 {
        gap: 1.2rem !important;
    }
}

/* Responsive for images in social section */
@media (max-width: 575.98px) {
    .d-flex.justify-content-center.align-items-center.gap-5.mb-4.w-100 > div {
        margin-bottom: 1rem;
    }
    .d-flex.justify-content-center.align-items-center.gap-5.mb-4.w-100 {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
}

/* Responsive footer */
@media (max-width: 767.98px) {
    footer .row {
        flex-direction: column !important;
    }
    footer .col-md-6 {
        margin-bottom: 1rem !important;
    }
    footer img {
        width: 100px !important;
        height: 60px !important;
    }
}

/* Responsive for banner image */
@media (max-width: 575.98px) {
    .banner-fade img {
        max-height: 100px !important;
    }
}

/* Responsive layout for main sections and cards */
@media (max-width: 991.98px) {
    .row.g-4 > .col-md-4,
    .row.g-4 > .col-lg-4 {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }
    .card {
        margin-bottom: 1.5rem;
    }
    .navbar-nav.flex-row {
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100%;
    }
    .navbar-collapse {
        background: #111;
        border-radius: 0 0 12px 12px;
        box-shadow: 0 8px 24px rgba(0,0,0,0.18);
        padding: 1rem 0.5rem;
    }
    .navbar-toggler {
        border: none;
        background: transparent;
        font-size: 1.7rem;
        color: #fff;
        margin-right: 0.5rem;
    }
    .navbar-toggler:focus {
        outline: none;
        box-shadow: none;
    }
    .navbar-nav .nav-link {
        padding: 0.7rem 1rem;
        font-size: 1.1rem;
        border-radius: 8px;
        margin-bottom: 0.2rem;
        width: 100%;
    }
    .navbar .ms-auto {
        margin-top: 1rem;
        width: 100%;
        text-align: center;
    }
    .hero-section {
        height: 30vh !important;
        min-height: 160px !important;
    }
    .banner-fade,
    .bg-primary.banner-fade {
        padding: 1.5rem 0.5rem !important;
    }
    .container.my-5 {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
    .col-lg-10, .col-lg-8 {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .col-md-5, .col-md-7 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .ps-md-5, .pe-md-5 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    .btn-art-impact {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
    }
    .img-fluid {
        max-width: 100% !important;
        height: auto !important;
    }
    .navbar-brand img {
        width: 110px !important;
        height: 70px !important;
    }
}

/* Extra small devices */
@media (max-width: 575.98px) {
    .hero-section {
        height: 22vh !important;
        min-height: 100px !important;
    }
    .display-4 {
        font-size: 2rem !important;
    }
    .card-title {
        font-size: 1.2rem !important;
    }
    .btn-art-impact {
        font-size: 0.95rem;
        padding: 0.6rem 1rem;
    }
    .navbar-brand img {
        width: 80px !important;
        height: 50px !important;
    }
    .banner-fade,
    .bg-primary.banner-fade {
        padding: 1rem 0.2rem !important;
    }
    .container.my-5 {
        padding-left: 0.2rem;
        padding-right: 0.2rem;
    }
}

/* Responsive for social section */
@media (max-width: 991.98px) {
    .col-md-5.text-center.d-flex.flex-column.align-items-end.pe-md-5,
    .col-md-7.d-flex.flex-column.align-items-start.ps-md-5 {
        align-items: center !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: center !important;
    }
    .col-md-7 h4,
    .col-md-7 p {
        text-align: center !important;
    }
    .gap-5 {
        gap: 1.2rem !important;
    }
}

/* Responsive for images in social section */
@media (max-width: 575.98px) {
    .d-flex.justify-content-center.align-items-center.gap-5.mb-4.w-100 > div {
        margin-bottom: 1rem;
    }
    .d-flex.justify-content-center.align-items-center.gap-5.mb-4.w-100 {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
}

/* Responsive footer */
@media (max-width: 767.98px) {
    footer .row {
        flex-direction: column !important;
    }
    footer .col-md-6 {
        margin-bottom: 1rem !important;
    }
    footer img {
        width: 100px !important;
        height: 60px !important;
    }
}

/* Responsive for banner image */
@media (max-width: 575.98px) {
    .banner-fade img {
        max-height: 100px !important;
    }
}
/* Mobile: nascondi la scrollbar ma mantieni lo scroll */
@media (max-width: 576px) {
  html, body {
    overflow: auto; /* mantiene lo scroll verticale */
    overflow-x: hidden; /* evita scroll orizzontale accidentale */
    -webkit-overflow-scrolling: touch;
    -ms-overflow-style: none; /* IE/Edge legacy */
    scrollbar-width: none;   /* Firefox */
  }

  /* WebKit (Chrome, Safari, Android) */
  html::-webkit-scrollbar,
  body::-webkit-scrollbar,
  *::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    background: transparent !important;
  }
}



/* Smartphone: più spazio ai bordi */
@media (max-width: 575.98px) {
  .container,
  .container.my-5,
  .container-fluid {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  /* Navbar collassata più ariosa */
  .navbar-collapse {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

      /* Work in progress: elegante e animato */
      :root {
        --wip-yellow: #f9c74f;
        --wip-dark: #222;
        --wip-border: #e6e8ec;
        --wip-bg: #ffffff;
        --wip-text: #1f2937;
      }
      .wip {
        min-height: 60vh;
        display: grid;
        place-items: center;
        text-align: center;
        color: var(--wip-text);
      }
      .wip-inner {
        display: grid;
        gap: 1.25rem;
        justify-items: center;
      }
      .wip .beacon {
        width: 14px; height: 14px; border-radius: 50%;
        background: var(--wip-yellow);
        position: relative;
        box-shadow: 0 0 0 2px rgba(249,199,79,.25), 0 0 14px rgba(249,199,79,.5);
        animation: pulse 2s ease-in-out infinite;
      }
      .wip .beacon::after {
        content: "";
        position: absolute; inset: -3px;
        border-radius: 50%;
        box-shadow: 0 0 0 0 rgba(249,199,79,.35);
        animation: ring 2.2s ease-out infinite;
      }
      .wip .sign {
        background: var(--wip-bg);
        border: 1px solid var(--wip-border);
        border-radius: 12px;
        padding: .9rem 1.1rem;
        display: inline-flex;
        align-items: center;
        gap: .6rem;
        box-shadow: 0 8px 20px rgba(16,24,40,.06);
        font-weight: 600;
        animation: float 3.2s ease-in-out infinite;
      }
      .wip .sign i {
        color: var(--wip-yellow);
        font-size: 1.15rem;
      }
      .wip .barriers {
        display: flex; gap: .75rem; align-items: center; justify-content: center;
        transform: translateZ(0);
      }
      .wip .barrier {
        position: relative;
        width: 160px; height: 18px; border-radius: 8px;
        background: repeating-linear-gradient(-45deg, var(--wip-yellow) 0 12px, var(--wip-dark) 12px 24px);
        box-shadow: 0 6px 14px rgba(16,24,40,.08);
        animation: stripes 1s linear infinite;
      }
      .wip .barrier::before, .wip .barrier::after {
        content: ""; position: absolute; top: -18px; width: 6px; height: 36px;
        background: linear-gradient(var(--wip-dark) 0 50%, #444 50% 100%);
        border-radius: 3px;
      }
      .wip .barrier::before { left: 10px; }
      .wip .barrier::after  { right: 10px; }
      .wip .delay { animation-delay: .35s; }
      .wip p.lead {
        margin: .5rem 0 0;
        color: #4b5563;
        font-size: 1.05rem;
      }
      @keyframes stripes { to { background-position: 60px 0; } }
      @keyframes pulse {
        0%, 100% { transform: scale(1); }
        50% { transform: scale(1.08); }
      }
      @keyframes ring {
        0% { box-shadow: 0 0 0 0 rgba(249,199,79,.35); opacity: 1; }
        100% { box-shadow: 0 0 0 14px rgba(249,199,79,0); opacity: 0; }
      }
      @keyframes float {
        0%, 100% { transform: translateY(0); }
        50% { transform: translateY(-4px); }
      }
      @media (prefers-reduced-motion: reduce) {
        .wip * { animation: none !important; transition: none !important; }
      }