html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: linear-gradient(to bottom, #060e1a 0%, #0f2847 100%);
}

/* Focus ring */
.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem rgba(255, 255, 255, 0.1), 0 0 0 0.25rem #42a5f5;
}

/* Placeholder floating labels */
.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ══════════════════════════════════════════
   TEMA BLU CHIARO – Layout (navbar, footer)
   ══════════════════════════════════════════ */

.navbar-theme {
  background: linear-gradient(90deg, #0d2137 0%, #1976d2 100%);
}

.footer-theme {
  background: linear-gradient(90deg, #0d2137 0%, #0f2847 100%);
}

.footer-theme a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-theme a:hover {
  color: #ffffff;
}

/* ══════════════════════════════════════════
   TEMA BLU CHIARO – Hero
   ══════════════════════════════════════════ */

.hero-gradient {
  background: linear-gradient(135deg, #1565c0 0%, #42a5f5 100%);
  border-radius: 30px;
  padding: 0rem;
  margin-bottom: 2rem;
}

.hero-gradient .hero-title {
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-gradient .hero-subtitle {
  opacity: 0.95;
}

.hero-gradient .hero-desc {
  opacity: 0.9;
}

.btn-hero-accedi {
  font-size: 1.2rem;
  letter-spacing: 0.5px;
  color: #0d2137;
}

/* ══════════════════════════════════════════
   TEMA BLU CHIARO – Card Feature
   ══════════════════════════════════════════ */

.card-feature {
  position: relative;
  overflow: hidden;
  border: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-feature:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3) !important;
}

.card-feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transition: left 0.5s;
  z-index: 1;
}

.card-feature:hover::before {
  left: 100%;
}

.card-feature .card-text {
  opacity: 0.85;
}

/* Varianti colore card – sfumature blu chiaro */
.card-theme-deep    { background: linear-gradient(135deg, #0d2137 0%, #1976d2 100%); }
.card-theme-sky     { background: linear-gradient(135deg, #1565c0 0%, #4fc3f7 100%); }
.card-theme-bright  { background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%); }
.card-theme-cyan    { background: linear-gradient(135deg, #0d47a1 0%, #26c6da 100%); }
.card-theme-azure   { background: linear-gradient(135deg, #0f2847 0%, #64b5f6 100%); }
.card-theme-steel   { background: linear-gradient(135deg, #1a5276 0%, #5dade2 100%); }
.card-theme-aqua    { background: linear-gradient(135deg, #0e4d64 0%, #00bcd4 100%); }

/* ══════════════════════════════════════════
   TEMA BLU CHIARO – Glassmorphism card
   ══════════════════════════════════════════ */

.card-glass {
  background: linear-gradient(135deg, rgba(66, 165, 245, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 12px;
  box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(33, 150, 243, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-glass:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.3);
}

.card-glass .card-header-theme {
  background: linear-gradient(90deg, #1976d2 0%, #42a5f5 100%);
  border-radius: 12px 12px 0 0;
}

.card-glass .card-header-theme-dark {
  background: linear-gradient(135deg, #0d2137 0%, #1976d2 100%);
  border-radius: 12px 12px 0 0;
}

/* ══════════════════════════════════════════
   TEMA BLU CHIARO – Panoramica (statistiche)
   ══════════════════════════════════════════ */

.stat-theme         { color: #64b5f6; }
.stat-theme-mid     { color: #4fc3f7; }
.stat-theme-light   { color: #81d4fa; }

/* ══════════════════════════════════════════
   TEMA BLU CHIARO – Azioni rapide
   ══════════════════════════════════════════ */

.btn-action-theme {
  border: 2px solid #42a5f5;
  background: rgba(0, 0, 0, 0.2);
}

.btn-action-theme i {
  color: #64b5f6;
}

/* ══════════════════════════════════════════
   Tabelle
   ══════════════════════════════════════════ */

.table-hover tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.05);
}