/* ==========================================================================
 * LANDING SITI WEB CILENTO - ARTPROJECT.IT DIGITAL MARKETING
   ========================================================================== */

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

:root {
  /* Color Palette */
  --ap-blue: #3187c6;
  --ap-blue-hover: #216ba2;
  --ap-blue-light: #eaf3fb;
  --ap-blue-rgb: 49, 135, 198;

  --bs-primary: #3187c6;
  --bs-primary-rgb: 49, 135, 198;
  
  --ap-white: #ffffff;
  --ap-gray-100: #f8fafc;
  --ap-gray-200: #f1f5f9;
  --ap-gray-300: #e2e8f0;
  --ap-gray-400: #cbd5e1;
  --ap-gray-600: #475569;
  --ap-gray-700: #334155;
  --ap-gray-800: #1e293b;
  --ap-gray-900: #0f172a;
  
  --ap-gray-sfondi: #eff4fa;
  
  /* Fonts */
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions & Shadows */
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
  --shadow-premium: 0 20px 25px -5px rgba(49, 135, 198, 0.12), 0 8px 10px -6px rgba(49, 135, 198, 0.08);
}

/* ==========================================================================
   GLOBAL RESET & BASE
   ========================================================================== */

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
  font-family: var(--font-body);
  background-color: var(--ap-white);
  color: var(--ap-gray-700);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  color: var(--ap-gray-900);
  font-weight: 700;
}

a {
  color: var(--ap-blue);
  text-decoration: none;
  transition: var(--transition-smooth);
}

a:hover {
  color: var(--ap-blue-hover);
}

/* ==========================================================================
   PRELOADER
   ========================================================================== */
.ap-preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #ffffff;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s ease;
}

.ap-preloader.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.logo-wrapper {
  position: relative;
  width: 240px;
  height: 56px;
  margin-bottom: 24px;
}

.logo-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo-base {
  filter: grayscale(100%) opacity(0.3);
}

.logo-fill {
  filter: none;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.08s linear;
}

.preloader-percentage {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--ap-blue);
}

/* ==========================================================================
   HEADER & NAVBAR
   ========================================================================== */
.top-bar {
  background-color: var(--ap-gray-900);
  color: var(--ap-gray-300);
  font-size: 0.88rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
  color: var(--ap-gray-300);
}

.top-bar a:hover {
  color: var(--ap-white);
}

.navbar-ap {
  background-color: var(--ap-white);
  border-bottom: 1px solid var(--ap-gray-200);
  position: sticky;
  top: 0;
  z-index: 1020;
  padding: 14px 0;
  box-shadow: var(--shadow-sm);
}

.navbar-ap .navbar-brand img {
  height: 44px;
}

.navbar-ap .nav-link {
  color: var(--ap-gray-800);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 8px 16px !important;
  transition: var(--transition-smooth);
}

.navbar-ap .nav-link:hover,
.navbar-ap .nav-item.active .nav-link {
  color: var(--ap-blue) !important;
}

@media (max-width: 991.98px) {
  .navbar-ap .navbar-collapse {
    background-color: var(--ap-white);
    padding: 20px;
    border-radius: 16px;
    margin-top: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--ap-gray-200);
  }

  .navbar-ap .nav-link {
    color: var(--ap-gray-900) !important;
    padding: 10px 16px !important;
  }
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn-ap-primary {
  background-color: var(--ap-blue);
  color: var(--ap-white);
  font-family: var(--font-title);
  font-weight: 700;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  box-shadow: 0 4px 14px 0 rgba(49, 135, 198, 0.4);
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-ap-primary:hover, .btn-ap-primary:focus {
  background-color: var(--ap-blue-hover);
  color: var(--ap-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 0 rgba(49, 135, 198, 0.5);
}

.btn-ap-outline {
  background-color: transparent;
  color: var(--ap-blue);
  font-family: var(--font-title);
  font-weight: 700;
  border: 2px solid var(--ap-blue);
  padding: 12px 30px;
  border-radius: 50px;
  transition: var(--transition-smooth);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-ap-outline:hover, .btn-ap-outline:focus {
  background-color: var(--ap-blue);
  color: var(--ap-white);
  transform: translateY(-2px);
}

/* ==========================================================================
   LANDING HERO
   ========================================================================== */
.landing-hero {
  position: relative;
  background: linear-gradient(135deg, var(--ap-gray-900) 0%, #172554 100%);
  color: var(--ap-white);
  padding: 90px 0 100px;
  overflow: hidden;
}

.landing-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(49, 135, 198, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.landing-hero h1 {
  color: var(--ap-white);
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 24px;
}

.landing-hero .hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(49, 135, 198, 0.2);
  border: 1px solid rgba(49, 135, 198, 0.4);
  color: #7dd3fc;
  padding: 8px 18px;
  border-radius: 50px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.landing-hero .hero-subtitle {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 32px;
  max-width: 640px;
  line-height: 1.6;
}

.hero-checklist {
  list-style: none;
  padding-left: 0;
  margin-bottom: 36px;
}

.hero-checklist li {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 1.02rem;
  color: var(--ap-white);
  width: 100%;
}

.hero-checklist li strong {
width: 50%;
}

.hero-checklist i {
  color: #38bdf8;
  font-size: 1.1rem;
}

/* Hero Showcase Card / Mockup */
.hero-mockup-wrapper {
  position: relative;
  z-index: 2;
}

.hero-mockup-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

/* ==========================================================================
   STATS COUNTER BAR
   ========================================================================== */
.stats-bar-section {
  background-color: var(--ap-white);
  padding: 40px 0;
  border-bottom: 1px solid var(--ap-gray-200);
  box-shadow: var(--shadow-sm);
  margin-top: -40px;
  position: relative;
  z-index: 10;
  border-radius: 20px;
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--ap-blue);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.92rem;
  color: var(--ap-gray-600);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ==========================================================================
   SERVICES & CARDS
   ========================================================================== */
.section-tag {
  display: inline-block;
  color: var(--ap-blue);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--ap-gray-600);
  font-size: 1.1rem;
  max-width: 680px;
  margin-bottom: 48px;
}

.landing-service-card {
  background-color: var(--ap-white);
  border: 1px solid var(--ap-gray-200);
  border-radius: 20px;
  padding: 40px 32px;
  box-shadow: var(--shadow-md);
  transition: var(--transition-smooth);
  height: 100%;
}

.landing-service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-premium);
  border-color: rgba(var(--ap-blue-rgb), 0.3);
}

.service-icon-box {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background-color: var(--ap-blue-light);
  color: var(--ap-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
}

/* ==========================================================================
   SFERA FEATURE BOX (CUSTOM CARD STILE RECEPTION)
   ========================================================================== */
.sfera-feature-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 40px 45px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.sfera-feature-box .box-tagline {
  color: #14b8a6;
  font-size: 0.825rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: block;
}

.sfera-feature-box .box-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1e1b4b;
  margin-bottom: 16px;
  line-height: 1.25;
}

.sfera-feature-box .box-desc {
  font-size: 1.05rem;
  color: #64748b;
  margin-bottom: 28px;
  line-height: 1.6;
}

.sfera-feature-list {
  list-style: none;
  padding-left: 0;
  margin-bottom: 28px;
}

.sfera-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
  font-size: 0.98rem;
  color: #475569;
  line-height: 1.55;
}

.sfera-feature-list li i {
  color: #14b8a6;
  font-size: 1.25rem;
  margin-top: 3px;
  flex-shrink: 0;
}

.sfera-feature-list li strong {
  color: #1e293b;
  font-weight: 700;
}

.sfera-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.sfera-pill-badge {
  background-color: #f3f0ff;
  color: #3b0764;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 20px;
  border-radius: 50px;
}

.sfera-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #cbd5e1;
  color: #1e1b4b;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: 12px;
  background: #ffffff;
  transition: var(--transition-smooth);
  text-decoration: none !important;
}

.sfera-btn-outline:hover {
  background-color: var(--ap-blue-light);
  border-color: var(--ap-blue);
  color: var(--ap-blue);
  transform: translateY(-2px);
}

/* ==========================================================================
   CTA BANNER SECTION
   ========================================================================== */
.cta-banner-section {
  position: relative;
  padding: 90px 0;
  background: linear-gradient(135deg, var(--ap-gray-900) 0%, #1e3a8a 100%);
  color: var(--ap-white);
  overflow: hidden;
}

.cta-banner-section h2 {
  color: var(--ap-white);
  font-size: 2.6rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.cta-banner-section p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 36px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
  background-color: var(--ap-gray-900);
  color: var(--ap-gray-400);
  padding: 80px 0 25px;
  font-size: 0.95rem;
}

footer a {
  color: var(--ap-gray-400);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 60px;
  padding-top: 25px;
  font-size: 0.85rem;
}

/* ==========================================================================
   RESPONSIVE OVERRIDES
   ========================================================================== */
@media (max-width: 991.98px) {
  .landing-hero {
    padding: 60px 0 80px;
  }

  .landing-hero h1 {
    font-size: 2.4rem;
  }

  .stat-number {
    font-size: 2rem;
  }

  .sfera-feature-box {
    padding: 26px 20px;
    border-radius: 18px;
  }

  .sfera-feature-box .box-title {
    font-size: 1.65rem;
  }

  .cta-banner-section h2 {
    font-size: 2rem;
  }
}
