/* =========================================================
   Ferri Client Home UI v14
   - Miglioramento leggibilità e ritmo visivo
   - Maggiore contrasto tra titolo e testo
   - Spaziatura e gerarchia visiva ottimizzate
   ========================================================= */

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

:root {
  --ferri-blue: #0054A6;
  --ferri-blue-hover: #0074D9;
  --ferri-bg: #F4F7FB;
  --ferri-white: #FFFFFF;
  --ferri-text-main: #1F2937;
  --ferri-text-sec: #5B6470;
}

body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(135deg, #F4F7FB 0%, #E9F0FF 100%);
  color: var(--ferri-text-main);
  margin: 0;
  padding: 0;
}

/* Header e pulsante Accedi */
#header {
  margin-bottom: 0;
  border-bottom: 2px solid rgba(0, 84, 166, 0.15);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

#header .pull-right a[href*="login"],
#header .pull-right a[href*="sign"] {
  display: inline-block !important;
  background: var(--ferri-blue);
  color: #fff !important;
  padding: 0.6rem 1.4rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: background 0.25s ease, transform 0.25s ease;
}

#header .pull-right a[href*="login"]:hover,
#header .pull-right a[href*="sign"]:hover {
  background: var(--ferri-blue-hover);
  transform: translateY(-2px);
}

/* Nasconde elementi superflui */
#content a.button[href$="open.php"],
#content a.button[href$="view.php"],
.navbar, #nav, #tickets-nav, #ticket-links {
  display: none !important;
}

/* Contenitore principale */
#content {
  max-width: 800px;
  margin: 1.5rem auto 2rem;
  padding: 2rem 3rem 2.5rem 3rem;
  background: var(--ferri-white);
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(6px);
  animation: fadeIn 0.9s ease-out;
  text-align: left;
}

/* Linea decorativa superiore */
#content::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #0054A6 0%, #0074D9 100%);
  border-radius: 18px 18px 0 0;
}

/* Titolo più dominante */
#content h1 {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--ferri-blue);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Testo con ritmo visivo e gerarchia */
#content p {
  max-width: 640px;
  margin: 0.6rem auto 1.4rem;
  color: var(--ferri-text-sec);
  font-size: 1.05rem;
  line-height: 1.7;
  text-align: left;
}

#content p:first-of-type {
  font-size: 1.1rem;
  color: var(--ferri-text-main);
  font-weight: 500;
  margin-bottom: 1.8rem;
}

/* CTA Accedi */
.home-cta {
  margin-top: 2.2rem;
  text-align: center;
}

.home-login-btn {
  display: inline-block;
  background: var(--ferri-blue);
  color: #fff;
  font-weight: 700;
  font-size: 1.2rem;
  padding: 1rem 3rem;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 6px 16px rgba(0,84,166,0.25);
}

.home-login-btn:hover {
  background: var(--ferri-blue-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0,84,166,0.35);
}

@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(15px) scale(0.98); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

