/*
 Theme Name:   FlashTech Child
 Theme URI:    https://flashtech.it
 Description:  Child theme di Hello Elementor per FlashTech.it — System Integrator IT
 Author:       FlashTech S.r.l.
 Author URI:   https://flashtech.it
 Template:     hello-elementor
 Version:      1.0.0
 Text Domain:  flashtech-child
 License:      GPL v2 or later
*/

/* ========================================
   @font-face — Inter (local fallback)
   ======================================== */
@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('./assets/fonts/Inter-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('./assets/fonts/Inter-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('./assets/fonts/Inter-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('./assets/fonts/Inter-Bold.woff2') format('woff2');
}

/* ========================================
   CSS Custom Properties — Brand FlashTech
   ======================================== */
:root {
    /* Colori primari */
    --ft-navy: #1e2a4a;
    --ft-navy-light: #2a3a5c;
    --ft-navy-dark: #141d35;
    --ft-gold: #e8b84b;
    --ft-gold-light: #f0cb6e;
    --ft-gold-dark: #c99a2e;

    /* Colori neutrali */
    --ft-white: #ffffff;
    --ft-gray-50: #f8f9fa;
    --ft-gray-100: #f1f3f5;
    --ft-gray-200: #e9ecef;
    --ft-gray-300: #dee2e6;
    --ft-gray-400: #ced4da;
    --ft-gray-500: #adb5bd;
    --ft-gray-600: #868e96;
    --ft-gray-700: #495057;
    --ft-gray-800: #343a40;
    --ft-gray-900: #212529;

    /* Colori stato */
    --ft-success: #2ecc71;
    --ft-warning: #f39c12;
    --ft-danger: #e74c3c;
    --ft-info: #3498db;

    /* Tipografia */
    --ft-font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --ft-font-size-xs: 0.75rem;
    --ft-font-size-sm: 0.875rem;
    --ft-font-size-base: 1rem;
    --ft-font-size-lg: 1.125rem;
    --ft-font-size-xl: 1.25rem;
    --ft-font-size-2xl: 1.5rem;
    --ft-font-size-3xl: 2rem;
    --ft-font-size-4xl: 2.5rem;

    /* Spacing */
    --ft-space-xs: 0.25rem;
    --ft-space-sm: 0.5rem;
    --ft-space-md: 1rem;
    --ft-space-lg: 1.5rem;
    --ft-space-xl: 2rem;
    --ft-space-2xl: 3rem;
    --ft-space-3xl: 4rem;
    --ft-space-4xl: 6rem;

    /* Border Radius */
    --ft-radius-sm: 4px;
    --ft-radius-md: 8px;
    --ft-radius-lg: 12px;
    --ft-radius-xl: 16px;
    --ft-radius-full: 9999px;

    /* Shadows */
    --ft-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --ft-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --ft-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.12);
    --ft-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

    /* Transitions */
    --ft-transition: 0.3s ease;
    --ft-transition-fast: 0.15s ease;
}

/* ========================================
   Global Reset & Base Styles
   ======================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: var(--ft-font-primary);
    font-size: var(--ft-font-size-base);
    line-height: 1.6;
    color: var(--ft-gray-800);
    background-color: var(--ft-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--ft-font-primary);
    font-weight: 700;
    line-height: 1.2;
    color: var(--ft-navy);
}

a {
    color: var(--ft-gold-dark);
    text-decoration: none;
    transition: color var(--ft-transition-fast);
}

a:hover {
    color: var(--ft-gold);
}

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

/* ========================================
   Button Styles
   ======================================== */
.ft-btn,
.elementor-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--ft-space-sm);
    padding: 0.75rem 1.75rem;
    font-family: var(--ft-font-primary);
    font-size: var(--ft-font-size-base);
    font-weight: 600;
    line-height: 1.4;
    border: 2px solid transparent;
    border-radius: var(--ft-radius-md);
    cursor: pointer;
    transition: all var(--ft-transition);
    text-decoration: none;
}

.ft-btn--primary {
    background: var(--ft-navy);
    color: var(--ft-white);
    border-color: var(--ft-navy);
}

.ft-btn--primary:hover {
    background: var(--ft-navy-light);
    border-color: var(--ft-navy-light);
    color: var(--ft-white);
    transform: translateY(-1px);
    box-shadow: var(--ft-shadow-md);
}

.ft-btn--accent {
    background: var(--ft-gold);
    color: var(--ft-navy);
    border-color: var(--ft-gold);
}

.ft-btn--accent:hover {
    background: var(--ft-gold-light);
    border-color: var(--ft-gold-light);
    color: var(--ft-navy);
    transform: translateY(-1px);
    box-shadow: var(--ft-shadow-md);
}

.ft-btn--outline {
    background: transparent;
    color: var(--ft-navy);
    border-color: var(--ft-navy);
}

.ft-btn--outline:hover {
    background: var(--ft-navy);
    color: var(--ft-white);
}

.ft-btn--sm {
    padding: 0.5rem 1rem;
    font-size: var(--ft-font-size-sm);
}

.ft-btn--lg {
    padding: 1rem 2.5rem;
    font-size: var(--ft-font-size-lg);
}

.ft-btn--full {
    width: 100%;
}

.ft-btn--danger {
    background: var(--ft-danger);
    color: var(--ft-white);
    border-color: var(--ft-danger);
}

.ft-btn--danger:hover {
    background: #c0392b;
    border-color: #c0392b;
    color: var(--ft-white);
}

/* ========================================
   Form Styles
   ======================================== */
.ft-form-group {
    margin-bottom: var(--ft-space-lg);
}

.ft-label {
    display: block;
    margin-bottom: var(--ft-space-xs);
    font-weight: 600;
    font-size: var(--ft-font-size-sm);
    color: var(--ft-navy);
}

.ft-input,
.ft-select,
.ft-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--ft-font-primary);
    font-size: var(--ft-font-size-base);
    color: var(--ft-gray-800);
    background: var(--ft-white);
    border: 1px solid var(--ft-gray-300);
    border-radius: var(--ft-radius-md);
    transition: border-color var(--ft-transition-fast), box-shadow var(--ft-transition-fast);
}

.ft-input:focus,
.ft-select:focus,
.ft-textarea:focus {
    outline: none;
    border-color: var(--ft-gold);
    box-shadow: 0 0 0 3px rgba(232, 184, 75, 0.15);
}

.ft-input::placeholder,
.ft-textarea::placeholder {
    color: var(--ft-gray-400);
}

.ft-textarea {
    resize: vertical;
    min-height: 120px;
}

.ft-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23495057' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.ft-input-error {
    border-color: var(--ft-danger);
}

.ft-error-msg {
    color: var(--ft-danger);
    font-size: var(--ft-font-size-sm);
    margin-top: var(--ft-space-xs);
}

/* ========================================
   Card Styles
   ======================================== */
.ft-card {
    background: var(--ft-white);
    border-radius: var(--ft-radius-lg);
    padding: var(--ft-space-xl);
    box-shadow: var(--ft-shadow-sm);
    border: 1px solid var(--ft-gray-200);
    transition: all var(--ft-transition);
}

.ft-card:hover {
    box-shadow: var(--ft-shadow-md);
    transform: translateY(-2px);
}

.ft-card--navy {
    background: var(--ft-navy);
    color: var(--ft-white);
    border-color: var(--ft-navy);
}

.ft-card--navy h3,
.ft-card--navy h4 {
    color: var(--ft-white);
}

/* ========================================
   Badge / Tag Styles
   ======================================== */
.ft-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    font-size: var(--ft-font-size-xs);
    font-weight: 600;
    border-radius: var(--ft-radius-full);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ft-badge--open { background: #e3f2fd; color: #1565c0; }
.ft-badge--in-progress { background: #fff3e0; color: #e65100; }
.ft-badge--waiting { background: #f3e5f5; color: #7b1fa2; }
.ft-badge--resolved { background: #e8f5e9; color: #2e7d32; }
.ft-badge--closed { background: var(--ft-gray-200); color: var(--ft-gray-600); }

.ft-badge--low { background: #e8f5e9; color: #2e7d32; }
.ft-badge--medium { background: #fff3e0; color: #e65100; }
.ft-badge--high { background: #fce4ec; color: #c62828; }
.ft-badge--critical { background: #c62828; color: var(--ft-white); }

/* ========================================
   Table Styles
   ======================================== */
.ft-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--ft-white);
    border-radius: var(--ft-radius-lg);
    overflow: hidden;
    box-shadow: var(--ft-shadow-sm);
}

.ft-table thead {
    background: var(--ft-navy);
    color: var(--ft-white);
}

.ft-table th {
    padding: 0.875rem 1rem;
    text-align: left;
    font-weight: 600;
    font-size: var(--ft-font-size-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ft-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--ft-gray-200);
    font-size: var(--ft-font-size-sm);
}

.ft-table tbody tr:hover {
    background: var(--ft-gray-50);
}

.ft-table tbody tr:last-child td {
    border-bottom: none;
}

/* ========================================
   Alert / Notice Styles
   ======================================== */
.ft-alert {
    padding: var(--ft-space-md) var(--ft-space-lg);
    border-radius: var(--ft-radius-md);
    margin-bottom: var(--ft-space-lg);
    font-size: var(--ft-font-size-sm);
    border-left: 4px solid;
}

.ft-alert--success { background: #e8f5e9; border-color: var(--ft-success); color: #2e7d32; }
.ft-alert--warning { background: #fff3e0; border-color: var(--ft-warning); color: #e65100; }
.ft-alert--danger { background: #fce4ec; border-color: var(--ft-danger); color: #c62828; }
.ft-alert--info { background: #e3f2fd; border-color: var(--ft-info); color: #1565c0; }

/* ========================================
   Header Styles (Elementor Theme Builder)
   ======================================== */
.ft-header {
    background: var(--ft-navy);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--ft-shadow-md);
}

.ft-header a {
    color: var(--ft-white);
    font-weight: 500;
}

.ft-header a:hover {
    color: var(--ft-gold);
}

.ft-header .ft-btn--accent {
    color: var(--ft-navy);
}

/* ========================================
   Footer Styles
   ======================================== */
.ft-footer {
    background: var(--ft-navy-dark);
    color: var(--ft-gray-400);
    padding: var(--ft-space-3xl) 0 var(--ft-space-xl);
}

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

.ft-footer a:hover {
    color: var(--ft-gold);
}

.ft-footer h4 {
    color: var(--ft-white);
    margin-bottom: var(--ft-space-md);
}

.ft-footer__copy {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--ft-space-xl);
    margin-top: var(--ft-space-2xl);
    text-align: center;
    font-size: var(--ft-font-size-sm);
}

/* ========================================
   Section Styles
   ======================================== */
.ft-section {
    padding: var(--ft-space-4xl) 0;
}

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

.ft-section--navy {
    background: var(--ft-navy);
    color: var(--ft-white);
}

.ft-section--navy h2,
.ft-section--navy h3 {
    color: var(--ft-white);
}

.ft-section__title {
    font-size: var(--ft-font-size-3xl);
    text-align: center;
    margin-bottom: var(--ft-space-sm);
}

.ft-section__subtitle {
    text-align: center;
    color: var(--ft-gray-600);
    font-size: var(--ft-font-size-lg);
    margin-bottom: var(--ft-space-3xl);
}

/* ========================================
   Container
   ======================================== */
.ft-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--ft-space-xl);
}

/* ========================================
   Grid Layout Helpers
   ======================================== */
.ft-grid {
    display: grid;
    gap: var(--ft-space-xl);
}

.ft-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ft-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ft-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ========================================
   Utility Classes
   ======================================== */
.ft-text-center { text-align: center; }
.ft-text-gold { color: var(--ft-gold); }
.ft-text-navy { color: var(--ft-navy); }
.ft-mt-0 { margin-top: 0; }
.ft-mb-0 { margin-bottom: 0; }
.ft-mb-md { margin-bottom: var(--ft-space-md); }
.ft-mb-lg { margin-bottom: var(--ft-space-lg); }
.ft-mb-xl { margin-bottom: var(--ft-space-xl); }

/* ========================================
   Responsive Breakpoints
   ======================================== */
@media (max-width: 1024px) {
    .ft-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .ft-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    :root {
        --ft-font-size-3xl: 1.75rem;
        --ft-font-size-4xl: 2rem;
    }

    .ft-grid--4,
    .ft-grid--3,
    .ft-grid--2 {
        grid-template-columns: 1fr;
    }

    .ft-section {
        padding: var(--ft-space-3xl) 0;
    }

    .ft-table {
        display: block;
        overflow-x: auto;
    }

    .ft-btn--lg {
        padding: 0.875rem 2rem;
        font-size: var(--ft-font-size-base);
    }
}

@media (max-width: 480px) {
    .ft-container {
        padding: 0 var(--ft-space-md);
    }

    .ft-card {
        padding: var(--ft-space-lg);
    }
}

/* ========================================
   Elementor Overrides
   ======================================== */
.elementor-widget-heading .elementor-heading-title {
    font-family: var(--ft-font-primary);
}

.elementor-widget-text-editor {
    font-family: var(--ft-font-primary);
}

.elementor-button-wrapper .elementor-button {
    font-family: var(--ft-font-primary);
    font-weight: 600;
    border-radius: var(--ft-radius-md);
}

/* Elementor form styling */
.elementor-form .elementor-field {
    font-family: var(--ft-font-primary);
    border-radius: var(--ft-radius-md);
    border: 1px solid var(--ft-gray-300);
    padding: 0.75rem 1rem;
}

.elementor-form .elementor-field:focus {
    border-color: var(--ft-gold);
    box-shadow: 0 0 0 3px rgba(232, 184, 75, 0.15);
}

/* ========================================
   Wildix Kite Widget Position
   ======================================== */
.wildix-kite-widget {
    z-index: 9998 !important;
}

/* ========================================
   Print Styles
   ======================================== */
@media print {
    .ft-header,
    .ft-footer,
    .wildix-kite-widget,
    .ft-btn {
        display: none !important;
    }

    body {
        color: #000;
        background: #fff;
    }
}

/* ========================================
   LAYOUT â€” Hero, Stats, Badges, Flex, etc.
   ======================================== */

/* Hero section */
.ft-hero {
    padding: 5rem 0;
    text-align: center;
}
.ft-hero h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    margin-bottom: 1rem;
}
.ft-hero p {
    color: rgba(255,255,255,0.8);
    font-size: 1.25rem;
    max-width: 700px;
    margin: 0 auto 2rem;
}

/* Navy section â€” ensure white text */
.ft-section--navy,
.ft-section--navy p,
.ft-section--navy li {
    color: rgba(255,255,255,0.85);
}
.ft-section--navy h1,
.ft-section--navy h2,
.ft-section--navy h3,
.ft-section--navy h4 {
    color: #fff;
}

/* Badge container (flex wrap) */
.ft-badges,
.ft-section--navy .ft-badge-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

/* Hero badge style */
.ft-section--navy .ft-badge {
    background: rgba(232,184,75,0.15);
    color: #e8b84b;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

/* CTA button group */
.ft-btn-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Stats grid (used in ContinuitÃ  section) */
.ft-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.ft-stats-grid .ft-stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #e8b84b;
}
.ft-stats-grid .ft-stat-label {
    color: rgba(255,255,255,0.7);
    font-size: 0.875rem;
}

/* Partner logos flex */
.ft-partner-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    padding: 2rem 0;
}

/* Card icon */
.ft-card-icon {
    width: 64px;
    height: 64px;
    background: #1e2a4a;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

/* Platform card icon (smaller) */
.ft-platform-icon {
    width: 48px;
    height: 48px;
    background: #1e2a4a;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    color: #e8b84b;
    font-size: 22px;
    font-weight: 700;
}

/* Gold highlight border */
.ft-card--highlight {
    border: 3px solid #e8b84b;
}

/* Gold badge label */
.ft-label-badge {
    display: inline-block;
    background: #e8b84b;
    color: #1e2a4a;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 6px 18px;
    border-radius: 4px;
    margin-bottom: 1.25rem;
}

/* Checklist in navy section */
.ft-section--navy .ft-checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.ft-section--navy .ft-checklist li {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 2.2;
    font-size: 15px;
}
.ft-section--navy .ft-checklist li::before {
    content: "\2713";
    color: #e8b84b;
    font-weight: 700;
    font-size: 18px;
}

/* Two column layout */
.ft-two-col {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 3.75rem;
}

/* Step numbers */
.ft-step-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #e8b84b;
    margin-bottom: 0.5rem;
}

/* Contact info box */
.ft-info-box {
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
}

/* Form container */
.ft-form-container {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

/* Outlined button on navy bg */
.ft-section--navy .ft-btn--outline {
    color: #fff;
    border-color: rgba(255,255,255,0.4);
}
.ft-section--navy .ft-btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

/* Card with gold text heading */
.ft-card h3 {
    margin-top: 0;
}

/* Divider line */
.ft-divider {
    width: 60px;
    height: 3px;
    background: #e8b84b;
    margin: 20px auto 24px;
}

/* Header and footer basic styles for Hello Elementor */
header.site-header {
    background: #1e2a4a;
    padding: 0.75rem 1.5rem;
}
header.site-header a {
    color: #fff;
}
header.site-header .site-title a {
    color: #fff;
    font-weight: 700;
    font-size: 1.25rem;
}
header.site-header .site-navigation a {
    color: rgba(255,255,255,0.85);
    padding: 0.5rem 1rem;
}
header.site-header .site-navigation a:hover {
    color: #e8b84b;
}

footer.site-footer {
    background: #141d35;
    color: #adb5bd;
    padding: 2rem 1.5rem;
}
footer.site-footer a {
    color: #adb5bd;
}
footer.site-footer a:hover {
    color: #e8b84b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ft-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .ft-two-col {
        grid-template-columns: 1fr;
    }
    .ft-hero h1 {
        font-size: 2rem;
    }
}
/* ========================================
   HEADER NAVIGATION
   ======================================== */
.ft-header {
    background: var(--ft-navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}

.ft-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    min-height: 64px;
}

.ft-header__brand {
    flex-shrink: 0;
}

.ft-header__logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.ft-header__logo-flash {
    color: #fff;
}
.ft-header__logo-tech {
    color: var(--ft-gold);
}

.ft-header__nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.ft-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}

.ft-nav-list li {
    position: relative;
}

.ft-nav-list > li > a {
    display: block;
    padding: 0.5rem 0.875rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.ft-nav-list > li > a:hover,
.ft-nav-list > li.current-menu-item > a,
.ft-nav-list > li.current-menu-parent > a {
    color: #fff;
    background: rgba(255,255,255,0.1);
}

.ft-nav-list > li.current-menu-item > a {
    color: var(--ft-gold);
}

/* Dropdown submenu */
.ft-nav-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    list-style: none;
    margin: 0.375rem 0 0 0;
    z-index: 100;
}

.ft-nav-list li:hover > .sub-menu {
    display: block;
}

.ft-nav-list .sub-menu a {
    display: block;
    padding: 0.5rem 1.25rem;
    color: var(--ft-gray-800);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.ft-nav-list .sub-menu a:hover {
    background: var(--ft-gray-50);
    color: var(--ft-navy);
    padding-left: 1.5rem;
}

/* Arrow for dropdown parent */
.ft-nav-list > .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
}

/* Header CTA */
.ft-header__cta .ft-btn {
    white-space: nowrap;
}

/* Mobile nav toggle */
.ft-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 5px;
    z-index: 10;
}
.ft-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.ft-nav-toggle--active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.ft-nav-toggle--active span:nth-child(2) {
    opacity: 0;
}
.ft-nav-toggle--active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 1024px) {
    .ft-nav-toggle {
        display: flex;
    }
    .ft-header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ft-navy);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    }
    .ft-header__nav.ft-nav--open {
        display: flex;
    }
    .ft-nav-list {
        flex-direction: column;
        width: 100%;
        gap: 0;
    }
    .ft-nav-list > li {
        width: 100%;
    }
    .ft-nav-list > li > a {
        padding: 0.75rem 1rem;
    }
    .ft-nav-list .sub-menu {
        position: static;
        display: none;
        background: rgba(255,255,255,0.05);
        box-shadow: none;
        border-radius: 0;
        margin: 0;
        padding: 0;
    }
    .ft-submenu--open > .sub-menu {
        display: block !important;
    }
    .ft-nav-list .sub-menu a {
        color: rgba(255,255,255,0.75);
        padding-left: 2rem;
    }
    .ft-nav-list .sub-menu a:hover {
        color: var(--ft-gold);
        background: rgba(255,255,255,0.05);
    }
    .ft-header__cta {
        width: 100%;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 0.5rem;
    }
    .ft-header__cta .ft-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   FOOTER STYLES
   ======================================== */
.ft-footer {
    background: var(--ft-navy-dark, #141d35);
    color: var(--ft-gray-400, #adb5bd);
    padding: 3.5rem 0 1.5rem;
}
.ft-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.ft-footer__brand {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}
.ft-footer__desc {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--ft-gray-500, #adb5bd);
}
.ft-footer__contact {
    font-size: 0.875rem;
    line-height: 1.8;
}
.ft-footer__contact a {
    color: var(--ft-gold, #e8b84b);
}
.ft-footer h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
}
.ft-footer__links {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ft-footer__links li {
    margin-bottom: 0.5rem;
}
.ft-footer__links a {
    color: var(--ft-gray-500, #adb5bd);
    font-size: 0.875rem;
    text-decoration: none;
    transition: color 0.2s;
}
.ft-footer__links a:hover {
    color: var(--ft-gold, #e8b84b);
}
.ft-footer__copy {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.8125rem;
}
.ft-footer__copy p {
    margin: 0.25rem 0;
}
.ft-footer__copy a {
    color: var(--ft-gray-500, #adb5bd);
}
.ft-footer__copy a:hover {
    color: var(--ft-gold, #e8b84b);
}
.ft-footer__sep {
    margin: 0 0.5rem;
    opacity: 0.5;
}

@media (max-width: 768px) {
    .ft-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}
@media (max-width: 480px) {
    .ft-footer__grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   PORTAL PAGE STYLES
   ======================================== */
.page-content {
    padding: 2.5rem 0 4rem;
    min-height: 60vh;
}

/* Ensure portal forms look good */
.ft-portal-wrap {
    max-width: 800px;
    margin: 0 auto;
}

.ft-portal-wrap h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--ft-gold, #e8b84b);
    display: inline-block;
}

/* ========================================
   CONTACT FORM STYLES
   ======================================== */
.ft-contact-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--ft-gray-200, #e9ecef);
}

.ft-contact-form .ft-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 600px) {
    .ft-contact-form .ft-form-row {
        grid-template-columns: 1fr;
    }
}

.ft-contact-form .ft-form-group {
    margin-bottom: 1.5rem;
}

.ft-contact-form label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--ft-navy, #1e2a4a);
}

.ft-contact-form input,
.ft-contact-form select,
.ft-contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--ft-font-primary, 'Inter', sans-serif);
    font-size: 0.9375rem;
    color: var(--ft-gray-800, #343a40);
    background: #fff;
    border: 1px solid var(--ft-gray-300, #dee2e6);
    border-radius: 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.ft-contact-form input:focus,
.ft-contact-form select:focus,
.ft-contact-form textarea:focus {
    outline: none;
    border-color: var(--ft-gold, #e8b84b);
    box-shadow: 0 0 0 3px rgba(232,184,75,0.15);
}

.ft-contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.ft-contact-form .ft-privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--ft-gray-600, #868e96);
    line-height: 1.4;
}

.ft-contact-form .ft-privacy-check input[type="checkbox"] {
    width: auto;
    margin-top: 3px;
}

.ft-contact-success {
    background: #e8f5e9;
    border: 1px solid #66bb6a;
    color: #2e7d32;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    font-size: 1rem;
}

.ft-contact-error {
    background: #fce4ec;
    border: 1px solid #ef5350;
    color: #c62828;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

/* Override old header/footer styles from layout CSS */
header.site-header {
    display: none !important;
}
footer.site-footer {
    display: none !important;
}
/* ========================================
   HEADER NAVIGATION
   ======================================== */
.ft-header {
    background: var(--ft-navy);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(0,0,0,0.15);
}
.ft-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
    min-height: 64px;
}
.ft-header__brand { flex-shrink: 0; }
.ft-header__logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.5px;
}
.ft-header__logo-flash { color: #fff; }
.ft-header__logo-tech { color: var(--ft-gold); }
.ft-header__nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.ft-nav-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.25rem;
}
.ft-nav-list li { position: relative; }
.ft-nav-list > li > a {
    display: block;
    padding: 0.5rem 0.875rem;
    color: rgba(255,255,255,0.85);
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.ft-nav-list > li > a:hover,
.ft-nav-list > li.current-menu-item > a,
.ft-nav-list > li.current-menu-parent > a {
    color: #fff;
    background: rgba(255,255,255,0.1);
}
.ft-nav-list > li.current-menu-item > a { color: var(--ft-gold); }
.ft-nav-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
    padding: 0.5rem 0;
    list-style: none;
    margin: 0.375rem 0 0 0;
    z-index: 100;
}
.ft-nav-list li:hover > .sub-menu { display: block; }
.ft-nav-list .sub-menu a {
    display: block;
    padding: 0.5rem 1.25rem;
    color: var(--ft-gray-800);
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}
.ft-nav-list .sub-menu a:hover {
    background: var(--ft-gray-50);
    color: var(--ft-navy);
    padding-left: 1.5rem;
}
.ft-nav-list > .menu-item-has-children > a::after {
    content: '';
    display: inline-block;
    width: 0; height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 4px solid currentColor;
}
.ft-header__cta .ft-btn { white-space: nowrap; }
.ft-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px; height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    gap: 5px;
    z-index: 10;
}
.ft-nav-toggle span {
    display: block;
    width: 24px; height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all 0.3s ease;
}
.ft-nav-toggle--active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ft-nav-toggle--active span:nth-child(2) { opacity: 0; }
.ft-nav-toggle--active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
    .ft-nav-toggle { display: flex; }
    .ft-header__nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0; right: 0;
        background: var(--ft-navy);
        flex-direction: column;
        padding: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    }
    .ft-header__nav.ft-nav--open { display: flex; }
    .ft-nav-list { flex-direction: column; width: 100%; gap: 0; }
    .ft-nav-list > li { width: 100%; }
    .ft-nav-list > li > a { padding: 0.75rem 1rem; }
    .ft-nav-list .sub-menu {
        position: static;
        display: none;
        background: rgba(255,255,255,0.05);
        box-shadow: none;
        border-radius: 0;
        margin: 0; padding: 0;
    }
    .ft-submenu--open > .sub-menu { display: block !important; }
    .ft-nav-list .sub-menu a { color: rgba(255,255,255,0.75); padding-left: 2rem; }
    .ft-nav-list .sub-menu a:hover { color: var(--ft-gold); background: rgba(255,255,255,0.05); }
    .ft-header__cta {
        width: 100%;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        margin-top: 0.5rem;
    }
    .ft-header__cta .ft-btn { width: 100%; justify-content: center; }
}

/* ========================================
   FOOTER ENHANCED
   ======================================== */
.ft-footer {
    background: var(--ft-navy-dark, #141d35);
    color: var(--ft-gray-400, #adb5bd);
    padding: 3.5rem 0 1.5rem;
}
.ft-footer__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.ft-footer__brand { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.75rem; }
.ft-footer__desc { font-size: 0.9rem; line-height: 1.6; margin-bottom: 1rem; color: var(--ft-gray-500, #adb5bd); }
.ft-footer__contact { font-size: 0.875rem; line-height: 1.8; }
.ft-footer__contact a { color: var(--ft-gold, #e8b84b); }
.ft-footer h4 { color: #fff; font-size: 1rem; font-weight: 700; margin: 0 0 1rem 0; }
.ft-footer__links { list-style: none; margin: 0; padding: 0; }
.ft-footer__links li { margin-bottom: 0.5rem; }
.ft-footer__links a { color: var(--ft-gray-500, #adb5bd); font-size: 0.875rem; text-decoration: none; transition: color 0.2s; }
.ft-footer__links a:hover { color: var(--ft-gold, #e8b84b); }
.ft-footer__copy { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 1.5rem; text-align: center; font-size: 0.8125rem; }
.ft-footer__copy p { margin: 0.25rem 0; }
.ft-footer__copy a { color: var(--ft-gray-500, #adb5bd); }
.ft-footer__copy a:hover { color: var(--ft-gold, #e8b84b); }
.ft-footer__sep { margin: 0 0.5rem; opacity: 0.5; }

@media (max-width: 768px) {
    .ft-footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
    .ft-footer__grid { grid-template-columns: 1fr; }
}

/* ========================================
   PORTAL PAGES
   ======================================== */
.page-content { padding: 2.5rem 0 4rem; min-height: 60vh; }
.ft-portal-wrap { max-width: 800px; margin: 0 auto; }
.ft-portal-wrap h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--ft-gold, #e8b84b);
    display: inline-block;
}

/* ========================================
   CONTACT FORM
   ======================================== */
.ft-contact-form {
    background: #fff;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    border: 1px solid var(--ft-gray-200, #e9ecef);
}
.ft-contact-form .ft-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 0.5rem;
}
@media (max-width: 600px) {
    .ft-contact-form .ft-form-row { grid-template-columns: 1fr; }
}
.ft-contact-form .ft-form-group { margin-bottom: 1.25rem; }
.ft-contact-form label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--ft-navy, #1e2a4a);
}
.ft-contact-form input,
.ft-contact-form select,
.ft-contact-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--ft-font-primary, 'Inter', sans-serif);
    font-size: 0.9375rem;
    color: var(--ft-gray-800, #343a40);
    background: #fff;
    border: 1px solid var(--ft-gray-300, #dee2e6);
    border-radius: 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ft-contact-form input:focus,
.ft-contact-form select:focus,
.ft-contact-form textarea:focus {
    outline: none;
    border-color: var(--ft-gold, #e8b84b);
    box-shadow: 0 0 0 3px rgba(232,184,75,0.15);
}
.ft-contact-form textarea { resize: vertical; min-height: 120px; }
.ft-contact-form .ft-privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: var(--ft-gray-600, #868e96);
    line-height: 1.4;
}
.ft-contact-form .ft-privacy-check input[type="checkbox"] { width: auto; margin-top: 3px; }
.ft-contact-success {
    background: #e8f5e9;
    border: 1px solid #66bb6a;
    color: #2e7d32;
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
}
.ft-contact-error {
    background: #fce4ec;
    border: 1px solid #ef5350;
    color: #c62828;
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}



/* Enhanced form spacing */
.ft-contact-form .ft-form-row + .ft-form-row {
    margin-top: 0.25rem;
}
.ft-contact-form label {
    margin-bottom: 0.5rem;
}
.ft-contact-form input,
.ft-contact-form select {
    height: 48px;
}
.ft-contact-form textarea {
    min-height: 140px;
}
.ft-contact-form .ft-privacy-check {
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}
.ft-contact-form .ft-btn--full {
    margin-top: 0.5rem;
    height: 52px;
    font-size: 1rem;
}


/* Social icons in footer */
.ft-footer a[aria-label="Facebook"]:hover,
.ft-footer a[aria-label="LinkedIn"]:hover {
    background: rgba(255,255,255,0.25) !important;
}

/* ========================================
   STRATEGIC SECTIONS - Responsive
   ======================================== */

/* Thinking System 3-col steps */
@media (max-width: 768px) {
    .ft-section div[style*="grid-template-columns:repeat(3,1fr)"] {
        grid-template-columns: 1fr !important;
    }
    .ft-section div[style*="grid-template-columns:repeat(4,1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}
@media (max-width: 480px) {
    .ft-section div[style*="grid-template-columns:repeat(4,1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* Ecosystem SVG responsive */
.ft-section svg[viewBox="0 0 600 400"] {
    max-width: 100%;
    height: auto;
}

/* AI cards responsive */
@media (max-width: 768px) {
    .ft-section--navy div[style*="grid-template-columns:repeat(3,1fr)"] {
        grid-template-columns: 1fr !important;
    }
}

/* Section padding mobile */
@media (max-width: 768px) {
    .ft-section[style*="padding:5rem"] {
        padding: 3rem 0 !important;
    }
    .ft-section__title[style*="font-size:2.25rem"] {
        font-size: 1.75rem !important;
    }
    .ft-section__title[style*="font-size:2rem"] {
        font-size: 1.5rem !important;
    }
}

/* Continuita stats grid responsive */
@media (max-width: 600px) {
    #continuita div[style*="grid-template-columns:repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Hide old basic header/footer from previous fix */
header.site-header { display: none !important; }
footer.site-footer { display: none !important; }
