/* ==========================================================================
   Rapport – CSS editabile a mano (light/dark, nessun Tailwind)
   ========================================================================== */

* { box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --surface: #e0f2fe;
  --surface-header: #ffffff;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --link: #1d4ed8;
  --link-hover: #1e40af;
  --green: #059669;
  --red: #dc2626;
  --orange: #ea580c;
  --yellow: #ca8a04;
}

html.dark {
  --bg: #020617;
  --bg-alt: #0f172a;
  --surface: #0f172a;
  --surface-header: #0f172a;
  --text: #f8fafc;
  --text-muted: #94a3b8;
  --border: #334155;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --link: #60a5fa;
  --link-hover: #93c5fd;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  transition: background-color 0.2s, color 0.2s;
}

/* Link: distinguibili in light e dark (pulsanti/nav hanno stili propri) */
a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover {
  text-decoration: underline;
  color: var(--link-hover);
}

/* Layout */
.page-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main {
  flex: 1;
}

.container {
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

.container--narrow {
  max-width: 28rem;
}

.container--content {
  max-width: 56rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--surface-header);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

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

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  display: block;
  height: 2.25rem;
  width: auto;
  max-width: 220px;
  object-fit: contain;
}

.logo-img--dark {
  display: none;
}

html.dark .logo-img--light {
  display: none;
}

html.dark .logo-img--dark {
  display: block;
}

.nav {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .nav { display: flex; }
}

.nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(148, 163, 184, 0.08);
  color: var(--text-muted);
  font-size: 0.9rem;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.nav a:hover {
  background: rgba(148, 163, 184, 0.16);
  color: var(--accent);
}

.nav a.nav-link--active {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.14);
  color: var(--accent);
}

html.dark .nav a {
  border-color: rgba(51, 65, 85, 0.9);
  background: rgba(15, 23, 42, 0.9);
}

html.dark .nav a:hover {
  background: rgba(30, 64, 175, 0.7);
  color: #e5e7eb;
}

html.dark .nav a.nav-link--active {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.3);
  color: #e5e7eb;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .header-actions { display: flex; }
}

.btn-theme {
  padding: 0.5rem;
  border-radius: 0.5rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-theme:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.btn-theme svg {
  width: 1.25rem;
  height: 1.25rem;
}

.theme-icon-dark { display: none; }
.theme-icon-light { display: inline; }
html.dark .theme-icon-dark { display: inline; }
html.dark .theme-icon-light { display: none; }

.user-info {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.header-actions a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: background 0.15s, color 0.15s;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.faq-item {
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-alt);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-question::after {
  content: '+';
  font-weight: 700;
  color: var(--text-muted);
}
.faq-item--open .faq-question::after {
  content: '–';
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  font-size: 0.9375rem;
  color: var(--text);
  transition: max-height 0.22s ease;
}
.faq-item--open .faq-answer {
  padding-bottom: 0.9rem;
  max-height: 320px;
}

.header-actions a:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.header-actions a.link-accent:hover {
  color: var(--accent);
}

.header-actions .btn-cta {
  background: var(--accent);
  color: white !important;
}

.header-actions .btn-cta:hover {
  background: var(--accent-hover);
}

/* Sottomenù utente (dropdown) */
.nav-user {
  position: relative;
}
.nav-user__trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.9375rem;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.nav-user__trigger:hover {
  background: var(--bg-alt);
  color: var(--text);
}
.nav-user__chevron {
  flex-shrink: 0;
  transition: transform 0.2s;
}
.nav-user[aria-expanded="true"] .nav-user__chevron {
  transform: rotate(180deg);
}
.nav-user__dropdown {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  min-width: 10rem;
  padding: 0.35rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 100;
}
.nav-user__dropdown[hidden] {
  display: none;
}
.nav-user__item {
  display: block;
  padding: 0.5rem 1rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: background 0.15s, color 0.15s;
}
.nav-user__item:hover {
  background: var(--bg-alt);
  color: var(--accent);
}
.nav-user__item--cta {
  font-weight: 600;
  color: var(--accent);
}
.nav-user__item--cta:hover {
  background: rgba(37, 99, 235, 0.1);
}

.mobile-menu__divider {
  display: block;
  margin: 0.75rem 0 0.35rem 0;
  padding: 0.25rem 0;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}

.header-mobile {
  display: flex;
  align-items: center;
  gap: 1rem;
}

@media (min-width: 768px) {
  .header-mobile { display: none; }
}

/* Mobile menu: overlay + pannello slide da destra verso sinistra */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.mobile-menu-overlay.is-open {
  display: block;
  pointer-events: auto;
}

.mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.mobile-menu-overlay.is-open .mobile-menu-backdrop {
  opacity: 1;
}

.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: min(320px, 85vw);
  max-width: 100%;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  padding: 5rem 1rem 1.5rem;
  gap: 0.25rem;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.mobile-menu-overlay.is-open .mobile-menu-panel {
  transform: translateX(0);
}

@media (min-width: 768px) {
  .mobile-menu-overlay { display: none !important; }
}

.mobile-menu-panel a {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 0.5rem;
  transition: background 0.15s, color 0.15s;
}

.mobile-menu-panel a:hover {
  background: var(--bg-alt);
  color: var(--text);
}

.mobile-menu-panel a.btn-cta {
  background: var(--accent);
  color: white;
  text-align: center;
  margin-top: 0.5rem;
}

/* Footer */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.site-footer p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover {
  color: var(--text);
}

/* Typography */
.page-title {
  font-size: 2.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.page-title--large {
  font-size: 3rem;
}

@media (min-width: 768px) {
  .page-title--large { font-size: 3.75rem; }
}

.page-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 1rem 0;
  line-height: 1.5;
}

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

.text-lead {
  font-size: 1.5rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

/* Buttons & links */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 0.5rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.btn--primary {
  background: var(--accent);
  color: white;
}

.btn--primary:hover {
  background: var(--accent-hover);
}

.btn--secondary {
  background: var(--border);
  color: var(--text);
}

html.dark .btn--secondary {
  background: #334155;
}

.btn--secondary:hover {
  opacity: 0.9;
}

.btn--block {
  width: 100%;
}

.link {
  color: var(--link);
  text-decoration: none;
}
.link:hover {
  text-decoration: underline;
  color: var(--link-hover);
}

/* Cards – light: azzurro chiaro per distinguere da background pagina */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 2rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.card--highlight {
  background: linear-gradient(to bottom right, #eff6ff, #f0fdfa);
  border-color: #bfdbfe;
}

html.dark .card--highlight {
  background: var(--surface);
  border-color: var(--border);
}

/* Forms */
.form-group {
  margin-bottom: 1rem;
}

.label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.input,
.select {
  width: 100%;
  max-width: 20rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input:focus,
.select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.input[type="file"] {
  max-width: none;
  padding: 0.25rem 0;
}

/* Alerts */
.alert {
  padding: 1rem;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid;
}

.alert--error {
  background: rgba(220, 38, 38, 0.1);
  border-color: #fca5a5;
  color: #b91c1c;
}

html.dark .alert--error {
  background: rgba(220, 38, 38, 0.2);
  border-color: #991b1b;
  color: #fca5a5;
}

.alert--success {
  background: rgba(5, 150, 105, 0.1);
  border-color: #6ee7b7;
  color: #047857;
}

html.dark .alert--success {
  background: rgba(5, 150, 105, 0.2);
  border-color: #065f46;
  color: #6ee7b7;
}

.alert--info {
  background: rgba(37, 99, 235, 0.1);
  border-color: #93c5fd;
  color: #1e40af;
}

html.dark .alert--info {
  background: rgba(37, 99, 235, 0.2);
  border-color: #1e3a8a;
  color: #93c5fd;
}

.alert--warning {
  background: rgba(230, 126, 34, 0.1);
  border-color: #f5c26b;
  color: #c0392b;
}

html.dark .alert--warning {
  background: rgba(230, 126, 34, 0.2);
  border-color: #d35400;
  color: #f5c26b;
}

/* Sections */
.section {
  padding: 3rem 0;
}

@media (min-width: 768px) {
  .section { padding: 5rem 0; }
}

.section--hero {
  display: grid;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .section--hero {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 640px) {
  .hero-cta { flex-direction: row; }
}

.hero-gauge {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding-bottom: 0;
  overflow: visible;
}

.feature-grid {
  display: grid;
  gap: 2rem;
  margin: 0.75rem 0 3rem 0;
}

@media (min-width: 768px) {
  .feature-grid { margin: 2.5rem 0 3rem 0; }
}

@media (min-width: 768px) {
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}

/* Light mode: schede leggermente più scure per dare risalto al design */
html:not(.dark) .feature-card {
  background: #eef2f6;
  border-color: #e2e8f0;
}

.feature-card__icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-card__icon svg {
  width: 1.5rem;
  height: 1.5rem;
  color: white;
}

.feature-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.75rem 0;
  color: var(--text);
}

.feature-card__text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.cta-section {
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 1rem;
  background: linear-gradient(to right, #eff6ff, #f0fdfa);
  border: 1px solid var(--border);
  margin: 3rem 0;
}

html.dark .cta-section {
  background: var(--surface);
}

.cta-section__title {
  font-size: 1.875rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  color: var(--text);
}

.cta-section__text {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 2rem 0;
  max-width: 42rem;
  margin-left: auto;
  margin-right: auto;
}

/* Ray promo (homepage, utente non loggato) */
.ray-promo {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  margin: 3rem 0;
  position: relative;
}

.ray-promo::before {
  content: '';
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translateX(-50%);
  width:  min(100%, 24rem);
  height: 10rem;
  background: radial-gradient(ellipse, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.ray-promo__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  position: relative;
}

.ray-promo__copy {
  padding: 2rem 1.5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.ray-promo__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid var(--accent);
  border-radius: 100px;
  padding: 0.25rem 0.75rem 0.25rem 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.04em;
  width: fit-content;
}

.ray-promo__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: ray-pulse-dot 2s ease-in-out infinite;
}

@keyframes ray-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.ray-promo__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

.ray-promo__title em {
  font-style: normal;
  color: var(--accent);
}

.ray-promo__desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 22rem;
}

.ray-promo__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ray-promo__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.ray-promo__features .icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.375rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.06rem;
  font-size: 0.6875rem;
}

.ray-promo__features strong {
  color: var(--text);
  font-weight: 500;
}

.ray-promo__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.25rem;
  border-radius: 0.5rem;
  text-decoration: none;
  width: fit-content;
  transition: background 0.18s, transform 0.15s, box-shadow 0.18s;
  margin-top: 0.25rem;
}

.ray-promo__cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.ray-promo__cta svg {
  width: 0.875rem;
  height: 0.875rem;
}

.ray-promo__name {
  font-weight: 700;
  color: var(--text);
}

.ray-promo__visual {
  background: var(--bg-alt);
  border-right: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ray-promo--reverse .ray-promo__visual {
  border-right: none;
  border-left: 1px solid var(--border);
}

.ray-promo__image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

@media (max-width: 640px) {
  .ray-promo__inner {
    grid-template-columns: 1fr;
  }
  .ray-promo__visual {
    border-right: none;
    border-left: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1.25rem;
  }
  .ray-promo--reverse .ray-promo__inner {
    direction: ltr;
  }
  .ray-promo--reverse .ray-promo__copy {
    order: 1;
  }
  .ray-promo--reverse .ray-promo__visual {
    order: 2;
  }
}

/* Ray dashboard banner (area rapporti, utente loggato) */
.ray-dashboard-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.5rem;
  transition: border-color 0.2s;
}

.ray-dashboard-banner:hover {
  border-color: var(--accent);
}

.ray-dashboard-banner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, #6366f1 100%);
  border-radius: 3px 0 0 3px;
}

.ray-db-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, #6366f1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.ray-db-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  position: relative;
  z-index: 1;
}

.ray-db-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ray-db-tag {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid var(--accent);
  border-radius: 0.25rem;
  padding: 0.06rem 0.4rem;
}

.ray-db-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.ray-db-desc strong {
  color: var(--text);
  font-weight: 500;
}

.ray-db-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.btn-ray-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.18s, transform 0.15s;
  white-space: nowrap;
}

.btn-ray-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
}

.btn-ray-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.8125rem;
  padding: 0.5rem 0.875rem;
  border-radius: 0.5rem;
  text-decoration: none;
  border: 1px solid var(--border);
  transition: color 0.18s, border-color 0.18s;
  white-space: nowrap;
}

.btn-ray-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
}

.ray-memory-indicators {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.ray-mem-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.ray-mem-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.ray-mem-dot.blue { background: var(--accent); }
.ray-mem-dot.green { background: var(--green); }
.ray-mem-dot.amber { background: var(--orange); }

@media (max-width: 640px) {
  .ray-dashboard-banner {
    flex-direction: column;
    align-items: flex-start;
  }
  .ray-db-actions {
    width: 100%;
  }
  .btn-ray-primary,
  .btn-ray-ghost {
    width: 100%;
    justify-content: center;
  }
}

/* Analysis result */
.result-box {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 2rem;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .result-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.result-meta {
  flex: 1;
}

.result-meta__label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.result-meta__value {
  font-size: 1.5rem;
  font-weight: 700;
}

.result-meta__value--success { color: var(--green); }
.result-meta__value--warning { color: var(--orange); }
.result-meta__value--error { color: var(--red); }
.result-meta__value--muted { color: var(--text-muted); }

.result-feedback { padding: 0.75rem 0; border-top: 1px solid var(--border); }
.result-feedback__title { font-size: 1.125rem; font-weight: 600; margin: 0 0 0.5rem; }
.result-feedback__text { margin: 0 0 0.5rem; color: var(--text); line-height: 1.5; }
.result-feedback__consiglio { margin: 0; font-size: 0.9375rem; color: var(--text-muted); }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.tag {
  padding: 0.25rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.report-indicators__item {
  display: inline-flex;
  flex-direction: column;
  gap: 0.25rem;
}
.report-indicators__label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; }
.report-indicators__value { font-weight: 600; font-size: 1rem; }

.report-history {
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.report-history__item { margin-bottom: 0.5rem; list-style: none; }
.report-history__link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}
.report-history__link:hover { background: var(--bg); border-color: var(--accent); }
.report-history__link--active { border-color: var(--accent); background: var(--surface); }
.report-history__window { font-weight: 500; min-width: 6rem; }
.report-history__date { font-size: 0.9375rem; color: var(--text-muted); flex: 1; }
.report-history__msg { font-size: 0.9375rem; color: var(--text-muted); flex: 1; }
.report-history__score { font-weight: 700; font-size: 1.1875rem; }

/* Report premium */
.report-hero__head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-bottom: 1.5rem; }
.report-hero__title { margin: 0; font-size: 1.625rem; }
.report-hero__period { margin: 0; color: var(--text-muted); font-size: 1rem; }
.report-trend { font-size: 0.8125rem; font-weight: 600; padding: 0.25rem 0.5rem; border-radius: 0.375rem; }
.report-trend--up { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.report-trend--down { background: rgba(239, 68, 68, 0.1); color: var(--red); }
.report-trend--stable { background: var(--surface); color: var(--text-muted); }
.result-box--premium { padding: 1.5rem 2rem; gap: 2.5rem; }
.result-box__gauge-wrap { flex-shrink: 0; }
.result-meta__value--lg { font-size: 1.375rem; }
.tags--premium .tag { background: var(--bg); }
.report-bars { display: flex; flex-direction: column; gap: 0.75rem; }
.report-bars__row { display: flex; align-items: center; gap: 0.75rem; }
.report-bars__label { min-width: 7rem; font-size: 0.9375rem; color: var(--text); }
.report-bars__track { flex: 1; height: 0.5rem; background: var(--border); border-radius: 9999px; overflow: hidden; }
.report-bars__track--split { display: flex; padding: 0; background: transparent; }
.report-bars__track--split .report-bars__fill { border-radius: 0; }
.report-bars__track--split .report-bars__fill:first-child { border-radius: 9999px 0 0 9999px; }
.report-bars__track--split .report-bars__fill--b { background: var(--text-muted); }
.report-bars__track--split .report-bars__fill--b:last-child { border-radius: 0 9999px 9999px 0; }
.report-bars__fill { height: 100%; background: var(--accent); border-radius: 9999px; transition: width 0.3s ease; }
.report-bars__pct { font-weight: 600; font-size: 0.9375rem; min-width: 2.5rem; text-align: right; }
.report-bars__pct--names { min-width: auto; font-size: 0.875rem; }
.report-behaviour { display: flex; flex-direction: column; gap: 0.75rem; }
.report-ghosting-alert {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 0.75rem; border-radius: 0.5rem;
  background: rgba(234, 179, 8, 0.15); border: 1px solid var(--yellow, #ca8a04);
  color: var(--text); font-size: 0.9375rem; font-weight: 500;
}
.report-ghosting-alert__icon { font-size: 1.125rem; }
.report-vibe { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.report-vibe__badge {
  padding: 0.25rem 0.625rem; border-radius: 9999px; font-size: 0.8125rem; font-weight: 600; text-transform: capitalize;
}
.report-vibe__badge--positiva { background: rgba(5, 150, 105, 0.2); color: var(--green); }
.report-vibe__badge--mista { background: rgba(37, 99, 235, 0.15); color: var(--accent); }
.report-vibe__badge--neutra { background: var(--surface); color: var(--text-muted); border: 1px solid var(--border); }
.report-vibe__badge--assente { background: var(--bg-alt); color: var(--text-muted); }

.dna-chart-wrap { width: 100%; max-width: 32rem; margin: 0 auto; border-radius: 0.5rem; overflow: hidden; background: var(--bg-alt); }
.dna-chart { width: 100%; height: auto; display: block; }
.dna-chart--strip { min-height: 2rem; }
.dna-chart-axis__label { fill: var(--text-muted); }
html.dark .dna-chart-axis__label { fill: #94a3b8; }
.btn--sm { padding: 0.35rem 0.75rem; font-size: 0.8125rem; }
.report-section-title { font-size: 1.25rem; font-weight: 600; margin: 0 0 1rem; color: var(--text); }
.report-feedback .result-feedback { padding: 0; border: none; }
.result-feedback__consiglio-box { margin-top: 0.75rem; padding: 0.75rem 1rem; background: var(--surface); border-radius: 0.5rem; border-left: 3px solid var(--accent); font-size: 1rem; }
.report-stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.report-stat-card { padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem; display: flex; flex-direction: column; gap: 0.25rem; }
.report-stat-card__icon { font-size: 1.5rem; margin-bottom: 0.25rem; }
.report-stat-card__label { font-size: 0.8125rem; color: var(--text-muted); text-transform: uppercase; }
.report-stat-card__value { font-weight: 700; font-size: 1.1875rem; }
.report-stat-card__detail { font-size: 0.9375rem; color: var(--text-muted); }
.report-emoji-section { margin-top: 1rem; }
.report-emoji-list { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 0.5rem; }
.report-emoji-chip { display: inline-flex; flex-direction: column; align-items: center; padding: 0.5rem 0.75rem; background: var(--surface); border: 1px solid var(--border); border-radius: 0.5rem; min-width: 3rem; }
.report-emoji-chip__char { font-size: 1.75rem; line-height: 1.2; }
.report-emoji-chip__count { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); margin-top: 0.25rem; }

/* Gauge – indicatore tipo tachimetro (non grafico) */
.gauge-rendered {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gauge-rendered.size-sm { width: 10rem; height: 10rem; }
.gauge-rendered.size-md { width: 14rem; height: 14rem; }
.gauge-rendered.size-lg { width: 18rem; height: 18rem; }

.gauge-rendered svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.gauge-rendered .gauge-value {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gauge-rendered .gauge-label {
  font-weight: 500;
}

/* Gauge da react-gauge-chart: dimensioni fisse desktop; su mobile ridimensiona con vw */
/* JustGage: contenitore gauge */
.gauge-rendered--justgage {
  flex-shrink: 0;
  max-width: 100%;
}

@media (max-width: 767px) {
  .gauge-rendered--justgage {
    width: 72vw !important;
    max-width: 72vw;
    height: 40vw !important;
    min-height: 140px;
    margin: 0;
  }

  .rapport-item__gauge-wrap .gauge-rendered--justgage {
    width: 5rem !important;
    max-width: 5rem;
    height: 2.75rem !important;
    min-height: 2.75rem;
  }
}

.gauge-rendered--chart {
  flex-shrink: 0;
}

.gauge-rendered--chart > div:first-child {
  width: 100% !important;
  height: 100% !important;
}

.gauge-rendered--chart svg {
  width: 100% !important;
  height: 100% !important;
}

.gauge-rendered--chart-value {
  font-size: 3rem;
  font-weight: 300;
}

.gauge-chart-value-wrap {
  position: absolute !important;
  left: 0 !important;
  right: 0 !important;
  top: 150px !important;
  bottom: auto !important;
  text-align: center;
  pointer-events: none;
}

/* Mobile: gauge visibile e proporzionato, testo grande */
@media (max-width: 767px) {
  .gauge-rendered--chart {
    width: 92vw !important;
    height: 72vw !important;
    max-width: 92vw;
    min-height: 220px;
  }

  .gauge-rendered--chart-value {
    font-size: 2.5rem !important;
  }
}

/* List / grid */
.rapport-list {
  display: grid;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.rapport-item {
  display: block;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s, border-color 0.15s;
}

@media (min-width: 768px) {
  .rapport-item {
    padding: 1.5rem;
  }
}

.rapport-item:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  border-color: var(--accent);
}

.rapport-item__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.rapport-item__name {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.25rem 0;
  color: var(--text);
}

.rapport-item__type {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.rapport-item__value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--accent);
  text-align: right;
}

.rapport-item__gauge-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.rapport-item__gauge-wrap [data-gauge] {
  line-height: 0;
}

.rapport-item__label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* Steps (come funziona) */
.steps {
  display: grid;
  gap: 2rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

.step {
  display: flex;
  gap: 1.5rem;
}

.step__icon {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

.step__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.step__text {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Utility */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.hidden { display: none !important; }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }

/* Empty state */
.empty-state {
  padding: 3rem 2rem;
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
}

.empty-state__text {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin: 0 0 1rem 0;
}

/* Consenso / form lungo */
.form-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.form-section__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--text);
}

.form-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-grid { grid-template-columns: repeat(2, 1fr); }
}

.form-grid .span-2 {
  grid-column: span 2;
}

/* Pricing / Plan comparison */
.plan-comparison {
  display: grid;
  gap: 2rem;
  align-items: start;
  max-width: 56rem;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .plan-comparison {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.plan-comparison--three {
  max-width: 72rem;
}

/* Desktop: tre schede piani sempre sulla stessa riga */
@media (min-width: 768px) {
  .plan-comparison--three {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.plan-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.plan-card--premium {
  border-color: var(--accent);
  background: linear-gradient(to bottom, rgba(37, 99, 235, 0.04), var(--surface));
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12);
}

html.dark .plan-card--premium {
  background: linear-gradient(to bottom, rgba(59, 130, 246, 0.08), var(--surface));
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
}

.plan-card--plus {
  border-color: var(--accent);
  background: linear-gradient(to bottom, rgba(37, 99, 235, 0.06), var(--surface));
}

html.dark .plan-card--plus {
  background: linear-gradient(to bottom, rgba(59, 130, 246, 0.06), var(--surface));
}

.plan-card__badge {
  position: absolute;
  top: -0.75rem;
  right: 1.5rem;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
}

.plan-card__header {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.plan-card__name {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.plan-card__price {
  margin: 0 0 0.75rem 0;
}

.plan-card__amount {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text);
}

.plan-card__period {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 400;
}

.plan-card__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.plan-features {
  list-style: none;
  margin: 0 0 1.5rem 0;
  padding: 0;
  flex: 1;
}

.plan-features__item {
  font-size: 0.875rem;
  padding: 0.5rem 0;
  padding-left: 1.75rem;
  position: relative;
  line-height: 1.4;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
}

.plan-features__label {
  flex: 1;
  min-width: 0;
}

.plan-features__info {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.125rem;
  height: 1.125rem;
  border: none;
  border-radius: 50%;
  background: var(--border);
  color: var(--text-muted);
  font-size: 0.7rem;
  font-weight: 700;
  cursor: help;
  line-height: 1;
  padding: 0;
}

.plan-features__info:hover {
  background: var(--accent);
  color: white;
}

.plan-features__tooltip {
  position: absolute;
  left: 0;
  bottom: calc(100% + 0.5rem);
  z-index: 10;
  max-width: 20rem;
  padding: 0.625rem 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s, visibility 0.15s;
  pointer-events: none;
}

.plan-features__item:hover .plan-features__tooltip,
.plan-features__item:focus-within .plan-features__tooltip {
  opacity: 1;
  visibility: visible;
}

/* Scheda rapporto: tooltip info privacy sotto i pulsanti Ray/Paola (come sulle schede piani) */
.ray-expert-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.ray-expert-tooltip-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.ray-expert-tooltip-wrap:hover .plan-features__tooltip,
.ray-expert-tooltip-wrap:focus-within .plan-features__tooltip {
  opacity: 1;
  visibility: visible;
}
.ray-expert-tooltip-wrap .plan-features__tooltip {
  left: 0;
  right: auto;
  max-width: 22rem;
}

.plan-features__item::before {
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 1rem;
  height: 1rem;
  background-size: contain;
}

.plan-features__item--yes::before {
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23059669'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") no-repeat center;
}

.plan-features__item--no::before {
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2394a3b8'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M20 12H4'/%3E%3C/svg%3E") no-repeat center;
}

html.dark .plan-features__item--yes::before {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236ee7b7'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M5 13l4 4L19 7'/%3E%3C/svg%3E") no-repeat center;
}

.plan-card__cta {
  margin-top: auto;
}

.plan-card__cta .btn {
  margin: 0;
}

/* ==========================================================================
   Ray Chat — Widget assistente AI nella pagina rapporto
   ========================================================================== */
/* Azioni rapporto: stessa riga desktop, colonna mobile, bottoni stessa dimensione */
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: stretch;
}
@media (max-width: 767px) {
  .report-actions {
    flex-direction: column;
  }
}
.report-actions__btn,
.report-actions__form .report-actions__btn {
  min-width: 12rem;
  min-height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.625rem 1.25rem;
  box-sizing: border-box;
}
.report-actions__form {
  margin: 0;
}
@media (max-width: 767px) {
  .report-actions__btn,
  .report-actions__form .report-actions__btn {
    width: 100%;
    min-width: 0;
  }
}
.btn--danger {
  background: transparent;
  border: 1px solid var(--red, #dc2626);
  color: var(--red, #dc2626);
}
.btn--danger:hover {
  background: rgba(220, 38, 38, 0.1);
}

/* Carica nuova analisi — zona drag & drop moderna */
.upload-card .form-group { margin-bottom: 1rem; }
.upload-card__options { margin-top: 1.25rem; margin-bottom: 1.25rem; }
.upload-zone {
  position: relative;
  border: 2px dashed var(--border);
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  background: var(--bg-alt);
  transition: border-color 0.2s, background 0.2s;
}
.upload-zone:hover,
.upload-zone:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.04);
}
.upload-zone.upload-zone--dragover {
  border-color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
}
.upload-zone__input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.upload-zone__content { pointer-events: none; }
.upload-zone__icon {
  display: inline-block;
  color: var(--text-muted);
  margin-bottom: 1rem;
}
.upload-zone:hover .upload-zone__icon,
.upload-zone:focus .upload-zone__icon { color: var(--accent); }
.upload-zone__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 0.35rem 0;
}
.upload-zone__sub {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem 0;
}
.upload-zone__sub strong { color: var(--accent); }
.upload-zone__hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0;
}
.upload-zone__file {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--accent);
  margin-top: 0.5rem;
}
.upload-zone__file:not([hidden]) { display: block; }

/* ==========================================================================
   Ray Chat — Widget assistente AI nella pagina rapporto
   ========================================================================== */
.ray-section {
  padding: 1.5rem;
}

.ray-teaser {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.ray-teaser__avatar {
  flex-shrink: 0;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--bg-alt);
}

.ray-teaser__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ray-teaser__content {
  flex: 1;
  min-width: 0;
}

.ray-teaser__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.ray-teaser__text {
  margin: 0 0 1rem 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.ray-cta-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
  color: var(--text);
}

.ray-cta-card__text {
  margin: 0 0 1.25rem 0;
  color: var(--text-muted);
  line-height: 1.5;
}

.ray-cta-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ray-chat__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.ray-chat__avatar-wrap {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ray-chat__avatar-wrap--placeholder::after {
  content: '';
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.9)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.ray-chat__avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ray-chat__avatar-wrap--placeholder img { display: none !important; }

.ray-chat__avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ray-chat__header-text {
  flex: 1;
  min-width: 0;
}

.ray-chat__header strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.ray-chat__subtitle {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Scelta analista Ray / Paola */
.ray-analyst-switcher {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.ray-analyst-btn {
  padding: 0.25rem 0.6rem;
  font-size: 0.8125rem;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.ray-analyst-btn:hover {
  background: var(--bg-alt, rgba(0,0,0,0.04));
  color: var(--text);
}
.ray-analyst-btn--active {
  background: var(--primary, #0ea5e9);
  color: #fff;
  border-color: var(--primary);
}

/* Tooltip [i] su Ray */
.ray-chat__info-wrap {
  position: relative;
  flex-shrink: 0;
}
.ray-chat__info {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.ray-chat__info:hover {
  background: rgba(37, 99, 235, 0.1);
  border-color: var(--accent);
}
.ray-chat__tooltip {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0.5rem;
  width: 20rem;
  max-width: calc(100vw - 2rem);
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 10;
  pointer-events: none;
  text-align: left;
}
.ray-chat__info-wrap:hover .ray-chat__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ray-chat__uso {
  margin-left: auto;
  font-size: 0.8125rem;
  color: var(--orange, #ea580c);
}

.ray-chat__messages {
  max-height: 28rem;
  min-height: 12rem;
  overflow-y: auto;
  padding: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  scroll-behavior: smooth;
}

.ray-message {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.ray-message--visible {
  opacity: 1;
  transform: translateY(0);
}

.ray-message--user {
  flex-direction: row-reverse;
}

.ray-message--assistant {
  position: relative;
}
.ray-message--assistant .ray-bubble {
  padding-right: 2.75rem;
}
.ray-message--assistant .ray-tts-btn {
  position: absolute;
  right: 0.25rem;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
}

.ray-avatar {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), #0ea5e9);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ray-avatar--placeholder::after {
  content: '';
  display: block;
  width: 0.875rem;
  height: 0.875rem;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(255,255,255,0.9)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.ray-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ray-avatar--placeholder img { display: none !important; }

.ray-bubble {
  max-width: 85%;
  padding: 0.875rem 1.125rem;
  border-radius: 1.125rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.ray-message--user .ray-bubble,
.ray-bubble--user {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  margin-left: auto;
  box-shadow: 0 1px 3px rgba(37, 99, 235, 0.25);
}

.ray-bubble a {
  color: var(--accent);
  text-decoration: underline;
}
.ray-bubble a:hover {
  text-decoration: none;
}
.ray-message--user .ray-bubble a {
  color: rgba(255, 255, 255, 0.95);
  text-decoration: underline;
}

.ray-bubble--error {
  background: rgba(220, 38, 38, 0.1);
  border-color: var(--red, #dc2626);
  color: var(--red, #dc2626);
}

.ray-bubble--typing {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 1rem 1.25rem;
}

.ray-bubble--typing span {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--text-muted);
  animation: ray-typing 1.4s ease-in-out infinite both;
}

.ray-bubble--typing span:nth-child(2) { animation-delay: 0.2s; }
.ray-bubble--typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes ray-typing {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

/* Pulsante Ascolta (TTS) — solo sui messaggi assistant */
.ray-tts-btn {
  flex-shrink: 0;
  align-self: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--bg-alt);
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.ray-tts-btn:hover {
  background: var(--surface, #e0f2fe);
  color: var(--accent);
}
.ray-tts-btn:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.ray-tts-btn--playing {
  background: var(--accent, #0ea5e9);
  color: #fff;
}
.ray-tts-btn__icon-stop {
  display: none;
}
.ray-tts-btn--playing .ray-tts-btn__icon {
  display: none;
}
.ray-tts-btn--playing .ray-tts-btn__icon-stop {
  display: block;
}
.ray-tts-btn__icon {
  display: block;
}

.ray-chat__form {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

html.dark .ray-chat__form {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.ray-chat__form textarea {
  flex: 1;
  min-height: 3.25rem;
  max-height: 12.5rem;
  padding: 0.75rem 1rem;
  margin: 0;
  font-size: 0.9375rem;
  font-family: inherit;
  line-height: 1.5;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  resize: none;
  transition: none;
}

.ray-chat__form textarea::placeholder {
  color: var(--text-muted);
}

.ray-chat__form textarea:focus {
  outline: none;
}

.ray-chat__form button {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 0.75rem;
  background: var(--accent);
  color: white;
  cursor: pointer;
  transition: background 0.15s;
}

.ray-chat__form button:hover:not(:disabled) {
  background: var(--accent-hover);
}

.ray-chat__form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ray-upgrade-banner {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.04));
  border: 1px solid var(--border);
  text-align: center;
}

.ray-upgrade-banner p {
  margin: 0 0 0.75rem 0;
  color: var(--text);
  font-size: 0.9375rem;
}

.ray-upgrade-banner a {
  display: inline-block;
}

/* ==========================================================================
   Share card – scheda condivisione (export immagine / video)
   ========================================================================== */
.share-preview-wrap {
  max-width: 28rem;
  margin: 0 auto 2rem;
}
.share-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 28rem;
  margin: 0 auto;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
}
.share-card__bg {
  position: absolute;
  inset: 0;
}
.share-card--low .share-card__bg { background: linear-gradient(160deg, #1e3a5f 0%, #0f172a 100%); }
.share-card--mid .share-card__bg { background: linear-gradient(160deg, #1e3a8a 0%, #312e81 50%, #1e293b 100%); }
.share-card--high .share-card__bg { background: linear-gradient(160deg, #2563eb 0%, #0ea5e9 50%, #06b6d4 100%); }
.share-card__inner {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.25rem 1.5rem 1.25rem;
  color: #fff;
  text-align: center;
  box-sizing: border-box;
}
.share-card__title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.share-card__avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.share-card__avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.share-card__gauge-wrap {
  position: relative;
  width: 8rem;
  height: 4.5rem;
}
.share-card__gauge {
  width: 100%;
  height: 100%;
  color: rgba(255,255,255,0.4);
}
.share-card__gauge-fill {
  color: #fbbf24;
  transition: stroke-dashoffset 1s ease-out;
}
.share-card__score {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5rem;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.share-card__period {
  font-size: 0.875rem;
  opacity: 0.9;
  margin: 0 0 0.5rem 0;
}
.share-card__emojis {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  font-size: 1.5rem;
}
.share-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.share-card__tag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 9999px;
  background: rgba(255,255,255,0.2);
}
.share-card__logo {
  margin-top: auto;
}
.share-card__logo-img {
  height: 2.5rem;
  width: auto;
  max-width: 12rem;
  object-fit: contain;
  display: block;
}
.share-card__logo-badge {
  height: 2.5rem;
  width: auto;
  max-width: 13.75rem;
  object-fit: contain;
  margin-top: 0;
  margin-bottom: 0.75rem;
}
.share-card__feedback {
  margin-top: auto;
  padding-top: 0.4rem;
  padding-bottom: 0.15rem;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: rgba(255,255,255,0.95);
}
.share-card__feedback-titolo {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.share-card__feedback-testo {
  display: block;
  font-weight: 400;
  max-width: 20rem;
  margin: 0 auto;
}

.share-card__dna-wrap {
  margin-top: 0.25rem;
  margin-bottom: 0.4rem;
  flex-shrink: 0;
  text-align: center;
}
.share-card__dna-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.25rem;
}
.share-card__dna {
  width: 100%;
  max-width: 260px;
  height: 12px;
  margin: 0 auto;
  display: block;
}

.share-controls { padding: 1.5rem; }
.share-controls__row { margin-bottom: 1.25rem; }
.share-controls__loops { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.share-controls__loop { display: flex; align-items: center; gap: 0.5rem; }
.share-controls__loop-label { font-size: 0.875rem; color: var(--text-muted); }
.share-controls__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1rem; }
.share-controls__upsell { font-size: 0.875rem; color: var(--text-muted); margin: 0; }
.share-controls__upsell a { color: var(--accent); }
.share-controls__dropdowns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; margin-top: 0.5rem; }
.share-controls__dropdown-wrap label { display: block; margin-bottom: 0.25rem; }
.share-controls__dropdown-inner {
  position: relative;
  display: block;
}
.share-controls__dropdown-inner::after {
  content: "▾";
  position: absolute;
  right: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.8rem;
  color: var(--text-muted);
  pointer-events: none;
}
.share-controls__dropdown-wrap select {
  width: 100%;
  padding: 0.55rem 2.3rem 0.55rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background-color: #fff !important;
  color: #111 !important;
  font-size: 0.9rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  text-align: center;
  text-align-last: center;
}
.share-controls__dropdown-wrap select option {
  background: #fff !important;
  color: #111 !important;
}
.share-controls__dropdown-wrap {
  position: relative;
}
.share-controls__favorites .share-favorites-list { list-style: none; padding: 0; margin: 0.5rem 0 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.share-controls__favorites .share-favorites-list li { display: flex; align-items: center; gap: 0.25rem; }
.share-controls__no-audio-msg { background: var(--bg-muted, rgba(0,0,0,.06)); border-left: 4px solid var(--accent); padding: 1rem; margin-bottom: 1rem; border-radius: 4px; }
.share-controls__no-audio-msg p { margin: 0; font-size: 0.9375rem; }
.share-controls__no-audio-msg code { font-size: 0.875em; }

.share-controls__share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.share-controls__share-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}
.share-controls__share-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.share-social {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  color: #fff;
}
.share-social--wa { background-color: #22c55e; }
.share-social--fb { background-color: #2563eb; }
.share-social--x { background-color: #0f172a; }
.share-social--tg { background-color: #0ea5e9; }

/* ==========================================================================
   Mobile & TWA (Trusted Web Activity / Google Play) – touch-friendly, safe areas
   ========================================================================== */
/* Safe areas per device con notch / barra di stato */
body {
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
}
.site-header .container {
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}
.main {
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.container {
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}
.mobile-menu-panel {
  padding-top: max(5rem, calc(env(safe-area-inset-top, 0) + 4rem));
  padding-right: max(1rem, env(safe-area-inset-right));
}
.site-footer {
  padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

/* Pagina Ray chat: full viewport su mobile, scroll solo area messaggi, footer sotto */
@media (max-width: 768px) {
  .main:has(.ray-chat-fullscreen) {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }
  .ray-chat-fullscreen {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    max-width: none;
    margin: 0;
    padding-left: env(safe-area-inset-left, 0);
    padding-right: env(safe-area-inset-right, 0);
  }
}

@media (max-width: 767px) {
  /* Touch target minimo 44px (Material / Apple HIG) */
  .btn {
    min-height: 2.75rem;
    padding: 0.75rem 1.25rem;
  }
  .btn--sm {
    min-height: 2.75rem;
    padding: 0.5rem 1rem;
  }
  .btn-theme {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.5rem;
  }
  .header-inner {
    min-height: 4rem;
    height: auto;
    padding-top: env(safe-area-inset-top, 0);
  }
  .mobile-menu-panel a {
    min-height: 2.75rem;
    padding: 0.875rem 1rem;
    display: flex;
    align-items: center;
  }
  /* Input/select 16px per evitare zoom automatico iOS */
  .input,
  .select,
  .ray-chat__form textarea {
    font-size: 16px;
    min-height: 2.75rem;
  }
  .ray-chat__form {
    padding-bottom: max(0.75rem, env(safe-area-inset-bottom));
  }
  .ray-chat__form button {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
  }
  .ray-chat__messages {
    max-height: min(28rem, 60vh);
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .ray-message {
    gap: 0.35rem;
  }
  .ray-message .ray-avatar {
    display: none;
  }
  .ray-tts-btn {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    min-height: 2rem;
    margin: 0;
  }
  .ray-tts-btn .ray-tts-btn__icon,
  .ray-tts-btn .ray-tts-btn__icon-stop {
    width: 16px;
    height: 16px;
  }
  .ray-section {
    padding-left: max(1rem, env(safe-area-inset-left));
    padding-right: max(1rem, env(safe-area-inset-right));
  }
  /* Share: controlli full-width, bottoni e social touch-friendly */
  .share-controls {
    padding: max(1.5rem, env(safe-area-inset-left));
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
  .share-controls__dropdowns {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .share-controls__dropdown-wrap select {
    min-height: 2.75rem;
    font-size: 16px;
  }
  .share-controls__actions {
    flex-direction: column;
    width: 100%;
  }
  .share-controls__actions .btn {
    width: 100%;
  }
  .share-social {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    font-size: 0.75rem;
  }
  .share-controls__share-icons {
    gap: 0.75rem;
  }
  /* Steps (come-funziona, come-condividere) */
  .steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .step {
    padding: 1rem 0;
  }
  .step__icon {
    width: 3rem;
    height: 3rem;
  }
  .step__title {
    font-size: 1.125rem;
  }
  .step__text {
    font-size: 1rem;
  }
  /* Upload zone: area tap più grande */
  .upload-zone {
    padding: 2rem 1.25rem;
    min-height: 8rem;
  }
  /* Card e section: respiro su piccolo schermo */
  .section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .card {
    padding: 1.25rem;
  }
}
