html, body {
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

.no-scroll {
  overflow: hidden;
  height: 100vh;
}

#age-check-modal {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.age-check-box {
  background: #fff;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  max-width: 500px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  transform: translateY(40px) scale(0.98);
  animation: popupFadeInUp 0.5s ease-out forwards;
  animation-delay: 0.2s;
}

.age-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #333;
}

.age-description {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 2rem;
}

.btn-age {
  display: block;
  width: 100%;
  padding: 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
}

.btn-yes {
  background-color: #000000;
  color: white;
  border: 2px solid transparent;
}

.btn-yes:hover {
  background-color: #ffffff;
  color: #000;
  border: 2px solid #000;

}

.btn-no {
  background-color: rgb(215, 34, 34);
  color: #ffffff;
}

.btn-no:hover {
  background-color: rgb(138, 21, 21);
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes popupFadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Estendi offcanvas a tutto schermo */
.offcanvas-fullscreen {
  width: 100vw !important;
  max-width: 100vw;
  height: 100vh;
  border-radius: 0;
  border: none;
  z-index: 10000;
}

/* Offcanvas a tutta larghezza */
.offcanvas {
  width: 100vw !important;
  max-width: 100% !important;
  transition: transform 1s ease-in-out !important;
  background: #000;
}

.offcanvas-header {
  padding: 2rem 8rem;
}

.logo-white {
  height: 40px;
  filter: brightness(0) invert(1)
}

/* Contenitore logo con sfondo e bordi arrotondati */
.nav-logo-box {
  background-color: transparent; /* PATCH: remove pill background */
  backdrop-filter: none; /* PATCH */
  padding: 0.5rem 1rem;
  border-radius: 0; /* PATCH: remove rounded corners */
  border: 0; /* PATCH: no outline */
}

/* Contenitore toggle con sfondo e bordi arrotondati */
.nav-toggle-box {
  background-color: transparent; /* PATCH: remove gray pill */
  backdrop-filter: none; /* PATCH */
  padding: 0.5rem 1rem;
  border-radius: 12px;
  border: 0; /* PATCH */
}

.custom-toggler {
  background: none !important;
  padding: 0 !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
}

/* Togli bordo e padding inutili dal toggle */
.custom-toggler img {
  display: block;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0  !important;
  box-shadow: none !important;
}

button.navbar-toggler {
  border: none;
  box-shadow: none;
  background: none;
  padding: 0;
}

/* Rende i due box ben allineati anche a 768px */
@media (max-width: 767.98px) {
  .navbar .container-fluid {
    flex-wrap: nowrap;
  }
}

/* Contenuto sinistra + spaziatura */
.custom-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-left: 5vw;
  padding-top: 2vh;
  gap: 0;
}

/* === Offcanvas CTA row (buttons on one line with separator) === */
.offcanvas-cta {
  display: flex;
  align-items: center;
  gap: 1rem;            /* spazio tra elementi */
  flex-wrap: wrap;      /* permette il ritorno a capo su schermi stretti */
  padding-top: 1rem;
}
.offcanvas-cta-sep {
  color: #fff;
  font-style: italic;
  font-weight: 100;
  font-size: 5rem;    /* allineato alla misura di .nav-link.pulsante */
  line-height: 1;
  margin: 0 .25rem;
}
/* Evita underline-anim sul separatore se eredita stili nav-link */
.offcanvas-cta-sep::after { display: none !important; }

@media (max-width: 425px) {
  .offcanvas-cta-sep { font-size: 3rem; }
}

.menu-divider {
  width: 80vw;
  color: #fff;
}

.nav-link {
  position: relative;
  display: inline-block;
  font-style: normal;
  font-size: 5.5rem;
  font-weight: 300;
  color: rgb(255, 255, 255);
  transition: font-style 0.3s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  margin: 0;
  background-color: currentColor;
  transition: width 0.3s ease;
}

.nav-link:hover {
  font-style: italic;
  color: rgb(255, 255, 255);
}

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

.nav-link.pulsante {
  font-size: 5.5rem;
  padding: 0;
}

.btn-close {
  background-color: white;
}

@media (max-width: 1440px) {
  .offcanvas-header {
    padding: 2rem 4rem;
  }
}

@media (max-width: 1024px) {
  .offcanvas-header {
    padding: 2rem 3rem;
  }
}

@media (max-width: 991.98px) {
  .navbar .container-fluid {
    flex-wrap: nowrap !important;
  }

  .navbar-toggler {
    margin-left: auto !important;
    display: flex;
    justify-content: end;
  }
}

@media (max-width: 768px) {
  .offcanvas-header {
    padding: 2rem;
  }

}

@media (max-width: 425px) {
  .offcanvas-header {
    padding: 2rem 1rem;
  }

  .navbar-nav {
    width: 80%;
  }

  .nav-link {
    font-size: 3rem;
  }

  .menu-divider {
    width: 100%;
  }

  .nav-link.pulsante {
    font-size: 3rem;
  }
}

@media (max-width: 425px) {
  .nav-link {
    font-size: 2.5rem;
  }

  .nav-link.pulsante {
    font-size: 2.5rem;
  }
}

/* HERO */
.hero-sticky-wrapper {
  height: auto;
  position: static;
  top: auto;
  z-index: initial;
}



.hero-layout {
  height: 100vh;
  width: 100vw;
  display: flex;
  background-image: url('images/bg-hero-big.webp'); /* PATCH: default desktop background */
  background-repeat: no-repeat;
  background-position: right center; /* PATCH */
  background-size: cover; /* PATCH */
  background-color: #000; /* PATCH */
}

.text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem;
  height: 100vh;
  /* overflow: hidden; */
}

.text-wrapper {
  width: 100%;
  max-width: none;
  padding-right: 2rem;
  text-align: left;
}

.title {
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.subtitle {
  font-size: 2rem;
}

.hero-btn {
  font-size: 1.5rem;  
}

.hero-btn:hover {
  background-color: rgba(0,0,0,0.05);
}

.img-col {
  padding: 2rem;
}

.hero-img {
  max-width: 65%;
  max-height: 65%;
  object-fit: contain;
  transform: translateY(-15%);
}

/* SECTION 2 */

main,
.section-3-wrapper,
.section-4-wrapper,
.cta-promo-section,
#section-5, .tubino-footer {
  position: relative;
  z-index: 3;
  background: rgb(0, 0, 0);
}

main,
.page-width {
  width: 100%;
  min-width: 100%;
  margin-inline: auto;
}

main {
  margin-top: 0;
  padding: 8rem 4rem;
  display: flex;
  align-items: start;
  gap: 2rem;
  z-index: 2;
  position: relative;
  background: rgb(0, 0, 0);
  border-top-left-radius: 4rem;
  border-top-right-radius: 4rem;
}

aside {
  flex: 0 0 45%;
  position: sticky;
  top: 8rem;
  align-self: flex-start;

}

article {
  flex: 0 0 55%;
}

.left-content {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2.1rem;
}

.left-content p {
  font-size: 2.5rem;
  line-height: 1.1;
}

.left-content img {
  width: 30%;
  border-radius: 8px;
  object-fit: cover;
}

.left-content a {
  font-size: 1.5rem;
  font-weight: 300;
}

.img-container {
  background-color: #f0f0f0; /* grigio chiaro */
  border: 2px solid #e9e9e9;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.3rem;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
  padding: 2rem;
  

}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
  border-radius: 8px;
  max-width: 100%;
  box-sizing: border-box;
}

.right-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 150vh;
  position: relative;
  padding-right: 2rem;
}

.right-content img {
  max-width: 100%;
  flex-grow: 1;
  border-radius: 8px;
  object-fit: cover;
  height: auto;
  display: block;
}

.image-container {
  width: 100%;
  height: 150vh; /* altezza del contenitore */
  overflow: hidden;
  position: relative;
  margin-top: 3rem;
  box-sizing: border-box;

}

.image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  will-change: transform;
}

.text-container p {
  font-size: 2.5rem;
  line-height: 1.2;
}

/* SECTION 3 SWITCH */

.section-3-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 6rem 6rem 6rem 4rem;
  z-index: 24;

}

.right-content-switch {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 150vh;
  position: relative;
}

.right-content-switch p {
  font-size: 2.5rem;
  line-height: 1.1;
}

.right-content-switch img {
  max-width: 100%;
  flex-grow: 1;
  border-radius: 8px;
  object-fit: cover;
  height: auto;
  display: block;
}

.text-container-switch {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.text-container-switch p {
  font-size: 2.5rem;
  line-height: 1.1;
}

.text-container-switch a {
  font-size: 1.5rem;
  font-weight: 300;
}

/* Immagine grande switch */
.image-container-switch {
  width: 100%;
  height: 150vh;              /* altezza del contenitore immagine grande (come sezione 2) */
  overflow: hidden;
  position: relative;
  margin-top: 3.8rem;
  box-sizing: border-box;
}
.image-container-switch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Colonna sticky destra */
.left-content-switch {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
}
.left-content-switch p {
  font-size: 2.5rem;
  line-height: 1.1;
}

.left-content-switch a {
  font-size: 1.5rem;
  font-weight: 300;
}

/* Colonna sticky destra: stile centrato e contenuto */
.img-container-switch {
  background-color: #f0f0f0;
  border: 2px solid #e9e9e9;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.5rem;
  padding: 2rem;
  border-radius: 8px;
  width: 100%;
  box-sizing: border-box;
}

.img-container-switch img {
  max-width: 100%;
  max-height: auto;
  object-fit: contain;
  display: block;
}

.left-content-switch img {
  width: 30%;                 /* l'immagine piccola occupa ~30% della colonna (come in sezione 2) */
  border-radius: 8px;
  object-fit: cover;
}

.section-4-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 6rem 4rem;
}

/* ============================== */
/* === RESPONSIVE max-width: 768px === */
/* ============================== */


/* === HERO IMAGE FIX PER VIEWPORT INTERMEDIE === */
@media (min-width: 768px) and (max-width: 1800px) {
  .hero-right-column img {
    object-fit: contain;
    width: 100%;
    height: 100vh;
    max-height: 90vh;
    display: block;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .img-container {
    height: 55vh;
  }

  .hero-right-column {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    overflow: hidden;
  }
}

/* resto del CSS esistente */

/* Sezione hero desktop fullscreen già OK */
@media (min-width: 1801px) {
  .hero-right-column img {
    object-fit: cover;
    
  }
}

/* Sezione hero mobile già OK */
@media (max-width: 767px) {
  .hero-right-column img {
    object-fit: cover;
    height: auto;
    width: 100%;
  }
}

@media (max-width: 768px) {

  html, body {
    margin: 0;
    padding: 0;
  }

  /* === HERO === */
  .hero-sticky-wrapper {
    position: static;
    height: auto;
    top: auto;
    z-index: initial;
    background-color: transparent; /* PATCH: allow background image on child to show */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .hero-layout {
    flex-direction: column;
    height: 100vh;
    width: 100%;
    display: flex;
    background-color: #f0f0f0;
  }
.hero-layout {
  height: 100vh;
  width: 100vw;
  display: flex;
  background-image: url('images/bg-hero-small.webp'); /* PATCH: default mobile/tablet background */
  background-repeat: no-repeat;
  background-position: right center;
  background-size: cover;
  background-color: #000; /* PATCH */
}

  .text-col {
    order: 2;
    padding: 2rem 1.5rem;
    height: 40vh;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
    text-align: center;
  }

  .img-col {
    order: 1;
    padding: 6rem 0 0 0;
    align-items: flex-start;
    height: 60vh;
  }

  .hero-img {
    width: auto;
    max-height: 100%;
    max-width: 90%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    transform: none;
  }

  .text-wrapper {
    padding: 0;
    max-width: 100%;;
  }

  .title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
  }

  .subtitle {
    font-size: 1.3rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-btn {
    font-size: 1rem;
  }

  /* === SECTION 2 === */
  main {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    padding: 0rem 0.5rem 8rem;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    height: auto;
    overflow: hidden;
    gap: 11rem;
  }

    aside .left-content,
    article .right-content {
      width: 100%;
      padding: 1.5rem 1rem;
      text-align: left;
    }
    
    .right-content{
      min-height: auto;
    }

    .left-content p,
    .right-content p {
      font-size: 2rem;
      line-height: 1.2;
    }

    .left-content a {
      margin-bottom: 1.5rem;
      display: inline-block;
    }

    .img-container,
    .image-container {
      margin: 1.5rem 0;
      height: auto;
    }

    .img-container img {
      width: 100%;
      max-width: 100%;
      height: 500px;
      object-fit: contain;
      display: block;
      margin: 0 auto;
      background-color: #f0f0f0;
    }

    .image-container img {
      width: 100%;
      max-width: 100%;
      height: 500px;
      object-fit: cover;
      display: block;
      margin: 0 auto;
      background-color: #f0f0f0;
    }

    /* Reset eventuali stili sticky */


  /* === SECTION 3 Responsive === */
    .section-3-wrapper , .section-4-wrapper {
      flex-direction: column;
      padding: 2rem 0.5rem 1rem;
    }

    
    .right-content-switch {
      min-height: auto;

    }

    .image-container-switch {
      height: auto;
    }

    .right-content-switch,
    .left-content-switch {
      width: 100%;
      padding: 1.5rem 1rem;
      text-align: left;
    }

    /* Inverti ordine su mobile */
    .section-3-wrapper aside {
      order: 1;
    }
    .section-3-wrapper article {
      order: 2;
    }

    .right-content-switch p,
    .left-content-switch p {
      font-size: 2rem;
      line-height: 1.2;
    }

    .left-content-switch a {
      margin-bottom: 1.5rem;
      display: inline-block;
    }

    .img-container-switch,
    .image-container-switch {
      margin: 1.5rem 0;
    }

    .img-container-switch img {
      width: 100%;
      max-width: 100%;
      height: 500px;
      object-fit: contain;
      display: block;
      margin: 0 auto;
      background-color: #f0f0f0;
    }

    .image-container-switch img {
      width: 100%;
      max-width: 100%;
      height: 500px;
      object-fit: cover;
      display: block;
      margin: 0 auto;
      background-color: #f0f0f0;
    }

    /* Reset sticky */
    .section-3-wrapper aside,
    .section-3-wrapper article {
      position: static !important;
    }

  /* === SECTION 4 === */
 .section-4-wrapper{
  overflow: hidden;
  gap: 11rem;
  padding: 0rem 0.5rem 8rem;
 }

 img {
  display: block;
  max-width: 100%;
  border: none;
  }

  section, article, aside, div {
  border: none;
  }

}

/* === BANNER CTA SECTION === */
.cta-promo-section {
  display: flex;
  gap: 2rem;
  padding: 4rem 4rem;
  background-color: #000000;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  height: 100vh;
  border-bottom-left-radius: 4rem;
  border-bottom-right-radius: 4rem;
  z-index: 20;
}

.cta-box {
  flex: 1 1 45%;
  min-width: 280px;
  background-image: url(images/bg-tubino-liquidi.webp);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 16px;
  padding: 2rem 3rem;
  text-align: center;
  box-shadow: 0 0 30px rgba(117, 117, 117, 0.5);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 80vh;
  position: relative;
  display: flex;
  align-items: flex-end;
}

.cta-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 80px rgba(170, 170, 170, 0.5);
}

.cta-box a {
  text-decoration: none;
  color: #ffffff;
}

.cta-box button {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.cta-box p {
  font-size: 2rem;
  color: #ffffff;
}

.cta-content {
  text-align: left;
}

.cta-liquid {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border: 2px solid rgb(255, 255, 255);
  text-align: left;
  padding: 1rem 6rem;
  border-radius: 40px;
  font-size: 1.5rem;
  color: #ffffff;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.cta-liquid:hover {
  background-color: rgb(0, 0, 0);
  color: #ffffff;
  font-weight: 500;
}

button {
  background-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border: 2px solid white;
  text-align: left;
  padding: 1rem 6rem;
  border-radius: 40px;
  font-size: 1.5rem;
  color: #fff;
  transition: color 0.3s ease, border-color 0.3s ease;
}

button:hover {
  background-color: rgba(255, 255, 255);
  color: #000000;
  font-weight: 500;
  border: 2px solid black;
}

@media (max-width: 768px) {

  .cta-box {
    width: 100%;
    background-image: url(images/bg-tubino-liquidi.webp);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    border-radius: 16px;
    padding: 2rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 80vh;
    position: relative;
    display: flex;
  }

  button {
    width: 100%;
    padding: 1rem 1rem;
    text-align: center;
  }

  /* NOTE: Mobile CTA — force single-line button with centered text */
  .cta-liquid {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;       /* keep text on one line */
    width: 100%;               /* full width but no wrapping */
    line-height: 1;            /* compact vertical alignment */
    padding-left: 1.25rem;     /* slightly wider to avoid accidental wraps */
    padding-right: 1.25rem;
  }

  .cta-content {
    align-self: flex-end;
  }

  /* NOTE: Mobile CTA — center text and increase size */
  .cta-content { text-align: center; }
  .cta-box p { font-size: 1.35rem; line-height: 1.35; text-align: center; }

  .cta-box button {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 600;
  }

  .cta-box.liquidi, .cta-box.pouches {
    padding: 1rem;
  }
}


/* Responsive mobile */
@media (max-width: 768px) {
  .cta-promo-section {
    padding: 4rem 2rem;
    flex-direction: column;
  }

  .cta-box {
    padding: 3rem 2rem;
  }

  .cta-box h5 {
    font-size: 2rem;
  }

  .cta-box p {
    font-size: 1.6rem;
    line-height: 1.2;
  }
}

/* ============================== */

html.no-scroll, body.no-scroll {
  overflow: hidden;
}


/* Page transition base */
#page-transition {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: white;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  transition: bottom 1.2s ease-in-out;
}

#page-transition.visible {
  pointer-events: auto;
}

#page-transition-logo {
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  max-width: 30%;
}

#page-transition.visible #page-transition-logo {
  opacity: 1;
  transform: scale(1) translateY(0);
}

#page-transition-logo .part {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUp 0.8s ease-out forwards;
  animation-play-state: paused;
}

#page-transition svg {
  display: block;
  max-height: 30vh;
  width: auto;
}

@keyframes slideUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* DISCLAIMER */
.nicotine-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: #000;
  color: #fff;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
  padding: 12px 16px;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
  pointer-events: none; /* evita clic accidentali */
}

@media (max-width: 768px) {
  .nicotine-banner {
    font-size: 12px;
    padding: 10px;
  }
}

/* FOOTER */
.tubino-footer {
  background: #1b1b1b;
  font-size: 1.5rem;
  max-width: 100vw;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.container-footer {
  width: 100vw;
  padding: 8rem 8rem 0 8rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 8fr 2fr 2fr 2fr 2fr;
  gap: 8rem;
  align-items: flex-start;
  position: relative;
}

.footer-brand {
  font-size: 2rem;
}

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

.footer-col li {
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: #111;
  text-decoration: none;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-col p {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.footer-bottom {
  text-align: center;
  font-size: 0.85rem;
  color: #1b1b1b;
  margin-top: 8rem;
  margin-bottom: 4rem;
}

.footer-col .social-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
}

.footer-col .social-links li a svg {
  width: 40px;
  height: 40px;
  transition: fill 0.3s ease;
}



.footer-col .social-links li a:hover svg {
  fill: #4f4f4f;
}

@media (max-width: 768px) {
  .tubino-footer {
    background: #1b1b1b;
    font-size: 1.5rem;
    max-width: 100vw;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .container-footer {
    width: 100vw;
    padding: 6rem 2rem 0 2rem;
  }

  .footer-grid {
    display: grid;
    grid-template-columns: 8fr 2fr 2fr 2fr 2fr;
    gap: 8rem;
    align-items: center;
    position: relative;
  }

  .footer-brand {
    max-width: 80%;
    font-size: 2rem;
    line-height: 1.1;
    
  }

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

  .footer-col li {
    margin-bottom: 0.5rem;
  }

  .footer-col a {
    color: #111;
    text-decoration: none;
  }

  .footer-col a:hover {
    text-decoration: underline;
  }


  .footer-bottom {
    text-align: left;
    font-size: 0.85rem;
    color: #1b1b1b;
    margin-top: 4rem;
    margin-bottom: 6rem;

  }
}

@media (max-width: 992px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }
}

.footer-legal {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #aaa; /* più soft rispetto al testo principale */
  margin-top: 1.5rem;
  max-width: 600px; /* limita la larghezza per leggibilità */
}
@media (max-width: 768px) {
  .footer-legal {
    font-size: 0.75rem;
    margin-top: 1rem;
    max-width: 100%;
  }
}

body, html { background: #1b1b1b !important; color: #fff !important; }
.section, header, footer, .overlay { background: #1b1b1b !important; color: #fff !important; }
nav a { color: #fff !important; }
a { color: #fff !important; }
/* PATCH: force white hamburger icon for navbar-light */
.navbar-light .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");
}

/* PATCH: white filter for navbar logo on dark background */
.logo-filter-white { filter: brightness(0) invert(1); }
/* PATCH: style "Scopri di più" / "Discover more" as outlined buttons with animated hover */
.hero-btn,
.left-content a.text-decoration-underline,
.left-content-switch a.text-decoration-underline,
.text-container-switch a.text-decoration-underline {
  display: inline-block;
  color: #ffffff !important;
  background: #000000;
  border: 2px solid #ffffff;
  border-radius: 9999px; /* pill shape */
  padding: 0.65rem 1.25rem;
  text-decoration: none !important;
  line-height: 1;
  transition: background 0.3s ease, color 0.3s ease, transform 0.25s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.hero-btn:hover,
.left-content a.text-decoration-underline:hover,
.left-content-switch a.text-decoration-underline:hover,
.text-container-switch a.text-decoration-underline:hover {
  background: #ffffff;
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

/* Slight active feedback */
.hero-btn:active,
.left-content a.text-decoration-underline:active,
.left-content-switch a.text-decoration-underline:active,
.text-container-switch a.text-decoration-underline:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(255, 255, 255, 0.2);
  transition-duration: 0.08s;
}

/* PATCH: increase horizontal padding on hero button only */
.hero-btn { padding-left: 1.75rem; padding-right: 1.75rem; }

/* PATCH: keep section buttons as width of text (override Bootstrap .d-block) */
.left-content a.text-decoration-underline.d-block,
.left-content-switch a.text-decoration-underline.d-block,
.text-container-switch a.text-decoration-underline.d-block {
  display: inline-block !important;
}
/* PATCH: make section buttons shrink to text width on all breakpoints */
.left-content a.text-decoration-underline,
.left-content-switch a.text-decoration-underline,
.text-container-switch a.text-decoration-underline {
  display: inline-block !important;
  width: -moz-fit-content; /* Firefox */
  width: fit-content;      /* Modern browsers */
  max-width: 100%;
}
/* PATCH: Navbar responsive fixes (spacing + toggle visibility) */
.navbar { z-index: 1030; }

/* === Navbar translucent background + blur ===
   Adjust --nav-blur and --nav-bg-alpha as desired */
:root {
  --nav-blur: 15px;          /* sfocatura (blur) */
  --nav-bg-alpha: 0.10;      /* trasparenza background nero = 10% */
}
nav.navbar.fixed-top {
  background-color: rgba(0, 0, 0, var(--nav-bg-alpha));
  -webkit-backdrop-filter: blur(var(--nav-blur)); /* Safari */
  backdrop-filter: blur(var(--nav-blur));
  left: 0;
  right: 0;
  width: 100vw;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.navbar .container-fluid { justify-content: space-between !important; }

/* Reduce outer horizontal margins applied by .mx-5 on smaller widths */
@media (max-width: 1400px) {
  .navbar .container-fluid { padding-left: .5rem; padding-right: .5rem; }
}

/* Compact logo/toggle paddings to avoid overflow pushing toggle off-screen */
@media (max-width: 1200px) {
  .nav-logo-box, .nav-toggle-box { padding: .25rem .5rem; }
}

/* Ensure the toggle stays visible and clickable on tablets/phones */
@media (max-width: 992px) {
  .navbar-toggler { 
    display: inline-flex !important; 
    align-items: center; 
    justify-content: center; 
    width: 44px; 
    height: 44px; 
    margin-left: auto !important; 
  }
  .navbar-toggler .navbar-toggler-icon { width: 1.5em; height: 1.5em; }
  .navbar .container-fluid { flex-wrap: nowrap !important; }
}

/* Prevent accidental right-shift on very narrow widths */
@media (max-width: 575.98px) {
  .navbar .container-fluid { padding-left: .25rem; padding-right: .25rem; }
}
/* PATCH: Footer responsive fixes (layout, padding, overflow) */
.tubino-footer { overflow: hidden; }
.container-footer { width: 100%; max-width: 100%; box-sizing: border-box; padding: 6rem 4rem 0; }
@media (min-width: 1401px) { .container-footer { padding: 8rem 8rem 0; } }

/* Default desktop grid refinement */
.footer-grid { grid-template-columns: 8fr 2fr 2fr 2fr; gap: 4rem; }
.footer-logo { max-width: 100%; height: auto; display: block; }

/* ≥992px and ≤1200px: 3 columns, brand full width on first row */
@media (max-width: 1200px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ≤992px: 2 columns, brand spans full width */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
}

/* ≤600px: single column, compact paddings */
@media (max-width: 600px) {
  .container-footer { padding: 4rem 1.25rem 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: auto; }
}

/* Ensure links contrast on dark footer */
.footer-col a { color: #ffffff; }

/* Compact footer bottom spacing & center on all screens */
.footer-bottom { text-align: center; margin-top: 4rem; margin-bottom: 3rem; }

/* PATCH: prevent footer logo from overflowing on small screens */
@media (max-width: 600px) {
  .footer-logo {
    max-width: 80vw; /* always within viewport width */
    height: auto;
    display: block;
    margin: 0 auto 1.5rem; /* center and keep spacing */
  }
}
/* PATCH: HARD cap footer logo on small screens to stop overflow */
@media (max-width: 768px) {
  .tubino-footer { overflow-x: hidden; }
  .footer-brand { max-width: 100%; overflow: hidden; }
  .footer-logo {
    width: 100% !important;
    max-width: 70vw !important; /* stricter cap than before */
    height: auto !important;
    display: block !important;
    margin: 0;
  }
}
.footer-col .social-links li a svg,
.footer-col .social-links li a svg * {
  fill: #ffffff !important;
  stroke: #ffffff !important;
}
.footer-col .social-links li a:hover svg,
.footer-col .social-links li a:hover svg * {
  fill: #ffffff !important; /* keep white on hover */
  stroke: #ffffff !important;
  opacity: 0.85; /* subtle feedback without color change */
  transition: opacity 0.2s ease;
}
/* PATCH: hero background image for tablet & mobile */
@media (max-width: 767px) {
  .hero-layout {
    background-image: url('images/bg-hero-small.webp') !important;
    background-position: center;
    background-size: cover;
  }
}

@media (max-width: 768px) {
  .hero-layout {
    background-image: url('images/bg-hero-small.webp') !important;
  }
}

/* PATCH: hero text tuning for 992–1200px so it doesn't get squeezed */

/* PATCH: hero text tuning for tablets */
@media (min-width: 768px) and (max-width: 991.98px) {
  .title { font-size: 2.3rem; }
  .subtitle { font-size: 1.2rem; }
}
/* PATCH: widen hero text column on laptops (992–1200px) */
@media (min-width: 992px) and (max-width: 1200px) {
  .hero-layout {
    background-position: 80% center; /* push image to right */
  }
  .text-col { flex: 0 0 70% !important; max-width: 70% !important; }
  .img-col  { flex: 0 0 45% !important; max-width: 45% !important; }
  .text-wrapper {
    max-width: 85vw;
  }
  .title { font-size: 2.6rem; }
  .subtitle { font-size: 1.4rem; }
  .hero-layout { background-position: 82% center; }
}
/* PATCH: hero desktop (1201–1600px) — push image right & widen text */
@media (min-width: 1201px) and (max-width: 1600px) {
  .hero-layout { background-position: 85% center; }
  .text-col { flex: 0 0 55% !important; max-width: 55% !important; }
  .img-col  { flex: 0 0 40% !important; max-width: 40% !important; }
  .text-wrapper { max-width: 70vw; }
}

.container,.manuali {
  background-color: #5a1a1a;
}
