/* --------------------
   BASE STYLES
--------------------- */
html,
body {
    height: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    background-color: #0d0c0c;
    color: white;
    font-family: "Bebas Neue", sans-serif;
    scroll-behavior: smooth;
}

body>main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* --------------------
     NAVBAR & MENU OVERLAY
  --------------------- */
#menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9;
    display: none;
}

.navbar-collapse {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: rgba(0, 0, 0, 0.85);
    padding: 10px 15px;
    border-radius: 10px;
    position: absolute;
    top: 60px;
    right: 0;
    z-index: 10;
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.navbar-nav .nav-link {
    color: white;
    font-weight: bold;
    font-size: clamp(16px, 2vw, 26px);
    text-transform: uppercase;
    position: relative;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0%;
    height: 2px;
    background-color: #fff;
    transition: width 0.3s ease;
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

.navbar-toggler {
    border: none;
    background: none;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 11;
    padding: 0.5rem;
    width: 30px;
    height: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.navbar-toggler-icon {
    width: 100%;
    height: 3px;
    background-color: white;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.navbar-toggler.open .navbar-toggler-icon:nth-child(1) {
    transform: rotate(45deg) translateY(8px);
}

.navbar-toggler.open .navbar-toggler-icon:nth-child(2) {
    opacity: 0;
}

.navbar-toggler.open .navbar-toggler-icon:nth-child(3) {
    transform: rotate(-45deg) translateY(-8px);
}

.navbar-collapse.show .navbar-nav {
    animation: fadeSlideIn 0.4s ease forwards;
    pointer-events: auto;
    opacity: 1;
}

@keyframes fadeSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .navbar-collapse {
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background-color: rgba(0, 0, 0, 0.85);
        padding: 15px;
        border-radius: 10px;
        display: block;
        z-index: 10;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 15px;
    }

    .navbar-nav .nav-link {
        font-size: 1.2rem;
        text-align: center;
    }
}

@media (min-width: 768px) {
    .navbar-nav {
        flex-direction: row;
        background: transparent;
        position: static;
        pointer-events: auto;
        padding: 0;
        gap: 10px;
    }

    .navbar-toggler {
        display: none;
    }
}

/* --------------------
   LANGUAGE SWITCHER
   
#languageSwitcher {
    margin-left: 10px;
    border: 1px solid #fff;
    background-color: #0d0c0c;
    color: #fff;
    font-family: "Bebas Neue", sans-serif;
    font-size: 0.9rem;
    width: auto;
    padding: 4px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
  }
  
  #languageSwitcher:focus {
    outline: none;
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
  }
  
  @media (max-width: 768px) {
    #languageSwitcher {
      font-size: 1rem;
      margin-top: 10px;
      width: 100%;
    }
  } 
    --------------------- */ 

/* ----------------------------------
   INDEX
  ----------------------------------- */
    .home-hero {
    background: linear-gradient(-45deg, #0d0c0c, #1a1a1a, #0d0c0c);
    background-size: 400% 400%;
    animation: bgShift 12s ease infinite;
    color: white;
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    gap: 40px;
  }
  
  @keyframes bgShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }
  
  .home-logo {
    max-width: 200px;
    height: auto;
    filter: invert(1);
    opacity: 0.9;
  }
  
  .home-phrase {
    font-size: clamp(1.1rem, 2vw, 1.8rem);
    max-width: 700px;
    line-height: 1.6;
    color: #ccc;
  }
  
  @media (max-width: 480px) {
    .home-logo {
      max-width: 150px;
    }
  
    .home-phrase {
      font-size: 1.1rem;
    }
  }

/* --------------------
     AUDIO-VIDEO-LED-TECH
  --------------------- */
.section-slider {
    padding: 80px 60px;
    background-color: #0d0c0c;
  }
  
  .container-limited {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
  }

.section-slider .text-container {
    flex: 1 1 50%;
    color: white;
    text-align: left;
}

.section-slider h1 {
    font-size: 4.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.section-slider blockquote {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.section-slider p {
    font-size: 1rem;
    line-height: 1.6;
    max-width: 700px;
    margin-bottom: 30px;
}

.slider {
    position: relative;
    flex: 1 1 40%;
    max-width: 400px;
    overflow: hidden;
    border-radius: 10px;
}

.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: 10px;
    border: 4px solid white;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.08); /* visibile SEMPRE */
    border: none;
    padding: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    opacity: 1;
    z-index: 2;
  }
  
  .arrow svg {
    width: 24px;
    height: 24px;
    stroke: white;
    transition: transform 0.3s ease;
  }
  
  .arrow:hover {
    background-color: rgba(255, 255, 255, 0.2); /* più visibile */
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.12);
  }
  
  .arrow:hover svg {
    transform: scale(1.15);
  }   

.arrow.left {
    left: 5px;
}

.arrow.right {
    right: 5px;
}

@media (max-width: 768px) {
    .section-slider {
      flex-direction: column;
      align-items: center;
      flex-wrap: nowrap;
      padding: 30px 20px;
      gap: 20px;
    }
  
    .section-slider .text-container {
      width: 100%;
      text-align: left;
      flex: none;
      height: auto;
      padding-top: 40px;
    }
  
    .slider {
      width: 100%;
      max-width: 400px;
      align-self: center;
      flex: none;
    }
  
    .section-slider h1 {
      font-size: 2.8rem;
    }
  
    .section-slider blockquote {
      font-size: 1rem;
    }
  
    .section-slider p {
      font-size: 0.9rem;
    }
  
    /* Extra refinements for very small screens */
    @media (max-width: 480px) {
      .slider {
        max-width: 100%;
      }
    }
  }  

/* --------------------
     CONTACTS
  --------------------- */
.contact-container {
    text-align: center;
    padding: 40px 20px;
}

h2 {
    font-size: 80px;
    margin-bottom: 60px;
}

.icons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.icon img {
    width: 50px;
    height: 50px;
}

.icon {
    display: inline-block;
    transition: transform 0.3s ease;
}

.icon:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    h2 {
        font-size: 60px;
        margin-bottom: 30px;
    }

    .icons {
        gap: 15px;
    }

    .icon img {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    h2 {
        font-size: 50px;
        margin-bottom: 20px;
    }

    .icons {
        gap: 10px;
    }

    .icon img {
        width: 35px;
        height: 35px;
    }
}

/* --------------------
    FOOTER
  --------------------- */
.site-footer {
    background-color: #0d0c0c;
    color: white;
    text-align: center;
    padding: 30px 20px;
    font-size: 1rem;
    border-top: 2px solid #fff;
}

.site-footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 8px;
    transition: color 0.3s ease;
}

.site-footer a:hover {
    color: #ccc;
}