/*
Theme Name: Twenty Twenty-Two Child
Template: twentytwentytwo
Version: 1.0
*/

:root {
            --primary: #0f172a;
            --primary-accent: #0284c7;
            --secondary-accent: #0ea5e9;
            --success: #10b981;
            --bg-light: #f8fafc;
            --card-bg: #ffffff;
            --text-dark: #1e293b;
            --text-muted: #64748b;
            --border: #e2e8f0;
            --radius: 12px;
            --shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
            --shadow-hover: 0 20px 30px -10px rgba(2, 132, 199, 0.15);
            --wp--preset--font-family--source-serif-pro: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
        }

        * { box-sizing: border-box; margin: 0; padding: 0; }
        
        body, p, h1, h2, h3, h4, h5, h6, a, button, input, textarea, li {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
            background-color: var(--bg-light);
            color: var(--text-dark);
            line-height: 1.6;
        }
        
        h4 {
            font-size: 1.25rem !important;
            font-weight: 700 !important;
            line-height: 1.6 !important;
            }
        p {
            font-size: initial;
        }
        
        .form-group br { display: none; }
        .form-group p { display: contents; }
        .wpcf7 form.sent .wpcf7-response-output {
            background-color: #46b450;
            color: #fff;
            border-radius: 5px;
            margin: 1.5em 0.1em 0.5em!important;
        }

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

        /* Top Bar */
        .top-bar {
            background-color: var(--primary);
            color: #cbd5e1;
            font-size: 0.875rem;
            padding: 10px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }
        .top-bar-flex { display: flex; justify-content: space-between; align-items: center; }
        .tel-direct {color: #cbd5e1; font-size: 0.875rem; text-decoration: none;}

        /* Header */
        header { background: #ffffff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.03); }
        .navbar { display: flex; justify-content: space-between; align-items: center; height: 80px; }
        .nav-menu { display: flex; align-items: center; gap: 24px; }
        .nav-menu a { text-decoration: none; color: var(--text-dark); font-weight: 600; font-size: 0.95rem; transition: color 0.2s; }
        .nav-menu a.active { color: var(--primary-accent); position: relative;}
        .nav-menu a.active::after {content: "";position: absolute;left: 0;bottom: -6px;width: 100%;height: 2px;background: var(--primary-accent);}
        

        .logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
        .logo-icon {
            width: 42px; height: 42px;
            background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
            border-radius: 10px; display: flex; align-items: center; justify-content: center;
            color: white; font-weight: 800; font-size: 1.4rem;
        }
        .logo-title { font-size: 1.35rem; font-weight: 800; color: var(--primary); letter-spacing: -0.5px; }
        .logo-subtitle { font-size: 0.725rem; font-weight: 600; color: var(--primary-accent); text-transform: uppercase; letter-spacing: 1px; }

        .btn-outline {
            border: 2px solid var(--primary-accent);
            color: var(--primary-accent);
            padding: 10px 20px;
            border-radius: 8px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.2s ease;
        }
        .btn-outline:hover { background-color: var(--primary-accent); color: white; }

        /* Hero */
        .hero {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            color: white; padding: 60px 0 80px 0; position: relative;
        }
        .hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
        .hero-content h1 { font-size: 2.75rem; font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
        .hero-content h1 span { color: var(--secondary-accent); }
        .hero-content p { font-size: 1.125rem; color: #94a3b8; margin-bottom: 32px; }

        /* Form Card */
        .form-card {
            background: #ffffff; color: var(--text-dark);
            border-radius: 16px; padding: 36px;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
        }
        .form-header { margin-bottom: 24px; text-align: center; }
        .form-header h3 { font-size: 1.5rem; font-weight: 700; color: var(--primary); }
        .form-group { margin-bottom: 16px; }
        .form-label { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 6px; color: #334155; }
        .form-control {
            width: 100%; padding: 12px 16px; border: 1.5px solid var(--border);
            border-radius: 8px; font-size: 0.95rem; font-family: inherit;
        }
        .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

        .btn-primary {
            width: 100%; background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
            color: white; border: none; padding: 16px; border-radius: 8px;
            font-size: 1.05rem; font-weight: 700; cursor: pointer; transition: transform 0.2s;
        }
        .btn-primary:hover { transform: translateY(-2px); }

        /* Features */
        .features { padding: 80px 0; }
        .section-header { text-align: center; max-width: 650px; margin: 0 auto 50px auto; }
        .section-subtitle { color: var(--primary-accent); font-weight: 700; font-size: 0.875rem; text-transform: uppercase; }
        .section-title { font-size: 2.25rem; font-weight: 800; color: var(--primary); }

        .features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
        .feature-card {
            background: var(--card-bg); padding: 32px; border-radius: var(--radius);
            box-shadow: var(--shadow); border: 1px solid var(--border); transition: all 0.3s;
        }
        .feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
        .feature-icon {
            width: 54px; height: 54px; background: #e0f2fe; color: var(--primary-accent);
            border-radius: 12px; display: flex; align-items: center; justify-content: center;
            font-size: 1.5rem; margin-bottom: 20px;
        }

        /* How it works */
        .how-it-works { background: #ffffff; padding: 80px 0; border-top: 1px solid var(--border); }
        .steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
        .step-card { text-align: center; padding: 24px; }
        .step-number {
            width: 48px; height: 48px; background: var(--primary); color: white;
            border-radius: 50%; display: flex; align-items: center; justify-content: center;
            font-weight: 800; margin: 0 auto 20px auto;
        }
        
        /* ==========================================
           CHI SIAMO PAGE
        ========================================== */
        
        /* Titolo pagina */
        .page-header {
            background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
            color: white;
            padding: 60px 0;
            text-align: center;
        }
        
        .page-header h1 {
            font-size: 2.5rem;
            font-weight: 800;
            line-height: 1.2;
            margin-bottom: 12px;
        }
        
        .page-header p {
            font-size: 1.15rem;
            color: #94a3b8;
            max-width: 700px;
            margin: 0 auto;
        }
        
        
        /* Contenuto principale */
        .content-section {
            padding: 70px 0 35px 0;
        }
        
        
        /* Layout storia */
        .story-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 48px;
            align-items: center;
            margin-bottom: 70px;
        }
        
        .story-text h2 {
            font-size: 2rem;
            font-weight: 800;
            color: var(--primary);
            margin-bottom: 20px;
        }
        
        .story-text p {
            color: #475569;
            font-size: 1.05rem;
            line-height: 1.7;
            margin-bottom: 16px;
        }
        
        
        /* Card mission */
        .story-card {
            background: #ffffff;
            padding: 40px;
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            border-left: 5px solid var(--primary-accent);
        }
        
        .story-card h3 {
            font-size: 1.35rem;
            color: var(--primary);
            font-weight: 700;
            margin-bottom: 12px;
        }
        
        .story-card p {
            color: var(--text-muted);
            font-size: 0.98rem;
        }
        
        
        /* Sezione valori */
        .values-section {
            background: #ffffff;
            padding: 70px 0;
            border-top: 1px solid var(--border);
            border-bottom: 1px solid var(--border);
        }
        
        
        .values-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 28px;
        }
        
        
        .value-card {
            background: var(--bg-light);
            padding: 32px;
            border-radius: var(--radius);
            border: 1px solid var(--border);
            transition: all 0.3s ease;
        }
        
        
        .value-card:hover {
            transform: translateY(-5px);
            box-shadow: var(--shadow-hover);
        }
        
        
        .value-icon {
            font-size: 2rem;
            margin-bottom: 16px;
            display: inline-block;
        }
        
        
        .value-card h4 {
            font-size: 1.2rem !important;
            font-weight: 700 !important;
            color: var(--primary);
            margin-bottom: 10px;
        }
        
        
        .value-card p {
            color: var(--text-muted);
            font-size: 0.95rem;
        }

        /* Footer */
        footer { background: var(--primary); color: #94a3b8; padding: 40px 0; font-size: 0.875rem; text-align: center; }

        /* ==========================================
            RESPONSIVE & MOBILE OPTIMIZATIONS
        ========================================== */
        
        /* Tablet & schermi medio-piccoli (max-width: 900px) */
        @media (max-width: 900px) {
            .hero-grid, 
            .steps-grid { 
                grid-template-columns: 1fr; 
                gap: 32px;
            }
            
            /* Mantiene l'header compatto e fisso in altezza */
            .navbar {
                height: 70px;
            }
            
            .top-bar { 
                display: block; 
            }
            
            .top-text {
                display: none;
            }

            .top-bar-flex {
                justify-content: center;
            }
        
            .hero {
                padding: 40px 0 60px 0;
                text-align: center;
            }
        
            .hero-content h1 {
                font-size: 2.2rem;
            }
        
            .hero-content p {
                font-size: 1rem;
            }
        
            .features, 
            .how-it-works {
                padding: 50px 0;
            }
            
            .story-grid {
                grid-template-columns: 1fr;
                gap: 32px;
            }
        
            .page-header {
                padding: 40px 0;
            }
        
            .page-header h1 {
                font-size: 2rem;
            }
        
            .content-section,
            .values-section {
                padding: 50px 0;
            }

        }
        
        /* Smartphone (max-width: 600px) */
        @media (max-width: 600px) {
            .container {
                padding: 0 16px; /* Riduce i margini laterali per dare più spazio ai contenuti */
            }
            
            .container-credit {
                padding: 0 30px; /* Riduce i margini laterali per dare più spazio ai contenuti */
            }
        
            /* Header e Nav bar responsive */
            header {
                position: relative; /* Evita di rubare spazio prezioso in alto durante lo scroll */
            }
        
            .navbar {
                height: auto;
                padding: 16px 0;
                flex-direction: column;
                gap: 16px;
            }
        
            .btn-outline {
                width: 100%;
                text-align: center;
                padding: 12px 0;
            }
        
            /* Modulo di contatto responsive */
            .form-card {
                padding: 20px 16px;
                border-radius: 12px;
            }
        
            .form-row {
                grid-template-columns: 1fr; /* Mette i campi del form uno sotto l'altro */
                gap: 0;
            }
        
            .form-header h3 {
                font-size: 1.25rem;
            }
        
            /* Tipografia Responsive */
            .hero-content h1 {
                font-size: 1.75rem;
            }
        
            .section-title {
                font-size: 1.65rem;
            }
        
            .features-grid {
                grid-template-columns: 1fr; /* Una sola colonna per le card dei servizi */
                gap: 16px;
            }
        
            .feature-card {
                padding: 24px;
                text-align: center;
            }
            
            /* Centra l'icona della scheda */
            .feature-icon {
                margin-left: auto;
                margin-right: auto;
            }
        }
        
        /* 1. Smartphone in VERTICALE (Portrait) */
        @media (max-width: 600px) and (orientation: portrait) {
            /* Nasconde il pulsante per risparmiare spazio */
            .navbar .btn-outline {
                display: none;
            }
            
            /* Centra o allinea bene il logo visto che è rimasto solo lui */
            .navbar {
                justify-content: center;
            }
            
            .page-header h1 {
                font-size: 1.75rem;
            }
        
            .page-header p {
                font-size: 1rem;
            }
        
            .story-card {
                padding: 24px;
            }
        
            .story-text h2 {
                font-size: 1.6rem;
            }
        }

        /* 2. Smartphone in ORIZZONTALE (Landscape) o dispositivi più larghi */
        @media (max-width: 900px) and (orientation: landscape) {
            /* Mostra il pulsante affiancato al logo senza andare a capo */
            .navbar {
                flex-direction: row;
                justify-content: space-between;
            }
            
            .navbar .btn-outline {
                display: inline-block;
                padding: 8px 14px;
                font-size: 0.85rem; /* Un pizzico più piccolo per stare comodissimo */
            }
        }