/* ==========================================================================
   MAIN STYLESHEET - SWITCH LUCE E GAS
   Layouts, Navigation, Components, Offer Cards, Modals, Footer
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* --------------------------------------------------------------------------
   TOP NOTIFICATION BAR (EMERGENZE & ASSISTENZA RAPIDA)
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--color-navy);
  color: #FFFFFF;
  font-size: 0.84rem;
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  border-image: var(--gradient-brand-rainbow) 1;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-contacts {
  display: flex;
  align-items: center;
  gap: 20px;
}

.topbar-contacts a {
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.topbar-contacts a:hover {
  color: var(--color-yellow);
}

.topbar-badge {
  background: var(--gradient-brand-rainbow);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   HEADER & MAIN NAVIGATION (RIGOROSAMENTE INVARIATA)
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-normal);
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 84px;
}

.brand-logo {
  display: flex;
  align-items: center;
}

.brand-logo img {
  height: 52px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.brand-logo:hover img {
  transform: scale(1.02);
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 8px;
}

.nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--color-navy);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-luce);
  background: var(--color-luce-subtle);
}

/* Accesso Area Cliente CTA Button */
.btn-area-clienti {
  background: linear-gradient(135deg, var(--color-navy) 0%, #173860 100%);
  color: #FFFFFF !important;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 11px 22px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 145, 255, 0.35);
  box-shadow: 0 4px 14px rgba(10, 37, 64, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-area-clienti:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 145, 255, 0.35);
  background: linear-gradient(135deg, #173860 0%, var(--color-gas) 100%);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--color-navy);
}

/* --------------------------------------------------------------------------
   BUTTONS & CTAs (COLORI VIBRANTI DEL NUOVO LOGO)
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--gradient-luce);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(255, 106, 0, 0.35);
}

.btn-primary:hover {
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 106, 0, 0.45);
  filter: brightness(1.05);
}

.btn-web-portal {
  background: var(--gradient-gas);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 145, 255, 0.35);
}

.btn-web-portal:hover {
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 145, 255, 0.45);
  filter: brightness(1.05);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--color-navy);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--color-gas);
  color: var(--color-gas);
  background: var(--color-gas-subtle);
}

.btn-outline {
  background: transparent;
  color: var(--color-navy);
  border: 2px solid var(--color-navy);
}

.btn-outline:hover {
  background: var(--color-navy);
  color: #FFFFFF;
}

.btn-outline-light {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-outline-light:hover {
  background: #FFFFFF;
  color: var(--color-navy);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1.08rem;
}

/* --------------------------------------------------------------------------
   HERO SECTION & PARTICLES CANVAS WRAPPER (FEDELE ALL'ORIGINALE)
   -------------------------------------------------------------------------- */
.hero-particles-section {
  position: relative;
  min-height: 82vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #FFFFFF;
  overflow: hidden;
  padding: 50px 0 35px;
}

#particles-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: auto;
}

.hero-content-wrapper {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  width: 100%;
}

/* Tipografia originale a lettere spaziate della citazione dello screenshot */
.hero-original-quote-block {
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.hero-quote-lines {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-family: var(--font-heading);
  color: #122842;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  line-height: 1.8;
  text-transform: uppercase;
  margin-bottom: 26px;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-quote-lines span {
  display: block;
  white-space: nowrap;
}

.hero-quote-lines .quote-highlight {
  font-size: 1.35rem;
  letter-spacing: 0.42em;
  color: #122842;
  font-weight: 700;
}

.hero-subtagline {
  font-size: 1.02rem;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto 26px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}

/* Colonna Logo Destra */
.hero-visual-col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-original-logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  filter: drop-shadow(0 16px 32px rgba(16, 44, 64, 0.08));
}

.hero-original-logo-wrap img {
  max-height: 330px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-normal);
}

.hero-original-logo-wrap:hover img {
  transform: scale(1.02);
}

.hero-animation-controls {
  position: absolute;
  bottom: 14px;
  right: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.9);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.hero-animation-controls button {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-navy);
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  font-size: 0.78rem;
}

/* --------------------------------------------------------------------------
   FLAGSHIP WEB ACTIVATION SHOWCASE (ISPIRATO AL MOCKUP UTENTE)
   -------------------------------------------------------------------------- */
.web-flagship-section {
  position: relative;
  background: radial-gradient(ellipse at 50% 30%, #F8FAFD 0%, #EDF4FB 60%, #E2EDF8 100%);
  padding: 84px 0 92px;
  overflow: hidden;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.web-flagship-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 56px;
}

@media (max-width: 991px) {
  .web-flagship-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.flagship-info-col h2 {
  font-size: 2.3rem;
  color: var(--color-navy);
  margin: 14px 0 16px;
  font-family: var(--font-heading);
  line-height: 1.2;
}

.flagship-info-col p {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

.flagship-perks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.flagship-perk-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-navy);
}

.flagship-perk-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #E8F5E9;
  color: #2E7D32;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* LA CARD FLAGSHIP ESATTAMENTE COME NEL MOCKUP DELLO SCREENSHOT */
.web-flagship-card {
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 34px 32px 30px;
}

.flagship-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FEF9EB;
  color: #B45309;
  border: 1px solid rgba(242, 187, 46, 0.35);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.flagship-title {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--color-navy);
  font-family: var(--font-heading);
  margin-bottom: 6px;
}

.flagship-sub {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: 8px;
}

.flagship-info-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0E7490;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin-bottom: 22px;
}

.flagship-pills-bar {
  display: flex;
  gap: 6px;
  background: #F1F5F9;
  padding: 5px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.flagship-pill-btn {
  flex: 1;
  border: none;
  background: transparent;
  padding: 9px 12px;
  border-radius: var(--radius-full);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.flagship-pill-btn:hover {
  color: var(--color-navy);
}

.flagship-pill-btn.active {
  background: #FFFFFF;
  color: var(--color-navy);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

.flagship-rates-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 22px;
}

.flagship-rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 14px 18px;
  transition: all 0.25s ease;
}

.rate-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.rate-icon {
  font-size: 1.25rem;
}

.rate-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-navy);
}

.rate-calc {
  font-size: 0.85rem;
  color: #64748B;
  font-weight: 500;
}

.rate-fee {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-navy);
  font-family: var(--font-heading);
}

.flagship-cta-wrap {
  text-align: center;
}

.btn-flagship-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 15px 24px;
  background: #0E1E2C;
  color: #FFFFFF;
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 16px;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(14, 30, 44, 0.25);
  transition: all 0.25s ease;
}

.btn-flagship-dark:hover {
  background: #172F44;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(14, 30, 44, 0.35);
  color: #FFFFFF;
}

.flagship-disclaimer {
  font-size: 0.78rem;
  color: #94A3B8;
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   OFFER CARDS & CATALOG GRIDS WITH RICH AMBIENT BACKGROUND & RESPONSIVE LAYOUT
   -------------------------------------------------------------------------- */
.section-padding {
  padding: 72px 0;
}

.offers-catalog-section {
  position: relative;
  background: linear-gradient(180deg, #F3F7FA 0%, #FFFFFF 25%, #F8FAFC 70%, #EEF4F8 100%);
  overflow: hidden;
  padding: 76px 0 88px;
  border-top: 1px solid rgba(10, 37, 64, 0.05);
  border-bottom: 1px solid rgba(10, 37, 64, 0.05);
}

/* Sfondi Ambientali e Glow Dinamici Ispirati alla Palette Switch Luce & Gas */
.offers-catalog-section::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(236, 117, 64, 0.09) 0%, rgba(230, 46, 107, 0.04) 40%, transparent 70%);
  filter: blur(50px);
  pointer-events: none;
  z-index: 0;
}

.offers-catalog-section::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, rgba(37, 68, 146, 0.10) 0%, rgba(74, 46, 128, 0.05) 40%, rgba(72, 171, 147, 0.03) 70%, transparent 75%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

/* --------------------------------------------------------------------------
   DEDICATED SHOWCASE SECTIONS: COLORI DEL LOGO IN LEGGEREZZA & EFFETTI WOW
   -------------------------------------------------------------------------- */

/* SEZIONE LUCE: Aria Luminosa, Bagliori Solari e Sfumature del Logo */
.section-luce-showcase {
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, #FFFFFF 0%, #FDFCF9 40%, #FFF9F2 80%, #FFF5EC 100%);
  overflow: hidden;
  padding: 88px 0 100px;
  border-top: 1px solid rgba(236, 117, 64, 0.15);
  border-bottom: 1px solid rgba(242, 187, 46, 0.18);
}

/* Bagliori e aurore con i colori del logo in leggerezza e trasparenza */
.section-luce-showcase::before {
  content: '';
  position: absolute;
  top: -140px;
  right: -80px;
  width: 780px;
  height: 780px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 187, 46, 0.14) 0%, rgba(236, 117, 64, 0.09) 35%, rgba(230, 46, 107, 0.05) 60%, transparent 75%);
  filter: blur(75px);
  pointer-events: none;
  z-index: 0;
  transform: translate3d(0, 0, 0);
  animation: luceAuraFloat1 16s ease-in-out infinite alternate;
}

.section-luce-showcase::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -100px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(72, 171, 147, 0.10) 0%, rgba(74, 46, 128, 0.06) 40%, rgba(242, 187, 46, 0.08) 65%, transparent 75%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  transform: translate3d(0, 0, 0);
  animation: luceAuraFloat2 18s ease-in-out infinite alternate;
}

/* SEZIONE GAS: Aria Cristallina, Fiamme Azzurre e Riflessi Iridescenti */
.section-gas-showcase {
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, #FFFFFF 0%, #F8FBFE 40%, #EFF6FD 80%, #E8F2FB 100%);
  overflow: hidden;
  padding: 88px 0 100px;
  border-bottom: 1px solid rgba(37, 68, 146, 0.18);
}

.section-gas-showcase::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -80px;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 68, 146, 0.11) 0%, rgba(72, 171, 147, 0.09) 35%, rgba(74, 46, 128, 0.05) 60%, transparent 75%);
  filter: blur(75px);
  pointer-events: none;
  z-index: 0;
  transform: translate3d(0, 0, 0);
  animation: gasAuraFloat1 16s ease-in-out infinite alternate;
}

.section-gas-showcase::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -80px;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 46, 107, 0.07) 0%, rgba(37, 68, 146, 0.08) 40%, rgba(242, 187, 46, 0.06) 65%, transparent 75%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
  transform: translate3d(0, 0, 0);
  animation: gasAuraFloat2 18s ease-in-out infinite alternate;
}

/* --------------------------------------------------------------------------
   EFFETTO 1: SPOTLIGHT INTERATTIVO CHE SEGUE IL CURSORE DEL MOUSE
   -------------------------------------------------------------------------- */
.interactive-spotlight-section {
  position: relative;
}

.interactive-spotlight {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: var(--spotlight-opacity, 0);
  transition: opacity 0.4s ease;
  background: radial-gradient(
    650px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
    rgba(242, 187, 46, 0.16) 0%,
    rgba(236, 117, 64, 0.12) 20%,
    rgba(230, 46, 107, 0.08) 40%,
    rgba(74, 46, 128, 0.06) 60%,
    rgba(72, 171, 147, 0.05) 75%,
    transparent 100%
  );
}

.interactive-spotlight.gas-spotlight {
  background: radial-gradient(
    650px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
    rgba(37, 68, 146, 0.15) 0%,
    rgba(72, 171, 147, 0.13) 25%,
    rgba(74, 46, 128, 0.08) 50%,
    rgba(230, 46, 107, 0.06) 70%,
    rgba(242, 187, 46, 0.04) 85%,
    transparent 100%
  );
}

.interactive-spotlight.values-spotlight {
  background: radial-gradient(
    680px circle at var(--spotlight-x, 50%) var(--spotlight-y, 50%),
    rgba(2, 132, 199, 0.14) 0%,
    rgba(13, 148, 136, 0.12) 25%,
    rgba(234, 88, 12, 0.09) 50%,
    rgba(242, 187, 46, 0.07) 75%,
    transparent 100%
  );
}

/* --------------------------------------------------------------------------
   EFFETTO 2: VELO MESH PRISMATICO & BOLLE DI LUCE IN SOSPENSIONE
   -------------------------------------------------------------------------- */
.prismatic-mesh-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.bokeh-bubble {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(20px);
  opacity: 0.55;
  animation: floatBokeh 14s infinite ease-in-out alternate;
  will-change: transform;
  transform: translateZ(0);
}

.bubble-1 {
  width: 140px;
  height: 140px;
  background: rgba(242, 187, 46, 0.18);
  top: 15%;
  left: 8%;
  animation-duration: 16s;
}

.bubble-2 {
  width: 180px;
  height: 180px;
  background: rgba(236, 117, 64, 0.14);
  top: 45%;
  right: 6%;
  animation-duration: 18s;
  animation-delay: -3s;
}

.bubble-3 {
  width: 120px;
  height: 120px;
  background: rgba(230, 46, 107, 0.12);
  bottom: 12%;
  left: 20%;
  animation-duration: 13s;
  animation-delay: -6s;
}

.bubble-4 {
  width: 160px;
  height: 160px;
  background: rgba(72, 171, 147, 0.14);
  bottom: 25%;
  right: 25%;
  animation-duration: 20s;
  animation-delay: -9s;
}

.bubble-blue {
  width: 170px;
  height: 170px;
  background: rgba(37, 68, 146, 0.15);
  top: 18%;
  left: 10%;
  animation-duration: 15s;
}

.bubble-teal {
  width: 150px;
  height: 150px;
  background: rgba(72, 171, 147, 0.16);
  top: 40%;
  right: 8%;
  animation-duration: 17s;
  animation-delay: -4s;
}

.bubble-purple {
  width: 130px;
  height: 130px;
  background: rgba(74, 46, 128, 0.12);
  bottom: 15%;
  left: 28%;
  animation-duration: 14s;
  animation-delay: -7s;
}

.bubble-coral {
  width: 140px;
  height: 140px;
  background: rgba(230, 46, 107, 0.10);
  bottom: 20%;
  right: 18%;
  animation-duration: 19s;
  animation-delay: -2s;
}

@keyframes floatBokeh {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -40px) scale(1.15);
  }
  100% {
    transform: translate(-25px, 30px) scale(0.9);
  }
}

/* --------------------------------------------------------------------------
   EFFETTO 3: NASTRO FLUIDO ONDULATO AI COLORI DEL LOGO
   -------------------------------------------------------------------------- */
.bg-ribbon-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 180px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.85;
  animation: waveGentleFloat 12s ease-in-out infinite alternate;
}

@keyframes waveGentleFloat {
  0% {
    transform: translateY(0) scaleY(1);
  }
  50% {
    transform: translateY(-8px) scaleY(1.08);
  }
  100% {
    transform: translateY(4px) scaleY(0.96);
  }
}

@keyframes luceAuraFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, 50px) scale(1.12); }
  100% { transform: translate(-30px, 90px) scale(0.96); }
}

@keyframes luceAuraFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(70px, -50px) scale(1.15); }
  100% { transform: translate(30px, -20px) scale(0.94); }
}

@keyframes gasAuraFloat1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, 60px) scale(1.14); }
  100% { transform: translate(40px, 30px) scale(0.96); }
}

@keyframes gasAuraFloat2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, -45px) scale(1.15); }
  100% { transform: translate(-35px, -70px) scale(0.95); }
}

/* Commodity Section Tags */
.section-tag.tag-luce {
  color: #D95D28;
  background: #FFF0E6;
  border-left: 3px solid #EC7540;
  box-shadow: 0 2px 10px rgba(236, 117, 64, 0.15);
}

.section-tag.tag-gas {
  color: #1C3575;
  background: #E8F0FC;
  border-left: 3px solid #254492;
  box-shadow: 0 2px 10px rgba(37, 68, 146, 0.15);
}

/* --------------------------------------------------------------------------
   VALUES & PILASTRI (LUMINOUS, HIGH-TECH & CLEAN BRAND AESTHETIC)
   -------------------------------------------------------------------------- */
.section-dark-values {
  position: relative;
  background-color: #F8FAFC;
  background-image: 
    radial-gradient(circle at 14% 18%, rgba(2, 132, 199, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 86% 82%, rgba(234, 88, 12, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(13, 148, 136, 0.07) 0%, transparent 50%),
    radial-gradient(rgba(23, 47, 68, 0.06) 1.2px, transparent 1.2px);
  background-size: 130% 130%, 130% 130%, 120% 120%, 32px 32px;
  animation: valuesAmbientPan 20s ease-in-out infinite alternate;
  color: var(--color-navy);
  padding: 100px 0 115px;
  overflow: hidden;
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

@keyframes valuesAmbientPan {
  0% {
    background-position: 0% 0%, 100% 100%, 50% 50%, 0 0;
  }
  50% {
    background-position: 30% 25%, 70% 75%, 45% 55%, 0 0;
  }
  100% {
    background-position: 15% 45%, 85% 55%, 55% 45%, 0 0;
  }
}

.section-dark-values::before {
  content: '';
  position: absolute;
  top: -60px;
  left: 6%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.16) 0%, rgba(2, 132, 199, 0.08) 50%, transparent 70%);
  filter: blur(75px);
  pointer-events: none;
  z-index: 0;
  transform: translate3d(0, 0, 0);
  animation: lightAuroraOrb1 16s ease-in-out infinite alternate;
}

.section-dark-values::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: 6%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(234, 88, 12, 0.14) 0%, rgba(242, 187, 46, 0.09) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  transform: translate3d(0, 0, 0);
  animation: lightAuroraOrb2 20s ease-in-out infinite alternate;
}

@keyframes lightAuroraOrb1 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(85px, 45px) scale(1.18);
  }
  100% {
    transform: translate(30px, 85px) scale(0.94);
  }
}

@keyframes lightAuroraOrb2 {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-80px, -45px) scale(1.15);
  }
  100% {
    transform: translate(-30px, 35px) scale(0.93);
  }
}

/* Nastro Ondulato & Streamline Energetiche Fluide per la sezione valori */
.values-ribbon-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 170px;
  pointer-events: none;
  z-index: 1;
  opacity: 0.8;
  animation: valuesWaveFloat 13s ease-in-out infinite alternate;
}

@keyframes valuesWaveFloat {
  0% {
    transform: translateY(0) scaleY(1);
  }
  50% {
    transform: translateY(-9px) scaleY(1.08);
  }
  100% {
    transform: translateY(4px) scaleY(0.95);
  }
}

.animated-streamline {
  animation: energyStreamlineDash 24s linear infinite;
  will-change: stroke-dashoffset;
}

.animated-streamline.streamline-2 {
  animation-duration: 32s;
  animation-direction: reverse;
}

@keyframes energyStreamlineDash {
  to {
    stroke-dashoffset: -1000;
  }
}

/* Accessibility: respect user prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .section-luce-showcase,
  .section-gas-showcase,
  .section-dark-values,
  .section-luce-showcase::before,
  .section-luce-showcase::after,
  .section-gas-showcase::before,
  .section-gas-showcase::after,
  .section-dark-values::before,
  .section-dark-values::after {
    animation: none !important;
  }
}

.section-dark-values .section-tag {
  background: rgba(236, 117, 64, 0.12);
  color: #D9531E;
  border-left: 3px solid #EC7540;
  box-shadow: 0 2px 8px rgba(236, 117, 64, 0.1);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.section-dark-values .section-title {
  color: #172F44;
  font-weight: 800;
}

.section-dark-values .section-subtitle {
  color: #556987;
  font-size: 1.05rem;
  line-height: 1.65;
}

.values-glass-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 32px;
  position: relative;
  z-index: 1;
}

.values-glass-card {
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 20px;
  padding: 42px 30px;
  box-shadow: 0 10px 30px -5px rgba(23, 47, 68, 0.06), 0 4px 10px -2px rgba(23, 47, 68, 0.03);
  text-align: center;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
  position: relative;
  overflow: hidden;
}

.values-glass-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--card-top-color, var(--color-teal));
  transition: height 0.3s ease;
}

.values-glass-card:hover {
  transform: translateY(-8px);
  background: #FFFFFF;
  border-color: rgba(72, 171, 147, 0.4);
  box-shadow: 0 24px 48px -10px rgba(23, 47, 68, 0.12), 0 10px 18px -4px rgba(23, 47, 68, 0.05);
}

.values-glass-card:hover::before {
  height: 6px;
}

.value-glow-icon {
  width: 76px;
  height: 76px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
  box-shadow: 0 8px 24px var(--icon-shadow-color, rgba(23, 47, 68, 0.08));
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.values-glass-card:hover .value-glow-icon {
  transform: scale(1.08) rotate(2deg);
}

.value-card-title {
  font-size: 1.35rem;
  color: #172F44;
  margin-bottom: 14px;
  font-family: var(--font-heading);
  font-weight: 700;
}

.value-card-desc {
  font-size: 0.96rem;
  color: #556987;
  line-height: 1.65;
}

.offers-catalog-section .container {
  position: relative;
  z-index: 1;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.section-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-luce);
  background: var(--color-luce-subtle);
  border-left: 3px solid var(--color-luce);
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  color: var(--color-navy);
  margin-bottom: 14px;
  letter-spacing: -0.4px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Filter Bar */
.catalog-filters {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.filter-btn {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.94rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  border-color: var(--color-luce);
  color: var(--color-luce);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--gradient-luce);
  color: #FFFFFF;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(255, 106, 0, 0.35);
}

/* ==========================================================================
   OFFERS GRID - DISTRIBUZIONE ESTETICA SENZA SPAZI VUOTI & 100% RESPONSIVE
   ========================================================================== */
.offers-grid {
  display: grid;
  gap: 32px;
  width: 100%;
  margin: 0 auto;
  align-items: stretch;
}

/* 4 Offerte: Layout 2x2 perfetto su schermi medi e grandi (zero spazi vuoti orfani) */
.offers-grid[data-count="4"],
.offers-grid:has(> :nth-child(4):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 3 Offerte: Layout 3 colonne pieno su schermi grandi */
.offers-grid[data-count="3"],
.offers-grid:has(> :nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

/* 2 Offerte: Layout 2 colonne bilanciate */
.offers-grid[data-count="2"],
.offers-grid:has(> :nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* 1 Offerta: Centrata elegantemente */
.offers-grid[data-count="1"],
.offers-grid:has(> :nth-child(1):last-child) {
  grid-template-columns: minmax(0, 560px);
  justify-content: center;
}

/* Fallback generico per conteggi diversi */
.offers-grid:not([data-count="1"]):not([data-count="2"]):not([data-count="3"]):not([data-count="4"]) {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

/* ==========================================================================
   CORNICE ROTANTE MULTICOLORE ANIMATA (EFFETTO LOGO SWITCH A 360°)
   ========================================================================== */
@property --rainbow-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes rotateRainbowAngle {
  0% {
    --rainbow-angle: 0deg;
  }
  100% {
    --rainbow-angle: 360deg;
  }
}

/* Base per card con cornice arcobaleno rotante permanente tipo SNAKE nei punti giusti */
.has-rainbow-frame {
  position: relative !important;
  border-radius: 26px !important;
  background: #FFFFFF !important;
  isolation: isolate;
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow: 0 16px 36px rgba(23, 47, 68, 0.08) !important;
}

/* 1. Bordo nitido rotante a filo esterno (3px) con effetto fascio luminoso SNAKE */
.has-rainbow-frame::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 29px;
  background: conic-gradient(
    from var(--rainbow-angle),
    transparent 0deg,
    transparent 220deg,
    rgba(72, 171, 147, 0.2) 245deg,
    #48AB93 265deg,
    #254492 285deg,
    #4A2E80 305deg,
    #E62E6B 325deg,
    #EC7540 345deg,
    #F2BB2E 360deg
  );
  z-index: -1;
  animation: rotateRainbowAngle 4s linear infinite;
  pointer-events: none;
}

/* 2. Alone diffuso e soffuso esterno rotante con il bagliore giusto */
.has-rainbow-frame::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 32px;
  background: conic-gradient(
    from var(--rainbow-angle),
    transparent 0deg,
    transparent 210deg,
    rgba(72, 171, 147, 0.3) 240deg,
    #48AB93 265deg,
    #254492 285deg,
    #4A2E80 305deg,
    #E62E6B 325deg,
    #EC7540 345deg,
    #F2BB2E 360deg
  );
  z-index: -2;
  filter: blur(14px);
  opacity: 0.85;
  animation: rotateRainbowAngle 4s linear infinite;
  pointer-events: none;
}

/* ==========================================================================
   OFFER CARDS - MASSIMA LEGGIBILITÀ & DESIGN ISPIRATO AL LOGO SWITCH
   ========================================================================== */
.offer-card {
  background: #FFFFFF;
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 
    0 10px 28px rgba(23, 47, 68, 0.06), 
    0 2px 6px rgba(23, 47, 68, 0.03);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.28s ease, border-color 0.28s ease;
  position: relative;
  height: 100%;
  isolation: isolate;
}

/* Nastro Fluido Superiore Ispirato alla "S" del Logo Switch per card standard */
.offer-card:not(.has-rainbow-frame)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-brand-rainbow);
  z-index: 5;
}

.offer-card.commodity-luce:not(.has-rainbow-frame)::before {
  background: linear-gradient(90deg, #F2BB2E 0%, #EC7540 50%, #E62E6B 100%);
}

.offer-card.commodity-gas:not(.has-rainbow-frame)::before {
  background: linear-gradient(90deg, #254492 0%, #48AB93 50%, #4A2E80 100%);
}

/* Effetto Hover: la cornice rotante tipo snake si accende fluidamente al passaggio del mouse */
.offer-card:not(.has-rainbow-frame):hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(23, 47, 68, 0.12);
  border-color: rgba(226, 232, 240, 0.4);
}

.offer-card:not(.has-rainbow-frame):hover::before {
  content: '';
  position: absolute;
  inset: -2.5px;
  border-radius: 26.5px;
  height: auto;
  background: conic-gradient(
    from var(--rainbow-angle),
    transparent 0deg,
    transparent 220deg,
    rgba(72, 171, 147, 0.2) 245deg,
    #48AB93 265deg,
    #254492 285deg,
    #4A2E80 305deg,
    #E62E6B 325deg,
    #EC7540 345deg,
    #F2BB2E 360deg
  );
  z-index: -1;
  animation: rotateRainbowAngle 3.5s linear infinite;
  pointer-events: none;
}

.offer-card:not(.has-rainbow-frame):hover::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 30px;
  background: conic-gradient(
    from var(--rainbow-angle),
    transparent 0deg,
    transparent 210deg,
    rgba(72, 171, 147, 0.3) 240deg,
    #48AB93 265deg,
    #254492 285deg,
    #4A2E80 305deg,
    #E62E6B 325deg,
    #EC7540 345deg,
    #F2BB2E 360deg
  );
  z-index: -2;
  filter: blur(14px);
  opacity: 0.85;
  animation: rotateRainbowAngle 3.5s linear infinite;
  pointer-events: none;
}

/* Header Offerta */
.offer-card-header {
  padding: 26px 26px 18px;
  border-bottom: 1px solid #EDF2F7;
  position: relative;
  background: #FFFFFF;
}

/* Tag Commodity a Pillola Curva */
.offer-commodity-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.commodity-luce .offer-commodity-tag {
  background: #FFF3EC;
  color: #D95D28;
  border: 1px solid rgba(236, 117, 64, 0.2);
}

.commodity-gas .offer-commodity-tag {
  background: #EEF4FC;
  color: #1E3A8A;
  border: 1px solid rgba(37, 68, 146, 0.2);
}

/* Badge Offerta Ispirato al Nastro Sagomato */
.offer-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  color: #FFFFFF;
  background: linear-gradient(135deg, #EC7540 0%, #F2BB2E 100%);
  box-shadow: 0 3px 8px rgba(236, 117, 64, 0.25);
}

.commodity-gas .offer-badge {
  background: linear-gradient(135deg, #254492 0%, #48AB93 100%);
  box-shadow: 0 3px 8px rgba(37, 68, 146, 0.25);
}

.offer-badge.placet {
  background: #F2BB2E;
  color: #172F44;
  box-shadow: 0 3px 8px rgba(242, 187, 46, 0.3);
}

.offer-badge.hot {
  background: #E62E6B;
  color: #FFFFFF;
  box-shadow: 0 3px 8px rgba(230, 46, 107, 0.3);
}

/* Titolo e Descrizione con Contrasto Ottimale */
.offer-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #172F44;
  margin: 10px 0 6px;
  font-family: var(--font-heading);
  line-height: 1.25;
}

.offer-desc {
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 0;
}

/* Box Prezzo Chiarissimo e In Evidenza */
.offer-price-box {
  background: #F8FAFC;
  padding: 22px 26px;
  border-bottom: 1px solid #EDF2F7;
}

.price-formula {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748B;
  margin-bottom: 4px;
}

.price-main {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 4px 0;
}

.price-value {
  font-size: 2.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: #172F44;
  line-height: 1;
  letter-spacing: -1px;
}

.price-unit {
  font-size: 1.05rem;
  font-weight: 800;
  color: #EC7540;
}

.commodity-gas .price-unit {
  color: #254492;
}

.fixed-fee {
  font-size: 0.88rem;
  color: #475569;
  margin-top: 8px;
}

.fixed-fee strong {
  color: #172F44;
  font-weight: 700;
}

/* Selettore Varianti a Pillola (Nastro Switch) */
.offer-variant-selector {
  padding: 14px 26px;
  background: #FFFFFF;
  border-bottom: 1px solid #EDF2F7;
}

.variant-tabs {
  display: flex;
  gap: 6px;
  width: 100%;
  background: #F1F5F9;
  padding: 4px;
  border-radius: var(--radius-full);
}

.variant-tab-btn {
  flex: 1;
  padding: 8px 14px;
  border: none;
  background: transparent;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: #64748B;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.variant-tab-btn:hover {
  color: #172F44;
}

.variant-tab-btn.active {
  background: #172F44;
  color: #FFFFFF;
  box-shadow: 0 3px 10px rgba(23, 47, 68, 0.25);
}

/* Tabella Dettagli Offerta ad Alto Contrasto */
.offer-details-body {
  padding: 20px 26px;
  background: #FFFFFF;
  flex: 1;
}

.offer-meta-list {
  list-style: none;
  margin: 0 0 16px;
  padding: 0;
}

.offer-meta-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.88rem;
}

.meta-label {
  color: #64748B;
  font-weight: 600;
}

.meta-value {
  color: #172F44;
  font-weight: 700;
  text-align: right;
}

.offer-code-pill {
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: #0F172A;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.3px;
}

/* Link Documenti Trasparenza CTE & CGF */
.offer-docs-links {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 10px;
}

.offer-docs-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #254492;
  text-decoration: none;
  padding: 6px 12px;
  background: #EEF4FC;
  border-radius: 8px;
  border: 1px solid rgba(37, 68, 146, 0.15);
  transition: all 0.2s ease;
}

.offer-docs-links a:hover {
  background: #254492;
  color: #FFFFFF;
}

/* Footer Card con Tasto Call to Action a Gradiente del Brand */
.offer-actions-footer {
  padding: 16px 26px 26px;
  background: #FFFFFF;
}

.offer-actions-footer .btn {
  width: 100%;
  border-radius: var(--radius-full);
  padding: 13px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
}

.commodity-luce .offer-actions-footer .btn {
  background: linear-gradient(135deg, #EC7540 0%, #F2BB2E 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(236, 117, 64, 0.28);
}

.commodity-luce .offer-actions-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(236, 117, 64, 0.4);
  filter: brightness(1.05);
}

.commodity-gas .offer-actions-footer .btn {
  background: linear-gradient(135deg, #254492 0%, #48AB93 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 16px rgba(37, 68, 146, 0.28);
}

.commodity-gas .offer-actions-footer .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 68, 146, 0.4);
  filter: brightness(1.05);
}

/* --------------------------------------------------------------------------
   FORMS & INPUTS
   -------------------------------------------------------------------------- */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--color-text-main);
  font-size: 0.96rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-blue);
  box-shadow: 0 0 0 3px rgba(34, 84, 160, 0.15);
}

.form-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--color-text-muted);
  cursor: pointer;
}

.form-checkbox-label input {
  margin-top: 3px;
}

.alert-message {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-bottom: 16px;
  display: none;
}

.alert-message.success {
  display: block;
  background: var(--color-success-bg);
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.alert-message.error {
  display: block;
  background: var(--color-danger-bg);
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* --------------------------------------------------------------------------
   MODALS
   -------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 44, 64, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  max-width: 540px;
  width: 100%;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modalIn 0.25s ease-out;
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.modal-header h3 {
  font-size: 1.35rem;
  color: var(--color-navy);
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--color-text-muted);
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 28px;
}

/* --------------------------------------------------------------------------
   DOCUMENT TABLE (MODULI UTILI)
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   DOCUMENT MANAGEMENT & MODULI UTILI
   -------------------------------------------------------------------------- */
.docs-hero-section {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.docs-hero-title {
  font-size: 2.6rem;
  color: var(--color-navy);
  margin: 12px 0 16px;
  letter-spacing: -0.5px;
}

.docs-hero-subtitle {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Quick Action Cards */
.docs-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.quick-action-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.quick-action-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--card-accent, var(--color-luce));
  transition: width var(--transition-fast);
}

.quick-action-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-hover);
}

.quick-action-card:hover::before {
  width: 6px;
}

.quick-action-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.quick-action-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--icon-bg, var(--color-navy-subtle));
  color: var(--icon-color, var(--color-navy));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.quick-action-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.25;
}

.quick-action-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
}

.quick-action-btn {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--card-accent, var(--color-luce));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

/* Filter Toolbar */
.docs-toolbar {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-sm);
}

.docs-toolbar-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.docs-search-box {
  position: relative;
  flex: 1;
  max-width: 440px;
}

.docs-search-box input {
  padding-left: 42px;
  padding-right: 36px;
  width: 100%;
}

.docs-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-subtle);
  pointer-events: none;
}

.docs-clear-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--color-text-subtle);
  cursor: pointer;
  display: none;
  padding: 4px;
}

.docs-view-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--color-bg-page);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.view-toggle-btn {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.view-toggle-btn.active {
  background: #FFFFFF;
  color: var(--color-navy);
  box-shadow: var(--shadow-sm);
}

/* Category Filter Tabs */
.docs-category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.category-tab {
  background: var(--color-bg-page);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.category-tab:hover {
  background: #FFFFFF;
  color: var(--color-navy);
  border-color: var(--color-border-hover);
}

.category-tab.active {
  background: var(--color-navy);
  color: #FFFFFF;
  border-color: var(--color-navy);
}

.category-count {
  font-size: 0.74rem;
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 7px;
  border-radius: var(--radius-full);
}

.category-tab.active .category-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

/* Document Cards Grid */
.docs-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
  margin-bottom: 40px;
}

.doc-card {
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.doc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-hover);
}

.doc-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.doc-type-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.doc-type-badge.modulo {
  background: #EBF8FF;
  color: #0077D6;
}

.doc-type-badge.fiscale {
  background: #FEF3C7;
  color: #B45309;
}

.doc-type-badge.cte-luce {
  background: #FFF3EC;
  color: #EC7540;
}

.doc-type-badge.cte-gas {
  background: #EDF3FC;
  color: #254492;
}

.doc-type-badge.normativa {
  background: #EDF9F5;
  color: #358B76;
}

.doc-card-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.doc-card-desc {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.doc-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--color-text-subtle);
  border-top: 1px dashed var(--color-border);
  padding-top: 12px;
  margin-bottom: 16px;
}

.doc-card-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.doc-card-actions .btn {
  flex: 1;
  text-align: center;
  justify-content: center;
  padding: 9px 14px;
  font-size: 0.84rem;
}

/* Document Instructions Card */
.docs-instruction-card {
  background: linear-gradient(135deg, #172F44 0%, #254492 100%);
  color: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 36px 40px;
  margin-top: 48px;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
}

.docs-instruction-content h3 {
  color: #FFFFFF;
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.docs-instruction-content p {
  color: #E2E8F0;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.docs-instruction-steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.docs-instruction-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #E2E8F0;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.instruction-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-yellow);
  color: var(--color-navy);
  font-weight: 800;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.docs-contacts-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 24px;
  backdrop-filter: blur(8px);
}

.docs-contacts-box h4 {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.docs-contact-channel {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #E2E8F0;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.docs-contact-channel a {
  color: #54E346;
  font-weight: 600;
}

.docs-contact-channel a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .docs-instruction-card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
  }
}

.docs-table-wrapper {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.docs-table th {
  background: var(--color-bg-page);
  color: var(--color-navy);
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 14px 20px;
  border-bottom: 1px solid var(--color-border);
}

.docs-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.92rem;
}

.docs-table tr:hover td {
  background: #F8FAFC;
}

/* ==========================================================================
   WEB ACTIVATION BANNER - BACKGROUND AD HOC & TASTO PORTALE ATTIVAZIONI
   ========================================================================== */
.web-activation-banner {
  padding: 36px 0;
  position: relative;
  z-index: 5;
}

.web-activation-banner .banner-flex,
.web-activation-banner .banner-container-adhoc {
  position: relative;
  background: 
    radial-gradient(ellipse at 85% 40%, rgba(72, 171, 147, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 60%, rgba(236, 117, 64, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(74, 46, 128, 0.28) 0%, transparent 60%),
    linear-gradient(135deg, #0B192C 0%, #081726 50%, #0F2338 100%);
  border-radius: 28px;
  padding: 40px 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 
    0 24px 56px -12px rgba(8, 23, 38, 0.45),
    0 0 35px rgba(37, 68, 146, 0.18);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.web-activation-banner .banner-flex::before,
.web-activation-banner .banner-container-adhoc::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #F2BB2E 0%, #EC7540 20%, #E62E6B 40%, #4A2E80 60%, #254492 80%, #48AB93 100%);
}

.activation-content-col,
.web-activation-banner .banner-text {
  flex: 1;
  max-width: 680px;
}

.activation-tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #38BDF8;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 14px;
  border-radius: 9999px;
  margin-bottom: 12px;
}

.activation-tag-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38BDF8;
  box-shadow: 0 0 10px #38BDF8;
  animation: pulseActivationDot 2s infinite ease-in-out;
}

@keyframes pulseActivationDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.activation-heading,
.web-activation-banner .banner-text h3 {
  color: #FFFFFF;
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.25;
  font-family: var(--font-heading);
  letter-spacing: -0.2px;
}

.activation-heading span.highlight {
  background: linear-gradient(90deg, #F2BB2E 0%, #EC7540 50%, #E62E6B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.activation-subtext,
.web-activation-banner .banner-text p {
  color: #CBD5E1;
  font-size: 0.96rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

.activation-perks-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.activation-perk-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #E2E8F0;
  font-size: 0.85rem;
  font-weight: 600;
}

.activation-perk-icon {
  color: #48AB93;
  font-weight: 800;
}

/* Pulsante CTA Ad Hoc e Moderno */
.activation-action-col {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.btn-portal-activation,
.web-activation-banner .btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(135deg, #F2BB2E 0%, #EC7540 40%, #E62E6B 100%) !important;
  color: #FFFFFF !important;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 16px 32px;
  border-radius: 16px;
  border: none !important;
  text-decoration: none;
  box-shadow: 
    0 10px 25px rgba(236, 117, 64, 0.4),
    0 2px 6px rgba(0, 0, 0, 0.15) !important;
  transition: all 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
  overflow: hidden;
  white-space: nowrap;
}

.btn-portal-activation::before,
.web-activation-banner .btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.6s ease;
}

.btn-portal-activation:hover::before,
.web-activation-banner .btn-primary:hover::before {
  left: 100%;
}

.btn-portal-activation:hover,
.web-activation-banner .btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 
    0 16px 36px rgba(236, 117, 64, 0.5),
    0 0 20px rgba(242, 187, 46, 0.35) !important;
  color: #FFFFFF !important;
}

.btn-portal-activation svg,
.web-activation-banner .btn-primary svg {
  transition: transform 0.25s ease;
}

.btn-portal-activation:hover svg,
.web-activation-banner .btn-primary:hover svg {
  transform: translateX(4px);
}

.activation-action-note {
  font-size: 0.76rem;
  color: #94A3B8;
  text-align: center;
}

/* Responsiveness Dedicata Web Activation Banner */
@media (max-width: 992px) {
  .web-activation-banner .banner-flex,
  .web-activation-banner .banner-container-adhoc {
    flex-direction: column;
    text-align: center;
    padding: 34px 26px;
    gap: 26px;
  }
  .activation-content-col,
  .web-activation-banner .banner-text {
    max-width: 100%;
  }
  .activation-perks-row {
    justify-content: center;
  }
  .activation-action-col {
    width: 100%;
  }
  .btn-portal-activation,
  .web-activation-banner .btn-primary {
    width: 100%;
    max-width: 420px;
  }
}

@media (max-width: 576px) {
  .web-activation-banner {
    padding: 24px 0;
  }
  .web-activation-banner .banner-flex,
  .web-activation-banner .banner-container-adhoc {
    padding: 26px 18px;
    border-radius: 20px;
  }
  .activation-heading,
  .web-activation-banner .banner-text h3 {
    font-size: 1.35rem;
  }
  .activation-subtext,
  .web-activation-banner .banner-text p {
    font-size: 0.88rem;
  }
  .activation-perks-row {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }
  .btn-portal-activation,
  .web-activation-banner .btn-primary {
    font-size: 0.95rem;
    padding: 14px 20px;
    width: 100%;
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   FOOTER (TUTTI I 22 LINK NORMATIVI PRESERVATI)
   -------------------------------------------------------------------------- */
.site-footer {
  background: #081726;
  color: #FFFFFF;
  padding-top: 60px;
  padding-bottom: 28px;
  margin-top: 70px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.35fr 1.35fr 1fr;
  gap: 48px;
  margin-bottom: 36px;
}

.footer-logo-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 8px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.footer-logo-card img {
  height: 46px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.footer-tagline {
  color: #CBD5E1;
  font-size: 0.94rem;
  line-height: 1.55;
  margin-bottom: 16px;
  max-width: 380px;
}

.footer-contact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #CBD5E1;
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.footer-contact-row a {
  color: #CBD5E1;
  transition: color var(--transition-fast);
}

.footer-contact-row a:hover {
  color: #FFFFFF;
}

.footer-heading {
  color: #FFFFFF;
  font-size: 1.12rem;
  font-weight: 700;
  margin-bottom: 16px;
  font-family: var(--font-heading);
  letter-spacing: 0.2px;
}

.footer-company-details {
  color: #CBD5E1;
  font-size: 0.9rem;
  line-height: 1.8;
}

.footer-company-details p {
  margin-bottom: 3px;
}

.footer-highlight-link {
  color: #00D2D3 !important;
  font-weight: 500;
  transition: color var(--transition-fast);
}

.footer-highlight-link:hover {
  color: #54E346 !important;
  text-decoration: underline;
}

.footer-clean-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-clean-links li {
  margin-bottom: 8px;
}

.footer-clean-links a {
  color: #CBD5E1;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-clean-links a:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

.footer-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  margin: 32px 0 28px;
}

.footer-normative-section {
  margin-bottom: 32px;
}

.footer-normative-heading {
  color: #FFFFFF;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 20px;
  font-family: var(--font-heading);
}

.footer-normative-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}

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

.footer-normative-list li {
  margin-bottom: 10px;
}

.footer-normative-list a {
  color: #CBD5E1;
  font-size: 0.91rem;
  line-height: 1.45;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-normative-list a:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-partners {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.partner-badge {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  transition: transform var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.partner-badge:hover {
  transform: translateY(-2px);
}

.partner-badge img {
  height: 30px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-circle-btn:hover {
  background: #FFFFFF;
  color: var(--color-navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   NORMATIVE & INFORMATIVE PAGES - DESIGN SYSTEM UFFICIALE SWITCH
   ========================================================================== */
.normative-hero-section {
  position: relative;
  background: radial-gradient(ellipse at 50% 0%, #FFFFFF 0%, #F8FBFE 45%, #EFF6FD 80%, #E8F2FB 100%);
  padding: 56px 0 44px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  text-align: center;
  overflow: hidden;
}

.normative-hero-section::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -60px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 187, 46, 0.12) 0%, rgba(236, 117, 64, 0.08) 45%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.normative-hero-section::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 68, 146, 0.1) 0%, rgba(72, 171, 147, 0.08) 45%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.normative-breadcrumbs {
  font-size: 0.84rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.normative-breadcrumbs a {
  color: var(--color-navy);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.normative-breadcrumbs a:hover {
  color: var(--color-luce);
}

.normative-breadcrumbs span {
  color: var(--color-text-subtle);
}

.normative-hero-title {
  font-size: 2.5rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--color-navy);
  margin: 14px 0 16px;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.normative-meta-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #FFFFFF;
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--color-navy);
  box-shadow: 0 2px 6px rgba(15, 36, 56, 0.04);
}

.normative-content-section {
  background: #F8FAFC;
  padding: 64px 0 88px;
}

.normative-document-card {
  background: #FFFFFF;
  border-radius: 26px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 16px 40px rgba(23, 47, 68, 0.06), 0 2px 6px rgba(23, 47, 68, 0.03);
  padding: 48px 52px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 768px) {
  .normative-document-card {
    padding: 30px 22px;
    border-radius: 20px;
  }
  .normative-hero-title {
    font-size: 1.95rem;
  }
}

.normative-ribbon-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--gradient-brand-rainbow);
}

.normative-section-heading {
  color: var(--color-navy);
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-heading);
  margin: 36px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid #EDF2F7;
  padding-bottom: 10px;
}

.normative-heading-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #FFF3EC;
  color: #EC7540;
  font-size: 0.85rem;
  font-weight: 800;
  flex-shrink: 0;
}

.normative-paragraph {
  color: #334155;
  font-size: 1.02rem;
  line-height: 1.78;
  margin-bottom: 18px;
}

.normative-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.normative-list-item {
  position: relative;
  padding-left: 28px;
  color: #334155;
  font-size: 1.01rem;
  line-height: 1.65;
}

.normative-list-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #48AB93;
  font-weight: 800;
  font-size: 0.95rem;
}

.normative-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.25s ease;
  margin: 8px 8px 16px 0;
}

.normative-download-btn:hover {
  background: var(--color-navy);
  color: #FFFFFF;
  border-color: var(--color-navy);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(23, 47, 68, 0.15);
}

.normative-callout-card {
  background: linear-gradient(135deg, #F8FAFD 0%, #EFF6FD 100%);
  border: 1px solid #DCE7F5;
  border-left: 4px solid var(--color-gas);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 28px 0;
}

.normative-callout-card.dpo {
  border-left-color: #EC7540;
  background: linear-gradient(135deg, #FFFBF8 0%, #FFF3EC 100%);
}

.normative-callout-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

  font-size: 0.91rem;
  line-height: 1.45;
  transition: all var(--transition-fast);
  display: inline-block;
}

.footer-normative-list a:hover {
  color: #FFFFFF;
  transform: translateX(3px);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-partners {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.partner-badge {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 6px 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  transition: transform var(--transition-fast);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.partner-badge:hover {
  transform: translateY(-2px);
}

.partner-badge img {
  height: 30px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-circle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.social-circle-btn:hover {
  background: #FFFFFF;
  color: var(--color-navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

/* --------------------------------------------------------------------------
   RESPONSIVE DESIGN
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .site-header .header-inner {
    height: 72px;
  }
  .brand-logo img {
    height: 42px;
    max-width: 200px;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    box-shadow: 0 16px 36px rgba(10, 37, 64, 0.15);
    border-bottom: 1px solid var(--color-border);
    padding: 20px 24px 28px;
    z-index: 1000;
  }
  .main-nav.open {
    display: block;
    animation: fadeInDown 0.25s ease-out;
  }
  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .nav-list li {
    width: 100%;
    margin-left: 0 !important;
  }
  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 1.05rem;
    border-radius: var(--radius-md);
  }
  .btn-area-clienti {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
    padding: 13px 20px;
  }

  .hero-content-wrapper {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
  }
  .hero-text-col {
    max-width: 100%;
  }
  .hero-original-quote {
    text-align: center;
    border-left: none;
    border-top: 3px solid var(--color-teal);
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-features-list {
    justify-content: center;
  }

  .web-flagship-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
  .footer-normative-grid {
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }
  
  .offers-grid[data-count="3"],
  .offers-grid:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .offers-grid[data-count="3"] > :last-child,
  .offers-grid:has(> :nth-child(3):last-child) > :last-child {
    grid-column: 1 / -1;
    max-width: 580px;
    margin: 0 auto;
    width: 100%;
  }
}

@media (max-width: 768px) {
  /* Prevenzione globale overflow orizzontale */
  html, body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    position: relative;
  }

  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .section-padding {
    padding: 48px 0 !important;
  }

  /* Topbar Mobile */
  .topbar {
    padding: 8px 0;
  }
  .topbar .container {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
  .topbar-contacts {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 14px;
    font-size: 0.8rem;
  }
  .topbar-badge {
    display: none;
  }

  /* Tipografia scalabile */
  .hero-title {
    font-size: clamp(1.85rem, 6vw, 2.3rem);
    line-height: 1.18;
  }
  .section-title {
    font-size: clamp(1.6rem, 5vw, 2rem);
    line-height: 1.25;
  }
  .section-subtitle {
    font-size: 0.98rem;
  }

  /* Form & Input Anti-Zoom su iOS */
  input, select, textarea {
    font-size: 16px !important;
    max-width: 100%;
  }

  /* Footer Mobile */
  .footer-top-grid,
  .footer-normative-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom-bar {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  /* Catalogo Offerte Mobile */
  .offers-catalog-section {
    padding: 40px 0 50px;
  }
  
  .offers-grid,
  .offers-grid[data-count="1"],
  .offers-grid[data-count="2"],
  .offers-grid[data-count="3"],
  .offers-grid[data-count="4"],
  .offers-grid:has(> :nth-child(1):last-child),
  .offers-grid:has(> :nth-child(2):last-child),
  .offers-grid:has(> :nth-child(3):last-child),
  .offers-grid:has(> :nth-child(4):last-child) {
    grid-template-columns: 1fr !important;
    gap: 20px;
    max-width: 100% !important;
  }
  
  .offers-grid > * {
    grid-column: 1 / -1 !important;
    max-width: 100% !important;
  }
  
  .offer-card-header,
  .offer-price-box,
  .offer-variant-selector,
  .offer-details-body,
  .offer-actions-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  /* Modali e Document Preview Mobile */
  .modal-container,
  .modal-dialog,
  .document-preview-dialog {
    width: 95vw !important;
    max-width: 95vw !important;
    margin: 12px auto !important;
    padding: 16px !important;
    border-radius: var(--radius-md) !important;
  }

  /* Tabelle responsive */
  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 576px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .hero-actions .btn {
    width: 100%;
  }
  
  .topbar-contacts span:first-child {
    display: none;
  }
  
  .brand-logo img {
    height: 38px;
    max-width: 170px;
  }
}
