/* ============================================================
   DadoMediaWeb — Global Stylesheet
   Extracted from index-9.html template + additional page styles
   ============================================================ */

/* ================= RESET & BASE ================= */
*{margin:0;padding:0;box-sizing:border-box;font-family:'Source Sans 3',sans-serif}
h1,h2,h3,h4,h5,h6,.font-display{font-family:'Outfit',sans-serif}
html{scroll-behavior:smooth;font-size:100%;-webkit-text-size-adjust:100%}
body{color:#0F172A;background:#fff;overflow-x:hidden;font-size:1rem;line-height:1.6;word-wrap:break-word}
a{text-decoration:none;color:inherit}
img{max-width:100%;height:auto;display:block}
.container{max-width:1280px;margin:0 auto;padding:0 clamp(1rem,4vw,2rem)}
.section-pad{padding:clamp(4rem,8vw,7rem) 0}
.section-alt{background:var(--navy-50);padding:clamp(3rem,6vw,5rem) 0}

/* ================= COLOR VARIABLES ================= */
:root{
    --brand-50:#FFF7ED;--brand-100:#FFEDD5;--brand-200:#FED7AA;--brand-300:#FDBA74;
    --brand-400:#818CF8;--brand-500:#6366F1;--brand-600:#4F46E5;--brand-700:#C2410C;
    --brand-800:#9A3412;--brand-900:#7C2D12;
    --navy-50:#F0F4FF;--navy-100:#E0E8FF;--navy-200:#C7D2FE;--navy-300:#A5B4FC;
    --navy-400:#818CF8;--navy-500:#1E1B4B;--navy-600:#181547;--navy-700:#120F3C;
    --navy-800:#0C0A2E;--navy-900:#06051E;
    --ai:#06B6D4;--commerce:#10B981;--pa:#8B5CF6;
    --brand-rgb:99,102,241;
}

/* ================= NAVBAR CLEAN PREMIUM ================= */

.nav{
    position:fixed;
    top:0;
    left:0;
    right:0;
    z-index:1000;
    background:#ffffff;
    border-bottom:1px solid #f1f5f9;
    transition:all .25s ease;
}

.nav.scrolled{
    box-shadow:0 8px 30px rgba(15,23,42,0.06);
}

.nav-inner{
    display:flex;
    align-items:center;
    justify-content:space-between;
    height:68px;
}

.nav-logo{
    display:flex;
    align-items:center;
    gap:10px;
    font-family:'Outfit',sans-serif;
    font-weight:800;
    font-size:1.15rem;
    color:var(--navy-500);
}

.nav-logo .icon{
    width:36px;
    height:36px;
    border-radius:10px;
    background:var(--navy-500);
    display:flex;
    align-items:center;
    justify-content:center;
}

.nav-logo .icon svg{
    width:18px;
    height:18px;
    color:#fff;
}

.nav-logo span.accent{
    color:var(--brand-500);
}

/* ================= DESKTOP LINKS ================= */

.nav-links{
    display:none;
    align-items:center;
    gap:4px;
}

@media(min-width:1200px){
    .nav-links{display:flex}
}

.nav-link{
    padding:10px 12px;
    font-size:.92rem;
    font-weight:500;
    color:#334155;
    border-radius:6px;
    transition:all .2s ease;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:6px;
    position:relative;
    white-space:nowrap;
    background:none;
    border:none;
}

/* underline animato elegante */
.nav-link::after{
    content:'';
    position:absolute;
    left:12px;
    bottom:6px;
    width:0;
    height:2px;
    background:var(--brand-500);
    transition:width .25s ease;
}

.nav-link:hover{
    color:var(--navy-500);
}

.nav-link:hover::after{
    width:calc(100% - 24px);
}

.nav-link svg{
    width:16px;
    height:16px;
    transition:transform .2s;
}

.nav-link.open svg{
    transform:rotate(180deg);
}

/* ================= CTA BUTTON ================= */

.nav-cta{
    display:none;
    padding:9px 18px;
    background:var(--navy-500);
    color:#fff;
    font-weight:600;
    font-size:.9rem;
    border-radius:8px;
    font-family:'Outfit',sans-serif;
    transition:all .25s ease;
}

.nav-cta:hover{
    background:var(--navy-600);
    transform:translateY(-2px);
}

@media(min-width:1200px){
    .nav-cta{display:inline-flex}
}

/* ================= HAMBURGER ================= */

.hamburger{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:5px;
    cursor:pointer;
    padding:12px;
    min-width:44px;
    min-height:44px;
    background:none;
    border:none;
    position:relative;
    z-index:1001;
    -webkit-tap-highlight-color:transparent;
}

@media(min-width:1200px){
    .hamburger{display:none}
}

.hamburger span{
    display:block;
    width:22px;
    height:2px;
    background:#1E293B;
    border-radius:2px;
    transition:all .3s;
}

.hamburger.active span:nth-child(1){
    transform:rotate(45deg) translate(4px,4px);
}
.hamburger.active span:nth-child(2){
    opacity:0;
}
.hamburger.active span:nth-child(3){
    transform:rotate(-45deg) translate(4px,-4px);
}

/* ================= MEGA MENU CLEAN ================= */

.mega-overlay{
    display:none;
    position:fixed;
    top:68px;
    left:0;
    right:0;
    bottom:0;
    background:rgba(0,0,0,0.15);
    backdrop-filter:blur(3px);
    z-index:998;
}

.mega-overlay.show{display:block}

.mega-panel{
    display:none;
    position:fixed;
    top:68px;
    left:0;
    right:0;
    z-index:999;
    background:#ffffff;
    border-top:1px solid #f1f5f9;
    box-shadow:0 20px 50px rgba(15,23,42,0.08);
    animation:megaFade .2s ease;
}

.mega-panel.show{display:block}

@keyframes megaFade{
    from{opacity:0;transform:translateY(-6px)}
    to{opacity:1;transform:translateY(0)}
}

.mega-grid{
    display:grid;
    gap:3rem;
    padding:2.5rem 0 3rem;
}

/* Default: 2 colonne per pannelli con 2 colonne (AI) */
.mega-ai .mega-grid{
    grid-template-columns:1fr 1fr;
}

/* 3 colonne per pannelli con 3 colonne */
.mega-sw .mega-grid,
.mega-ec .mega-grid,
.mega-ge .mega-grid,
.mega-sv .mega-grid,
.mega-se .mega-grid,
.mega-ri .mega-grid{
    grid-template-columns:1fr 1fr 1fr;
}

@media(max-width:768px){
    .mega-ai .mega-grid,
    .mega-sw .mega-grid,
    .mega-ec .mega-grid,
    .mega-ge .mega-grid,
    .mega-sv .mega-grid,
    .mega-se .mega-grid,
    .mega-ri .mega-grid{
        grid-template-columns:1fr;
    }
}

.mega-col h4{
    font-size:.75rem;
    text-transform:uppercase;
    letter-spacing:.08em;
    color:#94A3B8;
    margin-bottom:14px;
    font-weight:700;
}

.mega-col ul{
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:8px;
}

.mega-col a{
    font-size:.9rem;
    color:#475569;
    display:block;
    padding:4px 0;
    transition:color .2s ease;
}

.mega-col a:hover{
    color:var(--navy-500);
}

/* highlight section soft */
.mega-highlight{
    grid-column:1/-1;
    background:#f8fafc;
    border-radius:12px;
    padding:18px 22px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:20px;
    margin-top:.5rem;
}

.mega-highlight p{
    color:#475569;
    font-size:.9rem;
}

.mega-highlight strong{
    color:var(--navy-500);
}

.mega-highlight a{
    background:var(--navy-500);
    color:#fff;
    padding:8px 16px;
    border-radius:8px;
    font-size:.85rem;
    font-weight:600;
    transition:background .2s ease;
}

.mega-highlight a:hover{
    background:var(--navy-600);
}

/* ================= MOBILE MENU — FULL-SCREEN APP SHEET ================= */

/* Backdrop: full screen, blur + dim. Tappabile per chiudere (sopra la sheet) */
.mobile-menu-backdrop{
    position:fixed;
    inset:0;
    z-index:2000;
    background:rgba(6,5,30,0.6);
    backdrop-filter:blur(12px);
    -webkit-backdrop-filter:blur(12px);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transition:opacity 0.4s cubic-bezier(0.33,1,0.68,1), visibility 0.4s;
}
.mobile-menu-backdrop.show{
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    cursor:pointer;
}

/* Sheet: full width, ~94% height da sotto, bordi arrotondati in alto = effetto app */
.mobile-menu-sheet{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    height:94vh;
    height:94dvh;
    max-height:94vh;
    max-height:94dvh;
    z-index:2001;
    border-radius:24px 24px 0 0;
    background:linear-gradient(180deg, #0F172A 0%, #1E1B4B 50%, #0F172A 100%);
    box-shadow:0 -8px 48px rgba(0,0,0,0.5);
    display:flex;
    flex-direction:column;
    transform:translateY(100%);
    transition:transform 0.5s cubic-bezier(0.33,1,0.68,1), border-radius 0.4s ease;
    overflow:hidden;
    -webkit-overflow-scrolling:touch;
}
.mobile-menu-sheet.show{
    transform:translateY(0);
    box-shadow:0 -12px 64px rgba(0,0,0,0.45);
}

.mob-sheet-inner{
    flex:1;
    display:flex;
    flex-direction:column;
    min-height:0;
    padding-bottom:env(safe-area-inset-bottom,0);
}

/* Header: logo + close in alto */
.mob-sheet-header{
    flex-shrink:0;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:1.25rem 1.5rem;
    padding-top:calc(1.25rem + env(safe-area-inset-top,0));
}
.mob-sheet-logo{
    font-family:'Outfit',sans-serif;
    font-weight:800;
    font-size:1.2rem;
    color:#fff;
    letter-spacing:-0.02em;
}
.mob-sheet-logo .accent{ color:#A5B4FC; }
.mob-sheet-close{
    width:48px;
    height:48px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:rgba(255,255,255,0.12);
    border:none;
    border-radius:50%;
    color:#fff;
    cursor:pointer;
    transition:transform 0.2s ease, background 0.2s ease;
    -webkit-tap-highlight-color:transparent;
    position:relative;
    z-index:10;
}
.mob-sheet-close:hover{ background:rgba(255,255,255,0.2); }
.mob-sheet-close:active{ transform:scale(0.92); }

/* Body scrollabile */
.mob-sheet-body{
    flex:1;
    overflow-y:auto;
    overflow-x:hidden;
    padding:0 1.5rem 1.5rem;
}
.mob-sheet-nav{
    display:flex;
    flex-direction:column;
    gap:8px;
}

/* Card-style link (riga grande, stile app) */
.mob-card{
    display:flex;
    align-items:center;
    min-height:56px;
    padding:0 1.25rem;
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:16px;
    color:#E2E8F0;
    font-family:'Outfit',sans-serif;
    font-weight:600;
    font-size:1.05rem;
    transition:background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color:transparent;
    opacity:0;
    transform:translateY(16px);
    text-decoration:none;
}
.mobile-menu-sheet.show .mob-card{
    animation:mobCardIn 0.5s cubic-bezier(0.33,1,0.68,1) forwards;
    animation-delay:calc(0.06s * var(--i,0));
}
.mob-card:hover,.mob-card:focus-visible{
    background:rgba(255,255,255,0.1);
    border-color:rgba(165,180,252,0.3);
    color:#fff;
}
.mob-card:active{ transform:scale(0.98); }
.mob-card-cta{
    background:linear-gradient(135deg, var(--brand-500), #818CF8);
    border-color:rgba(255,255,255,0.2);
    color:#fff;
    justify-content:center;
    margin-top:8px;
}
.mob-card-cta:hover{ background:linear-gradient(135deg, #4F46E5, var(--brand-500)); filter:brightness(1.1); }

@keyframes mobCardIn{
    from{ opacity:0; transform:translateY(16px); }
    to{ opacity:1; transform:translateY(0); }
}

/* Blocco accordion */
.mob-block{
    opacity:0;
    transform:translateY(16px);
}
.mobile-menu-sheet.show .mob-block{
    animation:mobCardIn 0.5s cubic-bezier(0.33,1,0.68,1) forwards;
    animation-delay:calc(0.06s * var(--i,0));
}

.mob-trigger{
    display:flex;
    align-items:center;
    justify-content:space-between;
    width:100%;
    min-height:56px;
    padding:0 1.25rem;
    background:rgba(255,255,255,0.06);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:16px;
    color:#E2E8F0;
    font-family:'Outfit',sans-serif;
    font-weight:600;
    font-size:1.05rem;
    border:none;
    cursor:pointer;
    text-align:left;
    -webkit-tap-highlight-color:transparent;
    transition:background 0.2s ease, border-color 0.2s ease;
}
.mob-trigger:hover{ background:rgba(255,255,255,0.1); border-color:rgba(255,255,255,0.12); }
.mob-trigger.open{ border-radius:16px 16px 0 0; border-bottom-color:transparent; }
.mob-trigger-text{ flex:1; }
.mob-chevron{
    flex-shrink:0;
    display:flex;
    color:rgba(255,255,255,0.5);
    transition:transform 0.35s cubic-bezier(0.33,1,0.68,1);
}
.mob-trigger.open .mob-chevron{ transform:rotate(180deg); color:#A5B4FC; }

.mob-content{
    display:grid;
    grid-template-rows:0fr;
    transition:grid-template-rows 0.35s cubic-bezier(0.33,1,0.68,1);
    background:rgba(0,0,0,0.2);
    border:1px solid rgba(255,255,255,0.06);
    border-top:none;
    border-radius:0 0 16px 16px;
    overflow:hidden;
}
.mob-content.show{ grid-template-rows:1fr; }
.mob-content-inner{
    min-height:0;
    overflow:hidden;
    padding:4px 0 12px;
}
.mob-link{
    display:block;
    padding:12px 1.25rem 12px 2rem;
    color:rgba(226,232,240,0.9);
    font-size:0.95rem;
    transition:background 0.2s ease, color 0.2s ease;
    text-decoration:none;
    border-left:3px solid transparent;
}
.mob-link:hover{ background:rgba(255,255,255,0.05); color:#fff; border-left-color:var(--brand-500); }

/* Footer CTA */
.mob-sheet-footer{
    margin-top:1.5rem;
    padding-top:1rem;
}
.mob-btn-primary{
    display:flex;
    align-items:center;
    justify-content:center;
    width:100%;
    min-height:56px;
    padding:0 1.5rem;
    background:linear-gradient(135deg, #6366F1, #818CF8);
    color:#fff;
    font-family:'Outfit',sans-serif;
    font-weight:700;
    font-size:1.1rem;
    border-radius:16px;
    text-decoration:none;
    transition:transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    -webkit-tap-highlight-color:transparent;
    box-shadow:0 4px 24px rgba(99,102,241,0.4);
    opacity:0;
    transform:translateY(16px);
}
.mobile-menu-sheet.show .mob-btn-primary{
    animation:mobCardIn 0.5s cubic-bezier(0.33,1,0.68,1) forwards;
    animation-delay:0.25s;
}
.mob-btn-primary:hover{ filter:brightness(1.1); transform:translateY(-2px); box-shadow:0 8px 32px rgba(99,102,241,0.5); }
.mob-btn-primary:active{ transform:scale(0.98); }

/* Lock scroll quando menu aperto */
body.mobile-menu-open{ overflow:hidden; }
body.mobile-menu-open .cookie-banner{ visibility:hidden; pointer-events:none; }

/* ================= HERO ================= */
.hero{background:linear-gradient(160deg,#06051E 0%,#1E1B4B 35%,#120F3C 65%,#0C0A2E 100%);position:relative;overflow:hidden;padding:clamp(7rem,12vw,10rem) 0 clamp(4rem,8vw,7rem)}
.hero::before{content:'';position:absolute;top:-200px;right:-200px;width:700px;height:700px;border-radius:50%;background:radial-gradient(circle,rgba(249,115,22,0.12) 0%,transparent 70%);pointer-events:none}
.hero::after{content:'';position:absolute;bottom:-300px;left:-100px;width:600px;height:600px;border-radius:50%;background:radial-gradient(circle,rgba(99,102,241,0.08) 0%,transparent 70%);pointer-events:none}
.hero-grid{display:grid;grid-template-columns:1fr;gap:3rem;align-items:center}
@media(min-width:1024px){.hero-grid{grid-template-columns:1.1fr .9fr}}
.hero-badge{display:inline-flex;align-items:center;gap:8px;background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.12);border-radius:100px;padding:6px 16px 6px 10px;margin-bottom:1.5rem}
.hero-badge .dot{width:8px;height:8px;border-radius:50%;background:#22C55E;animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.4}}
.hero-badge span{color:#CBD5E1;font-size:.85rem;font-weight:500}
.hero h1{font-size:clamp(2.2rem,5vw,3.6rem);font-weight:800;color:#F8FAFC;line-height:1.15;margin-bottom:1.25rem}
.hero h1 .highlight{background:linear-gradient(135deg,var(--brand-400),var(--brand-500));-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.hero h1 .ai-highlight{background:linear-gradient(135deg,#22D3EE,#06B6D4);-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.hero-sub{color:#94A3B8;font-size:clamp(1.05rem,2vw,1.2rem);line-height:1.65;margin-bottom:2rem;max-width:560px;margin-left:auto;margin-right:auto}
.hero-ctas{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:2.5rem;justify-content:center}
.btn-primary{display:inline-flex;align-items:center;gap:8px;padding:14px 28px;background:linear-gradient(135deg,var(--brand-500),var(--brand-600));color:#fff;font-weight:700;font-size:1rem;border-radius:12px;font-family:'Outfit',sans-serif;transition:all .3s;box-shadow:0 4px 20px rgba(var(--brand-rgb),0.25)}
.btn-primary:hover{transform:translateY(-3px);box-shadow:0 8px 30px rgba(var(--brand-rgb),0.35)}
.btn-outline{display:inline-flex;align-items:center;gap:8px;padding:14px 28px;border:2px solid rgba(255,255,255,0.2);color:#E2E8F0;font-weight:600;font-size:1rem;border-radius:12px;font-family:'Outfit',sans-serif;transition:all .3s}
.btn-outline:hover{border-color:var(--brand-400);color:var(--brand-400);transform:translateY(-3px)}
.hero-trust{display:flex;flex-wrap:wrap;gap:2rem;color:#64748B;font-size:.9rem}
.hero-trust span{display:flex;align-items:center;gap:6px}
.hero-trust strong{color:#F8FAFC;font-family:'Outfit',sans-serif;font-size:1.1rem}

/* Hero visual -- terminal/code */
.hero-visual{display:none}
@media(min-width:1024px){.hero-visual{display:block}}
.terminal{background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);border-radius:16px;padding:0;overflow:hidden;backdrop-filter:blur(10px);box-shadow:0 20px 60px rgba(0,0,0,0.3)}
.terminal-bar{display:flex;align-items:center;gap:8px;padding:12px 16px;background:rgba(255,255,255,0.03);border-bottom:1px solid rgba(255,255,255,0.06)}
.terminal-dot{width:12px;height:12px;border-radius:50%}
.terminal-dot.r{background:#FF5F57}.terminal-dot.y{background:#FFBD2E}.terminal-dot.g{background:#28CA41}
.terminal-title{color:#64748B;font-size:.75rem;margin-left:auto;font-family:monospace}
.terminal-body{padding:20px;font-family:'Fira Code',monospace;font-size:.82rem;line-height:1.8;color:#94A3B8}
.terminal-body .kw{color:#C084FC}.terminal-body .fn{color:#22D3EE}
.terminal-body .str{color:#34D399}.terminal-body .cm{color:#475569}
.terminal-body .op{color:var(--brand-400)}.terminal-body .num{color:#FB923C}

/* ================= SECTIONS ================= */
.section-title{text-align:center;margin-bottom:3.5rem}
.section-title .label{display:inline-flex;align-items:center;gap:6px;font-size:.8rem;font-weight:700;text-transform:uppercase;letter-spacing:.08em;color:var(--brand-600);margin-bottom:.75rem}
.section-title h2{font-size:clamp(1.8rem,4vw,2.8rem);font-weight:800;color:var(--navy-500);line-height:1.2;margin-bottom:.75rem}
.section-title p{color:#64748B;font-size:1.1rem;max-width:640px;margin:0 auto;line-height:1.6}

.dark-section{background:linear-gradient(160deg,#06051E 0%,#1E1B4B 50%,#0C0A2E 100%);position:relative;overflow:hidden}
.dark-section::before{content:'';position:absolute;inset:0;background:url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");pointer-events:none}
.dark-section .section-title h2{color:#F8FAFC}
.dark-section .section-title p{color:#94A3B8}
.dark-section .section-title .label{color:var(--brand-400)}

/* ================= SERVIZI CORE GRID (4 pillar) ================= */
.pillars-grid{display:grid;grid-template-columns:1fr;gap:1.5rem}
@media(min-width:768px){.pillars-grid{grid-template-columns:1fr 1fr}}
.pillar-card{background:#fff;border:1px solid #E2E8F0;border-radius:16px;padding:2rem;position:relative;overflow:hidden;transition:all .3s cubic-bezier(.4,0,.2,1)}
.pillar-card::before{content:'';position:absolute;top:0;left:0;right:0;height:4px;background:linear-gradient(90deg,var(--c1),var(--c2));transform:scaleX(0);transform-origin:left;transition:transform .3s}
.pillar-card:hover{transform:translateY(-6px);box-shadow:0 20px 40px rgba(0,0,0,0.08);border-color:transparent}
.pillar-card:hover::before{transform:scaleX(1)}
.pillar-icon{width:56px;height:56px;border-radius:14px;display:flex;align-items:center;justify-content:center;margin-bottom:1.25rem;font-size:1.5rem}
.pillar-card h3{font-size:1.3rem;font-weight:700;color:var(--navy-500);margin-bottom:.5rem}
.pillar-card p{color:#64748B;font-size:.95rem;line-height:1.6;margin-bottom:1.25rem}
.pillar-link{font-size:.9rem;font-weight:600;color:var(--brand-600);display:inline-flex;align-items:center;gap:4px;transition:gap .2s}
.pillar-link:hover{gap:8px}
.pillar-tags{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:1rem}
.pillar-tags span{font-size:.75rem;padding:4px 10px;border-radius:100px;font-weight:500}

/* Pillar colors */
.pillar-ai{--c1:#22D3EE;--c2:#06B6D4}.pillar-ai .pillar-icon{background:#ECFEFF;color:#0891B2}
.pillar-ai .pillar-tags span{background:#ECFEFF;color:#0891B2}
.pillar-sw{--c1:var(--brand-400);--c2:var(--brand-600)}.pillar-sw .pillar-icon{background:var(--brand-50);color:var(--brand-600)}
.pillar-sw .pillar-tags span{background:var(--brand-50);color:var(--brand-700)}
.pillar-ec{--c1:#34D399;--c2:#059669}.pillar-ec .pillar-icon{background:#ECFDF5;color:#059669}
.pillar-ec .pillar-tags span{background:#ECFDF5;color:#047857}
.pillar-pa{--c1:#A78BFA;--c2:#7C3AED}.pillar-pa .pillar-icon{background:#F5F3FF;color:#7C3AED}
.pillar-pa .pillar-tags span{background:#F5F3FF;color:#6D28D9}

/* ================= FEATURES GRID & CARDS ================= */
.features-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:1rem}

/* LIGHT background (default) */
.feat-card{background:#fff;border:1px solid #E2E8F0;border-radius:14px;padding:1.5rem;transition:all .3s;position:relative;overflow:hidden}
.feat-card::before{content:'';position:absolute;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,var(--brand-500),var(--ai));transform:scaleX(0);transform-origin:left;transition:transform .3s}
.feat-card:hover{transform:translateY(-4px);box-shadow:0 12px 30px rgba(0,0,0,0.08);border-color:transparent}
.feat-card:hover::before{transform:scaleX(1)}
.feat-card .emoji{font-size:1.8rem;margin-bottom:.75rem;display:block}
.feat-card h4{font-size:1rem;font-weight:700;color:var(--navy-500);margin-bottom:.4rem;font-family:'Outfit',sans-serif}
.feat-card p{font-size:.88rem;color:#64748B;line-height:1.6}

/* DARK background override */
.dark-section .feat-card{background:rgba(255,255,255,0.04);border-color:rgba(255,255,255,0.08)}
.dark-section .feat-card::before{background:linear-gradient(90deg,var(--brand-400),var(--ai))}
.dark-section .feat-card:hover{background:rgba(255,255,255,0.08);border-color:rgba(255,255,255,0.15);box-shadow:0 12px 30px rgba(0,0,0,0.2)}
.dark-section .feat-card h4{color:#F8FAFC}
.dark-section .feat-card p{color:#94A3B8}

/* ================= GESTIONALI SETTORI GRID ================= */
.sectors-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:.75rem}
.sector-card{background:#fff;border:1px solid #E2E8F0;border-radius:12px;padding:1.25rem 1rem;text-align:center;transition:all .3s;cursor:pointer}
.sector-card:hover{border-color:var(--brand-400);background:var(--brand-50);transform:translateY(-4px);box-shadow:0 8px 25px rgba(var(--brand-rgb),0.08)}
.sector-card .emoji{font-size:2rem;margin-bottom:.5rem}
.sector-card h4{font-size:.85rem;font-weight:700;color:var(--navy-500);line-height:1.3}

/* ================= STATS ================= */
.stats-row{display:grid;grid-template-columns:repeat(2,1fr);gap:1.5rem}
@media(min-width:768px){.stats-row{grid-template-columns:repeat(4,1fr)}}
.stat{text-align:center;padding:2rem 1rem}
.stat .num,.stat-num{font-family:'Outfit',sans-serif;font-size:clamp(2rem,5vw,3rem);font-weight:900;color:var(--brand-500)}
.stat .label,.stat-label{color:#64748B;font-size:.9rem;margin-top:.25rem}
.dark-section .stat .num,.dark-section .stat-num{color:var(--brand-400)}
.dark-section .stat .label,.dark-section .stat-label{color:#94A3B8}

/* ================= PROCESS ================= */
.process-grid{display:grid;grid-template-columns:1fr;gap:1.5rem}
@media(min-width:768px){.process-grid{grid-template-columns:repeat(4,1fr)}}
.process-card{background:rgba(255,255,255,0.04);border:1px solid rgba(255,255,255,0.08);border-radius:16px;padding:2rem;text-align:center;position:relative;backdrop-filter:blur(10px);transition:all .3s}
.process-card:hover{background:rgba(255,255,255,0.08);transform:translateY(-4px)}
.process-num{font-family:'Outfit',sans-serif;font-size:3.5rem;font-weight:900;color:rgba(var(--brand-rgb),0.12);position:absolute;top:8px;right:14px;line-height:1;pointer-events:none;z-index:0}
.process-card h3,.process-card p,.process-icon{position:relative;z-index:1}
.process-icon{font-size:2rem;margin-bottom:1rem}
.process-card h3{font-size:1.1rem;font-weight:700;color:#F8FAFC;margin-bottom:.5rem}
.process-card p{color:#94A3B8;font-size:.9rem;line-height:1.5}

/* ================= FAQ ================= */
.faq-item{border:1px solid #E2E8F0;border-radius:12px;margin-bottom:.75rem;overflow:hidden;transition:border-color .3s}
.faq-item:hover,.faq-item.open{border-color:var(--brand-300)}
.faq-q{display:flex;align-items:center;justify-content:space-between;padding:1.25rem 1.5rem;cursor:pointer;background:none;border:none;width:100%;text-align:left;font-size:1rem;font-weight:600;color:var(--navy-500);font-family:'Outfit',sans-serif;gap:16px}
.faq-q svg{width:20px;height:20px;flex-shrink:0;color:#94A3B8;transition:transform .3s}
.faq-item.open .faq-q svg{transform:rotate(180deg);color:var(--brand-500)}
.faq-a{display:none;padding:0 1.5rem 1.25rem;color:#64748B;line-height:1.7;font-size:.95rem}
.faq-item.open .faq-a{display:block}

/* ================= CONTACT FORM ================= */
.contact-form .form-group{margin-bottom:1.15rem}
.contact-form .form-group label{display:block;font-weight:600;font-size:.85rem;color:#334155;margin-bottom:.4rem;font-family:'Outfit',sans-serif}
.contact-form .form-control{width:100%;padding:.75rem 1rem;border:2px solid #E2E8F0;border-radius:10px;font-size:.95rem;transition:all .2s;background:#F8FAFC;outline:none;font-family:'Source Sans 3',sans-serif}
.contact-form .form-control:focus{border-color:var(--brand-500);background:#fff;box-shadow:0 0 0 4px rgba(99,102,241,.1)}
.contact-form .form-control::placeholder{color:#94A3B8}
.contact-form textarea.form-control{resize:vertical;min-height:120px}
.contact-form select.form-control{appearance:none;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2'%3e%3cpath d='M6 9l6 6 6-6'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right .75rem center;background-size:18px;padding-right:2.5rem}
.contact-form .form-group.has-error .form-control{border-color:#EF4444;box-shadow:0 0 0 4px rgba(239,68,68,.1)}
.contact-form .form-group.has-success .form-control{border-color:#10B981;box-shadow:0 0 0 4px rgba(16,185,129,.1)}
.contact-form .form-submit{background:linear-gradient(135deg,var(--brand-500),var(--brand-600));color:#fff;font-family:'Outfit',sans-serif;font-weight:700;transition:all .2s}
.contact-form .form-submit:hover{transform:translateY(-2px);box-shadow:0 4px 12px rgba(99,102,241,.4)}
.contact-form .form-submit:disabled{opacity:.6;cursor:not-allowed;transform:none}
@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:640px){.contact-form div[style*="grid-template-columns:1fr 1fr"]{grid-template-columns:1fr !important}}

/* ================= CTA SECTION ================= */
.cta-section{background:linear-gradient(160deg,#06051E,#1E1B4B,#0C0A2E);padding:clamp(4rem,8vw,6rem) 0;text-align:center;position:relative;overflow:hidden}
.cta-section::before{content:'';position:absolute;top:-100px;left:50%;transform:translateX(-50%);width:600px;height:600px;border-radius:50%;background:radial-gradient(circle,rgba(var(--brand-rgb),0.08),transparent 70%);pointer-events:none}
.cta-section h2{font-size:clamp(1.8rem,4vw,2.8rem);font-weight:800;color:#F8FAFC;margin-bottom:1rem}
.cta-section h2 .highlight{background:linear-gradient(135deg,var(--brand-400),var(--brand-500));-webkit-background-clip:text;-webkit-text-fill-color:transparent}
.cta-section p{color:#94A3B8;font-size:1.1rem;margin-bottom:2rem;max-width:500px;margin-left:auto;margin-right:auto}
.cta-buttons{display:flex;flex-wrap:wrap;gap:12px;justify-content:center}
.btn-whatsapp{display:inline-flex;align-items:center;gap:8px;padding:14px 28px;background:#25D366;color:#fff;font-weight:700;font-size:1rem;border-radius:12px;font-family:'Outfit',sans-serif;transition:all .3s;box-shadow:0 4px 20px rgba(37,211,102,0.3)}
.btn-whatsapp:hover{transform:translateY(-3px);box-shadow:0 8px 30px rgba(37,211,102,0.4)}

/* ================= FOOTER ================= */
.footer{background:var(--navy-900);color:#94A3B8;padding:clamp(3rem,6vw,5rem) 0 0}
.footer-grid{display:grid;grid-template-columns:1fr;gap:2.5rem}
@media(min-width:768px){.footer-grid{grid-template-columns:repeat(3,1fr)}}
@media(min-width:1200px){.footer-grid{grid-template-columns:1.3fr 1fr 1fr 1fr 1fr 1fr}}
.footer-brand{max-width:280px}
.footer-brand .logo{display:flex;align-items:center;gap:10px;margin-bottom:1rem}
.footer-brand .logo-icon{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,var(--brand-500),var(--brand-600));display:flex;align-items:center;justify-content:center}
.footer-brand .logo-icon svg{width:20px;height:20px;color:#fff}
.footer-brand .logo-text{font-family:'Outfit',sans-serif;font-weight:800;font-size:1.15rem;color:#F8FAFC}
.footer-brand .logo-text .accent{color:var(--brand-500)}
.footer-brand p{font-size:.88rem;line-height:1.6;margin-bottom:1rem}
.footer-brand .contact{font-size:.85rem;line-height:1.8}
.footer-brand .contact a{color:#CBD5E1;transition:color .2s}
.footer-brand .contact a:hover{color:var(--brand-400)}
.footer-social{display:flex;gap:10px;margin-top:1rem}
.footer-social a{width:36px;height:36px;border-radius:10px;border:1px solid rgba(255,255,255,0.1);display:flex;align-items:center;justify-content:center;transition:all .2s}
.footer-social a:hover{border-color:var(--brand-500);background:rgba(var(--brand-rgb),0.08)}
.footer-social svg{width:16px;height:16px;color:#94A3B8}
.footer-social a:hover svg{color:var(--brand-400)}

.footer-col h5{font-family:'Outfit',sans-serif;font-size:.75rem;text-transform:uppercase;letter-spacing:.1em;color:var(--brand-400);margin-bottom:1rem;font-weight:700}
.footer-col ul{list-style:none;display:flex;flex-direction:column;gap:5px}
.footer-col a{font-size:.85rem;color:#94A3B8;transition:all .2s;display:block;padding:2px 0}
.footer-col a:hover{color:var(--brand-400);transform:translateX(3px)}
.footer-sep{font-size:.7rem;text-transform:uppercase;letter-spacing:.05em;color:#475569;margin-top:10px;margin-bottom:4px;font-weight:600}

.footer-bottom{margin-top:2.5rem;padding:1.5rem 0;border-top:1px solid rgba(255,255,255,0.06);display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:1rem}
.footer-copy{font-size:.82rem;color:#64748B}
.footer-legal{display:flex;flex-wrap:wrap;gap:1.5rem}
.footer-legal a{font-size:.82rem;color:#64748B;transition:color .2s}
.footer-legal a:hover{color:var(--brand-400)}

/* ================= WHATSAPP FLOAT ================= */
.wa-float{position:fixed;bottom:max(24px,env(safe-area-inset-bottom));right:max(24px,env(safe-area-inset-right));z-index:900;width:60px;height:60px;border-radius:50%;background:#25D366;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 20px rgba(37,211,102,0.4);transition:all .3s;cursor:pointer}
.wa-float:hover{transform:scale(1.1);box-shadow:0 6px 30px rgba(37,211,102,0.5)}
.wa-float svg{width:28px;height:28px;color:#fff}

/* ================= COOKIE BANNER ================= */
.cookie-banner{display:none;position:fixed;bottom:0;left:0;right:0;z-index:2000;background:rgba(6,5,30,0.95);backdrop-filter:blur(20px);border-top:1px solid rgba(255,255,255,0.1);padding:1rem 2rem;padding-bottom:max(1rem,env(safe-area-inset-bottom));animation:slideUp .4s ease}
.cookie-banner.show{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap}
@keyframes slideUp{from{transform:translateY(100%)}to{transform:translateY(0)}}
.cookie-banner p{color:#CBD5E1;font-size:.9rem;flex:1;min-width:240px}
.cookie-banner a{color:var(--brand-400);text-decoration:underline}
.cookie-btns{display:flex;gap:8px}
.cookie-btns button{padding:8px 20px;border-radius:8px;font-size:.85rem;font-weight:600;cursor:pointer;border:none;font-family:'Outfit',sans-serif;transition:all .2s}
.cookie-reject{background:transparent;color:#94A3B8;border:1px solid rgba(255,255,255,0.15) !important}
.cookie-reject:hover{background:rgba(255,255,255,0.05)}
.cookie-accept{background:var(--brand-500);color:#fff}
.cookie-accept:hover{background:var(--brand-600)}

@media(max-width:767px){
    .cookie-banner{padding:0.75rem 1rem;padding-bottom:max(0.75rem,env(safe-area-inset-bottom))}
    .cookie-banner.show{flex-direction:column;align-items:stretch;gap:0.75rem}
    .cookie-banner p{font-size:.8rem;min-width:0;margin:0}
    .cookie-banner .cookie-categories{font-size:.75rem !important;margin:0.5rem 0 !important;line-height:1.5}
    .cookie-btns{justify-content:flex-end}
    .cookie-btns button{min-height:44px;padding:10px 18px}
}

/* ================= SCROLLBAR ================= */
::-webkit-scrollbar{width:8px}
::-webkit-scrollbar-track{background:#06051E}
::-webkit-scrollbar-thumb{background:var(--brand-600);border-radius:4px}

/* ================= ANIMATION HELPER ================= */
.fade-up{opacity:0;transform:translateY(30px);transition:opacity .6s ease,transform .6s ease}
.fade-up.visible{opacity:1;transform:translateY(0)}


/* ==============================================================================
   ADDITIONAL STYLES — Pages beyond homepage
   ============================================================================== */

/* ================= BREADCRUMB ================= */
.breadcrumb{
    padding:12px 0;
    font-size:.85rem;
    color:#64748B;
}
.breadcrumb a{
    color:#64748B;
    transition:color .2s;
}
.breadcrumb a:hover{
    color:var(--brand-500);
}
.breadcrumb .separator{
    margin:0 8px;
    color:#CBD5E1;
}
.breadcrumb .current{
    color:var(--navy-500);
    font-weight:600;
}

/* ================= BLOG LISTING CARDS ================= */
.blog-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:1.5rem;
}
@media(min-width:640px){.blog-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.blog-grid{grid-template-columns:repeat(3,1fr)}}

.blog-card{
    background:#fff;
    border:1px solid #E2E8F0;
    border-radius:16px;
    overflow:hidden;
    transition:all .3s cubic-bezier(.4,0,.2,1);
}
.blog-card:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 40px rgba(0,0,0,0.08);
    border-color:transparent;
}
.blog-card .blog-thumb{
    width:100%;
    height:200px;
    object-fit:cover;
}
.blog-card .blog-body{
    padding:1.5rem;
}
.blog-card .blog-meta{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:.8rem;
    color:#94A3B8;
    margin-bottom:.75rem;
}
.blog-card .blog-meta .blog-cat{
    background:var(--brand-50);
    color:var(--brand-600);
    padding:2px 10px;
    border-radius:100px;
    font-weight:600;
    font-size:.75rem;
}
.blog-card h3{
    font-size:1.15rem;
    font-weight:700;
    color:var(--navy-500);
    line-height:1.35;
    margin-bottom:.5rem;
}
.blog-card h3 a:hover{
    color:var(--brand-500);
}
.blog-card .blog-excerpt{
    color:#64748B;
    font-size:.9rem;
    line-height:1.6;
    margin-bottom:1rem;
    display:-webkit-box;
    -webkit-line-clamp:3;
    -webkit-box-orient:vertical;
    overflow:hidden;
}
.blog-card .blog-read-more{
    font-size:.88rem;
    font-weight:600;
    color:var(--brand-600);
    display:inline-flex;
    align-items:center;
    gap:4px;
    transition:gap .2s;
}
.blog-card .blog-read-more:hover{gap:8px}

/* Blog single-post body */
.blog-content{
    max-width:800px;
    margin:0 auto;
    line-height:1.8;
    font-size:1.05rem;
    color:#334155;
}
.blog-content h2{margin-top:2.5rem;margin-bottom:1rem}
.blog-content h3{margin-top:2rem;margin-bottom:.75rem}
.blog-content p{margin-bottom:1.25rem}
.blog-content img{border-radius:12px;margin:1.5rem 0}
.blog-content blockquote{border-left:4px solid var(--brand-500);padding:1rem 1.5rem;background:var(--navy-50);border-radius:0 8px 8px 0;margin:1.5rem 0;font-style:italic;color:#475569}
.blog-content code{background:#F1F5F9;padding:2px 6px;border-radius:4px;font-size:.9em}
.blog-content pre{background:#0F172A;color:#E2E8F0;padding:1.25rem;border-radius:12px;overflow-x:auto;margin:1.5rem 0}
.blog-content pre code{background:none;padding:0;color:inherit}
.blog-content ul,.blog-content ol{margin-bottom:1.25rem;padding-left:1.5rem}
.blog-content li{margin-bottom:.5rem}

/* ================= PORTFOLIO GALLERY CARDS ================= */
.portfolio-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:1.5rem;
}
@media(min-width:640px){.portfolio-grid{grid-template-columns:repeat(2,1fr)}}
@media(min-width:1024px){.portfolio-grid{grid-template-columns:repeat(3,1fr)}}

.portfolio-card{
    background:#fff;
    border:1px solid #E2E8F0;
    border-radius:16px;
    overflow:hidden;
    position:relative;
    transition:all .3s cubic-bezier(.4,0,.2,1);
}
.portfolio-card:hover{
    transform:translateY(-6px);
    box-shadow:0 20px 40px rgba(0,0,0,0.08);
    border-color:transparent;
}
.portfolio-card .portfolio-thumb{
    width:100%;
    height:220px;
    object-fit:cover;
    transition:transform .4s;
}
.portfolio-card:hover .portfolio-thumb{
    transform:scale(1.05);
}
.portfolio-card .portfolio-overlay{
    position:absolute;
    top:0;
    left:0;
    right:0;
    height:220px;
    background:linear-gradient(to top,rgba(6,5,30,0.7),transparent);
    opacity:0;
    transition:opacity .3s;
    display:flex;
    align-items:flex-end;
    padding:1.25rem;
}
.portfolio-card:hover .portfolio-overlay{
    opacity:1;
}
.portfolio-card .portfolio-overlay .portfolio-view{
    color:#fff;
    font-weight:600;
    font-size:.9rem;
    font-family:'Outfit',sans-serif;
}
.portfolio-card .portfolio-body{
    padding:1.25rem;
}
.portfolio-card .portfolio-tags{
    display:flex;
    flex-wrap:wrap;
    gap:6px;
    margin-bottom:.75rem;
}
.portfolio-card .portfolio-tags span{
    font-size:.7rem;
    padding:3px 8px;
    border-radius:100px;
    background:var(--navy-50);
    color:var(--navy-500);
    font-weight:600;
}
.portfolio-card h3{
    font-size:1.1rem;
    font-weight:700;
    color:var(--navy-500);
    margin-bottom:.25rem;
}
.portfolio-card .portfolio-desc{
    font-size:.85rem;
    color:#64748B;
    line-height:1.5;
}

/* Portfolio filter buttons */
.portfolio-filters{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    justify-content:center;
    margin-bottom:2.5rem;
}
.portfolio-filters button{
    padding:8px 18px;
    border-radius:100px;
    border:1px solid #E2E8F0;
    background:#fff;
    color:#475569;
    font-size:.85rem;
    font-weight:600;
    cursor:pointer;
    transition:all .2s;
    font-family:'Outfit',sans-serif;
}
.portfolio-filters button:hover,
.portfolio-filters button.active{
    background:var(--navy-500);
    color:#fff;
    border-color:var(--navy-500);
}

/* ================= CONTACT / PREVENTIVO FORM STYLES ================= */
.form-section{
    background:#fff;
    border:1px solid #E2E8F0;
    border-radius:20px;
    padding:clamp(1.5rem,4vw,3rem);
    box-shadow:0 4px 20px rgba(0,0,0,0.04);
}

.form-row{
    display:grid;
    grid-template-columns:1fr;
    gap:1.25rem;
    margin-bottom:1.25rem;
}
@media(min-width:640px){
    .form-row.col-2{grid-template-columns:1fr 1fr}
}
@media(min-width:768px){
    .form-row.col-3{grid-template-columns:1fr 1fr 1fr}
}

.form-group{
    display:flex;
    flex-direction:column;
}
.form-group label{
    font-size:.85rem;
    font-weight:600;
    color:var(--navy-500);
    margin-bottom:6px;
    font-family:'Outfit',sans-serif;
}
.form-group label .required{
    color:#EF4444;
}
.form-group input,
.form-group textarea,
.form-group select{
    padding:12px 16px;
    border:1px solid #E2E8F0;
    border-radius:10px;
    font-size:.95rem;
    color:#0F172A;
    background:#fff;
    transition:border-color .2s,box-shadow .2s;
    font-family:'Source Sans 3',sans-serif;
    outline:none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus{
    border-color:var(--brand-500);
    box-shadow:0 0 0 3px rgba(var(--brand-rgb),0.1);
}
.form-group textarea{
    resize:vertical;
    min-height:120px;
}
.form-group select{
    appearance:none;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat:no-repeat;
    background-position:right 12px center;
    padding-right:40px;
}

.form-checkbox{
    display:flex;
    align-items:flex-start;
    gap:10px;
    margin:1rem 0;
}
.form-checkbox input[type="checkbox"]{
    width:18px;
    height:18px;
    margin-top:2px;
    flex-shrink:0;
    accent-color:var(--brand-500);
}
.form-checkbox label{
    font-size:.85rem;
    color:#64748B;
    line-height:1.5;
}

.form-submit{
    display:inline-flex;
    align-items:center;
    gap:8px;
    padding:14px 32px;
    background:linear-gradient(135deg,var(--brand-500),var(--brand-600));
    color:#fff;
    font-weight:700;
    font-size:1rem;
    border-radius:12px;
    border:none;
    cursor:pointer;
    font-family:'Outfit',sans-serif;
    transition:all .3s;
    box-shadow:0 4px 20px rgba(var(--brand-rgb),0.25);
}
.form-submit:hover{
    transform:translateY(-3px);
    box-shadow:0 8px 30px rgba(var(--brand-rgb),0.35);
}
.form-submit:disabled{
    opacity:.6;
    cursor:not-allowed;
    transform:none;
    box-shadow:none;
}
.form-submit .spinner{
    display:none;
    width:18px;
    height:18px;
    border:2px solid rgba(255,255,255,0.3);
    border-top-color:#fff;
    border-radius:50%;
    animation:spin .6s linear infinite;
}
.form-submit.loading .spinner{display:inline-block}
.form-submit.loading .btn-text{display:none}

@keyframes spin{
    to{transform:rotate(360deg)}
}

/* ================= FORM VALIDATION STATES ================= */
.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select{
    border-color:#EF4444;
    box-shadow:0 0 0 3px rgba(239,68,68,0.1);
}
.form-group.has-success input,
.form-group.has-success textarea,
.form-group.has-success select{
    border-color:#22C55E;
    box-shadow:0 0 0 3px rgba(34,197,94,0.1);
}
.form-group .field-error{
    color:#EF4444;
    font-size:.8rem;
    margin-top:4px;
    display:none;
}
.form-group.has-error .field-error{
    display:block;
}

/* ================= SEARCH RESULTS ================= */
.search-hero{
    background:var(--navy-50);
    padding:clamp(6rem,10vw,8rem) 0 clamp(2rem,4vw,3rem);
}
.search-hero h1{
    font-size:clamp(1.5rem,3vw,2.2rem);
    font-weight:800;
    color:var(--navy-500);
    margin-bottom:1rem;
}
.search-input-wrap{
    position:relative;
    max-width:600px;
}
.search-input-wrap input{
    width:100%;
    padding:14px 50px 14px 20px;
    border:2px solid #E2E8F0;
    border-radius:12px;
    font-size:1rem;
    background:#fff;
    outline:none;
    transition:border-color .2s;
}
.search-input-wrap input:focus{
    border-color:var(--brand-500);
}
.search-input-wrap button{
    position:absolute;
    right:8px;
    top:50%;
    transform:translateY(-50%);
    width:38px;
    height:38px;
    border:none;
    background:var(--brand-500);
    color:#fff;
    border-radius:8px;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    transition:background .2s;
}
.search-input-wrap button:hover{
    background:var(--brand-600);
}

.search-results{
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:1.25rem;
}
.search-result-item{
    background:#fff;
    border:1px solid #E2E8F0;
    border-radius:12px;
    padding:1.5rem;
    transition:all .2s;
}
.search-result-item:hover{
    border-color:var(--brand-300);
    box-shadow:0 4px 16px rgba(0,0,0,0.05);
}
.search-result-item h3{
    font-size:1.1rem;
    font-weight:700;
    color:var(--navy-500);
    margin-bottom:.35rem;
}
.search-result-item h3 a:hover{
    color:var(--brand-500);
}
.search-result-item .search-url{
    font-size:.8rem;
    color:#22C55E;
    margin-bottom:.5rem;
}
.search-result-item p{
    font-size:.9rem;
    color:#64748B;
    line-height:1.6;
}
.search-result-item p mark{
    background:rgba(var(--brand-rgb),0.15);
    color:var(--brand-600);
    padding:0 2px;
    border-radius:2px;
}
.search-count{
    font-size:.9rem;
    color:#64748B;
    margin-bottom:1.5rem;
}

/* ================= PAGINATION ================= */
.pagination{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    margin-top:3rem;
    padding:1rem 0;
}
.pagination a,
.pagination span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:40px;
    height:40px;
    padding:0 12px;
    border:1px solid #E2E8F0;
    border-radius:8px;
    font-size:.9rem;
    font-weight:600;
    color:#475569;
    transition:all .2s;
    font-family:'Outfit',sans-serif;
}
.pagination a:hover{
    border-color:var(--brand-400);
    color:var(--brand-500);
    background:var(--brand-50);
}
.pagination .active{
    background:var(--brand-500);
    color:#fff;
    border-color:var(--brand-500);
}
.pagination .disabled{
    opacity:.4;
    cursor:not-allowed;
    pointer-events:none;
}
.pagination .ellipsis{
    border:none;
    background:none;
    color:#94A3B8;
    min-width:auto;
    padding:0 6px;
}

/* ================= LANDING PAGE SPECIFIC ================= */
.landing-hero{
    background:linear-gradient(160deg,#06051E 0%,#1E1B4B 35%,#120F3C 65%,#0C0A2E 100%);
    position:relative;
    overflow:hidden;
    padding:clamp(7rem,12vw,10rem) 0 clamp(4rem,8vw,6rem);
}
.landing-hero::before{
    content:'';
    position:absolute;
    top:-200px;
    right:-200px;
    width:700px;
    height:700px;
    border-radius:50%;
    background:radial-gradient(circle,rgba(var(--brand-rgb),0.1) 0%,transparent 70%);
    pointer-events:none;
}
.landing-hero .section-title{text-align:left;margin-bottom:2rem}
.landing-hero .section-title h1{
    font-size:clamp(2rem,4.5vw,3.2rem);
    font-weight:800;
    color:#F8FAFC;
    line-height:1.15;
    margin-bottom:1rem;
}
.landing-hero .section-title p{
    color:#94A3B8;
    font-size:clamp(1rem,2vw,1.15rem);
    max-width:600px;
    margin:0;
}
.landing-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:3rem;
    align-items:start;
}
@media(min-width:1024px){.landing-grid{grid-template-columns:1.2fr .8fr}}

.landing-sidebar{
    background:rgba(255,255,255,0.04);
    border:1px solid rgba(255,255,255,0.08);
    border-radius:16px;
    padding:2rem;
    position:sticky;
    top:90px;
}
.landing-sidebar h3{
    font-size:1.1rem;
    font-weight:700;
    color:#F8FAFC;
    margin-bottom:1rem;
}
.landing-sidebar ul{
    list-style:none;
    display:flex;
    flex-direction:column;
    gap:8px;
}
.landing-sidebar a{
    font-size:.9rem;
    color:#94A3B8;
    padding:6px 0;
    display:block;
    transition:color .2s;
}
.landing-sidebar a:hover{color:var(--brand-400)}

/* Light landing sections */
.landing-section{
    padding:clamp(3rem,6vw,5rem) 0;
}
.landing-section:nth-child(even){
    background:var(--navy-50);
}

/* ================= LOADING SPINNER (fullscreen) ================= */
.loading-overlay{
    position:fixed;
    inset:0;
    z-index:9999;
    background:rgba(255,255,255,0.92);
    backdrop-filter:blur(6px);
    display:none;
    align-items:center;
    justify-content:center;
}
.loading-overlay.show{
    display:flex;
}
.loading-spinner{
    width:48px;
    height:48px;
    border:4px solid #E2E8F0;
    border-top-color:var(--brand-500);
    border-radius:50%;
    animation:spin .7s linear infinite;
}
/* Small inline spinner */
.spinner-sm{
    display:inline-block;
    width:16px;
    height:16px;
    border:2px solid rgba(var(--brand-rgb),0.2);
    border-top-color:var(--brand-500);
    border-radius:50%;
    animation:spin .6s linear infinite;
    vertical-align:middle;
}

/* ================= TOAST NOTIFICATIONS ================= */
.toast-container{
    position:fixed;
    top:80px;
    right:24px;
    z-index:3000;
    display:flex;
    flex-direction:column;
    gap:10px;
    pointer-events:none;
}
.toast{
    pointer-events:all;
    min-width:300px;
    max-width:420px;
    padding:14px 20px;
    border-radius:12px;
    display:flex;
    align-items:center;
    gap:12px;
    font-size:.9rem;
    font-weight:500;
    box-shadow:0 8px 30px rgba(0,0,0,0.12);
    animation:toastIn .3s ease;
    transition:opacity .3s,transform .3s;
}
.toast.toast-out{
    opacity:0;
    transform:translateX(100%);
}
@keyframes toastIn{
    from{opacity:0;transform:translateX(100%)}
    to{opacity:1;transform:translateX(0)}
}
.toast-success{
    background:#ECFDF5;
    border:1px solid #86EFAC;
    color:#166534;
}
.toast-error{
    background:#FEF2F2;
    border:1px solid #FCA5A5;
    color:#991B1B;
}
.toast-info{
    background:#EFF6FF;
    border:1px solid #93C5FD;
    color:#1E40AF;
}
.toast-warning{
    background:#FFFBEB;
    border:1px solid #FCD34D;
    color:#92400E;
}
.toast .toast-icon{
    flex-shrink:0;
    width:22px;
    height:22px;
}
.toast .toast-close{
    margin-left:auto;
    background:none;
    border:none;
    cursor:pointer;
    opacity:.5;
    transition:opacity .2s;
    padding:4px;
    flex-shrink:0;
}
.toast .toast-close:hover{
    opacity:1;
}

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

/* Tablet landscape & small desktop */
@media(max-width:1199px){
    .mega-panel{display:none !important}
    .mega-overlay{display:none !important}

    .footer-grid{grid-template-columns:1fr 1fr}
    .footer-brand{max-width:100%;grid-column:1/-1}
}

/* Tablet portrait */
@media(max-width:768px){
    .hero h1{font-size:clamp(1.8rem,6vw,2.5rem)}
    .hero-ctas{flex-direction:column}
    .hero-ctas .btn-primary,
    .hero-ctas .btn-outline{width:100%;justify-content:center}
    .hero-trust{gap:1rem}

    .pillars-grid{grid-template-columns:1fr}

    .stats-row{grid-template-columns:repeat(2,1fr);gap:1rem}
    .stat{padding:1.25rem .5rem}

    .process-grid{grid-template-columns:1fr}

    .cta-buttons{flex-direction:column;align-items:center}
    .cta-buttons .btn-primary,
    .cta-buttons .btn-whatsapp{width:100%;max-width:320px;justify-content:center}

    .footer-grid{grid-template-columns:1fr}

    .blog-grid{grid-template-columns:1fr}
    .portfolio-grid{grid-template-columns:1fr}

    .landing-grid{grid-template-columns:1fr}
    .landing-sidebar{position:static}

    .toast-container{
        left:16px;
        right:16px;
        top:auto;
        bottom:80px;
    }
    .toast{min-width:auto;max-width:100%}
}

/* Mobile small */
@media(max-width:480px){
    .container{padding:0 16px}

    .hero{padding:clamp(5rem,10vw,7rem) 0 clamp(3rem,6vw,5rem)}

    .sectors-grid{grid-template-columns:repeat(2,1fr)}

    .features-grid{grid-template-columns:1fr}

    .footer-bottom{flex-direction:column;text-align:center}
    .footer-legal{justify-content:center}

    .pagination a,
    .pagination span{
        min-width:36px;
        height:36px;
        font-size:.82rem;
    }

    .form-section{padding:1.25rem}

    .wa-float{width:52px;height:52px;bottom:16px;right:16px}
    .wa-float svg{width:24px;height:24px}
}

/* ================= MOBILE LEGGIBILITÀ E LAYOUT ================= */
@media(max-width:767px){
    .nav-logo{font-size:1rem}
    .nav-logo .icon{width:32px;height:32px}
    .nav-logo .icon svg{width:16px;height:16px}
    .section-title{margin-bottom:2rem}
    .section-title h2{font-size:clamp(1.5rem,5vw,2.2rem)}
    .section-title p{font-size:1rem;padding:0 .5rem}
    .pillar-card{padding:1.5rem 1.25rem}
    .pillar-card h3{font-size:1.15rem}
    .pillar-card p{font-size:.9rem}
    .feat-card{padding:1.25rem}
    .feat-card h4{font-size:.95rem}
    .feat-card p{font-size:.85rem}
    .sector-card{padding:1rem .75rem}
    .sector-card h4{font-size:.8rem}
    main{min-height:0;padding-top:0}
    .btn-primary,.btn-outline{min-height:48px;padding:12px 20px;font-size:1rem}
    .hero-sub{font-size:1rem;padding:0 .5rem}
    .hero-trust{justify-content:center;gap:1rem;font-size:.85rem}
    .stat .num,.stat-num{font-size:clamp(1.75rem,6vw,2.5rem)}
}
@media(max-width:380px){
    .container{padding:0 12px}
    .nav-logo span:not(.accent){font-size:.9rem}
    .sectors-grid{grid-template-columns:1fr}
    .sector-card h4{font-size:.85rem}
}

/* Evita overflow su mobile: tabelle e code */
@media(max-width:767px){
    .container{overflow-x:hidden}
    table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}
    pre,.terminal-body{overflow-x:auto;-webkit-overflow-scrolling:touch;font-size:.75rem;padding:1rem}
}

/* ============================================================
   SECTION THEME COLORS — Alternating backgrounds + accent colors
   per category (ai, software, ecommerce, gestionali, servizi)
   ============================================================ */

/* --- Section theme: AI (#06B6D4 Cyan) --- */
.section-theme-ai .section-pad:nth-child(even):not(.dark-section):not(.cta-section) {
    background: linear-gradient(180deg, #ecfeff 0%, #fff 100%);
}
.section-theme-ai .section-title .label,
.section-theme-ai .hero-label {
    color: #06B6D4;
}
.section-theme-ai .section-title h2 .highlight {
    background: linear-gradient(135deg, #06B6D4, #0891B2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-theme-ai .pillar-link {
    color: #06B6D4;
}
.section-theme-ai .feat-card:hover {
    border-color: rgba(6,182,212,0.3);
}
.section-theme-ai .section-pad:not(.dark-section) .btn-primary {
    background: linear-gradient(135deg, #06B6D4, #0891B2);
    box-shadow: 0 4px 20px rgba(6,182,212,0.25);
}
.section-theme-ai .section-pad:not(.dark-section) .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(6,182,212,0.35);
}
.section-theme-ai .cta-section .btn-primary {
    background: linear-gradient(135deg, #06B6D4, #0891B2);
    box-shadow: 0 4px 20px rgba(6,182,212,0.25);
}
.section-theme-ai .cta-section .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(6,182,212,0.35);
}
.section-theme-ai .hero-badge {
    border-color: rgba(6,182,212,0.3);
    background: rgba(6,182,212,0.08);
}
.section-theme-ai .hero-badge .dot {
    background: #06B6D4;
}

/* --- Section theme: Software (#6366F1 Indigo/Brand) --- */
.section-theme-software .section-pad:nth-child(even):not(.dark-section):not(.cta-section) {
    background: linear-gradient(180deg, #eef2ff 0%, #fff 100%);
}
.section-theme-software .section-title .label,
.section-theme-software .hero-label {
    color: #6366F1;
}
.section-theme-software .section-title h2 .highlight {
    background: linear-gradient(135deg, #6366F1, #4F46E5);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-theme-software .pillar-link {
    color: #6366F1;
}
.section-theme-software .feat-card:hover {
    border-color: rgba(99,102,241,0.3);
}
.section-theme-software .hero-badge {
    border-color: rgba(99,102,241,0.3);
    background: rgba(99,102,241,0.08);
}
.section-theme-software .hero-badge .dot {
    background: #6366F1;
}
/* Software uses default brand colors for buttons, no override needed */

/* --- Section theme: E-commerce (#10B981 Green) --- */
.section-theme-ecommerce .section-pad:nth-child(even):not(.dark-section):not(.cta-section) {
    background: linear-gradient(180deg, #ecfdf5 0%, #fff 100%);
}
.section-theme-ecommerce .section-title .label,
.section-theme-ecommerce .hero-label {
    color: #10B981;
}
.section-theme-ecommerce .section-title h2 .highlight {
    background: linear-gradient(135deg, #10B981, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-theme-ecommerce .pillar-link {
    color: #10B981;
}
.section-theme-ecommerce .feat-card:hover {
    border-color: rgba(16,185,129,0.3);
}
.section-theme-ecommerce .section-pad:not(.dark-section) .btn-primary {
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 4px 20px rgba(16,185,129,0.25);
}
.section-theme-ecommerce .section-pad:not(.dark-section) .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(16,185,129,0.35);
}
.section-theme-ecommerce .cta-section .btn-primary {
    background: linear-gradient(135deg, #10B981, #059669);
    box-shadow: 0 4px 20px rgba(16,185,129,0.25);
}
.section-theme-ecommerce .cta-section .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(16,185,129,0.35);
}
.section-theme-ecommerce .hero-badge {
    border-color: rgba(16,185,129,0.3);
    background: rgba(16,185,129,0.08);
}
.section-theme-ecommerce .hero-badge .dot {
    background: #10B981;
}

/* --- Section theme: Gestionali/PA (#8B5CF6 Purple) --- */
.section-theme-gestionali .section-pad:nth-child(even):not(.dark-section):not(.cta-section) {
    background: linear-gradient(180deg, #f5f3ff 0%, #fff 100%);
}
.section-theme-gestionali .section-title .label,
.section-theme-gestionali .hero-label {
    color: #8B5CF6;
}
.section-theme-gestionali .section-title h2 .highlight {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-theme-gestionali .pillar-link {
    color: #8B5CF6;
}
.section-theme-gestionali .feat-card:hover {
    border-color: rgba(139,92,246,0.3);
}
.section-theme-gestionali .section-pad:not(.dark-section) .btn-primary {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    box-shadow: 0 4px 20px rgba(139,92,246,0.25);
}
.section-theme-gestionali .section-pad:not(.dark-section) .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(139,92,246,0.35);
}
.section-theme-gestionali .cta-section .btn-primary {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    box-shadow: 0 4px 20px rgba(139,92,246,0.25);
}
.section-theme-gestionali .cta-section .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(139,92,246,0.35);
}
.section-theme-gestionali .hero-badge {
    border-color: rgba(139,92,246,0.3);
    background: rgba(139,92,246,0.08);
}
.section-theme-gestionali .hero-badge .dot {
    background: #8B5CF6;
}

/* --- Section theme: Servizi (#F59E0B Amber) --- */
.section-theme-servizi .section-pad:nth-child(even):not(.dark-section):not(.cta-section) {
    background: linear-gradient(180deg, #fffbeb 0%, #fff 100%);
}
.section-theme-servizi .section-title .label,
.section-theme-servizi .hero-label {
    color: #D97706;
}
.section-theme-servizi .section-title h2 .highlight {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.section-theme-servizi .pillar-link {
    color: #D97706;
}
.section-theme-servizi .feat-card:hover {
    border-color: rgba(245,158,11,0.3);
}
.section-theme-servizi .section-pad:not(.dark-section) .btn-primary {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    box-shadow: 0 4px 20px rgba(245,158,11,0.25);
}
.section-theme-servizi .section-pad:not(.dark-section) .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(245,158,11,0.35);
}
.section-theme-servizi .cta-section .btn-primary {
    background: linear-gradient(135deg, #F59E0B, #D97706);
    box-shadow: 0 4px 20px rgba(245,158,11,0.25);
}
.section-theme-servizi .cta-section .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(245,158,11,0.35);
}
.section-theme-servizi .hero-badge {
    border-color: rgba(245,158,11,0.3);
    background: rgba(245,158,11,0.08);
}
.section-theme-servizi .hero-badge .dot {
    background: #F59E0B;
}

/* --- Dark sections remain unaffected (they have their own navy gradient) --- */
.dark-section,
.cta-section {
    /* These override any alternating background from section themes */
}

/* --- Ensure section-title .label on dark-section keeps brand-400 --- */
[class*="section-theme-"] .dark-section .section-title .label {
    color: var(--brand-400);
}

/* --- Section-themed stat labels and process numbers --- */
.section-theme-ai .stat-num { color: #06B6D4; }
.section-theme-ai .process-num { color: rgba(6,182,212,0.12); }
.section-theme-ecommerce .stat-num { color: #10B981; }
.section-theme-ecommerce .process-num { color: rgba(16,185,129,0.12); }
.section-theme-gestionali .stat-num { color: #8B5CF6; }
.section-theme-gestionali .process-num { color: rgba(139,92,246,0.12); }
.section-theme-servizi .stat-num { color: #D97706; }
.section-theme-servizi .process-num { color: rgba(217,119,6,0.12); }

/* --- Section-themed timeline accents --- */
.section-theme-ai .timeline-item::before { background: #06B6D4; }
.section-theme-software .timeline-item::before { background: #6366F1; }
.section-theme-ecommerce .timeline-item::before { background: #10B981; }
.section-theme-gestionali .timeline-item::before { background: #8B5CF6; }
.section-theme-servizi .timeline-item::before { background: #F59E0B; }

/* --- Section-themed pricing featured card border --- */
.section-theme-ai .feat-card--featured { border-color: #06B6D4; }
.section-theme-software .feat-card--featured { border-color: #6366F1; }
.section-theme-ecommerce .feat-card--featured { border-color: #10B981; }
.section-theme-gestionali .feat-card--featured { border-color: #8B5CF6; }
.section-theme-servizi .feat-card--featured { border-color: #F59E0B; }

/* --- PA alias: same as gestionali (purple) --- */
.section-theme-pa .section-pad:nth-child(even):not(.dark-section):not(.cta-section) {
    background: linear-gradient(180deg, #f5f3ff 0%, #fff 100%);
}
.section-theme-pa .section-title .label,
.section-theme-pa .hero-label { color: #8B5CF6; }
.section-theme-pa .pillar-link { color: #8B5CF6; }
.section-theme-pa .feat-card:hover { border-color: rgba(139,92,246,0.3); }
.section-theme-pa .section-pad:not(.dark-section) .btn-primary {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    box-shadow: 0 4px 20px rgba(139,92,246,0.25);
}
.section-theme-pa .section-pad:not(.dark-section) .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(139,92,246,0.35);
}
.section-theme-pa .cta-section .btn-primary {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    box-shadow: 0 4px 20px rgba(139,92,246,0.25);
}
.section-theme-pa .cta-section .btn-primary:hover {
    box-shadow: 0 8px 30px rgba(139,92,246,0.35);
}
.section-theme-pa .hero-badge { border-color: rgba(139,92,246,0.3); background: rgba(139,92,246,0.08); }
.section-theme-pa .hero-badge .dot { background: #8B5CF6; }
.section-theme-pa .stat-num { color: #8B5CF6; }
.section-theme-pa .process-num { color: rgba(139,92,246,0.12); }
.section-theme-pa .timeline-item::before { background: #8B5CF6; }
.section-theme-pa .feat-card--featured { border-color: #8B5CF6; }
.section-theme-pa .section-title h2 .highlight {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============================================================
   ENHANCED VISUAL EFFECTS — Aligned with index-9.html design
   ============================================================ */

/* --- Hero Decorative Blobs --- */
.hero {
    position: relative;
    overflow: hidden;
}

.hero::before,
.hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero::before {
    width: 500px;
    height: 500px;
    top: -200px;
    right: -150px;
    background: radial-gradient(circle, rgba(99,102,241,0.12) 0%, transparent 70%);
}

.hero::after {
    width: 400px;
    height: 400px;
    bottom: -150px;
    left: -100px;
    background: radial-gradient(circle, rgba(6,182,212,0.10) 0%, transparent 70%);
}

.hero > .container {
    position: relative;
    z-index: 1;
}

/* --- Pillar/Feature Cards: Accent Bar Top Animated on Hover --- */
.pillar-card,
.feat-card {
    position: relative;
    overflow: hidden;
}

.pillar-card::before,
.feat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--brand-500, #6366F1), var(--ai, #06B6D4));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pillar-card:hover::before,
.feat-card:hover::before {
    transform: scaleX(1);
}

/* --- Process Cards: Backdrop Filter + Number Styling --- */
.process-card {
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.process-num {
    color: rgba(255, 255, 255, 0.08);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

/* --- Buttons: Gradient + Shadow + Hover Lift --- */
.btn-primary {
    background: linear-gradient(135deg, var(--brand-500, #6366F1), var(--brand-600, #4F46E5));
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.25);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.35);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* --- Stats Section: Navy-50 Background --- */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    text-align: center;
}

/* --- Counter Animation Class --- */
.stat-num,
.stat .num {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: clamp(2rem, 5vw, 3rem);
    color: var(--brand-500, #6366F1);
    line-height: 1.1;
}

/* --- Fade-up Animation Enhancement --- */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Comparison Table Styling --- */
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.comparison-table th {
    background: var(--navy-500, #1E1B4B);
    color: #fff;
    padding: 14px 18px;
    text-align: left;
    font-weight: 600;
}

.comparison-table td {
    padding: 12px 18px;
    border-bottom: 1px solid #e2e8f0;
}

.comparison-table tr:nth-child(even) td {
    background: var(--navy-50, #F0F4FF);
}

.comparison-table tr:hover td {
    background: rgba(99, 102, 241, 0.05);
}

/* --- Timeline Section Styling --- */
.timeline {
    position: relative;
    padding-left: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--brand-500, #6366F1), var(--ai, #06B6D4));
}

.timeline-item {
    position: relative;
    padding-bottom: 2.5rem;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 6px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--brand-500, #6366F1);
    border: 3px solid var(--navy-50, #F0F4FF);
    box-shadow: 0 0 0 3px var(--brand-500, #6366F1);
}

.timeline-date {
    font-size: 0.85rem;
    color: var(--brand-500, #6366F1);
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.timeline-item h3 {
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.timeline-item p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

/* --- Pricing Featured Card --- */
.feat-card--featured {
    border: 2px solid var(--brand-500, #6366F1);
    position: relative;
}

.feat-card--featured::after {
    content: 'Consigliato';
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--brand-500, #6366F1), var(--brand-600, #4F46E5));
    color: #fff;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pricing-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-500, #6366F1);
    margin: 1rem 0;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.pricing-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f1f5f9;
    font-size: 0.95rem;
    color: #475569;
}

.pricing-features li::before {
    content: '\2713  ';
    color: #22c55e;
    font-weight: 700;
}

/* --- Testimonial Stars --- */
.testimonial-stars {
    color: #f59e0b;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

.testimonial-text {
    font-style: italic;
    color: #e2e8f0;
    line-height: 1.7;
    margin-bottom: 1rem;
}

.testimonial-author {
    color: #94a3b8;
    font-size: 0.9rem;
}

.testimonial-author strong {
    color: #cbd5e1;
}
