/* ======= BASE SETUP ======= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  overflow: hidden;
  font-family: 'Montserrat', sans-serif;
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="10" fill="none" stroke="white" stroke-width="2"/></svg>'), auto;
}
/* Custom Cursor per elementi cliccabili */
a, button, .menu-toggle, .menu-close {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="32" height="32" viewBox="0 0 32 32"><circle cx="16" cy="16" r="10" fill="white" opacity="0.8"/></svg>'), pointer;
}
/* Hide scrollbar */
body::-webkit-scrollbar {
  display: none;
}
body {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
/* ======= MENU (sX) ======= */
.menu-toggle {
  position: fixed;
  top: 2rem;
  left: 2rem;
  z-index: 100;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  transition: all 0.3s ease;
  cursor: pointer;
}
.menu-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}
.menu-text {
  display: block;
}
/* ======= ACCOUNT BUTTON (dx) ======= */
.navbar-right {
  position: fixed;
  top: 2rem;
  right: 2rem;
  z-index: 100;
}
.account-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  color: white;
  font-size: 1.5rem;
  transition: all 0.3s ease;
  text-decoration: none;
}
.account-icon:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}
/* = MENU OVERLAY = */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.95);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  overflow-y: auto;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}
/* = MENU CLOSE BUTTON = */
.menu-close {
  position: absolute;
  top: 2rem;
  left: 2rem;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}
.menu-close:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}
.close-text {
  display: block;
  text-align: center;
  line-height: 1.2;
}
/* = MENU OVERLAY = */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* --- Animated background --- */
.menu-bg-anim {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.menu-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* If the webp is an animated image, it plays automatically */
  display: block;
  transform: scale(1.04); /* slight oversize to avoid edge flicker */
}
/* Dark veil on top of the background image */
.menu-bg-veil {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
/* = MENU CONTENT = */
.menu-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(1.2rem, 2.5vh, 2.5rem);
  padding: clamp(2rem, 6vh, 4.5rem) 2rem clamp(1.5rem, 3vh, 2.5rem);
  text-align: center;
  width: 100%;
  max-width: 1200px;
  margin: auto;
}
.menu-section {
  position: relative;
  width: 100%;
  cursor: pointer;
}
.menu-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 4vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.18);
  margin: 0;
  text-transform: uppercase;
  transition: color 0.3s ease;
  line-height: 1.15;
}
.menu-section:hover .menu-title {
  color: rgba(255, 255, 255, 0.45);
}
.menu-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.55rem, 0.85vw, 0.78rem);
  font-weight: 400;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.35rem;
  text-transform: uppercase;
  line-height: 1.4;
}
.menu-title::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  max-width: 360px;
  height: 1px;
  background: rgba(255, 255, 255, 0.18);
}
/* = MENU FOOTER = */
.menu-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  margin-top: clamp(0.6rem, 2vh, 1.5rem);
  width: 100%;
}
.menu-links {
  display: flex;
  gap: clamp(1.5rem, 3.5vw, 2.5rem);
  flex-wrap: wrap;
  justify-content: center;
}
.menu-link {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.7rem, 1.2vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.15em;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.3s ease;
}
.menu-link:hover {
  color: white;
}
.menu-logo {
  margin-top: 0.3rem;
}
.footer-logo {
  max-width: clamp(75px, 12vw, 100px);
  height: auto;
  opacity: 0.8;
}
/* = CLOSE BUTTON (assicurati sia sopra lo sfondo) = */
.menu-close {
  position: absolute;
  top: clamp(1rem, 3vh, 1.8rem);
  right: clamp(1rem, 3vw, 2rem);
  z-index: 2;
  background: none;
  border: none;
  cursor: pointer;
}
/* = RESPONSIVE = */
@media (max-width: 600px) {
  .menu-title {
    font-size: clamp(1.4rem, 8vw, 2.2rem);
    letter-spacing: 0.1em;
  }
  .menu-subtitle {
    font-size: 0.6rem;
    letter-spacing: 0.15em;
  }
  .menu-content {
    gap: clamp(1rem, 2vh, 1.8rem);
  }
}
/* ======= HERO SECTION ======= */
.hero-section {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  z-index: 1;
}
body.vertical-active .hero-section {
  position: relative;
  height: 100vh;
  flex-shrink: 0;
}
/* ======= SECTIONS WRAPPER (4 sottosezioni orizzontali) ======= */
.sections-wrapper {
  display: flex;
  width: 400vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  transition: transform 1.4s cubic-bezier(0.65, 0, 0.35, 1);
}
/* ======= SUBSECTIONS COMUNI ======= */
.section {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.video-background {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}
.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.2);
  z-index: 2;
}
/* ======= HERO CONTENT (testo fisso centrato) ======= */
.content {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  text-align: center;
  color: white;
  width: 90%;
  max-width: 900px;
  pointer-events: none;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}
.hero-title-wrapper {
  overflow: visible;
  display: block;
}
.hero-title {
  font-family: 'Montserrat', 'Arial Black', sans-serif;
  font-size: clamp(1.8rem, 4.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  text-transform: uppercase;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
  transform: scaleX(0.85);
  transform-origin: center;
}
.hero-title .word {
  display: inline-block;
  opacity: 0;
  transform: translateX(-30px);
  white-space: nowrap;
}
/* ======= LOGO ======= */
.logo-container {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  text-align: center;
  width: 100%;
  pointer-events: none;
}
.brand-logo {
  max-width: 200px; /* era 150px */
  width: auto;
  height: auto;
  filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}
/* ======= CTA BUTTON ======= */
.cta-button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.7rem 1.8rem;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50px;
  color: white;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.3s ease;
  pointer-events: auto;
}
.cta-button:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: white;
  transform: scale(1.05);
}

/* ======= VERTICAL SECTIONS — struttura base ======= */
.vertical-section {
  /* Layout */
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: #000;

  /* Nascosta finché non attiva — FIX: una sola dichiarazione */
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
body.vertical-active .vertical-section {
  visibility: visible;
  opacity: 1;
}
/* ======= IMAGE BACKGROUND ======= */
.vertical-section .image-background {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  object-position: center;
  z-index: 1;
}
/* ======= OVERLAY — FIX: riabilitato con gradiente per leggibilità ======= */
.vertical-section .overlay {
  display: block; /* FIX: era "none", rendeva il testo illeggibile su immagini chiare */
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.35) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.40) 100%
  );
  z-index: 2;
}
/* ======= CONTENUTO VERTICALE ======= */
.vertical-content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: #fff;
  width: 85%;
  max-width: 700px;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0; /* gestiamo i margini sui singoli elementi */
}
/* ======= TITOLO VERTICALE ======= */
.vertical-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  /* FIX: rimosso scaleX(0.9) hardcoded — ora usiamo letter-spacing per condensare */
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin: 0 0 1.5rem;
  text-transform: uppercase;
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.5);
}
/* ======= TESTO VERTICALE ======= */
.vertical-text {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.9rem, 1.8vw, 1.1rem);
  font-weight: 400;
  line-height: 1.65;
  /* FIX: rimossa sovrascrizione margin — ora un solo shorthand */
  margin: 0 auto 2rem;
  max-width: 560px;
  text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.5);
  letter-spacing: 0.01em;
}
/* ======= RESPONSIVE ======= */
@media (max-width: 1024px) {
  .vertical-content {
    max-width: 650px;
  }
}
@media (max-width: 768px) {
  .vertical-title {
    font-size: clamp(1.7rem, 6vw, 3rem);
    margin-bottom: 1.2rem;
    letter-spacing: -0.03em;
  }

  .vertical-text {
    font-size: clamp(0.85rem, 2.2vw, 1rem);
    margin-bottom: 1.5rem;
    max-width: 500px;
  }

  .vertical-content {
    padding: 2.5rem 1.2rem;
    max-width: 90%;
  }
}
@media (max-width: 480px) {
  .vertical-title {
    font-size: clamp(1.4rem, 5.5vw, 2.2rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.05;
  }

  .vertical-text {
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    margin-bottom: 1.2rem;
    max-width: 100%;
    line-height: 1.5;
  }

  .vertical-content {
    padding: 2rem 1rem;
    width: 90%;
  }
}
@media (max-height: 600px) {
  .vertical-title {
    font-size: clamp(1.2rem, 4.5vw, 1.8rem);
    margin-bottom: 0.8rem;
  }

  .vertical-text {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    margin-bottom: 1rem;
    line-height: 1.4;
  }

  .vertical-content {
    padding: 1.5rem 1rem;
  }
}
/* ======= SECTION 5 - about ======= */
.section5 {
  background-color: #000;
  position: relative;
}
.section5 .vertical-content {
  text-align: center;
  align-items: center;
  padding: clamp(2rem, 4vh, 3.5rem) clamp(2rem, 6vw, 6rem) clamp(1.5rem, 3vh, 2.5rem); /* ridotto */
  gap: 0;
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}
.s5-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.45em;
  color: rgba(255, 255, 255, 0.3);
  text-transform: uppercase;
  margin-bottom: 0.9rem; /* ridotto da 1.8rem */
}
.section5 .vertical-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  color: #fff;
  text-shadow: none;
}
.s5-divider {
  width: 2rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.25);
  margin: 1rem auto 1.2rem; /* ridotto da 1.8rem/2.2rem */
}
.s5-body-text {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.85rem, 1.3vw, 1rem);
  font-weight: 300;
  line-height: 1.75; /* leggermente ridotto */
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.52);
  max-width: 580px;
  margin: 0 auto 0;
  text-shadow: none;
}
.s5-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 1.2rem;    /* ridotto */
  margin-bottom: 1.5rem; /* ridotto da 4rem */
}
.s5-card {
  padding: clamp(1rem, 2vh, 1.8rem) clamp(1.5rem, 2.5vw, 2.5rem); /* ridotto */
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.s5-card-number {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: rgba(255, 255, 255, 0.07);
  line-height: 1;
  margin-bottom: 0.7rem; /* ridotto da 1.4rem */
}
.s5-card-divider {
  width: 1.5rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin-bottom: 0.7rem; /* ridotto da 1.2rem */
}
.s5-card-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  color: rgba(255, 255, 255, 0.45);
  text-transform: uppercase;
  margin: 0 0 0.5rem; /* ridotto da 0.9rem */
}
.s5-card-text {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.78rem, 1.1vw, 0.9rem);
  font-weight: 300;
  line-height: 1.65; /* leggermente ridotto */
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.38);
  margin: 0;
}
@media (max-width: 680px) {
  .section5 .vertical-content {
    padding: clamp(1.5rem, 3vh, 2.5rem) clamp(1.2rem, 4vw, 2rem) clamp(1rem, 2vh, 1.5rem); /* ridotto responsive */
  }
  .s5-cards {
    grid-template-columns: 1fr;
    margin-bottom: 1.2rem; /* ridotto responsive */
  }
  .s5-card {
    align-items: center;
    text-align: center;
    padding: clamp(0.8rem, 1.5vh, 1.2rem) clamp(1rem, 3vw, 1.5rem); /* molto compatto su mobile */
  }
  .s5-card-divider {
    margin: 0 auto 0.7rem;
  }
}
/* ======= SECTION9 FOOTER SPLIT ======= */
.section9 {
  background-color: #000 !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  min-height: 100vh;
  padding: 0 !important;
}
/* RIGA SUPERIORE — sfondo nero */
.footer-top-row {
  background-color: #000;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  box-sizing: border-box;
}
.section9 .footer-container {
  width: 100%;
  max-width: 1100px;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
}
.section9 .footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}
.section9 .footer-community h2,
.section9 .footer-newsletter h2,
.section9 .footer-social h2 {
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  color: #fff;
}
.section9 .footer-community p,
.section9 .footer-newsletter p {
  font-size: 0.82rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.65);
}
.section9 .newsletter-form {
  display: flex;
  align-items: center;
  margin-top: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
  padding-bottom: 0.4rem;
}
.section9 .newsletter-form input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  flex: 1;
  padding: 0.3rem 0;
}
.section9 .newsletter-form input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}
.section9 .newsletter-form button {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  transition: opacity 0.2s;
}
.section9 .newsletter-form button:hover {
  opacity: 0.5;
}
.section9 .popup-message {
  font-size: 0.78rem;
  color: #7fff7f;
  margin-top: 0.5rem;
  display: none;
}
.section9 .privacy-links {
  margin-top: 1rem;
  display: flex;
  gap: 1.2rem;
}
.section9 .privacy-links a {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: underline;
  transition: color 0.2s;
}
.section9 .privacy-links a:hover {
  color: #fff;
}
.section9 .social-links {
  display: flex;
  gap: 0.9rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}
.section9 .social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  transition: border-color 0.2s, background 0.2s;
}
.section9 .social-links a:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}
.section9 .social-links svg {
  width: 17px;
  height: 17px;
}
.section9 .footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1.5rem;
}
.section9 .footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  flex-wrap: wrap;
  gap: 0.5rem;
}
/* RIGA INFERIORE — testo scorrevole */
.footer-brand-row {
  background-color: #fff;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 2rem 0;
  white-space: nowrap;
  cursor: default;
}
.footer-marquee {
  display: flex;
  flex-shrink: 0;
  animation: marquee 35s linear infinite;
  will-change: transform;
}
.footer-marquee-text {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(4rem, 14vw, 11rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #000;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
  transform: scaleX(0.88);
  transform-origin: center;
  padding-right: 3rem;
  flex-shrink: 0;
}
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* Responsive */
@media (max-width: 768px) {
  .footer-marquee-text {
    font-size: clamp(2.5rem, 16vw, 6rem);
    padding-right: 2rem;
  }
  .footer-brand-row {
    padding: 1.5rem 0;
  }
}
@media (max-width: 480px) {
  .footer-marquee-text {
    font-size: clamp(2rem, 14vw, 4rem);
    padding-right: 1.5rem;
  }
}
/* ======= RESPONSIVE FOOTER SPLIT ======= */
@media (max-width: 768px) {
  .section9 .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section9 .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .footer-top-row {
    padding: 3rem 1.5rem;
  }

  .footer-brand-name {
    font-size: clamp(3.5rem, 20vw, 8rem);
  }
}
@media (max-width: 480px) {
  .footer-top-row {
    padding: 2.5rem 1rem;
  }

  .footer-brand-name {
    font-size: clamp(2.8rem, 22vw, 6rem);
  }
}

/* PRIVACY AND COOKIES DOCUMENTS */
  .privacy-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    overflow-y: auto;
    padding: 2rem 1rem;
  }
  .privacy-modal.show {
    display: flex;
    align-items: flex-start;
    justify-content: center;
  }
  .privacy-modal-content {
    background: #111;
    color: #e0e0e0;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    max-width: 760px;
    width: 100%;
    margin: auto;
    overflow: hidden;
  }
  .privacy-modal-header {
    background: #0a0a0a;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .privacy-modal-header h1 {
    margin: 0;
    font-size: 1.4rem;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 0.1em;
    color: #fff;
  }
  .privacy-modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
  }
  .privacy-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #fff;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
  }
  .privacy-content h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ccc;
    margin-top: 1rem;
    margin-bottom: 0.3rem;
  }
  .privacy-content p,
  .privacy-content li {
    font-size: 0.88rem;
    line-height: 1.7;
    color: #bbb;
  }
  .privacy-content ul {
    padding-left: 1.4rem;
    margin: 0.5rem 0;
  }
  .info-box {
    background: rgba(255,255,255,0.05);
    border-left: 3px solid #0091c5;
    border-radius: 6px;
    padding: 1rem 1.2rem;
    margin: 1rem 0;
  }
  .info-box p {
    margin: 0;
  }
  .privacy-modal-close-btn {
    display: block;
    margin: 2rem auto 0;
    padding: 0.75rem 2.5rem;
    background: transparent;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 30px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .privacy-modal-close-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
  }

/* ======= SECTION 7 ======= */
.section-7 {
    background: #000;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(4rem, 8vh, 6rem) clamp(1.5rem, 5vw, 4rem);
    box-sizing: border-box;
  }
.section7-inner {
  display: flex;
  flex-direction: row;
  align-items: center; /* ← era flex-start, ora center */
  gap: clamp(2rem, 5vw, 5rem);
  max-width: 1200px;
  width: 100%;
}
.text-content7 {
  flex: 1;
  color: #fff;
  align-self: center; /* ← forza il centramento verticale rispetto al form */
}
  .text-content7 h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1.8rem, 3.5vw, 3rem);
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin: 0 0 1.5rem;
    line-height: 1.2;
    color: #fff;
  }
  .text-content7 p {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
  }
  .calculator-wrapper {
    flex: 1;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
  }
  .calculator-wrapper h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 1.5rem;
  }
  .tab-buttons {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
  }
  .tab-btn {
    flex: 1;
    padding: 0.6rem 1rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.6);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
  }
  .tab-btn.active,
  .tab-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
    color: #fff;
  }
  /* FORM */
  .form-group {
    margin-bottom: 1.2rem;
  }
  .form-group label {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 0.4rem;
  }

  .form-group input[type="number"] {
    width: 100%;
    padding: 0.65rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
    outline: none;
  }
  .form-group input[type="number"]:focus {
    border-color: rgba(255, 255, 255, 0.5);
  }
  .checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1.2rem;
  }
  .checkbox-group input[type="checkbox"] {
    accent-color: #fff;
    width: 16px;
    height: 16px;
    cursor: pointer;
  }
  .checkbox-group label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
  }
  .calculate-btn {
    width: 100%;
    padding: 0.9rem 1.5rem;
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 30px;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.5rem;
  }
  .calculate-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
  }
  .results {
    display: none;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    gap: 0.8rem;
    flex-direction: column;
  }
  .results.show {
    display: flex;
  }
  .result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .result-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .result-value {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.05em;
  }
  /* RESPONSIVE */
  @media (max-width: 768px) {
  .section7-inner {
    flex-direction: column;
    align-items: stretch; /* ← elementi a piena larghezza su mobile */
  }

  .text-content7 {
    order: 1; /* testo prima */
  }

  .calculator-wrapper {
    order: 2; /* form dopo */
  }
}
/* ======= SECTION 10 — BLOG (vertical-section con layout custom) ======= */
.section10 {
  /* Sovrascrive il flex centrato della vertical-section base */
  align-items: flex-start;
  justify-content: flex-start;
  flex-direction: column;

  background-color: #0d0d0d;
  padding: 5rem 3rem 4rem;
}
.section10-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 3;
}
.section10-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 2px 4px 12px rgba(0, 0, 0, 0.5);
  margin: 0;
}
/* Frecce navigazione slider */
.slider-nav-container {
  display: flex;
  gap: 0.6rem;
}
.slider-nav {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.25s, background 0.25s;
  position: relative;
}
.slider-nav::after {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
}
.slider-nav.prev::after { transform: rotate(-135deg) translate(-2px, 2px); }
.slider-nav.next::after { transform: rotate(45deg)   translate(-2px, 2px); }
.slider-nav:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.slider-nav.disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}
/* ======= SLIDER ======= */
.slider-container {
  overflow: hidden;
  position: relative;
  z-index: 3;
  width: 100%;
}
.news-slider {
  overflow: hidden;
}
.news-slider__wrp {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.45s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}
.news-slider__item {
  flex: 0 0 calc(33.333% - 1rem);
  min-width: 0;
}
/* ======= CARD ======= */
.news__item {
  display: flex;
  flex-direction: column;
  background: #161616;
  border: 1px solid #222;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: border-color 0.25s, transform 0.25s;
  height: 100%;
}
.news__item:hover {
  border-color: #444;
  transform: translateY(-4px);
}
.news__img {
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.news__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.news__item:hover .news__img img {
  transform: scale(1.04);
}
.news-card-body {
  padding: 1.2rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}
.news-date {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}
.news-date__title {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  line-height: 1;
}
.news-date__txt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #888;
}
.news__title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
  color: #fff;
}
.news__txt {
  font-size: 0.82rem;
  font-weight: 400;
  line-height: 1.6;
  color: #aaa;
  flex: 1;
}
/* ======= MODAL — DARK ======= */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(6px);
}
.modal.show { display: flex; }
.modal-content {
  background: #111;
  border: 1px solid #2a2a2a;
  border-radius: 16px;
  width: 100%;
  max-width: 780px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.35s cubic-bezier(.4, 0, .2, 1);
  position: relative;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1);    }
}
.modal-header {
  padding: 1.8rem 3.5rem 1.2rem 2rem;
  border-bottom: 1px solid #222;
  flex-shrink: 0;
}
.modal-date {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #666;
  margin-bottom: 0.6rem;
}
.modal-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  font-weight: 900;
  line-height: 1.25;
  color: #fff;
}
.modal-body {
  overflow-y: auto;
  padding: 1.8rem 2rem 2rem;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: #333 transparent;
}
.modal-body::-webkit-scrollbar       { width: 6px; }
.modal-body::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
.modal-article p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  line-height: 1.75;
  color: #ccc;
  margin-bottom: 1.1rem;
}
.modal-article h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  margin: 1.5rem 0 0.6rem;
}
.modal-article ul {
  padding-left: 1.4rem;
  margin-bottom: 1.1rem;
}
.modal-article ul li {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #bbb;
  margin-bottom: 0.3rem;
}
.modal-article strong { color: #fff; }
.highlight {
  background: #1c1c1c;
  border-left: 3px solid #555;
  border-radius: 6px;
  padding: 1rem 1.2rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #bbb;
  margin: 1.5rem 0 1.2rem;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem 1.3rem;
  border-top: 1px solid #1e1e1e;
  flex-shrink: 0;
}
.modal-nav {
  display: flex;
  gap: 0.5rem;
}
.modal-nav-btn {
  width: 38px;
  height: 38px;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.modal-nav-btn::after {
  content: '';
  display: block;
  width: 9px;
  height: 9px;
  border-top: 2px solid #ccc;
  border-right: 2px solid #ccc;
}
.modal-nav-btn.mprev::after { transform: rotate(-135deg) translate(-1px, 1px); }
.modal-nav-btn.mnext::after { transform: rotate(45deg)   translate(-1px, 1px); }
.modal-nav-btn:hover { background: #2c2c2c; border-color: #555; }
.modal-nav-btn.disabled { opacity: 0.3; cursor: default; pointer-events: none; }
.modal-close-btn {
  background: transparent;
  border: 1px solid #333;
  color: #aaa;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}
.modal-close-btn:hover { border-color: #666; color: #fff; }
.modal-x {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  background: #1e1e1e;
  border: 1px solid #333;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: 1rem;
  line-height: 1;
  transition: background 0.2s, color 0.2s;
  z-index: 10;
}
.modal-x:hover { background: #2c2c2c; color: #fff; }
/* ======= RESPONSIVE — vertical-section base ======= */
@media (max-width: 1024px) {
  .vertical-content { max-width: 650px; }
  .news-slider__item { flex: 0 0 calc(50% - 0.75rem); }
}
@media (max-width: 768px) {
  .vertical-title {
    font-size: clamp(1.7rem, 6vw, 3rem);
    margin-bottom: 1.2rem;
    letter-spacing: -0.03em;
  }
  .vertical-text {
    font-size: clamp(0.85rem, 2.2vw, 1rem);
    margin-bottom: 1.5rem;
    max-width: 500px;
  }
  .vertical-content {
    padding: 2.5rem 1.2rem;
    max-width: 90%;
  }
  .section10 { padding: 3.5rem 1.5rem 3rem; }
  .section10-title { font-size: clamp(1.7rem, 6vw, 3rem); }
}
@media (max-width: 600px) {
  .section10 { padding: 3rem 1.2rem 2.5rem; }
  .news-slider__item { flex: 0 0 100%; }

  .modal-header { padding: 1.4rem 3rem 1rem 1.2rem; }
  .modal-body   { padding: 1.2rem 1.2rem 1.5rem; }
  .modal-footer { padding: 0.8rem 1.2rem 1rem; }
}
@media (max-width: 480px) {
  .vertical-title {
    font-size: clamp(1.4rem, 5.5vw, 2.2rem);
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    line-height: 1.05;
  }
  .vertical-text {
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
    margin-bottom: 1.2rem;
    max-width: 100%;
    line-height: 1.5;
  }
  .vertical-content {
    padding: 2rem 1rem;
    width: 90%;
  }
}
@media (max-height: 600px) {
  .vertical-title {
    font-size: clamp(1.2rem, 4.5vw, 1.8rem);
    margin-bottom: 0.8rem;
  }
  .vertical-text {
    font-size: clamp(0.75rem, 2vw, 0.9rem);
    margin-bottom: 1rem;
    line-height: 1.4;
  }
  .vertical-content { padding: 1.5rem 1rem; }

  /* section10 altezza ridotta */
  .section10 { padding: 2rem 2rem 1.5rem; min-height: auto; }
  .section10-header { margin-bottom: 1.5rem; }
}

/* ======= SECTION 6 — CALENDAR BUTTON ======= */
.cta-calendar {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.75);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(0.85rem, 1.6vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.9rem 2rem;
  border-radius: 4px;
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
}
.cta-calendar:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  transform: translateY(-2px);
}
.cta-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.calendar-note {
  margin-top: 1.2rem !important;
  margin-bottom: 0 !important;
  font-size: 0.78rem !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.6);
  text-shadow: none;
}
@media (max-width: 480px) {
  .cta-calendar {
    font-size: 0.8rem;
    padding: 0.8rem 1.5rem;
  }

  .calendar-note {
    font-size: 0.7rem !important;
    line-height: 1.6;
  }
}
.section6 .vertical-content {
  text-align: center;
  align-items: center;
  width: 100%;
}

/* 
[17:36, 26/02/2026] Popá: 5. NEL foot fai tesco scorrevole con scritto LU CER COMUNITA' ENERGETICA*/