/* =========================================================================
   81+ SAFETY OS · MASTER LAYOUT CSS (HEADER, FOOTER, LEGAL & COMPLIANCE)
   Unificazione Visual Identità Brand 81+ · Labo Tecnic Studio (dal 2003)
   ========================================================================= */

:root {
  --brand-green: #00875A;
  --brand-green-hover: #00704A;
  --brand-green-light: #EAF5EF;
  --brand-green-neon: #10B981;
  --brand-dark: #0A0A0A;
  --brand-dark-card: #0F172A;
  --brand-gray-dark: #1F2421;
  --brand-gray: #4A5568;
  --brand-gray-light: #F8FAFC;
  --brand-border: #E2E8F0;
  --brand-border-dark: rgba(255, 255, 255, 0.1);
  --brand-white: #FFFFFF;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-subtle: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 10px 28px rgba(0, 135, 90, 0.16);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--brand-white);
  color: var(--brand-dark);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.master-page-body {
  flex: 1 0 auto;
}

.wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================================
   DIVIETO ASSOLUTO TOPBAR / TICKER / SENTIMENT BANNER (P0 GOVERNANCE)
   ========================================================================= */
#t81-sentiment-banner,
.t81-sentiment-banner,
.uni-topbar,
.dna81-topbar,
[id*="sentiment-banner"],
[class*="sentiment-banner"] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  opacity: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  position: absolute !important;
  top: -9999px !important;
  left: -9999px !important;
}

/* =========================================================================
   MASTER HEADER (FISSO IN ALTO A TUTTO SCHERMO)
   ========================================================================= */
:root {
  --master-header-height: 70px;
}

.master-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 10000 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--brand-border) !important;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.05) !important;
  padding: 12px 0 !important;
  box-sizing: border-box !important;
}

body {
  padding-top: var(--master-header-height) !important;
}

@media (max-width: 640px) {
  :root {
    --master-header-height: 64px;
  }
}

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

.header-brand-block {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.logo-square-badge {
  width: 44px;
  height: 44px;
  background: var(--brand-green);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-weight: 900;
  font-size: 1.25rem;
  letter-spacing: -0.5px;
  box-shadow: 0 4px 12px rgba(0, 135, 90, 0.25);
  flex-shrink: 0;
}

.header-payoff-badge {
  display: flex;
  flex-direction: column;
}

.payoff-text {
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--brand-dark);
  text-transform: uppercase;
}

.payoff-sub {
  font-size: 0.72rem;
  color: var(--brand-green);
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* REGOLA FISSA GOVERNANCE: ZERO VOCI MENU SU HEADER (SOLO BURGER DRAWER) */
.nav-links {
  display: none !important;
}

/* HEADER LIVE STATS (VISITATORI & USER LIVE TELEMETRY) */
.header-live-stats {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1.5px solid #CBD5E1;
  border-radius: 999px;
  padding: 5px 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  user-select: none;
  transition: all 0.2s ease;
}
.header-live-stats:hover {
  border-color: #10B981;
  background: #FFFFFF;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}
.stat-pill-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0F172A;
}
.live-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: livePulse 2s infinite cubic-bezier(0.66, 0, 0, 1);
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.live-num {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  font-weight: 900;
  color: #047857;
}
.live-txt {
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-pill-divider {
  width: 1px;
  height: 14px;
  background: #CBD5E1;
}
.stat-pill-visitors {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.82rem;
  font-weight: 800;
  color: #0F172A;
}
.stat-eye-icon {
  color: #64748B;
  flex-shrink: 0;
}
.visitors-num {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  font-weight: 900;
  color: #0F172A;
}
.visitors-txt {
  font-size: 0.72rem;
  color: #64748B;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
@media (max-width: 820px) {
  .header-live-stats .stat-pill-visitors {
    display: none;
  }
  .header-live-stats .stat-pill-divider {
    display: none;
  }
  .header-live-stats {
    padding: 4px 10px;
  }
}

/* HEADER ACTIONS GROUP */
.header-actions-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* HEADER WA PILL (FISSO SU HEADER CON MESSAGGIO PREIMPOSTATO) */
.header-wa-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 0.82rem;
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  border: 1.5px solid #34D399;
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.35);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  flex-shrink: 0;
}
.header-wa-pill:hover {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.55);
  color: #FFFFFF !important;
}
.header-wa-pill svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
@media (max-width: 640px) {
  .header-payoff-badge {
    display: none !important;
  }
  .logo-square-badge {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
    border-radius: 8px !important;
  }
  .header-inner {
    gap: 8px !important;
  }
  .header-live-stats {
    padding: 4px 8px !important;
    gap: 5px !important;
    font-size: 0.76rem !important;
  }
  .header-live-stats .stat-pill-visitors,
  .header-live-stats .stat-pill-divider {
    display: none !important;
  }
  .header-live-stats .live-user-label {
    display: none !important;
  }
  .header-wa-pill {
    padding: 7px 10px !important;
    font-size: 0.74rem !important;
    gap: 5px !important;
  }
}
@media (max-width: 480px) {
  .header-actions-group {
    gap: 6px !important;
  }
  .header-wa-pill {
    padding: 6px 8px !important;
    font-size: 0.72rem !important;
  }
  .burger-menu-btn {
    width: 38px !important;
    height: 38px !important;
    padding: 6px !important;
  }
}
@media (max-width: 360px) {
  .header-wa-pill span {
    display: none !important;
  }
  .header-wa-pill {
    padding: 8px !important;
    border-radius: 50% !important;
    width: 36px !important;
    height: 36px !important;
    justify-content: center !important;
  }
}


/* BURGER MENU BUTTON & SLIDE DRAWER */
.burger-menu-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: #FFFFFF;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  flex-shrink: 0;
}
.burger-menu-btn:hover {
  background: #ECFDF5;
  border-color: #10B981;
}
.burger-bar {
  width: 22px;
  height: 2.5px;
  background-color: #0F172A;
  border-radius: 2px;
  transition: all 0.25s ease;
}
.burger-drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.burger-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}
.burger-drawer-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background: #FFFFFF;
  box-shadow: -10px 0 35px rgba(0,0,0,0.2);
  z-index: 100000;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.burger-drawer-overlay.active .burger-drawer-panel {
  transform: translateX(0);
}
.burger-drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.burger-close-btn {
  background: #F1F5F9;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.burger-close-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}
.burger-menu-list {
  list-style: none;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.burger-menu-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1E293B;
  transition: all 0.2s;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
}
.burger-menu-item a:hover {
  background: #ECFDF5;
  border-color: #10B981;
  color: #064E3B;
  transform: translateX(4px);
}
.burger-menu-item.highlight-item a {
  background: linear-gradient(135deg, #064E3B, #022C22);
  border: 1.5px solid #10B981;
  color: #34D399;
  box-shadow: 0 4px 14px rgba(6,78,59,0.25);
}
.burger-menu-item.highlight-item a:hover {
  transform: translateX(4px);
  border-color: #34D399;
  color: #FFFFFF;
}

.header-cta-btn {
  background: var(--brand-green);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.header-cta-btn:hover {
  background: var(--brand-green-hover);
  transform: translateY(-1px);
}

/* =========================================================================
   CORPORATE MASTER FOOTER (LABO TECNIC STUDIO)
   ========================================================================= */
.corp-master-footer {
  background: #090D12;
  color: #CBD5E1;
  border-top: 2px solid #00875A;
  padding: 54px 0 28px;
  font-size: 0.88rem;
  position: relative;
  z-index: 10;
  width: 100%;
}

.corp-footer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 28px;
  margin-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.corp-header-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.corp-brand-badge {
  width: 48px;
  height: 48px;
  background: #00875A;
  color: #FFFFFF;
  font-weight: 900;
  font-size: 1.35rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 135, 90, 0.4);
  flex-shrink: 0;
}

.corp-brand-title {
  font-size: 1.2rem;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.corp-brand-sub {
  font-size: 0.84rem;
  color: #CBD5E1;
  margin-top: 3px;
}

.corp-header-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.corp-tag {
  background: rgba(0, 135, 90, 0.15);
  border: 1px solid rgba(0, 135, 90, 0.4);
  color: #34D399;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  letter-spacing: 0.03em;
}

.corp-footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.15fr 1.1fr;
  gap: 32px;
  margin-bottom: 36px;
}

.corp-col-title {
  font-size: 0.96rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
  position: relative;
  padding-bottom: 8px;
}

.corp-col-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: #00875A;
  border-radius: 2px;
}

.corp-corp-info p {
  margin-bottom: 7px;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #CBD5E1;
}

.corp-corp-info strong {
  color: #FFFFFF;
}

.corp-corp-info a {
  color: #34D399;
  text-decoration: none;
}

.corp-corp-info a:hover {
  text-decoration: underline;
}

.corp-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.corp-links a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.86rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.corp-links a:hover {
  color: #10B981;
  transform: translateX(3px);
}

.corp-meta-badge {
  display: inline-block;
  font-size: 0.78rem;
  color: #94A3B8;
  padding: 2px 0;
  line-height: 1.4;
}

.corp-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  text-align: center;
}

.corp-copy {
  font-size: 0.84rem;
  color: #CBD5E1;
  line-height: 1.6;
}

.corp-sub-copy {
  font-size: 0.78rem;
  color: #94A3B8;
}

@media (max-width: 900px) {
  .corp-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
}

@media (max-width: 600px) {
  .corp-footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .corp-footer-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* =========================================================================
   COOKIE CONSENT BANNER (GDPR / PRIVACY)
   ========================================================================= */
.cookie81-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9980;
  background: rgba(11, 15, 20, 0.97);
  backdrop-filter: blur(14px);
  border-top: 2px solid #00875A;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  animation: cookieSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie81-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 280px;
}

.cookie81-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.cookie81-text {
  font-size: 0.83rem;
  color: #CBD5E1;
  line-height: 1.5;
}

.cookie81-text strong {
  color: #FFFFFF;
}

.cookie81-text a {
  color: #34D399;
  text-decoration: underline;
  font-weight: 700;
}

.cookie81-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.cookie81-btn-sec {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #E2E8F0;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cookie81-btn-sec:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}

.cookie81-btn-prim {
  background: #00875A;
  border: none;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 9px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 135, 90, 0.4);
  white-space: nowrap;
}

.cookie81-btn-prim:hover {
  background: #10B981;
}

/* =========================================================================
   STILI DEDICATI PAGINE INTERNE, LEGALI E DOCUMENTALI
   ========================================================================= */
.legal-page-wrap {
  padding: 56px 20px 80px;
  max-width: 960px;
  margin: 0 auto;
}

.legal-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #EAF5EF;
  color: #00875A;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 135, 90, 0.25);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-header-title {
  font-size: 2.35rem;
  font-weight: 900;
  color: #0F172A;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 14px;
}

.legal-header-sub {
  color: #64748B;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 32px;
}

.legal-box-highlight {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-left: 4px solid #00875A;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-subtle);
}

.legal-box-highlight h3 {
  font-size: 1.18rem;
  font-weight: 900;
  color: #00875A;
  margin-bottom: 12px;
}

.legal-box-highlight p {
  font-size: 0.94rem;
  color: #334155;
  line-height: 1.7;
}

.legal-section-block {
  margin-bottom: 36px;
}

.legal-section-block h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.legal-section-block p {
  font-size: 0.96rem;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 14px;
}

.legal-section-block ul, .legal-section-block ol {
  font-size: 0.96rem;
  color: #475569;
  line-height: 1.75;
  padding-left: 24px;
  margin-bottom: 16px;
}

.legal-section-block li {
  margin-bottom: 8px;
}

.legal-section-block strong {
  color: #1E293B;
}

.legal-nav-switch {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 24px;
  margin-top: 48px;
  text-align: center;
}

.legal-nav-switch-title {
  font-size: 0.88rem;
  font-weight: 800;
  color: #00875A;
  margin-bottom: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.legal-nav-switch-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.legal-nav-switch-links a {
  color: #475569;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.legal-nav-switch-links a:hover, .legal-nav-switch-links a.active {
  color: #00875A;
  font-weight: 800;
  text-decoration: underline;
}

.btn-legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #00875A;
  color: #FFFFFF;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.88rem;
  transition: all 0.2s;
}

.btn-legal-back:hover {
  background: #00704A;
  transform: translateY(-1px);
}

/* =========================================================================
   81+ BLINDATURA GUSCIO ESTERNO & FORMATI AUREI (9:16 MOBILE-FIRST & 16:9 DESKTOP)
   Eliminazione totale sbordamenti · Anti-Overflow Shield · First Mobile Assoluto
   ========================================================================= */
html {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100vw !important;
  overflow-x: hidden !important;
  -webkit-text-size-adjust: 100% !important;
}

*, *::before, *::after {
  box-sizing: border-box !important;
}

body.shell-9-16,
.shell-9-16 {
  width: 100% !important;
  max-width: 100vw !important;
  min-height: 100dvh;
  margin: 0 auto !important;
  overflow-x: hidden !important;
  position: relative !important;
  box-sizing: border-box !important;
}

/* Prevenzione sbordamento media, immagini, video e vettori */
.shell-9-16 img,
.shell-9-16 svg,
.shell-9-16 video,
.shell-9-16 iframe,
.shell-9-16 canvas,
.shell-9-16 object,
.shell-9-16 embed {
  max-width: 100% !important;
  height: auto;
}

/* Prevenzione rottura viewport da parole/stringhe lunghe */
.shell-9-16 p,
.shell-9-16 h1,
.shell-9-16 h2,
.shell-9-16 h3,
.shell-9-16 h4,
.shell-9-16 h5,
.shell-9-16 h6,
.shell-9-16 span,
.shell-9-16 a,
.shell-9-16 td,
.shell-9-16 th,
.shell-9-16 li,
.shell-9-16 code,
.shell-9-16 pre {
  overflow-wrap: break-word !important;
  word-wrap: break-word !important;
}

/* Tabelle e container dati isolati e scrollabili su mobile */
.shell-9-16 table {
  max-width: 100% !important;
}

.shell-9-16 .table-responsive,
.shell-9-16 [class*="table-wrap"],
.shell-9-16 [class*="table-container"],
.shell-9-16 .table-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Contenitore Desktop 16:9 */
.container-16-9 {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Griglie responsive First-Mobile */
.grid-81 {
  display: grid;
  gap: 24px;
  width: 100%;
}
.grid-81-1col { grid-template-columns: 1fr; }
.grid-81-2col { grid-template-columns: repeat(2, 1fr); }
.grid-81-3col { grid-template-columns: repeat(3, 1fr); }
.grid-81-4col { grid-template-columns: repeat(4, 1fr); }
.grid-81-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

@media (max-width: 992px) {
  .grid-81-3col, .grid-81-4col {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .grid-81-2col, .grid-81-3col, .grid-81-4col, .grid-81-auto {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .container-16-9,
  .wrap {
    padding: 0 16px !important;
  }
  /* Touch target standard mobile (min 44px) */
  .shell-9-16 .btn,
  .shell-9-16 .btn-action-primary,
  .shell-9-16 .btn-action-secondary,
  .shell-9-16 button:not(.burger-close-btn):not(.burger-menu-btn):not(.copy-chip-btn):not(.modal-close-btn):not(.exit-magnet-close) {
    min-height: 44px;
    box-sizing: border-box;
  }
}
@media (max-width: 640px) {
  /* Font size minimo 16px su campi per bloccare auto-zoom iOS */
  .shell-9-16 input[type="text"],
  .shell-9-16 input[type="email"],
  .shell-9-16 input[type="tel"],
  .shell-9-16 input[type="number"],
  .shell-9-16 select,
  .shell-9-16 textarea {
    font-size: 16px !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
}
@media (max-width: 380px) {
  .container-16-9,
  .wrap {
    padding: 0 12px !important;
  }
}

/* =========================================================================
   PERFECT CARDS SYSTEM (DESIGN.md REQUISITO 2)
   ========================================================================= */
.card-81 {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: left;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
  width: 100%;
  box-sizing: border-box;
}

.card-81:hover {
  transform: translateY(-3px);
  border-color: #10B981;
  box-shadow: 0 12px 28px rgba(0, 135, 90, 0.12);
}

.card-81.card-highlight {
  border: 2px solid #00875A;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAF9 100%);
  box-shadow: 0 8px 24px rgba(0, 135, 90, 0.16);
}

.card-81.card-dark {
  background: #0F172A;
  border: 1px solid #1E293B;
  color: #F8FAFC;
}
.card-81.card-dark:hover {
  border-color: #34D399;
}

.card-81-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--brand-green-light);
  color: var(--brand-green);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
  width: fit-content;
}

.card-81-badge.badge-red {
  background: #FEF2F2;
  color: #EF4444;
}
.card-81-badge.badge-amber {
  background: #FFFBEB;
  color: #D97706;
}
.card-81-badge.badge-blue {
  background: #F0F9FF;
  color: #0284C7;
}

.card-81-title {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 800;
  color: #0F172A;
  line-height: 1.25;
  margin-bottom: 10px;
}
.card-81.card-dark .card-81-title {
  color: #FFFFFF;
}

.card-81-desc {
  font-size: 0.94rem;
  color: #475569;
  line-height: 1.55;
  margin-bottom: 18px;
}
.card-81.card-dark .card-81-desc {
  color: #94A3B8;
}

.card-81-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card-81-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: #334155;
  line-height: 1.45;
}
.card-81.card-dark .card-81-features li {
  color: #CBD5E1;
}

.card-81-features li svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: #10B981;
}

.card-81-price-box {
  border-top: 1px solid #E2E8F0;
  padding-top: 16px;
  margin-top: auto;
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.card-81.card-dark .card-81-price-box {
  border-color: #1E293B;
}

.card-81-price-main {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 900;
  color: #00875A;
  line-height: 1;
}
.card-81.card-dark .card-81-price-main {
  color: #34D399;
}

.card-81-price-sub {
  font-size: 0.78rem;
  color: #64748B;
  font-weight: 600;
}

/* =========================================================================
   PERFECT BUTTONS SYSTEM (DESIGN.md REQUISITO 3 & FIRST-MOBILE)
   - Rigorosamente 1 sola riga (white-space: nowrap !important)
   - Zero doppie righe o testi a capo nei bottoni
   - Poche parole (max 2-4 parole concise)
   - Altezza ergonomica touch (44-50px)
   - Zero sbordamento fuori dal guscio / card
   - Testo centrato, font-weight 700
   ========================================================================= */
/* =========================================================================
   PERFECT BUTTONS SYSTEM (DESIGN.md REQUISITO 3 & FIRST-MOBILE)
   - Rigorosamente 1 sola riga per bottoni primari (white-space: nowrap !important)
   - Altezza ergonomica touch (44-52px)
   - Zero sbordamento fuori dal guscio / card
   - Testo centrato, font-weight 700 / 800
   - Esclusi elementi speciali: accordions, close buttons, copy chips, tabs, pills
   ========================================================================= */
.btn,
.btn-81,
.btn-hero-primary,
.btn-hero-secondary,
.offer-cta-btn,
.btn-action-primary,
.btn-action-secondary,
.btn-binario2-primary,
.btn-binario2-wa,
.btn-portal-az,
.btn-corsisti,
.btn-aula-virtuale,
.btn-all-news,
.btn-submit-modal,
.btn-kit-primary,
.btn-presidio-primary,
.tp-btn-cta-primary,
.tp-btn-cta-secondary,
.tp-write-review-btn,
.header-cta-btn,
.offer-btn-cta,
.btn-wa,
.btn-buy-course,
.btn-enroll,
.btn-solve-now,
.btn-bonifico-toggle,
.btn-submit-bonifico,
.btn-wa-support,
.btn-81-primary,
.btn-81-secondary,
.btn-81-outline,
.btn-81-wa,
button.btn:not(.burger-menu-btn):not(.burger-close-btn):not(.modal-close-btn):not(.exit-magnet-close):not(.pnl-accordion-toggle):not(.copy-chip-btn):not(.cat-pill):not(.val-pill):not(.filter-pill):not(.nav-arrow-btn):not(.btn-iscriviti-checkout) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  min-height: 44px !important;
  padding: 11px 18px !important;
  border-radius: var(--radius-sm, 8px) !important;
  font-size: clamp(0.84rem, 2.5vw, 0.96rem) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  text-decoration: none !important;
  text-align: center !important;
  word-break: normal !important;
  max-width: 100% !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  letter-spacing: 0.01em !important;
  user-select: none !important;
}

.btn-81-primary {
  background: var(--brand-green);
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(0, 135, 90, 0.25);
  border: none !important;
}
.btn-81-primary:hover {
  background: var(--brand-green-hover);
  box-shadow: 0 6px 20px rgba(0, 135, 90, 0.35);
  transform: translateY(-1px);
  color: #FFFFFF !important;
}

.btn-81-secondary {
  background: #0F172A;
  color: #FFFFFF !important;
  border: 1px solid #334155 !important;
}
.btn-81-secondary:hover {
  background: #1E293B;
  border-color: #64748B !important;
  transform: translateY(-1px);
  color: #FFFFFF !important;
}

.btn-81-outline {
  background: transparent;
  color: var(--brand-green) !important;
  border: 2px solid var(--brand-green) !important;
}
.btn-81-outline:hover {
  background: var(--brand-green-light);
  color: var(--brand-green-hover) !important;
  transform: translateY(-1px);
}

.btn-81-wa {
  background: #25D366;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3);
  border: none !important;
}
.btn-81-wa:hover {
  background: #1EBE5D;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  transform: translateY(-1px);
  color: #FFFFFF !important;
}

/* HEADER & HERO WHATSAPP BUTTON (3D EMERALD GLOW) */
.btn-header-wa {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
  color: #FFFFFF !important;
  border: 1.5px solid #34D399 !important;
  padding: 11px 22px !important;
  border-radius: var(--radius-sm, 10px) !important;
  font-weight: 800 !important;
  font-size: 0.92rem !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
  text-decoration: none !important;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}
.btn-header-wa:hover {
  background: linear-gradient(135deg, #34D399 0%, #10B981 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  color: #FFFFFF !important;
}

/* CARD WHATSAPP RAPID BOOKING BUTTON */
.btn-card-wa {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(37, 211, 102, 0.15) !important;
  border: 1.5px solid #25D366 !important;
  color: #25D366 !important;
  padding: 10px 16px !important;
  border-radius: 12px !important;
  font-size: 0.86rem !important;
  font-weight: 800 !important;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  white-space: nowrap !important;
  cursor: pointer !important;
  margin-top: 8px !important;
}
.btn-card-wa:hover {
  background: #25D366 !important;
  color: #FFFFFF !important;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45) !important;
  transform: translateY(-1px) !important;
}

/* CARD BINARIO 1 E-LEARNING ALTERNATIVE CHIP */
.chip-binario1-direct {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(16, 185, 129, 0.15) !important;
  border: 1px dashed #34D399 !important;
  color: #A7F3D0 !important;
  padding: 7px 12px !important;
  border-radius: 8px !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
  margin-bottom: 8px !important;
  text-align: center !important;
}
.chip-binario1-direct:hover {
  background: rgba(16, 185, 129, 0.28) !important;
  color: #FFFFFF !important;
  border-style: solid !important;
  border-color: #10B981 !important;
}

/* CARD CHECKOUT PRIMARY MULTI-LINE BUTTON */
.btn-iscriviti-checkout {
  width: 100% !important;
  box-sizing: border-box !important;
  background: linear-gradient(135deg, #10B981 0%, #059669 50%, #047857 100%) !important;
  border: 2px solid #34D399 !important;
  color: #FFFFFF !important;
  padding: 12px 18px !important;
  border-radius: 12px !important;
  cursor: pointer !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  min-height: 56px !important;
  max-height: none !important;
  white-space: normal !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  text-decoration: none !important;
}
.btn-iscriviti-checkout:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
  border-color: #A7F3D0 !important;
  background: linear-gradient(135deg, #34D399 0%, #10B981 50%, #059669 100%) !important;
}

/* ACCORDION BAR INSIDE CARDS */
.pnl-accordion-toggle {
  width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(2, 44, 34, 0.8) !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  color: #34D399 !important;
  text-align: left !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 42px !important;
  max-height: none !important;
  white-space: normal !important;
  font-family: inherit !important;
  transition: background 0.2s ease !important;
}
.pnl-accordion-toggle:hover {
  background: rgba(2, 44, 34, 1) !important;
  color: #6EE7B7 !important;
}

/* COPY CHIP MINI BUTTON */
.copy-chip-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 22px !important;
  max-height: 26px !important;
  padding: 1px 7px !important;
  font-size: 0.70rem !important;
  font-weight: 800 !important;
  border-radius: 4px !important;
  border: 1px solid #10B981 !important;
  background: #FFFFFF !important;
  color: #065F46 !important;
  cursor: pointer !important;
  margin-left: 6px !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
}
.copy-chip-btn:hover {
  background: #ECFDF5 !important;
  color: #047857 !important;
  border-color: #059669 !important;
}

/* MODAL CLOSE ROUND BUTTON */
.modal-close-btn,
.exit-magnet-close {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  min-height: 34px !important;
  max-height: 34px !important;
  border-radius: 50% !important;
  padding: 0 !important;
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #475569 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.modal-close-btn:hover,
.exit-magnet-close:hover {
  background: #E2E8F0 !important;
  color: #0F172A !important;
}

/* HERO SECTION FLUIDA */
.page-hero-81 {
  padding: clamp(40px, 7vw, 72px) 0 clamp(32px, 5vw, 54px);
  text-align: center;
  background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
  border-bottom: 1px solid #E2E8F0;
  width: 100%;
}

.page-eyebrow-81 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-green-light);
  color: var(--brand-green);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
  border: 1px solid rgba(0, 135, 90, 0.2);
}

.page-title-81 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: #0F172A;
  margin-bottom: 14px;
}

.page-sub-81 {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
  color: #475569;
  max-width: 780px;
  margin: 0 auto 28px;
  line-height: 1.55;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  max-width: 520px;
  margin: 0 auto;
}
@media (max-width: 520px) {
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }
}

/* =========================================================================
   UNIVERSAL MOBILE RESPONSIVE & ADAPTIVE SYSTEM (ZERO OVERFLOW & SAFE MARGINS)
   ========================================================================= */
html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  width: 100% !important;
  position: relative !important;
  box-sizing: border-box !important;
}

*, *::before, *::after {
  box-sizing: border-box;
}

/* Margini laterali di sicurezza su tutti i telefoni (Cards e tabelle distanziate dai bordi) */
@media (max-width: 768px) {
  html, body {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100vw !important;
    position: relative !important;
    box-sizing: border-box !important;
  }

  .wrap,
  .container,
  .container-16-9,
  .shop-wrap,
  .hero-calendar,
  .courses-grid-container,
  .main-wrap,
  .pricing-wrap,
  .content-wrap,
  .collaudo-container,
  .pack-container,
  .sim-container,
  .legal-page-wrap,
  .corp-master-footer .wrap,
  section,
  main {
    padding-left: 18px !important;
    padding-right: 18px !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden;
  }

  /* Tutte le griglie diventano 1 colonna fluida dentro lo schermo */
  .grid-81,
  .shop-grid,
  .courses-grid-container,
  .pricing-grid,
  .features-grid,
  .offer-grid,
  .grid-offers,
  .cards-grid,
  .selector-grid,
  .steps-grid,
  .problems-grid,
  .form-grid,
  .corp-footer-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 18px !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Cards perfette: 100% nel contenitore con spazio e distanziamento laterale garantito */
  .card-81,
  .course-card,
  .course-card-3d,
  .offer-pillar,
  .resolver-card,
  .solution-card,
  .plan-card,
  .fomo-rolling-box,
  .wa-box,
  .guarantee-box,
  .ticker-card-3d,
  .tool-card,
  .fase-step,
  .selector-card,
  .step-card,
  .resolver-container,
  .magic-solution-card,
  .problem-tile,
  .free-banner,
  .webinar-card-wrapper,
  .webinar-card-clean,
  .gauge-card,
  .faq-item {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    border-radius: 18px !important;
    padding: 22px 18px !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06) !important;
    overflow: hidden !important;
  }

  /* Gestione tabelle: distanziate lateralmente dai bordi dello schermo, touch-scroll fluido */
  .table-responsive,
  .table-wrap,
  .table-container {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    margin: 18px 0 !important;
    border-radius: 14px !important;
    border: 1px solid #E2E8F0 !important;
    background: #FFFFFF !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
    padding: 6px !important;
    box-sizing: border-box !important;
    display: block !important;
  }

  table, .table {
    width: 100% !important;
    max-width: 100% !important;
    border-collapse: collapse !important;
    font-size: 0.85rem !important;
    box-sizing: border-box !important;
    display: block !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  th, td {
    padding: 12px 14px !important;
    white-space: nowrap !important;
  }

  /* Pulsanti responsive ad altezza piena, touch-friendly, RIGOROSAMENTE A SINGOLA RIGA */
  .btn,
  .btn-81,
  .btn-hero-primary,
  .btn-hero-secondary,
  .offer-cta-btn,
  .btn-action-primary,
  .btn-action-secondary,
  .btn-binario2-primary,
  .btn-binario2-wa,
  .btn-portal-az,
  .btn-corsisti,
  .btn-aula-virtuale,
  .btn-all-news,
  .tab-btn,
  .btn-submit-modal,
  .btn-header-wa,
  .btn-kit-primary,
  .btn-presidio-primary,
  .tp-btn-cta-primary,
  .tp-btn-cta-secondary,
  .tp-write-review-btn,
  .btn-buy-course,
  .btn-enroll,
  .offer-btn-cta,
  .btn-wa,
  .btn-solve-now,
  .btn-bonifico-toggle,
  .btn-submit-bonifico,
  .btn-wa-support,
  .header-cta-btn,
  [class*="btn-"],
  [class*="-cta-btn"],
  button:not(.burger-menu-btn):not(.burger-close-btn) {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 44px !important;
    max-height: 52px !important;
    padding: 10px 14px !important;
    font-size: clamp(0.82rem, 3.2vw, 0.94rem) !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: normal !important;
    text-align: center !important;
    justify-content: center !important;
    display: inline-flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
  }

  /* Header pulito su schermi stretti */
  .master-header .wrap {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .header-live-stats {
    display: none !important;
  }
  .burger-drawer-panel {
    max-width: 86vw !important;
    width: 86vw !important;
  }

  /* Tipografia fluida senza troncamenti */
  h1, .page-title-81, .shop-title, .hero-calendar h1 {
    font-size: clamp(1.65rem, 6.5vw, 2.3rem) !important;
    line-height: 1.2 !important;
    word-break: break-word !important;
  }
  h2, .course-title, .section-title, .offer-title {
    font-size: clamp(1.2rem, 5vw, 1.6rem) !important;
    line-height: 1.3 !important;
    word-break: break-word !important;
  }
  p, .course-desc, .shop-sub, .hero-lead, .offer-desc {
    font-size: 0.94rem !important;
    line-height: 1.55 !important;
    word-break: break-word !important;
  }
}

/* =========================================================================
   UNIVERSAL COOKIE CONSENT BANNER (GDPR COMPLIANT)
   ========================================================================= */
.cookie81-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9980;
  background: rgba(11, 15, 20, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 2px solid #00875A;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.5);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  animation: cookieSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes cookieSlideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.cookie81-content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 280px;
}
.cookie81-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.cookie81-text {
  font-size: 0.83rem;
  color: #CBD5E1;
  line-height: 1.5;
}
.cookie81-text strong {
  color: #FFFFFF;
}
.cookie81-text a {
  color: #34D399;
  text-decoration: underline;
  font-weight: 700;
}
.cookie81-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.cookie81-btn-sec {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #E2E8F0;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 9px 16px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.cookie81-btn-sec:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #FFFFFF;
}
.cookie81-btn-prim, .cookie81-btn-pri {
  background: #00875A;
  border: none;
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 9px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 135, 90, 0.4);
  white-space: nowrap;
}
.cookie81-btn-prim:hover, .cookie81-btn-pri:hover {
  background: #00704A;
  transform: translateY(-1px);
}
@media (max-width: 768px) {
  .cookie81-banner {
    position: fixed !important;
    bottom: 68px !important;
    left: 10px !important;
    right: 10px !important;
    width: auto !important;
    max-width: calc(100% - 20px) !important;
    margin: 0 auto !important;
    z-index: 10005 !important;
    border-radius: 14px !important;
    border: 1.5px solid #10B981 !important;
    background: rgba(11, 15, 20, 0.98) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    padding: 12px 14px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.7) !important;
    gap: 10px !important;
  }
  .cookie81-content {
    min-width: 0 !important;
    gap: 8px !important;
  }
  .cookie81-icon {
    display: none !important;
  }
  .cookie81-text {
    font-size: 0.76rem !important;
    line-height: 1.35 !important;
  }
  .cookie81-actions {
    width: 100% !important;
    display: flex !important;
    gap: 8px !important;
    justify-content: stretch !important;
  }
  .cookie81-btn-sec, .cookie81-btn-prim, .cookie81-btn-pri {
    flex: 1 !important;
    text-align: center !important;
    padding: 9px 8px !important;
    font-size: 0.78rem !important;
    min-height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 8px !important;
  }
}


/* =========================================================================
   STICKY BOTTOM MOBILE BAR (THUMB ZONE CRO CONVERSION - 1 CLICK PID 2377)
   ========================================================================= */
.sticky-bottom-mobile-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(8, 12, 18, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1.5px solid rgba(16, 185, 129, 0.45);
  padding: 10px 14px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.7);
}

@media (max-width: 768px) {
  .sticky-bottom-mobile-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100vw;
    box-sizing: border-box;
  }
  body {
    padding-bottom: 78px !important;
  }
}

.thumb-bar-btn-single {
  flex: 1;
  width: 100%;
  max-width: 520px;
  position: relative;
  overflow: hidden;
  background: #059669;
  background: linear-gradient(135deg, #022c22 0%, #065f46 20%, #10b981 48%, #a7f3d0 52%, #059669 76%, #022c22 100%);
  background-size: 200% 200%;
  border-top: 1.5px solid #A7F3D0;
  border-bottom: 2.5px solid #022C22;
  border-left: 1px solid #10B981;
  border-right: 1px solid #10B981;
  color: #FFFFFF !important;
  text-decoration: none;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 13px 18px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 22px rgba(5, 150, 105, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  animation: metallic-pulse-green 4s ease-in-out infinite;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.thumb-bar-btn-single:active {
  transform: scale(0.98);
  filter: brightness(1.1);
}

@keyframes metallic-pulse-green {
  0% { background-position: 0% 50%; box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
  50% { background-position: 100% 50%; box-shadow: 0 8px 28px rgba(16, 185, 129, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.9); }
  100% { background-position: 0% 50%; box-shadow: 0 6px 20px rgba(5, 150, 105, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
}

/* Riflesso metallico vivo dinamico */
.thumb-bar-btn-single::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: rotate(25deg);
  animation: metallic-sheen-sweep 3.5s infinite;
  pointer-events: none;
}

@keyframes metallic-sheen-sweep {
  0% { left: -60%; }
  30% { left: 140%; }
  100% { left: 140%; }
}

@media (max-width: 360px) {
  .sticky-bottom-mobile-bar {
    padding: 8px 10px;
  }
  .thumb-bar-btn-single {
    font-size: 0.82rem;
    padding: 11px 12px;
    gap: 6px;
    letter-spacing: 0.03em;
  }
}

/* =========================================================================
   EXIT-INTENT / REASSURANCE BOTTOM SHEET (PATTO DI TRANQUILLITA 81+)
   ========================================================================= */
.reassurance-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.reassurance-overlay.active {
  opacity: 1;
  visibility: visible;
}

.reassurance-card {
  width: 100%;
  max-width: 600px;
  background: #0D131A;
  border: 2px solid #10B981;
  border-bottom: none;
  border-radius: 24px 24px 0 0;
  padding: 28px 24px 34px;
  color: #FFFFFF;
  box-shadow: 0 -15px 45px rgba(0, 0, 0, 0.6);
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.reassurance-overlay.active .reassurance-card {
  transform: translateY(0);
}

.reassurance-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: none;
  color: #CBD5E1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.reassurance-close:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
}

.reassurance-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34D399;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.reassurance-title {
  font-size: 1.35rem;
  font-weight: 900;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.reassurance-text {
  font-size: 0.92rem;
  color: #94A3B8;
  line-height: 1.5;
  margin-bottom: 20px;
}

.reassurance-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.reassurance-btn-wa {
  background: #25D366;
  color: #022C22;
  font-weight: 900;
  font-size: 0.98rem;
  padding: 14px 20px;
  border-radius: 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition: all 0.2s;
}

.reassurance-btn-wa:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.reassurance-btn-sec {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #CBD5E1;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 16px;
  border-radius: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
}

.reassurance-btn-sec:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
}

/* =========================================================================
   81+ UNIVERSAL DESIGN SYSTEM COMPONENTS & REUSABLE CLASSES
   Uniformazione Grafica di tutte le pagine al Visual della Home
   ========================================================================= */

/* HERO & SECTION BOXES */
.hero-box {
  padding: 64px 0 48px;
  background: radial-gradient(circle at 50% 10%, var(--brand-green-light) 0%, #FFFFFF 70%);
  text-align: center;
  border-bottom: 1px solid var(--brand-border);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 135, 90, 0.3);
  color: var(--brand-green);
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 18px;
  box-shadow: 0 2px 8px rgba(0, 135, 90, 0.08);
}

.hero-h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.03em;
  color: var(--brand-dark);
  max-width: 860px;
  margin: 0 auto 16px;
}

.hero-h1 span, .highlight-green {
  color: var(--brand-green) !important;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 500;
  color: var(--brand-gray);
  max-width: 760px;
  margin: 0 auto 28px;
  line-height: 1.55;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

/* BUTTONS */
.btn-hero-primary, .btn-81-primary {
  background: var(--brand-green);
  color: #FFFFFF !important;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 900;
  padding: 15px 32px;
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(0, 135, 90, 0.32);
  transition: all 0.22s ease;
  cursor: pointer;
  border: none;
}

.btn-hero-primary:hover, .btn-81-primary:hover {
  background: var(--brand-green-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 135, 90, 0.42);
  color: #FFFFFF !important;
}

.btn-hero-secondary, .btn-81-secondary {
  background: #FFFFFF;
  color: var(--brand-dark) !important;
  text-decoration: none;
  font-size: 1.02rem;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--brand-border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.22s ease;
  cursor: pointer;
}

.btn-hero-secondary:hover, .btn-81-secondary:hover {
  border-color: var(--brand-green);
  color: var(--brand-green) !important;
  background: var(--brand-green-light);
  transform: translateY(-1px);
}

.btn-81-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

/* CARDS & CONTAINERS */
.card-81 {
  background: #FFFFFF;
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-md);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: all 0.22s ease;
  position: relative;
}

.card-81:hover {
  border-color: var(--brand-green);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.card-81-dark {
  background: var(--brand-dark-card);
  border: 1.5px solid var(--brand-border-dark);
  border-radius: var(--radius-md);
  padding: 26px 24px;
  color: #FFFFFF;
  box-shadow: var(--shadow-dark);
  transition: all 0.22s ease;
}

.card-81-dark:hover {
  border-color: var(--brand-green-neon);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(16, 185, 129, 0.15);
}

/* FORMS & INPUTS */
.form-group-81 {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
  text-align: left;
}

.form-label-81 {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--brand-dark);
}

.input-81, .select-81, .textarea-81 {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--brand-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--brand-dark);
  background: #FFFFFF;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.input-81:focus, .select-81:focus, .textarea-81:focus {
  outline: none;
  border-color: var(--brand-green);
  box-shadow: 0 0 0 3.5px rgba(0, 135, 90, 0.15);
}

/* DATA TABLES */
.table-81-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-md);
  background: #FFFFFF;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.table-81 {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
}

.table-81 th {
  background: var(--brand-gray-light);
  color: var(--brand-gray);
  font-weight: 800;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1.5px solid var(--brand-border);
}

.table-81 td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--brand-border);
  color: var(--brand-dark);
  vertical-align: middle;
}

.table-81 tr:last-child td {
  border-bottom: none;
}

.table-81 tr:hover td {
  background: var(--brand-green-light);
}

/* BADGES & STATUS PILLS */
.badge-81-success {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-81-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #D97706;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
}

.badge-81-dark {
  background: #0F172A;
  color: #FFFFFF;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
}

/* =========================================================================
   81+ SAFETY OS · MASTER MOBILE-FIRST OVERHAUL ENGINE (v2026.09)
   Eliminazione Universale Overflow, Responsive Cards, Touch Targets & Zero Conflict
   ========================================================================= */

/* 1. Reset Globale Anti-Overflow Rigoroso */
html, body {
  max-width: 100% !important;
  overflow-x: hidden !important;
  width: 100% !important;
  position: relative;
  -webkit-text-size-adjust: 100%;
}

*, *::before, *::after {
  box-sizing: border-box !important;
}

/* 2. Universal Media Safety: Immagini, Video, Canvas, Iframe non sfondano mai lo schermo */
img, video, canvas, iframe, embed, object, svg {
  max-width: 100% !important;
  height: auto;
}

iframe {
  width: 100% !important;
  border: 0;
}

/* 2b. Global Bulletproof Button & Container Anti-Overflow Engine */
button:not(.burger-menu-btn):not(.burger-close-btn),
.btn,
.btn-81,
[class*="btn-"],
.cta-btn,
.cta-button,
[class*="-cta-btn"],
a.btn,
a[class*="btn-"],
input[type="submit"],
input[type="button"] {
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
  white-space: normal !important;
  text-align: center !important;
  flex-shrink: 1 !important;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-cta-group,
.cta-group,
.btn-group,
.actions-group,
.button-row {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}

.card,
.box,
.feature-card,
.price-card,
.course-card,
.summary-card {
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

/* 3. Mobile Breakpoint Engine (< 768px) */
@media (max-width: 768px) {
  /* Padding pagina e contenitori standard */
  body {
    padding-bottom: 84px !important; /* Spazio per la sticky bar */
  }

  .wrap, .container, .main-container, .page-container, 
  .hero-container, .content-container, .section-container, 
  .layout-container, .site-wrapper, .wrapper {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
  }

  /* Override universale per elementi con larghezze fisse inline o classi legacy */
  [style*="width: 5"], [style*="width: 6"], [style*="width: 7"], [style*="width: 8"], 
  [style*="width: 9"], [style*="width: 10"], [style*="width: 11"], [style*="width: 12"],
  [style*="width:5"], [style*="width:6"], [style*="width:7"], [style*="width:8"], 
  [style*="width:9"], [style*="width:10"], [style*="width:11"], [style*="width:12"],
  [style*="min-width: 4"], [style*="min-width: 5"], [style*="min-width: 6"], [style*="min-width: 7"], 
  [style*="min-width: 8"], [style*="min-width: 9"], [style*="min-width: 10"],
  [style*="min-width:4"], [style*="min-width:5"], [style*="min-width:6"], [style*="min-width:7"], 
  [style*="min-width:8"], [style*="min-width:9"], [style*="min-width:10"] {
    max-width: 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* Griglie e colonne che collassano a 1 colonna */
  .grid, [class*="grid-"], .cards-grid, .courses-grid, .features-grid, 
  .steps-grid, .pricing-grid, .testimonials-grid, .services-grid, 
  .columns-grid, .hero-grid, .split-grid, .catalog-grid, .matrix-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .row, .d-flex-row, .flex-row, .split-row, .cols-2, .cols-3, .cols-4, .two-col, .three-col {
    flex-direction: column !important;
    width: 100% !important;
  }

  /* Schede e card responsive */
  .card, .course-card, .feature-card, .price-card, .pricing-card, 
  .step-card, .box-card, .review-card, .pillar-card, .summary-card {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
    padding: 18px 16px !important;
  }

  /* Tabelle con scroll orizzontale touch fluido */
  table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    white-space: nowrap !important;
    font-size: 0.84rem !important;
    margin-bottom: 16px !important;
    border-collapse: collapse !important;
  }

  table th, table td {
    padding: 10px 12px !important;
  }

  .table-responsive, .table-wrap, .table-container, .table-81-wrap {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: 10px !important;
    margin-bottom: 20px !important;
  }

  /* Bottoni e CTA: Dimensione ergonomica, flessibili e perfettamente leggibili senza troncamenti */
  button:not(.burger-menu-btn):not(.burger-close-btn),
  .btn, .btn-primary, .btn-secondary, .cta-btn, .cta-button, 
  a.btn, a.btn-primary, a.cta-btn, input[type="submit"], input[type="button"],
  [class*="btn-"], [class*="-cta-btn"] {
    min-height: 44px !important;
    height: auto !important;
    max-height: none !important;
    padding: 10px 16px !important;
    font-size: clamp(0.82rem, 3.2vw, 0.94rem) !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-word !important;
    touch-action: manipulation;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Input form: 16px per evitare zoom forzato Safari iOS */
  input, select, textarea {
    font-size: 16px !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    max-width: 100% !important;
  }

  /* Typography scale ergonomica mobile */
  h1, .hero-title, .main-title {
    font-size: clamp(1.75rem, 6.5vw, 2.3rem) !important;
    line-height: 1.22 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 14px !important;
  }

  h2, .section-title {
    font-size: clamp(1.35rem, 5vw, 1.85rem) !important;
    line-height: 1.25 !important;
    letter-spacing: -0.015em !important;
    margin-bottom: 12px !important;
  }

  h3, .card-title {
    font-size: clamp(1.1rem, 4vw, 1.35rem) !important;
    line-height: 1.3 !important;
  }

  p, .hero-subtitle, .lead, .desc {
    font-size: 0.95rem !important;
    line-height: 1.55 !important;
  }

  /* Spaziatura sezioni mobile */
  section, .section, .hero, .hero-section {
    padding-top: 36px !important;
    padding-bottom: 36px !important;
  }

  /* Drawer Burger: larghezza comoda */
  .burger-drawer-panel {
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* 4. Schermi Ultra-Stretti (< 380px) */
@media (max-width: 380px) {
  .wrap, .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
  
  .thumb-bar-btn-resolver, .thumb-bar-btn-wa {
    font-size: 0.78rem !important;
    padding: 10px 8px !important;
  }

  .card, .course-card, .price-card {
    padding: 14px 12px !important;
  }
}



