/* =============================================
   ACTUA Presenze — Sito Vetrina
   Ispirato alla struttura Bizneo HR
   ============================================= */

:root {
  --primary: #1E2B4A;
  --accent: #4581E9;
  --accent-dark: #2D63C8;
  --accent-light: #EBF2FF;
  --gray-bg: #F7F8FC;
  --gray-light: #EEEFF4;
  --text-dark: #1E2B4A;
  --text-mid: #4A5568;
  --text-light: #718096;
  --white: #FFFFFF;
  --green: #27AE60;
  --border: #E2E8F0;
  --shadow: 0 4px 24px rgba(30,43,74,0.10);
  --shadow-sm: 0 2px 8px rgba(30,43,74,0.08);
  --radius: 14px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.65;
  font-size: 16px;
  background: var(--white);
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

img { max-width: 100%; height: auto; display: block; }

/* =============================================
   LAYOUT
   ============================================= */

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--gray-bg);
}

/* =============================================
   NAVBAR
   ============================================= */

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.navbar-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 24px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--primary);
  white-space: nowrap;
}

.navbar-logo span {
  color: var(--accent);
}

.navbar-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 900;
}

.navbar-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin-left: auto;
}

.navbar-nav a {
  color: var(--text-mid);
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}

.navbar-nav a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* =============================================
   BUTTONS
   ============================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all .18s;
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 2px 12px rgba(69,129,233,0.30);
}

.btn-primary:hover {
  background: var(--accent-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(69,129,233,0.40);
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn-outline:hover {
  background: var(--accent-light);
  color: var(--accent-dark);
}

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

.btn-dark:hover {
  background: #2a3d68;
  color: var(--white);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 16px;
  border-radius: 10px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

/* =============================================
   HERO
   ============================================= */

.hero {
  background: linear-gradient(135deg, #0F1D3A 0%, #1E2B4A 45%, #253562 100%);
  padding: 80px 0 0;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(69,129,233,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-text {
  padding-bottom: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(69,129,233,0.18);
  border: 1px solid rgba(69,129,233,0.35);
  color: #93BBFF;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: .3px;
}

.hero h1 {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -.5px;
}

.hero h1 span {
  color: #93BBFF;
}

.hero-subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-img-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.hero-img-wrap img {
  border-radius: 14px 14px 0 0;
  box-shadow: 0 -8px 48px rgba(0,0,0,0.3);
  max-height: 420px;
  object-fit: cover;
  object-position: top;
  width: 100%;
}

/* Clienti */
.hero-clients {
  background: var(--white);
  padding: 24px 0;
  border-top: 1px solid var(--border);
  margin-top: 0;
}

.clients-label {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.clients-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.client-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-light);
  opacity: 0.7;
  letter-spacing: .5px;
}

/* =============================================
   SEZIONE FEATURE (testo + immagine alternati)
   ============================================= */

.feature-section {
  padding: 80px 0;
}

.feature-section.alt {
  background: var(--gray-bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.feature-grid.reverse {
  direction: rtl;
}

.feature-grid.reverse > * {
  direction: ltr;
}

.feature-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.feature-text h2 {
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: 16px;
  letter-spacing: -.3px;
}

.feature-text p {
  color: var(--text-mid);
  font-size: 16px;
  margin-bottom: 24px;
  line-height: 1.75;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-mid);
}

.feature-list li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  background: var(--accent-light);
  color: var(--accent);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  margin-top: 2px;
}

.feature-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-img img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: top;
  transition: transform .4s;
}

.feature-img:hover img {
  transform: scale(1.02);
}

/* =============================================
   METODI ACCESSO (icone quadrate)
   ============================================= */

.method-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.method-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-sm);
}

.method-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.method-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 2px;
}

.method-card p {
  font-size: 12.5px;
  color: var(--text-light);
  margin: 0;
}

/* =============================================
   CARD 5 FUNZIONALITÀ
   ============================================= */

.funzionalita-section {
  background: linear-gradient(135deg, #0F1D3A 0%, #1E2B4A 100%);
  padding: 80px 0;
}

.funzionalita-section .section-header {
  text-align: center;
  margin-bottom: 48px;
}

.funzionalita-section h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
}

.funzionalita-section p.subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.7);
  max-width: 600px;
  margin: 0 auto;
}

.funz-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.funz-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  transition: background .2s, transform .2s;
  cursor: default;
}

.funz-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}

.funz-icon {
  width: 56px;
  height: 56px;
  background: rgba(69,129,233,0.25);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin: 0 auto 16px;
}

.funz-card h3 {
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.funzionalita-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =============================================
   SEZIONE STATISTICA / NUMERI
   ============================================= */

.numeri-section {
  padding: 60px 0;
  background: var(--accent);
}

.numeri-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}

.numero-item h3 {
  font-size: 42px;
  font-weight: 900;
  color: var(--white);
  line-height: 1;
  margin-bottom: 8px;
}

.numero-item p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  font-weight: 500;
}

/* =============================================
   APP STORE BADGES
   ============================================= */

.app-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  transition: background .18s;
  text-decoration: none;
}

.app-badge:hover {
  background: #2a3d68;
  color: var(--white);
}

.app-badge-icon {
  font-size: 22px;
}

/* =============================================
   SECTION HEADER centrato
   ============================================= */

.section-header-center {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-header-center h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 14px;
  line-height: 1.2;
}

.section-header-center p {
  font-size: 17px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* =============================================
   INTEGRAZIONI CARD
   ============================================= */

.integ-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.integ-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
}

.integ-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.integ-icon {
  font-size: 36px;
  margin-bottom: 12px;
}

.integ-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 6px;
}

.integ-card p {
  font-size: 13px;
  color: var(--text-light);
}

/* =============================================
   CTA BANNER FINALE
   ============================================= */

.cta-banner {
  background: linear-gradient(135deg, #1E2B4A 0%, #2D63C8 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 36px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 18px;
  color: rgba(255,255,255,0.78);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner-btns {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* =============================================
   FOOTER
   ============================================= */

.footer {
  background: #0B1526;
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand p {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 14px;
  max-width: 280px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
}

.footer-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  font-weight: 900;
}

.footer-logo span { color: #93BBFF; }

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color .15s;
}

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

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: rgba(255,255,255,0.45);
}

.footer-bottom a:hover {
  color: rgba(255,255,255,0.8);
}

/* Social */
.social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-link {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: rgba(255,255,255,0.7);
  transition: background .15s, color .15s;
  text-decoration: none;
}

.social-link:hover {
  background: var(--accent);
  color: var(--white);
}

/* =============================================
   MOBILE MENU TOGGLE
   ============================================= */

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: var(--primary);
}

/* =============================================
   UTILITY
   ============================================= */

.text-accent { color: var(--accent); }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.gap-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  margin-left: 8px;
}

/* =============================================
   SCROLL REVEAL ANIMATIONS
   ============================================= */

/* Stato iniziale — elementi nascosti prima di entrare nel viewport */
.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Stato finale — quando l'elemento è visibile */
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Variante: slide da sinistra */
.reveal-left {
  opacity: 0;
  transform: translateX(-44px);
  transition: opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Variante: slide da destra */
.reveal-right {
  opacity: 0;
  transform: translateX(44px);
  transition: opacity 0.65s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Ritardi per stagger (card in sequenza) */
.reveal-delay-1 { transition-delay: 0.10s; }
.reveal-delay-2 { transition-delay: 0.20s; }
.reveal-delay-3 { transition-delay: 0.30s; }
.reveal-delay-4 { transition-delay: 0.40s; }
.reveal-delay-5 { transition-delay: 0.50s; }

/* =============================================
   RESPONSIVE
   ============================================= */

@media (max-width: 1024px) {
  .funz-grid { grid-template-columns: repeat(3, 1fr); }
  .numeri-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .navbar-nav, .navbar-actions .btn-outline { display: none; }
  .nav-toggle { display: block; }

  .hero-content { grid-template-columns: 1fr; }
  .hero-img-wrap { display: none; }
  .hero h1 { font-size: 30px; }
  .hero { padding: 48px 0 0; }
  .hero-text { padding-bottom: 40px; }

  .feature-grid { grid-template-columns: 1fr; gap: 32px; }
  .feature-grid.reverse { direction: ltr; }
  .feature-img { order: -1; }
  .feature-img img { height: 240px; }

  .funz-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: 1fr; }
  .integ-grid { grid-template-columns: repeat(2, 1fr); }
  .numeri-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }

  .section { padding: 56px 0; }
  .section-header-center h2, .funzionalita-section h2, .cta-banner h2 { font-size: 26px; }
  .feature-text h2 { font-size: 24px; }
}
