/* ====================================================================
   STATO VUOTO SEZIONI STATICHE (EMPTY STATE)
   ==================================================================== */
.empty-modules-notice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  padding: 21px 16px;
  background: #FFFFFF;
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius-md);
  color: var(--color-text-sub);
  gap: 8px;
}

.empty-modules-notice .empty-notice-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.empty-modules-notice .empty-notice-header .material-symbols-outlined {
  font-size: 20px;
  color: var(--color-text-sub);
  flex-shrink: 0;
}

.empty-modules-notice .empty-notice-title {
  color: var(--color-text-main);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.empty-modules-notice .empty-notice-desc {
  color: #475569;
  font-size: 12px;
  line-height: 1.5;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
}


.faq-trigger {
  padding: 16px 18px;
}

.faq-question-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-text-main);
  text-align: left;
}

.faq-answer-text {
  font-size: 13px;
  color: #374151;
  line-height: 1.6;
}

/* ====================================================================
   SCHEDA SPORTELLO CONSUMATORE (/sportello-consumatore)
   Accento Istituzionale Verde (#16A34A)
   ==================================================================== */
.sportello-theme-container {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.sportello-hero-card {
  background: var(--color-surface);
  border: 1px solid var(--color-sportello-green-border);
  border-left: 4px solid var(--color-sportello-green);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}

.sportello-sub-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-sportello-green-hover);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}

.sportello-title {
  font-size: 19px;
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: -0.01em;
}

.sportello-desc {
  font-size: 13px;
  color: var(--color-text-sub);
  margin: 6px 0 14px;
  line-height: 1.5;
}

.sportello-helpline {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--color-sportello-green-light);
  color: #14532D;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
}

.section-title-sportello {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.steps-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.step-card {
  background: var(--color-surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-xs);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-sportello-green);
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.step-body {
  flex: 1;
}

.step-heading {
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.step-text {
  font-size: 12px;
  color: var(--color-text-sub);
  line-height: 1.5;
}

/* ====================================================================
   PULSANTE & PANNELLO ACCESSIBILITÀ (WAC/WCAG / EAA)
   ==================================================================== */
.a11y-trigger-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background-color: var(--color-text-main);
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 500;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.a11y-trigger-btn:hover {
  transform: scale(1.08);
  background-color: var(--color-primary);
}

.a11y-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(2px);
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
}

.a11y-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
}

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

.btn-icon {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 4px;
}

.a11y-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.a11y-option-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  background: var(--color-surface-subtle);
  border-radius: var(--radius-md);
  gap: 12px;
}

.a11y-option-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-main);
}

.a11y-option-desc {
  font-size: 11px;
  color: var(--color-text-sub);
}

.a11y-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-subtle);
}

/* Modificatori Accessibilità Attivi */
body.a11y-high-contrast {
  --color-canvas: #000000;
  --color-surface: #000000;
  --color-surface-subtle: #121212;
  --color-text-main: #FFFFFF;
  --color-text-sub: #E5E7EB;
  --color-text-muted: #D1D5DB;
  --color-border: #FFFFFF;
  --color-border-subtle: #888888;
  --color-primary: #FFD700;
  --color-primary-hover: #FFF000;
  --color-sportello-green: #00FF66;
}

body.a11y-large-text {
  font-size: 18px !important;
}

body.a11y-large-text .form-control-clean {
  font-size: 16px !important;
}

body.a11y-text-spaced {
  letter-spacing: 0.08em !important;
  line-height: 1.8 !important;
}

/* ====================================================================
   VIDEO ADS REWARDED MODAL & BACKDROP SHADOWING
   ==================================================================== */
.ad-backdrop {
  position: fixed;
  inset: 0;
  background: var(--backdrop-overlay);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  z-index: var(--z-shadowing);
  display: grid;
  place-items: center;
  padding: 16px;
  animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ad-spotlight-modal {
  background: var(--color-surface);
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
}

.ad-spotlight-modal-compact {
  max-width: 400px;
}

.ad-modal-header {
  padding: 10px 14px;
  background: var(--color-surface-subtle);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.ad-sponsor-label {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-text-sub);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.ad-target-pill {
  font-size: 10px;
  font-weight: 700;
  background: #E2E8F0;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  color: var(--color-text-main);
  white-space: nowrap;
  flex-shrink: 0;
}

.ad-video-container {
  position: relative;
  width: 100%;
  background: #000000;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ad-live-slot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.ad-live-ins {
  display: block;
  width: 100%;
  height: 100%;
}

.ad-video-placeholder {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  color: #FFFFFF;
  text-align: center;
  padding: 16px;
}

.ad-video-anim {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(0, 95, 184, 0.3);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.ad-video-brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 4px;
}

.ad-video-topic {
  font-size: 11.5px;
  color: #94A3B8;
}

.ad-modal-footer {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  background: var(--color-surface);
}

.ad-footer-primary-slot {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
}

.ad-skip-download-btn {
  height: 38px;
  padding: 0 14px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: var(--radius-md);
  white-space: nowrap;
  gap: 6px;
  width: 100%;
  justify-content: center;
}

.ad-timer-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
}

.ad-progress-bar-bg {
  width: 100%;
  height: 4px;
  background: #E5E7EB;
}

.ad-progress-bar-fill {
  height: 100%;
  background: var(--color-primary);
  transition: width 1s linear;
}

.ad-fallback-link {
  font-size: 10.5px;
  color: var(--color-text-muted);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  white-space: nowrap;
}

/* ====================================================================
   ADBLOCK WARNING MODAL STYLES (COMPACT MOBILE-FIRST & STITCH 60-30-10)
   ==================================================================== */
.ad-modal-header-alert {
  background: #FEF3C7;
  border-bottom: 1px solid #FDE68A;
}

.ad-target-pill-warning {
  background: #FEE2E2;
  color: #DC2626;
  font-weight: 800;
}

.adblock-warning-card {
  padding: 16px;
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.adblock-warning-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adblock-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.adblock-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FEE2E2;
  color: #DC2626;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1.5px solid #FECACA;
}

.adblock-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
  text-transform: uppercase;
  text-align: left;
}

.adblock-subtitle {
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-text-sub);
  margin: 0;
  text-align: left;
}

.adblock-guide-box {
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  padding: 10px 12px;
  border-radius: var(--radius-md);
}

.adblock-guide-title {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-text-main);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}

.adblock-steps-list {
  margin: 0;
  padding-left: 18px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--color-text-sub);
}

.adblock-steps-list li {
  margin-bottom: 4px;
}

.adblock-steps-list li:last-child {
  margin-bottom: 0;
}

.adblock-error-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FEE2E2;
  border: 1px solid #FECACA;
  color: #B91C1C;
  padding: 8px 12px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: var(--radius-sm);
}

.adblock-actions-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.ad-modal-action-btn {
  width: 100%;
  height: 40px;
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-md);
  white-space: nowrap;
  justify-content: center;
}

.ad-modal-secondary-btn {
  width: 100%;
  height: 36px;
  padding: 0 14px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: var(--radius-md);
  white-space: nowrap;
  justify-content: center;
}

@media (max-width: 480px) {
  .ad-backdrop {
    padding: 14px;
  }
  .ad-modal-footer {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px 14px;
  }
  .ad-fallback-group {
    justify-content: center;
  }
}

/* ====================================================================
   FOOTER ISTITUZIONALE & TRASPARENZA LEGALE
   ==================================================================== */
.app-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: var(--space-21) var(--space-13) var(--space-34);
  margin-top: auto;
}

.footer-container {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.footer-brand {
  font-weight: 800;
  font-size: 11.5px;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-5);
  color: var(--color-text-main);
}

.footer-legal-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin: var(--space-5) 0 var(--space-8);
}

.footer-legal-link {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.15s ease;
}

.footer-legal-link:hover {
  text-decoration: underline;
  color: var(--color-primary-hover);
}

.footer-dot-sep {
  font-size: 11px;
  color: var(--color-border);
}

.footer-company-info {
  font-size: 10.5px;
  color: var(--color-text-sub);
  border-top: 1px solid var(--color-border-subtle);
  padding-top: var(--space-8);
  line-height: 1.5;
}

@media (max-width: 480px) {
  .app-footer {
    padding: var(--space-21) var(--space-13) 80px;
  }
  .footer-brand {
    font-size: 11px;
    margin-bottom: var(--space-5);
  }
  .footer-legal-nav {
    gap: 6px 8px;
    margin: var(--space-5) 0 var(--space-8);
  }
  .footer-legal-link {
    font-size: 10px;
  }
  .footer-company-info {
    font-size: 9.5px;
    padding-top: var(--space-8);
    line-height: 1.45;
    max-width: 310px;
    margin: 0 auto;
  }
}

/* ====================================================================
   PAGINA NOTE LEGALI, PRIVACY, COOKIE E DISCLAIMER
   ==================================================================== */
.legal-view-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.legal-hero-card {
  background: var(--color-surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}

.legal-nav-tabs {
  display: flex;
  gap: 6px;
  background: var(--color-surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-full);
  padding: 6px;
  box-shadow: var(--shadow-xs);
  flex-wrap: wrap;
}

.legal-tab-btn {
  flex: 1;
  min-width: 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 700;
  border-radius: var(--radius-full);
  border: none;
  background: transparent;
  color: var(--color-text-sub);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.legal-tab-btn:hover {
  background: var(--color-surface-subtle);
  color: var(--color-text-main);
}

.legal-tab-btn.is-active {
  background: var(--color-primary);
  color: #FFFFFF;
  box-shadow: var(--shadow-pill);
}

.legal-document-card {
  background: var(--color-surface);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-xl);
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}

.legal-doc-header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-subtle);
  margin-bottom: 16px;
}

.legal-doc-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: -0.01em;
}

.legal-doc-date {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.legal-doc-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 13px;
  line-height: 1.6;
  color: #374151;
}

.legal-section h3 {
  font-size: 13px;
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}

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

.legal-section ul, .legal-section ol {
  padding-left: 20px;
  margin-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-callout-box {
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: 0; /* Rigorosamente dritte (zero curve) per spezzare attenzione e design */
  padding: 14px 18px;
  margin: 14px 0;
  font-size: 12.5px;
  line-height: 1.6;
}

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

/* ====================================================================
   SEGNALAZIONE ERRORE O AGGIORNAMENTO SCHEDA (FEEDBACK REPORT)
   ==================================================================== */
.feedback-report-section {
  margin-top: 24px;
  margin-bottom: 12px;
  width: 100%;
}

.feedback-report-trigger {
  width: 100%;
  background: var(--color-surface);
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.2s ease;
  color: var(--color-text-main);
  box-shadow: var(--shadow-xs);
  gap: 12px;
}

.feedback-trigger-left {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  flex: 1;
  min-width: 0;
}

.feedback-report-trigger:hover {
  border-color: var(--color-primary);
  background: var(--color-primary-light);
  box-shadow: var(--shadow-sm);
}

.feedback-report-trigger.is-open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-style: solid;
  border-color: var(--color-border);
  background: var(--color-surface);
}

.feedback-trigger-icon {
  font-size: 22px;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  flex-shrink: 0;
}

.feedback-trigger-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--color-text-main);
  letter-spacing: 0.02em;
}

.feedback-trigger-desc {
  font-size: 11px;
  color: var(--color-text-sub);
  margin-top: 2px;
}

.feedback-chevron {
  color: var(--color-text-sub);
  font-size: 20px;
  transition: transform 0.2s ease;
}

.feedback-report-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: none;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  padding: 18px;
  animation: fadeIn 0.2s ease-out;
  box-shadow: var(--shadow-sm);
}

.feedback-intro-text {
  font-size: 12px;
  color: var(--color-text-sub);
  line-height: 1.5;
  margin-bottom: 14px;
  background: var(--color-surface-subtle);
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-primary);
  border-radius: 0;
}

.feedback-field-group {
  margin-bottom: 14px;
}

.feedback-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-main);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.feedback-textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13px;
  color: var(--color-text-main);
  resize: vertical;
  min-height: 85px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feedback-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 95, 184, 0.15);
}

.feedback-textarea.has-error {
  border-color: #EF4444;
}

.feedback-input {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-family: inherit;
  font-size: 13px;
  color: var(--color-text-main);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.feedback-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 95, 184, 0.15);
}

.feedback-counter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  font-size: 11px;
}

.feedback-min-hint {
  color: var(--color-text-muted);
}

.feedback-counter {
  color: var(--color-text-muted);
  font-size: 11px;
}

.feedback-counter.counter-warning {
  color: #DC2626;
  font-weight: 700;
}

.feedback-error-alert {
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.feedback-privacy-note {
  font-size: 11px;
  color: var(--color-text-muted);
  text-align: center;
  margin-top: 8px;
  line-height: 1.4;
}

.feedback-success-box {
  text-align: center;
  padding: 24px 18px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.feedback-success-icon-wrap {
  color: #16A34A;
  margin-bottom: 8px;
  font-size: 32px;
}

.feedback-success-title {
  font-size: 14px;
  font-weight: 800;
  color: #166534;
  margin-bottom: 6px;
}

.feedback-success-text {
  font-size: 12px;
  color: #15803D;
  line-height: 1.5;
}

/* ====================================================================
   COOKIE CONSENT FLOATING TOAST & MODAL (GARANTE PRIVACY 2021 & GDPR)
   ==================================================================== */
.cookie-banner-card {
  position: fixed;
  bottom: var(--space-21);
  right: var(--space-21);
  width: 340px;
  max-width: calc(100vw - 42px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.16);
  z-index: var(--z-modal);
  padding: var(--space-13);
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
  animation: slideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.cookie-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-banner-title-line {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.cookie-banner-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--color-text-main);
  letter-spacing: -0.01em;
}

.cookie-banner-close-x {
  background: none;
  border: 1px solid var(--color-border);
  color: var(--color-text-sub);
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cookie-banner-close-x:hover {
  background: var(--color-surface-subtle);
  color: var(--color-text-main);
}

.cookie-banner-text {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--color-text-sub);
  margin: 0;
}

.cookie-banner-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-3);
}

.cookie-btn-action {
  font-size: 10px;
  padding: 6px 10px;
  justify-content: center;
}

.cookie-banner-footer-links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: 10px;
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

.cookie-link {
  color: var(--color-text-muted);
  text-decoration: underline;
  cursor: pointer;
}

.cookie-link-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 10px;
  color: var(--color-text-muted);
  text-decoration: underline;
  cursor: pointer;
}

.cookie-link:hover, .cookie-link-btn:hover {
  color: var(--color-primary);
}

/* Modale Preferenze Cookie (Centrato su Schermo con Backdrop) */
.cookie-backdrop {
  position: fixed;
  inset: 0;
  background: var(--backdrop-overlay);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  z-index: var(--z-shadowing);
  display: grid;
  place-items: center;
  padding: var(--space-13);
  animation: fadeIn 0.2s ease;
}

.cookie-modal-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--color-border);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cookie-modal-header {
  padding: var(--space-13) var(--space-21);
  background: var(--color-surface-subtle);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-modal-title-row {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.cookie-modal-title {
  font-size: 13px;
  font-weight: 800;
  margin: 0;
  color: var(--color-text-main);
  letter-spacing: -0.01em;
}

.cookie-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-sub);
  display: grid;
  place-items: center;
  padding: 4px;
}

.cookie-close-btn:hover {
  color: var(--color-text-main);
}

.cookie-modal-body {
  padding: var(--space-21);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-13);
}

.cookie-modal-intro {
  font-size: 12px;
  line-height: 1.5;
  color: var(--color-text-sub);
  margin: 0;
}

.cookie-category-item {
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-13);
}

.cookie-category-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-5);
}

.cookie-category-title-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.cookie-category-title {
  font-size: 11.5px;
  font-weight: 800;
  color: var(--color-text-main);
}

.cookie-badge-always-active {
  font-size: 9.5px;
  font-weight: 800;
  background: #DCFCE7;
  color: #166534;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.cookie-category-desc {
  font-size: 11px;
  line-height: 1.5;
  color: var(--color-text-sub);
  margin: 0;
}

.cookie-links-row {
  margin-top: var(--space-5);
}

.cookie-policy-text-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--color-primary);
  text-decoration: underline;
  cursor: pointer;
}

.cookie-modal-footer {
  padding: var(--space-13) var(--space-21);
  background: var(--color-surface-subtle);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-8);
}

/* Switch personalizzazione toggle */
.cookie-switch-label {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.cookie-switch-input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #CBD5E1;
  transition: 0.2s;
  border-radius: 24px;
}

.cookie-switch-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}

.cookie-switch-input:checked + .cookie-switch-slider {
  background-color: var(--color-primary);
}

.cookie-switch-input:checked + .cookie-switch-slider:before {
  transform: translateX(20px);
}

@media (max-width: 480px) {
  .cookie-banner-card {
    bottom: var(--space-8);
    left: var(--space-8);
    right: var(--space-8);
    width: auto;
    max-width: none;
    padding: var(--space-8) var(--space-13);
  }
  .cookie-modal-footer {
    flex-direction: column-reverse;
  }
  .cookie-modal-footer .btn {
    width: 100%;
  }
  .audience-selector-container {
    padding: 12px 12px;
  }
  .audience-tab-btn {
    min-width: 0;
    padding: 6px 4px;
    gap: 4px;
  }
  .feedback-input.has-error {
    border-color: #EF4444;
  }
}

/* ====================================================================
   COMPONENT SPECIFIC WRAPPERS (STITCH STRICT NO-INLINE)
   ==================================================================== */
.turnstile-container-wrapper {
  min-height: 65px;
  margin: var(--space-13) 0;
  display: flex;
  justify-content: flex-start;
}

.ad-fallback-group {
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

.ad-fallback-dot {
  color: var(--color-text-muted);
  font-size: 10px;
}

.ad-fallback-underline {
  text-decoration: underline;
}


/* ====================================================================
   TABELLA E COMPONENTI COOKIE POLICY (ZERO INLINE STYLES)
   ==================================================================== */
.legal-action-wrap {
  margin: var(--space-13) 0;
}

.legal-mb-13 {
  margin-bottom: var(--space-13);
}

.legal-mb-21 {
  margin-bottom: var(--space-21);
}

.cookie-badge-consent-required {
  background: #FEF3C7;
  color: #92400E;
}

.legal-table-wrap {
  overflow-x: auto;
  margin-top: var(--space-13);
}

.data-table-legal {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.data-table-header-row {
  background: var(--color-surface-subtle);
  border-bottom: 2px solid var(--color-border);
  text-align: left;
}

.data-table-row {
  border-bottom: 1px solid var(--color-border);
}

.data-table-cell {
  padding: 8px 12px;
}
