
/* ==========================================================================
   WebHub Bespoke Design Polish & Micro-Interactions (Non-AI Handcrafted Feel)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --wh-font-heading: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wh-font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --wh-transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --wh-glass-bg: rgba(255, 255, 255, 0.85);
  --wh-glass-border: rgba(255, 255, 255, 0.4);
  --wh-shadow-subtle: 0 10px 30px -10px rgba(0, 0, 0, 0.07), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --wh-shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.12), 0 8px 12px -4px rgba(0, 0, 0, 0.04);
}

h1, h2, h3, h4, h5, h6, .brand-title, .section-title {
  font-family: var(--wh-font-heading) !important;
  letter-spacing: -0.025em;
  font-weight: 500;
}

body, p, li, a, span, button, input, select, textarea {
  font-family: var(--wh-font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Polished Card Hover Elevate */
.card, .feature-card, .feature-box, .pricing-card, .service-card, .template-card, .benefit-card {
  transition: var(--wh-transition-smooth) !important;
}

.card:hover, .feature-card:hover, .feature-box:hover, .pricing-card:hover, .service-card:hover, .template-card:hover, .benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--wh-shadow-hover) !important;
}

/* Glassmorphism Accents */
.glass-panel, .hero-badge, .pill-badge, .badge-glow {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Subtle Interactive Buttons */
.btn-primary, .cta-btn, .topbar-btn, .btn-demo {
  transition: var(--wh-transition-smooth) !important;
}

.btn-primary:hover, .cta-btn:hover, .btn-demo:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
}

/* Fix image responsiveness and prevent clipping */
img {
  max-width: 100%;
}

/* === Extracted from index.php === */
:root {
            --primary-orange: #f59e0b;
            --primary-orange-hover: #d97706;
            --navy-dark: #0f172a;
            --bg-light: #f8fafc;
            --text-dark: #1e293b;
            --accent-blue: #0ea5e9;
            --accent-green: #10b981;
            --accent-purple: #8b5cf6;
        }

        body {
            font-family: 'Plus Jakarta Sans', sans-serif;
            color: var(--text-dark);
            background-color: #ffffff;
            overflow-x: hidden;
        }

        h1, h2, h3, h4, h5, .navbar-brand {
            font-family: 'Outfit', sans-serif;
            font-weight: 500;
        }

        /* Top Promo Bar */
        .top-promo-bar {
            background-color: var(--navy-dark);
            color: #ffffff;
            font-size: 0.82rem;
            font-weight: 500;
            padding: 8px 0;
            letter-spacing: 0.3px;
        }

        .top-promo-bar a {
            color: var(--primary-orange);
            text-decoration: none;
        }

        .top-promo-bar a:hover {
            text-decoration: underline;
        }

        /* Navbar */
        .navbar-custom {
            background: #ffffff;
            border-bottom: 1px solid #f1f5f9;
            padding: 16px 0;
        }

        .navbar-brand-logo {
            text-decoration: none;
            display: flex;
            align-items: center;
        }

        .navbar-logo-img {
            height: 38px;
            width: auto;
        }

        .logo-divider {
            color: #cbd5e1;
            margin: 0 10px;
            font-weight: 300;
        }

        .logo-subtext {
            color: #64748b;
            font-size: 1.05rem;
            font-weight: 500;
        }

        .nav-link-custom {
            color: #334155;
            font-weight: 500;
            font-size: 0.95rem;
            margin: 0 10px;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .nav-link-custom:hover {
            color: var(--primary-orange-hover);
        }

        .btn-cta-orange {
            background: var(--primary-orange);
            color: #ffffff;
            font-weight: 500;
            font-size: 0.9rem;
            padding: 9px 22px;
            border-radius: 50px;
            border: none;
            text-decoration: none;
            transition: all 0.2s ease;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        .btn-cta-orange:hover {
            background: var(--primary-orange-hover);
            color: #ffffff;
        }

        /* Hero Section */
        .hero-section {
            position: relative;
            background: url('../img/hero.jpg') center center / cover no-repeat !important;
            color: #ffffff;
            min-height: 600px;
            display: flex;
            align-items: center;
            padding: 90px 0 110px;
            overflow: hidden;
        }

        .hero-overlay {
            position: absolute;
            inset: 0;
            background: linear-gradient(90deg, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.65) 32%, rgba(0, 0, 0, 0.22) 55%, rgba(0, 0, 0, 0) 75%) !important;
            pointer-events: none;
            z-index: 1;
        }

        .hero-overlay-img {
            display: none !important;
        }

        .hero-tag {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: rgba(245, 158, 11, 0.15);
            color: #fcd34d;
            border: 1px solid rgba(245, 158, 11, 0.35);
            padding: 5px 14px;
            border-radius: 50px;
            font-size: 0.82rem;
            font-weight: 500;
            margin-bottom: 20px;
            backdrop-filter: blur(6px);
        }

        .hero-title {
            font-size: 2.35rem;
            font-weight: 600;
            line-height: 1.25;
            letter-spacing: -0.3px;
            margin-bottom: 18px;
            text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85);
        }

        .hero-title .highlight {
            color: #fcd34d;
            font-weight: 600;
        }

        .hero-subtitle {
            font-size: 1.05rem;
            color: #f1f5f9;
            line-height: 1.6;
            margin-bottom: 30px;
            max-width: 680px;
            text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
        }

        .showcase-image-card {
            border-radius: 16px;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
            border: 1px solid #e2e8f0;
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            background: #ffffff;
        }

        .showcase-image-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
        }

        .showcase-image-card img {
            width: 100%;
            height: auto;
            display: block;
            object-fit: cover;
            transition: transform 0.5s ease;
        }

        .showcase-image-card:hover img {
            transform: scale(1.02);
        }

        .btn-outline-hero {
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: #ffffff;
            font-weight: 500;
            padding: 9px 22px;
            border-radius: 50px;
            text-decoration: none;
            transition: all 0.2s ease;
        }

        .btn-outline-hero:hover {
            background: rgba(255, 255, 255, 0.1);
            color: #ffffff;
            border-color: #ffffff;
        }

        /* Trust Strip */
        .trust-strip {
            background: #ffffff;
            border-bottom: 1px solid #e2e8f0;
            padding: 26px 0;
        }

        .trust-icon {
            font-size: 1.6rem;
            color: #94a3b8;
            transition: color 0.2s ease;
        }

        .trust-icon:hover {
            color: var(--primary-orange);
        }

        /* Section Global */
        .section-padding {
            padding: 80px 0;
        }

        .bg-soft {
            background-color: #f8fafc;
        }

        /* Section Titles (Sober Standard) */
        .sober-title {
            font-size: 1.75rem;
            font-weight: 500;
            line-height: 1.3;
            letter-spacing: -0.2px;
            color: #0f172a;
            margin-bottom: 0.75rem;
        }

        /* Macro Cards */
        .macro-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 16px;
            padding: 26px;
            height: 100%;
            transition: all 0.2s ease;
            display: flex;
            flex-direction: column;
        }

        .macro-card:hover {
            border-color: #cbd5e1;
            box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
        }

        .macro-icon {
            width: 44px;
            height: 44px;
            border-radius: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            margin-bottom: 16px;
            flex-shrink: 0;
        }

        /* Pricing Cards */
        .pricing-card {
            background: #ffffff;
            border: 1px solid #e2e8f0;
            border-radius: 20px;
            padding: 32px 26px;
            height: 100%;
            display: flex;
            flex-direction: column;
            position: relative;
            transition: all 0.2s ease;
        }

        .pricing-card.popular {
            border: 1px solid var(--primary-orange);
            box-shadow: 0 10px 30px rgba(245, 158, 11, 0.08);
        }

        .popular-badge {
            position: absolute;
            top: -12px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--primary-orange);
            color: #ffffff;
            font-size: 0.72rem;
            font-weight: 500;
            padding: 3px 14px;
            border-radius: 50px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .price-val {
            font-size: 2.1rem;
            font-weight: 600;
            color: #0f172a;
            line-height: 1;
            margin: 14px 0 6px;
        }

        /* Footer */
        footer {
            background: var(--navy-dark);
            color: #94a3b8;
            padding: 55px 0 28px;
            font-size: 0.9rem;
        }

        footer h5 {
            color: #ffffff;
            font-size: 1.0rem;
            font-weight: 500;
            margin-bottom: 18px;
        }

        footer a {
            color: #94a3b8;
            text-decoration: none;
            transition: color 0.2s ease;
        }

        footer a:hover {
            color: #ffffff;
        }
/* ==========================================================================
   Asili Nido & Scuole dell'Infanzia — sezioni specifiche
   ========================================================================== */
.asi-hero { background: radial-gradient(circle at 12% 18%, #ffe7dc 0, transparent 38%), radial-gradient(circle at 88% 85%, #dcf5ef 0, transparent 42%), linear-gradient(135deg, #fffaf4, #f3efff); padding: 70px 0 90px; overflow: hidden; }
.asi-hero .hero-tag { background: #fff; color: #ea580c; border-color: rgba(234, 88, 12, .25); box-shadow: 0 8px 20px -12px rgba(234, 88, 12, .5); }
.asi-hero .hero-title { color: #0f172a; }
.asi-hero .hero-subtitle { color: #475569; }
.asi-hero .btn-outline-hero { color: #0f172a; border-color: #cbd5e1; background: #fff; }
.asi-hero .btn-outline-hero:hover { color: #0f172a; border-color: #94a3b8; }
.asi-hero-img { border-radius: 24px; box-shadow: 0 40px 80px -40px rgba(76, 58, 160, .45); width: 100%; height: auto; }
.asi-hero-bullets { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin: 1.4rem 0 1.8rem; padding: 0; list-style: none; color: #334155; font-size: .95rem; }
.asi-hero-bullets i { color: #16a34a; margin-right: .35rem; }
.asi-price-tag { color: #475569; }

.asi-who-card { border-radius: 20px; padding: 1.6rem; height: 100%; background: #fff; border: 1px solid #eef2f7; box-shadow: 0 6px 24px -14px rgba(15, 23, 42, .18); }
.asi-who-card .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem; }
.asi-who-card h3 { font-size: 1.15rem; font-weight: 500; color: #0f172a; }

.asi-tpl-card { display: block; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid #e2e8f0; text-decoration: none; color: inherit; transition: transform .25s ease, box-shadow .25s ease; height: 100%; }
.asi-tpl-card:hover { transform: translateY(-5px); box-shadow: 0 24px 44px -24px rgba(15, 23, 42, .35); }
.asi-tpl-card .shot { aspect-ratio: 16 / 10; overflow: hidden; border-bottom: 1px solid #eef2f7; }
.asi-tpl-card .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .6s ease; }
.asi-tpl-card:hover .shot img { transform: scale(1.04); }
.asi-tpl-card .body { padding: 1rem 1.2rem 1.2rem; }
.asi-tpl-card .swatches { display: flex; gap: 4px; margin-bottom: .6rem; }
.asi-tpl-card .swatches span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px #e2e8f0; }
.asi-tpl-card h3 { font-size: 1.1rem; font-weight: 500; color: #0f172a; margin-bottom: .2rem; }

.asi-phones { display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
.asi-phone { width: 230px; border-radius: 34px; border: 8px solid #1e1b2e; overflow: hidden; background: #1e1b2e; box-shadow: 0 30px 60px -30px rgba(30, 27, 46, .55); }
.asi-phone img { display: block; width: 100%; }
.asi-phone-caption { text-align: center; font-size: .85rem; color: #64748b; margin-top: .6rem; font-weight: 500; }
@media (min-width: 992px) { .asi-phones .asi-phone-wrap:nth-child(2) { transform: translateY(-24px); } }

.asi-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 991px) { .asi-feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { .asi-feature-grid { grid-template-columns: 1fr; } }
.asi-feature { background: #fff; border: 1px solid #eef2f7; border-radius: 16px; padding: 1.2rem; display: flex; gap: .9rem; align-items: flex-start; }
.asi-feature i { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.15rem; flex-shrink: 0; }
.asi-feature h4 { font-size: 1rem; font-weight: 500; color: #0f172a; margin-bottom: .2rem; }
.asi-feature p { font-size: .86rem; color: #64748b; margin: 0; line-height: 1.5; }

.asi-norm { background: #0f172a; color: #cbd5e1; border-radius: 24px; padding: 2.4rem; }
.asi-norm h2 { color: #fff; }
.asi-norm-item { display: flex; gap: .8rem; align-items: flex-start; }
.asi-norm-item i { color: #f97316; font-size: 1.3rem; }
.asi-norm-item b { color: #fff; font-weight: 500; display: block; }
.asi-norm-item span { font-size: .88rem; }

.asi-demo-box { background: linear-gradient(135deg, #fff7ed, #f5f3ff); border: 1px solid #fde4cf; border-radius: 22px; padding: 2rem; }
.asi-demo-account { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: .9rem 1rem; display: flex; gap: .8rem; align-items: center; height: 100%; }
.asi-demo-account i { font-size: 1.4rem; }
.asi-phone img, .asi-tpl-card .shot img { height: auto; }
.asi-tpl-card .shot img { height: 100%; }
.asi-hero .hero-title, .asi-hero .hero-subtitle, .asi-hero .hero-tag { text-shadow: none !important; }
.asi-hero .hero-title .highlight { color: #ea580c !important; text-shadow: none !important; background: none; -webkit-text-fill-color: #ea580c; }
