html, body {
  min-height: 100%;
  font-family: Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #ffffff;
  background: #1b1b1b;
  margin: 0;
  padding: 0;
}

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

/* === Section 1 – Spacing tokens (edit these to tune spacing/dividers) === */
:root {
  --section1-stack: 1.5rem;        /* base spacing between items */
  --section1-stack-lg: 2rem;       /* extra top space before dividers */
  --section1-divider: rgba(255,255,255,.12); /* divider color on dark bg */
  --section1-maxw: 52ch;           /* max readable width for right column */
}

/* 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;
  backdrop-filter: none;
  padding: 0.5rem 1rem;
  border-radius: 0;
  border: 0;
}

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

}

.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;
  }
}


/* SECTION 1 */

.product-title {
  margin-bottom: 0 !important;
}

.cta-row {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* NOTE: Single source of truth for CTA row alignment & spacing between buttons */
/* NOTE: Neutralize vertical offset from .mt-3 inside CTA row */
.cta-row .hero-btn { margin-top: 0 !important; }

.cta-row {
  align-items: center;           /* NOTE: align buttons on the same baseline */
  justify-content: flex-start;   /* NOTE: keep buttons aligned to the left */
}

.cta-row .hero-btn + .hero-btn {
  margin-left: .5rem;            /* NOTE: horizontal spacing between buttons */
  margin-top: 0 !important;      /* NOTE: cancel vertical gap from utilities */
  padding-top: 0 !important;
  border-top: 0 !important;
}

@media (min-width: 769px) {
  .section-1-wrapper {
    width: 100vw;
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 0;
    height: auto;
    align-items: stretch; /* assicurati che l’altezza sia piena */
  }

  /* Fissa la colonna sticky correttamente */
  aside {
    flex: 0 0 50%;
    position: sticky;
    top: 2rem;
    align-self: flex-start; /* allinea la colonna sticky in alto */
  }

  article {
    flex: 0 0 50%;
  }

  .right-content-switch {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    position: relative;
  }

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

  /* Immagine grande switch */
  .image-container-switch {
    width: 100%;
    height: auto;              /* altezza del contenitore immagine grande (come sezione 2) */
    position: relative;
    box-sizing: border-box;
  }

  /* FIRST SECTION – center first image and add white background (desktop) */
  .image-container-switch {
    background: #ffffff;                  /* white backdrop */
    display: flex;                        /* allow centering */
    flex-direction: column;               /* images stacked vertically */
    align-items: center;                  /* horizontal centering */
    justify-content: flex-start;          /* keep natural flow on Y */
  }
  .image-container-switch img:first-child {
    object-fit: contain !important;       /* do not crop the first image */
    width: auto;                          /* natural width */
    max-width: 100%;
    height: auto;
    max-height: 80vh;                    /* keep within viewport height */
    margin: 7rem auto;                       /* ensure centered */
  }

  /* Colonna sticky destra */
  .left-content-switch {
    padding: 0 8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    min-height: 100vh;
    text-align: left;
    max-width: 100%; /* control the text measure */
  }

  /* === Section 1 – Vertical rhythm & dividers (desktop) === */
  .left-content-switch > * { width: 100%; }
  .left-content-switch > * + * {
    margin-top: var(--section1-stack-lg);
    padding-top: var(--section1-stack);
    border-top: 1px solid var(--section1-divider);
  }

  /* === Extra divider: after color block (desktop) === */
  .left-content-switch .color-wrapper { position: relative; }
  .left-content-switch .color-wrapper::after { display: none !important; }

  /* === Extra divider: after color block (desktop) === */
  .left-content-switch .color-wrapper { position: relative; }
  .left-content-switch .color-wrapper::after { display: none !important; }

  .product-category {
    font-size: 1.5rem;
    color: #888;
    margin-bottom: -1rem;
  }

  .product-title {
    font-size: 4rem;
    font-weight: bold;
    margin-bottom: 1rem;
  }

  .product-description {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .color-wrapper {
    margin-top: 1rem;
  }

  .color-label {
    font-weight: 600;
    font-size: 2rem;
    margin-bottom: 0.5rem;
  }

  .color-dots {
    display: flex;
    gap: 0.5rem;
  }

  .color-dot {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
  }

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


}

@media (max-width: 768px) {
  
  html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
  }

  .section-1-wrapper {
    display: flex;
    width: 100vw;
    flex-direction: column;
    height: auto;
  }

  .right-content-switch {
    display: flex;
    flex-direction: column;
    order: 1;
    width: 100%;
    height: 50vh;
    overflow-x: auto;
    position: relative;
    margin-top: 4.2rem;
  }

  .image-container-switch {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    height: 100%;
    background: #ffffff; /* white backdrop on mobile as well */
  }

  .image-container-switch img {
    flex: 0 0 100%;
    width: 100vw;
    height: 100%;
    scroll-snap-align: start;
    object-fit: cover;
  }

  /* FIRST image: fit container without crop; SECOND stays cover by default */
  .image-container-switch img:first-child {
    object-fit: contain !important;
    background: #ffffff; /* matches desktop requirement */
  }

  .scroll-dots {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 10;
  }

  .scroll-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #ccc;
    transition: background-color 0.3s;
  }

  .scroll-dots .dot.active {
    background-color: #000;
  }

  .left-content-switch {
    order: 2;
    padding: 3rem 1rem; /* adjust freely */
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    --section1-stack: 2rem;       /* uniform spacing between items */
    --section1-stack-lg: 1.5rem;     /* slightly larger before dividers */
    --section1-maxw: 100%;
  }

  /* === Section 1 – Vertical rhythm & dividers (mobile) === */
  .left-content-switch > * { width: 100%; }
  .left-content-switch > * + * {
    margin-top: var(--section1-stack);
    padding-top: var(--section1-stack);
    border-top: 1px solid var(--section1-divider);
  }

  /* === Extra divider: after color block (mobile) === */
  .left-content-switch .color-wrapper { position: relative; }
  .left-content-switch .color-wrapper::after { display: none !important; }

  /* === Extra divider: after color block (mobile) === */
  .left-content-switch .color-wrapper { position: relative; }
  .left-content-switch .color-wrapper::after { display: none !important; }

  .product-category {
    font-size: 1.2rem;
    margin-bottom: -1.5rem;
  }

  .product-title {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 1rem;
  }

  .product-description {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .color-label {
    font-size: 1.25rem;
  }

  .color-dot {
    width: 40px;
    height: 40px;
    border: 1px solid white;
    cursor: pointer;
  }
}

.product-tabs-section {
  width: 100vw;
  height: auto;                 /* FIX: let section grow with content */
  background-color: #000000;
  display: flex;
  justify-content: center;
  align-items: stretch;         /* ensure container expands */
  border-radius: 0;             /* keep straight corners */
  overflow: visible;            /* content stays within flow */
}

.product-tabs-section .container {
  display: flex;
  flex-direction: row;
  width: 100%;
  max-width: 100%;
  height: 100%;
  
}

.accordion {
  width: 100%;
  align-self: center;
  padding: 0 16rem 0 16rem; 
}

.accordion-item {
  margin-bottom: 8rem;
}

.accordion span {
  font-size: 2rem;
  font-weight: 600;
  color: #ffffff;
}

.accordion .accordion-content {
  font-size: 2rem;
  font-weight: 400;
  line-height: 1.6;
  color: #ffffff;
}

.accordion-item:last-of-type {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

@media (max-width: 768px) {

  .product-tabs-section {
    width: 100vw;
    height: auto;                /* FIX mobile: grow with content */
    background-color: #000000;
    display: block;              /* simpler flow on mobile */
    padding: 0;
    border-radius: 0;
    overflow: visible;
  }

  .product-tabs-section .container {
    display: flex;
    flex-direction: row;
    width: 100%;
    max-width: 100%;
    height: 100%;
    padding: 0;
  }

  .accordion {
    width: 100%;
    align-self: center;
    padding: 0; 
  }

  .accordion-item {
    margin-bottom: 8rem;
  }

  .accordion span {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
  }

  .accordion .accordion-content {
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.6;
    color: #ffffff;
  }

}

/* === ACCORDION TABS - DESKTOP === */
.product-tabs-section {
  width: 100vw;
  padding: 0rem 0;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background-color: #000000;
}

@media (min-width: 769px) {
  /* NOTE: Section 2 (accordion) — taller section and centered content on desktop */
  .product-tabs-section {
    min-height: 90vh;           /* molto più alta */
    padding: 6rem 0;            /* respiro sopra/sotto */
    display: flex;
    justify-content: center;
    align-items: center;        /* centra verticalmente il wrapper */
  }

  /* Bootstrap applica .align-items-start !important via classi: forziamo il centro solo qui */
  .product-tabs-section .container {
    align-items: center !important;      /* centra verticalmente il contenuto */
    justify-content: center;             /* centro orizzontale */
  }

  .tabs-animation-wrapper {
    min-height: inherit;                 /* match a .product-tabs-section */
    display: flex;
    flex-direction: column;
    justify-content: center;             /* verticale */
    width: 100%;
    max-width: 1200px;                   /* larghezza massima del blocco */
    margin: 0 auto;                      /* centrato */
  }

  .accordion {
    width: 100%;
    max-width: 960px;                    /* colonna centrata */
    margin: 0 auto;                      /* centrare nelle larghezze ampie */
    padding: 0 2rem;                     /* leggero padding laterale */
  }
}

/* Ensure tabs/dividers keep straight corners on all items */
.accordion, .accordion-item, .accordion-tab { border-radius: 0; }

.tabs-animation-wrapper {
  display: flex;
  flex-direction: column;
  width: 100vw;
  max-width: 100%;
  gap: 2rem;
}

.accordion-tab {
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  position: relative;
}

.accordion-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid #ddd;
  padding: 0.5rem 0;
  padding-bottom: 2rem;
}


.accordion-tab h3 {
  font-size: 2.2rem;
  font-weight: 600;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.accordion-tab h3::after {
  content: "+";
  font-size: 1.8rem;
  transition: transform 0.3s ease;
}

.accordion-tab.active h3::after {
  transform: rotate(45deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;            /* FIX: prevent content from spilling out */
  transition: max-height 0.3s ease;
  font-size: 0.95rem;
  line-height: 1.5;
}

.accordion-tab.active .accordion-content {
  max-height: 500px;
  opacity: 1;
  padding-top: 1.5rem;
}

.accordion-content p {
  font-size: 1.4rem;
  line-height: 1.6;
}

.accordion-header {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-weight: 500;
  border: none;
  background: transparent;
  width: 100%;
}

.accordion-header span {
  transition: transform 0.3s ease;
  display: inline-block;
}

.accordion-icon {
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

/* === RESPONSIVE - MOBILE === */
@media (max-width: 768px) {
  .product-tabs-section {
    padding: 4rem 1.5rem;
  }

  .tabs-animation-wrapper {
    gap: 1.5rem;
  }

  .accordion-tab {
    padding: 1.5rem 0;
  }

  .accordion-tab h3 {
    font-size: 1.6rem;
  }

  .accordion-content p {
    font-size: 1.2rem;
  }
}

/* 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);
  }
}

.image-container-switch::-webkit-scrollbar {
  display: none;
}
.image-container-switch {
  -ms-overflow-style: none;
  scrollbar-width: none;
}


/* 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;
  }
}

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;
}

/* BANNER NICOTINA */
.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;
  }
}

.manuali-section {
  width: 100vw;
  height: 80vh;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

.manuali-section h1 {
  font-weight: bold;
  font-size: 3rem;
}

.container.manuali {
  max-width: 30%;
  min-height: 50vh;
  padding: 5rem;
  background-color: #f0f0f0;
  border: 2px solid #e9e9e9;
  border-radius: 40px;
  align-content: center;
}

.manuali-section select {
  min-width: 65%;
}

#downloadBtn {
  opacity: 1;
  cursor: pointer;
  border-radius: 32px;
  margin-top: 2rem;
  padding: 0.5rem 1.5rem;
}

@media (max-width: 768px) {
  .container, .manuali-section {
    padding: 0;
    margin: 0;
    justify-content: center;
  }

  .container.manuali {
    max-width: 100%;
    min-height: 30vh;
    padding: 0;
    margin: 0 1.2rem;
    background-color: #f0f0f0;
    border: 2px solid #e9e9e9;
    border-radius: 40px;
    justify-content: center;
  }

  .manuali-section h1 {
    font-weight: bold;
    font-size: 2rem;
  }

  .manuali-section select {
    min-width: 70vw;
  }
}

@media (min-width: 769px) and (max-width: 1300px) {
  .container.manuali {
    max-width: 60%;
    min-height: 50vh;
    padding: 3rem;
    border-radius: 32px;
  }

  .manuali-section h1 {
    font-size: 2.5rem;
  }

  .manuali-section select {
    min-width: 80%;
  }

  #downloadBtn {
    font-size: 1rem;
    padding: 0.5rem 1rem;
  }
}

.smaltimento-section {
  width: 100vw;
  height: 80vh;
  display: flex;
  align-items: center;
  padding: 0;
  margin: 0;
}

.smaltimento {
  display: flex;
  flex-direction: row;
  gap: 2rem;
  margin: 4rem 0;
  flex-wrap: wrap;
}

.title-subtitle h2 {
  font-weight: 400;
}

.card-smaltimento {
  flex: 1 1 320px;
  max-width: 360px;
  margin: 0 auto;
  text-align: center;
  font-family: 'Helvetica Neue', sans-serif;
  color: #000;
}

.card-smaltimento-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
}

.card-smaltimento-title h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #fff;
}

.card-smaltimento img {
  width: 80px;
  height: auto;
  margin-bottom: 1rem;
}

.smaltimento-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

td {
  color: white;
}

.smaltimento-table th, .smaltimento-table td {
  border: 1px solid #999;
  padding: 8px;
  font-size: 14px;
  text-align: left;
}

.smaltimento-table th {
  background-color: #f8f8f8;
  font-weight: 600;
}

.card-note {
  color: #d00;
  font-size: 14px;
  text-align: left;
}

@media (max-width: 1024px) {
  .smaltimento-section {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 10rem 0;
  }
}

@media screen and (max-width: 768px) {
  .smaltimento-section {
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0;
    margin: 15rem 0;
  }

  .title-subtitle h1 {
    margin-bottom: 1rem !important;
    padding-bottom: 0rem;
  }

  .title-subtitle h2 {
    font-size: 1.2rem;
    font-weight: 400;
  }

  .smaltimento {
    width: 100vw;
    flex-direction: column;
    align-items: center;
  }

  .card-smaltimento {
    max-width: 90%;
    width: 100%;
  }

  .card-smaltimento h4 {
    font-size: 18px;
  }

  .card-note {
    font-size: 13px;
  }
}

/* === Section 1 – Hero button (white with white outline, hover invert) === */
.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 1.5px solid #ffffff;
  background: transparent;
  color: #ffffff !important;
  text-decoration: none !important;
  width: -moz-fit-content;
  width: fit-content; /* largo quanto il testo */
  max-width: 100%;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .2s ease;
}
.hero-btn:hover,
.hero-btn:focus {
  background: #ffffff;           /* inverti */
  color: #111111 !important;     /* testo scuro su bg bianco */
  border-color: #ffffff;
  transform: translateY(-1px);
  outline: none;
}
.hero-btn.btn { width: -moz-fit-content; width: fit-content; }
@media (max-width: 768px){
  .hero-btn { padding: 0.6rem 1rem; font-size: 0.95rem; }
}

/* ================================
   PAGE: Media – Cards + Lightbox
   Scopo: 3 card con video e overlay fullscreen
================================== */

.media-page { width: 100%; padding: 6rem 4rem; background: #000; }
.media-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  align-items: stretch;
}
.media-card {
  background: #0e0e0e;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.media-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.35); }

.media-title { font-size: 1.25rem; font-weight: 600; margin: 0 0 .25rem; }
.media-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: 12px;
  object-fit: cover;
  background: #111;
  cursor: pointer;
  outline: none;
  border: 1px solid rgba(255,255,255,.08);
}
.media-btn { align-self: flex-start; }

/* Lightbox */
.video-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000; /* coerente con offcanvas */
  padding: 2rem;
}
.video-lightbox.is-open { display: flex; }
.video-stage {
  width: min(1200px, 90vw);
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
#video-player {
  width: 100%;
  height: auto;
  max-height: 85vh;
  border-radius: 12px;
  background: #000;
}
.video-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(0,0,0,.4);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.video-close:hover { background: rgba(255,255,255,.12); }

/* Responsive */
@media (max-width: 1200px) {
  .media-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .media-page { padding: 5rem 1rem; }
  .media-grid { grid-template-columns: 1fr; gap: 1rem; }
  .media-card { border-radius: 12px; padding: 1rem; }
}

.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%;
  }
}
/* NOTE: Normalize CTA buttons inside Section 1 so both look identical */
.left-content-switch .cta-row .hero-btn,
.left-content-switch .cta-row .btn.hero-btn {
  display: inline-flex !important;      /* override .btn inline-block */
  align-items: center;                   /* vertically center text */
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem !important;  /* consistent pill size */
  border-radius: 9999px !important;     /* full pill shape */
  border: 2px solid #ffffff !important; /* same outline */
  background: #000000 !important;       /* black fill */
  color: #ffffff !important;            /* white text */
  text-decoration: none !important;
  line-height: 1 !important;            /* avoid .btn line-heights */
  font-weight: 600;                      /* ensure same weight */
  box-shadow: none !important;           /* neutralize .btn shadows */
}

.left-content-switch .cta-row .hero-btn:hover,
.left-content-switch .cta-row .hero-btn:focus,
.left-content-switch .cta-row .btn.hero-btn:hover,
.left-content-switch .cta-row .btn.hero-btn:focus {
  background: #ffffff !important;
  color: #111111 !important;
  border-color: #ffffff !important;
  outline: none;
}

.media-description {
  padding: 5rem;
}

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


