@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Lato:wght@300;400;700&display=swap');

:root {
  --primary:       #00597C;
  --primary-dark:  #003d5c;
  --primary-deep:  #002540;
  --accent:        #4dd0e1;
  --accent-glow:   rgba(77,208,225,0.35);
  --white:         #ffffff;
  --off-white:     #f0f6f9;
  --text-muted:    rgba(255,255,255,0.65);
  --border-glass:  rgba(255,255,255,0.15);
  --shadow-card:   0 24px 60px rgba(0,37,64,0.45);
  --radius:        16px;
  --radius-sm:     10px;
  --transition:    0.3s cubic-bezier(.4,0,.2,1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  min-height: 100vh;
  background: var(--primary-deep);
  overflow-x: hidden;
  position: relative;
}

/* ── BACKGROUND ANIMATED ─────────────────────────── */
.bg-scene {
  position: fixed; inset: 0; z-index: 0;
  background: linear-gradient(160deg, #001e33 0%, #003d5c 50%, #00597C 100%);
  overflow: hidden;
}

.bg-scene::before {
  content: '';
  position: absolute; inset: -40%;
  background: radial-gradient(ellipse at 30% 20%, rgba(77,208,225,0.12) 0%, transparent 55%),
              radial-gradient(ellipse at 75% 80%, rgba(0,89,124,0.3) 0%, transparent 50%);
  animation: bgShift 12s ease-in-out infinite alternate;
}

.bg-scene::after {
  content: '';
  position: absolute; inset: 0;
  background-image: 
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.04) 1px, transparent 0);
  background-size: 40px 40px;
}

@keyframes bgShift {
  from { transform: translate(0,0) rotate(0deg); }
  to   { transform: translate(3%,2%) rotate(2deg); }
}

/* ── FLOATING ORBS ───────────────────────────────── */
.orb {
  position: fixed; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0;
}
.orb-1 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(77,208,225,0.18) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: orbFloat 8s ease-in-out infinite;
}
.orb-2 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(0,89,124,0.35) 0%, transparent 70%);
  bottom: 10%; left: -80px;
  animation: orbFloat 10s ease-in-out infinite reverse;
}
@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-30px) scale(1.05); }
}

/* ── PAGE WRAPPER ────────────────────────────────── */
.page-wrapper {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 30px 20px 60px;
}

/* ── HEADER / LOGO ───────────────────────────────── */
.top-header {
  width: 100%; max-width: 620px;
  display: flex; flex-direction: column; align-items: center;
  margin-bottom: 36px;
  animation: fadeDown 0.7s ease both;
}

.logo-wrap {
  display: flex; align-items: center; gap: 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(12px);
  padding: 16px 32px;
  border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25);
}

.logo-icon-svg {
  width: 48px; height: 48px; flex-shrink: 0;
}

.logo-text { display: flex; flex-direction: column; }
.logo-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800; font-size: 22px;
  color: var(--white); letter-spacing: 3px; text-transform: uppercase;
}
.logo-tagline {
  font-size: 11px; font-weight: 300; color: var(--accent);
  letter-spacing: 2px; text-transform: uppercase;
}

/* ── CARD BASE ───────────────────────────────────── */
.card {
  width: 100%; max-width: 620px;
  background: #f0f4f7;
  border: 1px solid #dce3ea;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* ── LOGIN CARD ──────────────────────────────────── */
#loginCard {
  animation: fadeUp 0.6s ease 0.1s both;
  margin-bottom: 28px;
}

.card-header {
  padding: 28px 36px 20px;
  border-bottom: 1px solid #dce3ea;
  background: linear-gradient(135deg, #00597C 0%, #003d5c 100%);
  display: flex; align-items: center; gap: 12px;
}

.card-header-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--primary));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; box-shadow: 0 4px 15px var(--accent-glow);
}

.card-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 18px; color: var(--white);
}
.card-header p {
  font-size: 12px; color: var(--text-muted); margin-top: 2px;
}

.card-body { padding: 28px 36px; }

/* ── FORM FIELDS ─────────────────────────────────── */
.form-group { margin-bottom: 18px; }

.form-label {
  display: block; font-size: 12px; font-weight: 700;
  color: var(--primary); letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 7px;
}

.input-wrap { position: relative; }

.input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: #9ab0be; font-size: 16px; pointer-events: none;
  transition: color var(--transition);
}

.form-control {
  width: 100%;
  background: #ffffff;
  border: 1px solid #ccd8e0;
  border-radius: var(--radius-sm);
  padding: 13px 14px 13px 42px;
  color: #1a3040; font-size: 14px;
  font-family: 'Lato', sans-serif;
  transition: all var(--transition);
  outline: none;
}
.form-control::placeholder { color: #a0b4bf; }
.form-control:focus {
  border-color: var(--primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0,89,124,0.12);
}
.form-control:focus + .input-icon,
.input-wrap:focus-within .input-icon { color: var(--primary); }

select.form-control { cursor: pointer; }
select.form-control option { background: #fff; color: #1a3040; }

.form-control-plain { padding-left: 14px; }

/* ── LOGIN ACTIONS ───────────────────────────────── */
.login-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px;
}

.check-label {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-size: 13px; color: #4a6070;
}
.check-label input { accent-color: var(--primary); width: 15px; height: 15px; }

.link-btn {
  background: none; border: none; cursor: pointer;
  font-size: 13px; color: var(--primary); text-decoration: underline;
  font-family: 'Lato', sans-serif; transition: opacity var(--transition);
}
.link-btn:hover { opacity: 0.7; }

/* ── BUTTONS ─────────────────────────────────────── */
.btn-primary  {
  width: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, #0099b8 100%);
  border: none; border-radius: var(--radius-sm);
  padding: 14px; cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 14px; letter-spacing: 2px;
  color: var(--primary-deep); text-transform: uppercase;
  transition: all var(--transition);
  box-shadow: 0 6px 20px var(--accent-glow);
  position: relative; overflow: hidden;
}

.btn-danger  {
  width: 100%;
  background: linear-gradient(135deg, var(--accent) 0%, #0099b8 100%);
  border: none; border-radius: var(--radius-sm);
  padding: 14px; cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 14px; letter-spacing: 2px;
  color: #fff !important; text-transform: uppercase;
  transition: all var(--transition);
  box-shadow: 0 6px 20px var(--accent-glow);
  position: relative; overflow: hidden;
}

.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: background var(--transition);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--accent-glow); }
.btn-primary:hover::after { background: rgba(255,255,255,0.08); }
.btn-primary:active { transform: translateY(0); }

.btn-danger::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: background var(--transition);
}
.btn-danger:hover { transform: translateY(-2px); box-shadow: 0 10px 30px var(--accent-glow); }
.btn-danger:hover::after { background: rgba(255,255,255,0.08); }
.btn-danger:active { transform: translateY(0); }

/* ── DIVIDER ─────────────────────────────────────── */
.divider {
  display: flex; align-items: center; gap: 14px;
  margin: 8px 0 6px; color: var(--text-muted); font-size: 12px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px;
  background: var(--border-glass);
}

/* ── RECOVER PASSWORD PANEL ──────────────────────── */
#recoverPanel {
  display: none;
  background: #e8f4f8;
  border: 1px solid #b0d4e3;
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  margin-top: 16px;
}
#recoverPanel.show { display: block; animation: fadeUp 0.3s ease both; }
#recoverPanel p { font-size: 13px; color: #4a6070; margin-bottom: 12px; }

/* ── REGISTER CARD ───────────────────────────────── */
#registerCard {
  animation: fadeUp 0.6s ease 0.25s both;
}

.section-divider {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 36px;
  font-size: 11px; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--primary);
  background: #e4edf2;
}
.section-divider::before, .section-divider::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,89,124,0.25), transparent);
}

/* ── FORM GRID ───────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.form-grid .form-group.full { grid-column: 1 / -1; }

/* ── SECTION TITLE INSIDE FORM ───────────────────── */
.form-section-title {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 10px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 700;
  color: rgba(255,255,255,0.4); letter-spacing: 2px;
  text-transform: uppercase; margin: 10px 0 6px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.form-section-title span { color: var(--accent); }

/* ── LEVEL BADGES ────────────────────────────────── */
.level-group {
  display: flex; gap: 10px; margin-bottom: 18px;
}
.level-badge {
  flex: 1; padding: 12px 10px;
  background: #ffffff;
  border: 2px solid #ccd8e0;
  border-radius: var(--radius-sm);
  text-align: center; cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.level-badge input[type="radio"] { position: absolute; opacity: 0; }
.level-badge-label {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 13px; color: #4a6070;
  display: block; letter-spacing: 1px;
}
.level-badge-desc { font-size: 11px; color: #9ab0be; margin-top: 3px; }
.level-badge:hover { border-color: var(--primary); background: #e8f4f8; }
.level-badge.selected {
  border-color: var(--primary);
  background: #e0f0f8;
  box-shadow: 0 0 0 2px rgba(0,89,124,0.15);
}
.level-badge.selected .level-badge-label { color: var(--primary); }

/* ── FORM FOOTER ─────────────────────────────────── */
.form-footer {
  padding: 20px 36px 28px;
  border-top: 1px solid #dce3ea;
  background: #e4edf2;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.form-footer p {
  font-size: 12px; color: #4a6070;
}
.form-footer p a { color: var(--primary); text-decoration: none; }
.form-footer p a:hover { text-decoration: underline; }
.btn-submit {
  min-width: 200px;
}

/* ── TOAST NOTIFICATION ──────────────────────────── */
.toast {
  position: fixed; bottom: 30px; right: 30px; z-index: 999;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: 1px solid var(--border-glass);
  border-left: 4px solid var(--accent);
  color: var(--white); padding: 14px 20px;
  border-radius: var(--radius-sm); font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  transform: translateX(120%); opacity: 0; pointer-events: none;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1), opacity 0.4s ease;
}
.toast.show { transform: translateX(0); opacity: 1; pointer-events: auto; }

/* ── ANIMATIONS ──────────────────────────────────── */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── FOOTER ──────────────────────────────────────── */
.page-footer {
  margin-top: 32px; text-align: center;
  font-size: 11px; color: rgba(255,255,255,0.2);
  letter-spacing: 1px; animation: fadeUp 0.6s ease 0.4s both;
}

/* ── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 660px) {
  .card-header, .card-body, .form-footer { padding-left: 20px; padding-right: 20px; }
  .section-divider { padding-left: 20px; padding-right: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .form-group.full { grid-column: 1; }
  .logo-wrap { padding: 14px 22px; }
  .logo-name { font-size: 18px; }
  .level-group { flex-direction: column; }
  .form-footer { flex-direction: column; align-items: stretch; }
  .btn-submit { min-width: unset; }
}

/* ════════════════════════════════════════════════════
   DOCUMENTS PAGE  (documenti.html)
════════════════════════════════════════════════════ */

.card-docs { max-width: 740px; }

/* Intro */
.docs-intro {
  padding: 22px 36px 0;
  font-size: 14px; color: #4a6070; line-height: 1.7;
}
.docs-intro strong { color: var(--primary); }

/* Griglia */
.docs-grid {
  padding: 24px 36px 8px;
  display: flex; flex-direction: column; gap: 20px;
}

/* Singola scheda documento */
.doc-row {
  background: #fff;
  border: 1px solid #ccd8e0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.doc-row:hover { box-shadow: 0 4px 18px rgba(0,89,124,0.1); }

/* Header banda blu */
.doc-row-header {
  background: linear-gradient(90deg, var(--primary) 0%, #007aa3 100%);
  padding: 10px 18px;
  display: flex; align-items: center; gap: 10px;
}
.doc-row-header i { color: rgba(255,255,255,0.7); font-size: 14px; }
.doc-row-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 13px; color: #fff; letter-spacing: 0.5px;
  flex: 1;
}
.doc-row-num {
  background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.85);
  font-size: 11px; font-weight: 700;
  padding: 3px 9px; border-radius: 20px; letter-spacing: 1px;
}

/* Coppia link ITA / ENG */
.doc-links {
  display: flex;
  border-bottom: 1px solid #e0eaf0;
}

.doc-link {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 12px;
  text-decoration: none !important; color: #4a6070;
  font-size: 13px; font-weight: 600;
  border-right: 1px solid #e0eaf0;
  transition: all var(--transition);
  position: relative; cursor: pointer;
}
.doc-link:link, .doc-link:visited, .doc-link:hover,
.doc-link:active, .doc-link:focus, .doc-link.visited {
  text-decoration: none !important;
}
.doc-link:last-child { border-right: none; }
.doc-link .pdf-icon { width: 32px; height: 38px; flex-shrink: 0; transition: transform var(--transition); }
.doc-link:hover { background: #f0f8ff; color: var(--primary); }
.doc-link:hover .pdf-icon { transform: scale(1.12); }

.doc-link-lang {
  display: flex; flex-direction: column; gap: 2px;
}
.doc-link-lang strong { font-size: 13px; }
.doc-link-lang span { font-size: 11px; color: #9ab0be; font-weight: 400; }

/* Badge "Aperto" */
.read-badge {
  display: none;
  position: absolute; top: 7px; right: 9px;
  background: #22c55e; color: #fff;
  font-size: 9px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 2px 7px; border-radius: 10px;
}
.doc-link.visited { background: #f0fdf4; color: #16a34a; }
.doc-link.visited .pdf-icon rect { fill: #16a34a; }
.doc-link.visited .read-badge { display: block; }
.doc-link.visited .doc-link-lang span { color: #86efac; }

/* Riga checkbox "Ho letto e accetto" */
.doc-accept-row {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px;
  background: #f8fbfc;
  transition: background var(--transition);
}
.doc-accept-row.unlocked { background: #f0fdf4; }

.doc-checkbox-wrap {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer; user-select: none;
  flex: 1;
}
.doc-checkbox-wrap input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; flex-shrink: 0;
  border: 2px solid #ccd8e0; border-radius: 5px;
  background: #fff; cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.doc-checkbox-wrap input[type="checkbox"]:disabled {
  background: #eef2f5; border-color: #dce3ea; cursor: not-allowed; opacity: 0.6;
}
.doc-checkbox-wrap input[type="checkbox"]:not(:disabled):hover {
  border-color: var(--primary);
}
.doc-checkbox-wrap input[type="checkbox"]:checked {
  background: var(--primary); border-color: var(--primary);
}
.doc-checkbox-wrap input[type="checkbox"]:checked::after {
  content: '\2714';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: #fff; font-size: 12px; line-height: 1;
}
.doc-checkbox-label {
  font-size: 13px; font-weight: 600; color: #7a98a8;
  transition: color var(--transition);
}
.doc-accept-row.unlocked .doc-checkbox-label { color: #4a6070; }
.doc-accept-row.unlocked.accepted .doc-checkbox-label { color: #16a34a; font-weight: 700; }

.doc-lock-hint {
  font-size: 11px; color: #b0c4ce;
  display: flex; align-items: center; gap: 5px;
  white-space: nowrap;
  transition: opacity var(--transition);
}
.doc-lock-hint i { font-size: 12px; }
.doc-accept-row.unlocked .doc-lock-hint { opacity: 0; pointer-events: none; }

/* Riepilogo progresso */
.docs-summary {
  margin: 4px 36px 20px;
  display: flex; align-items: center; gap: 12px;
  background: #e8f4f8; border: 1px solid #b0d4e3;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  font-size: 13px; color: #4a6070;
}
.docs-summary i { color: var(--primary); font-size: 16px; }
.summary-checks {
  display: flex; gap: 8px; flex: 1;
}
.summary-dot {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid #ccd8e0; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; transition: all 0.4s ease;
}
.summary-dot.done { background: var(--primary); border-color: var(--primary); color: #fff; }
.summary-label { font-size: 12px; color: #7a98a8; }
.summary-label strong { color: var(--primary); }

/* Footer con bottone */
.docs-footer {
  padding: 20px 36px 28px;
  border-top: 1px solid #dce3ea;
  background: #e4edf2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.docs-footer p { font-size: 12px; color: #4a6070; max-width: 380px; line-height: 1.5; }

/* Bottone Accetta – disabilitato finché nessun checkbox è spuntato */
.btn-accept {
  min-width: 200px;
  background: linear-gradient(135deg, #94a3b8 0%, #64748b 100%);
  border: none; border-radius: var(--radius-sm);
  padding: 14px 28px; cursor: not-allowed;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700; font-size: 14px; letter-spacing: 2px;
  color: #fff; text-transform: uppercase;
  transition: all var(--transition);
  opacity: 0.55;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-accept.enabled {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 6px 20px rgba(34,197,94,0.3);
  cursor: pointer; opacity: 1;
  animation: fadeUp 0.4s ease both;
}
.btn-accept.enabled:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(34,197,94,0.4); }
.btn-accept.enabled:active { transform: translateY(0); }

/* Hint finale */
.accept-hint {
  text-align: center; padding: 0 36px 20px;
  font-size: 12px; color: #9ab0be;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: opacity var(--transition);
}
.accept-hint i { font-size: 13px; color: #f59e0b; }
.accept-hint.hidden { opacity: 0; pointer-events: none; }

@media (max-width: 660px) {
  .docs-intro, .docs-grid, .docs-summary,
  .docs-footer, .accept-hint { padding-left: 20px; padding-right: 20px; }
  .doc-links { flex-direction: column; }
  .doc-link { border-right: none; border-bottom: 1px solid #e0eaf0; }
  .doc-link:last-child { border-bottom: none; }
  .docs-footer { flex-direction: column; align-items: stretch; }
  .btn-accept { min-width: unset; justify-content: center; }
  .summary-checks { gap: 6px; }
}

/* ── REQUIRED BADGE ──────────────────────────────── */
.req { color: #f59e0b; font-weight: 700; }
.req-note {
  font-size: 10px; font-weight: 600; color: #f59e0b;
  background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3);
  border-radius: 4px; padding: 1px 5px; letter-spacing: 0.5px;
  vertical-align: middle; margin-left: 2px;
}
/* Nasconde l'asterisco Italy-only quando non è Italia */
.req-italy.hidden { display: none; }


/* ════════════════════════════════════════════════════
   BOOTSTRAP OVERRIDES + FOOTER  (index.html)
════════════════════════════════════════════════════ */

/* ── Select: forza testo scuro su sfondo bianco ── */
select.form-control {
  color: #1a3040 !important;
  background-color: #ffffff !important;
  -webkit-appearance: none !important;
  -moz-appearance:   none !important;
  appearance:        none !important;
}
select.form-control:focus {
  color: #1a3040 !important;
  background-color: #ffffff !important;
}
select.form-control option {
  color: #1a3040 !important;
  background: #ffffff !important;
}

/* ── btn-primary: ripristino gradiente cyan originale ── */
.btn-primary,
button.btn-primary,
a.btn-primary {
  background: linear-gradient(135deg, #4dd0e1 0%, #0099b8 100%) !important;
  border: none !important;
  color: #002540 !important;
  box-shadow: 0 6px 20px rgba(77,208,225,0.35) !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:not(:disabled):not(.disabled):active {
  background: linear-gradient(135deg, #0099b8 0%, #007a96 100%) !important;
  border-color: transparent !important;
  color: #002540 !important;
  box-shadow: 0 10px 30px rgba(77,208,225,0.45) !important;
}

/* ── Bootstrap h2/p reset dentro card-header ── */
.card-header h2 {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 !important;
  line-height: 1.3 !important;
  font-family: 'Montserrat', sans-serif !important;
}
.card-header p {
  margin: 0 !important;
  font-size: 12px !important;
  color: rgba(255,255,255,0.65) !important;
}

/* ── Grechina decorativa ── */
.grechina-bar {
  background: #ffffff;
  padding: 20px 0;
  text-align: center;
  line-height: 0;
}
.grechina-bar img {
  width: 100%;
  max-height: 32px;
  object-fit: cover;
}

/* ── Footer ── */
.footer {
  background: #00577d !important;
  color: #ffffff !important;
  padding: 40px 0 24px;
  font-size: 13px;
  line-height: 1.75;
}
.footer a { color: rgba(255,255,255,0.8) !important; text-decoration: none; }
.footer a:hover { color: #ffffff !important; text-decoration: underline; }
.logo-footer { max-width: 100%; height: auto; }
.testo_footer { margin-top: 12px; color: rgba(255,255,255,0.75); font-size: 12.5px; line-height: 1.75; }
.link-footer div { margin-bottom: 6px; }
.link-footer a { color: rgba(255,255,255,0.75) !important; font-size: 13px; }
.link-footer a:hover { color: #ffffff !important; }
.footer .extrabold { font-weight: 800; color: #ffffff !important; }

/* ── Subfooter ── */
.subfooter {
  background: #001c38 !important;
  color: rgba(255,255,255,0.65) !important;
  padding: 12px 0 6px;
  font-size: 11px;
}
.subfooter a { color: rgba(255,255,255,0.65) !important; text-decoration: none; }
.subfooter a:hover { color: #ffffff !important; text-decoration: underline; }
.subfooter .link a { margin: 0 8px; }
.subfooter .size-10 { font-size: 10.5px !important; }
.subfooter .letter-spacing { letter-spacing: 0.6px; }

@media (max-width: 767px) {
  .m-top-mobile { margin-top: 28px !important; }
}

/* ── SELECT NAZIONE (classe custom, zero interferenze Bootstrap) ── */
.sel-nazione {
  width: 100%;
  background: #ffffff;
  border: 1px solid #ccd8e0;
  border-radius: 10px;
  padding: 13px 42px 13px 42px;
  color: #1a3040;
  font-size: 14px;
  font-family: 'Lato', sans-serif;
  cursor: pointer;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.sel-nazione:focus {
  border-color: #00597C;
  box-shadow: 0 0 0 3px rgba(0,89,124,0.12);
}
.sel-nazione option {
  color: #1a3040;
  background: #ffffff;
}

/* ── Bandierine flag-icons nei doc-link ── */
.doc-link-lang .fi {
  width: 20px;
  height: 15px;
  display: inline-block;
  vertical-align: middle;
  border-radius: 2px;
  flex-shrink: 0;
}
