/*
 Theme Name:   IH Solution Child
 Theme URI:    https://ihsolution.it
 Description:  Child theme di Hello Elementor per IH Solution
 Author:       IH Solution
 Author URI:   https://ihsolution.it
 Template:     hello-elementor
 Version:      4.0
 Text Domain:  ih-solution-child
*/

/* ============================
   IH Solution Complete Styles
   ============================ */

:root {
    --ih-blue: #1E3A8A;
    --ih-azzurro: #3B82F6;
    --ih-light: #F8FAFC;
    --ih-white: #FFFFFF;
    --ih-orange: #F97316;
    --ih-green: #10B981;
    --ih-purple: #8B5CF6;
    --ih-pink: #EC4899;
}

body {
    font-family: "Inter", sans-serif !important;
    color: #374151;
    line-height: 1.7;
    overflow-x: hidden;
    background: #FAFBFF;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Poppins", sans-serif !important;
    font-weight: 800 !important;
}

/* ── Keyframe Animations ── */
@keyframes ih-fadeInUp {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes ih-fadeInLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes ih-fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes ih-scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes ih-float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    33% { transform: translateY(-12px) rotate(5deg); }
    66% { transform: translateY(6px) rotate(-3deg); }
}
@keyframes ih-float-slow {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(8deg); }
}
@keyframes ih-pulse-soft {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.15); }
}
@keyframes ih-gradient-shift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes ih-blob-morph {
    0%, 100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
    50% { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}
@keyframes ih-shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* ── Scroll Reveal Classes ── */
.ih-reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.ih-reveal.ih-visible {
    opacity: 1;
    transform: translateY(0);
}
.ih-reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.ih-reveal-left.ih-visible {
    opacity: 1;
    transform: translateX(0);
}
.ih-reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.ih-reveal-right.ih-visible {
    opacity: 1;
    transform: translateX(0);
}
.ih-reveal-scale {
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.ih-reveal-scale.ih-visible {
    opacity: 1;
    transform: scale(1);
}
/* Stagger delays for children */
.ih-stagger > *:nth-child(1) { transition-delay: 0s; }
.ih-stagger > *:nth-child(2) { transition-delay: 0.1s; }
.ih-stagger > *:nth-child(3) { transition-delay: 0.2s; }
.ih-stagger > *:nth-child(4) { transition-delay: 0.3s; }
.ih-stagger > *:nth-child(5) { transition-delay: 0.4s; }

/* ── Decorative Background Patterns ── */
.ih-bg-mesh {
    background:
        radial-gradient(ellipse at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 50%),
        #FFFFFF;
}
.ih-bg-dots {
    background-image: radial-gradient(circle, #E2E8F0 1px, transparent 1px);
    background-size: 24px 24px;
}
.ih-bg-grid {
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}
.ih-bg-gradient-warm {
    background: linear-gradient(135deg, #FFFBF5 0%, #FFF7ED 30%, #FEF3C7 60%, #FFF7ED 100%);
}
.ih-bg-gradient-cool {
    background: linear-gradient(135deg, #F0F4FF 0%, #EEF2FF 30%, #F5F3FF 60%, #F0F4FF 100%);
}
.ih-bg-gradient-mint {
    background: linear-gradient(135deg, #F0FDF9 0%, #ECFDF5 40%, #F0FDFA 100%);
}
.ih-bg-aurora {
    background:
        radial-gradient(ellipse at 10% 30%, rgba(59, 130, 246, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse at 90% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 50% 50%, rgba(236, 72, 153, 0.05) 0%, transparent 70%),
        linear-gradient(180deg, #FAFBFF 0%, #F8FAFC 100%);
}

/* ── Decorative Blobs ── */
.ih-blob {
    position: absolute;
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    filter: blur(60px);
    opacity: 0.12;
    pointer-events: none;
    z-index: 0;
    animation: ih-blob-morph 8s ease-in-out infinite;
}
.ih-blob-blue {
    background: linear-gradient(135deg, #3B82F6, #60A5FA);
}
.ih-blob-purple {
    background: linear-gradient(135deg, #8B5CF6, #A78BFA);
    animation-delay: -3s;
}
.ih-blob-orange {
    background: linear-gradient(135deg, #F97316, #FB923C);
    animation-delay: -5s;
}
.ih-blob-pink {
    background: linear-gradient(135deg, #EC4899, #F472B6);
    animation-delay: -2s;
}

/* ══════════════════════════════════════
   ELEMENTOR HEADER STYLES
   Selectors use Elementor element IDs
   ══════════════════════════════════════ */

/* ── Announcement Bar ── */
.elementor-element-ann_bar {
    transition: opacity .2s;
}
.elementor-element-ann_bar a:hover {
    opacity: .85;
}

/* ── Main Header Container ── */
.elementor-element-header_main {
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    transition: all .3s ease !important;
}
.elementor-element-header_main.elementor-sticky,
.elementor-element-header_main.e-sticky--active {
    box-shadow: 0 4px 30px rgba(0,0,0,.08) !important;
    background: rgba(255,255,255,.95) !important;
}

/* ── Elementor Pro Nav Menu ── */
.elementor-element-header_nav_c .elementor-nav-menu--main,
.elementor-element-header_nav_c .elementor-nav-menu__container {
    flex-wrap: nowrap !important;
}
.elementor-element-header_nav_c .elementor-nav-menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}
.elementor-element-header_nav_c .elementor-nav-menu li a.elementor-item {
    color: #374151 !important;
    text-decoration: none !important;
    font-family: "Inter", sans-serif !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    padding: 8px 10px !important;
    border-radius: 8px !important;
    transition: all .2s ease !important;
    white-space: nowrap;
}
.elementor-element-header_nav_c .elementor-nav-menu li a.elementor-item:hover {
    color: #3B82F6 !important;
    background: #EFF6FF !important;
}
.elementor-element-header_nav_c .elementor-nav-menu li a.elementor-item.elementor-item-active,
.elementor-element-header_nav_c .elementor-nav-menu li.current-menu-item a.elementor-item {
    color: #1E3A8A !important;
    font-weight: 600 !important;
}
/* Remove Elementor default underline/pointer */
.elementor-element-header_nav_c .elementor-nav-menu a.elementor-item::before,
.elementor-element-header_nav_c .elementor-nav-menu a.elementor-item::after {
    display: none !important;
}

/* ── CTA Button ── */
.elementor-element-header_btn .elementor-button {
    transition: all .3s ease !important;
    white-space: nowrap;
}
.elementor-element-header_btn .elementor-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59,130,246,.3);
}

/* ── Hamburger ── */
.ih-hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}
.ih-hamburger span {
    width: 24px;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: all .3s ease;
    display: block;
}
.ih-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.ih-hamburger.open span:nth-child(2) { opacity: 0; }
.ih-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Mobile Nav: pannello a tutto schermo ──
   Il pannello parte da sotto la barra dell'header (altezza misurata da JS in
   --ih-header-h) e copre il resto della viewport. Niente display:none, così
   l'apertura e la chiusura possono essere animate. */
.ih-mobile-nav {
    /* !important perché Elementor imposta position e z-index sui container */
    position: fixed !important;
    top: var(--ih-header-h, 64px) !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 998 !important;
    display: flex !important;
    flex-direction: column;
    padding: 26px 24px calc(40px + env(safe-area-inset-bottom, 0px)) !important;
    background: #FFFFFF !important;
    border: 0 !important;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity .34s cubic-bezier(0.32, 0.72, 0, 1),
                transform .42s cubic-bezier(0.32, 0.72, 0, 1),
                visibility 0s linear .42s;
}
.ih-mobile-nav.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    transition: opacity .28s cubic-bezier(0.32, 0.72, 0, 1),
                transform .42s cubic-bezier(0.32, 0.72, 0, 1),
                visibility 0s;
}

/* blocca lo scorrimento della pagina sotto il pannello */
body.ih-menu-open {
    overflow: hidden;
}
/* a pannello aperto la barra diventa piena: senza, la trasparenza lascia
   intravedere il contenuto che scorre dietro */
/* A pannello aperto la barra viene ancorata in alto: se l'utente aveva
   scorso la pagina e l'header era uscito dalla viewport, il pannello
   coprirebbe tutto e l'hamburger per chiudere sarebbe irraggiungibile. */
body.ih-menu-open .elementor-element-header_main {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    background: #FFFFFF !important;
    box-shadow: none !important;
}
body.admin-bar.ih-menu-open .elementor-element-header_main {
    top: 32px !important;
}
@media (max-width: 782px) {
    body.admin-bar.ih-menu-open .elementor-element-header_main {
        top: 46px !important;
    }
}
/* con il pannello aperto i pulsanti flottanti coprirebbero le voci e la CTA */
body.ih-menu-open .ih-whatsapp-float,
body.ih-menu-open .ih-back-to-top,
body.ih-menu-open .ih-sidebar-cta {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity .2s ease;
}

/* ── Voci del menu ── */
.ih-mobile-nav .elementor-nav-menu {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}
.ih-mobile-nav .elementor-nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(15, 23, 42, .07);
}
.ih-mobile-nav .elementor-nav-menu li:last-child {
    border-bottom: 0;
}
.ih-mobile-nav .elementor-nav-menu .elementor-item,
.ih-mobile-nav .elementor-nav-menu--main .elementor-item {
    display: block !important;
    width: 100%;
    padding: 17px 2px !important;
    background: transparent !important;
    border-radius: 0 !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 25px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    letter-spacing: -0.4px;
    color: #0F172A !important;
    fill: #0F172A !important;
    transition: color .2s ease !important;
}
.ih-mobile-nav .elementor-nav-menu--main .elementor-item:hover,
.ih-mobile-nav .elementor-nav-menu--main .elementor-item:focus,
.ih-mobile-nav .elementor-nav-menu--main .elementor-item.highlighted {
    color: #3B82F6 !important;
    fill: #3B82F6 !important;
    background: transparent !important;
}
.ih-mobile-nav .elementor-nav-menu--main .elementor-item.elementor-item-active {
    color: #1E3A8A !important;
    fill: #1E3A8A !important;
    background: transparent !important;
}

/* ── Entrata scaglionata delle voci, come sul sito Apple ── */
.ih-mobile-nav .elementor-nav-menu li,
.ih-mobile-nav .elementor-element-mobile_cta {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .4s cubic-bezier(0.32, 0.72, 0, 1),
                transform .45s cubic-bezier(0.32, 0.72, 0, 1);
}
.ih-mobile-nav.open .elementor-nav-menu li,
.ih-mobile-nav.open .elementor-element-mobile_cta {
    opacity: 1;
    transform: translateY(0);
}
.ih-mobile-nav.open .elementor-nav-menu li:nth-child(1) { transition-delay: .05s; }
.ih-mobile-nav.open .elementor-nav-menu li:nth-child(2) { transition-delay: .09s; }
.ih-mobile-nav.open .elementor-nav-menu li:nth-child(3) { transition-delay: .13s; }
.ih-mobile-nav.open .elementor-nav-menu li:nth-child(4) { transition-delay: .17s; }
.ih-mobile-nav.open .elementor-nav-menu li:nth-child(5) { transition-delay: .21s; }
.ih-mobile-nav.open .elementor-nav-menu li:nth-child(6) { transition-delay: .25s; }
.ih-mobile-nav.open .elementor-nav-menu li:nth-child(7) { transition-delay: .29s; }
.ih-mobile-nav.open .elementor-nav-menu li:nth-child(n+8) { transition-delay: .33s; }
.ih-mobile-nav.open .elementor-element-mobile_cta { transition-delay: .36s; }

/* ── Pulsante in fondo al pannello ── */
.ih-mobile-nav .elementor-element-mobile_cta {
    margin-top: 30px !important;
}
.ih-mobile-nav .elementor-element-mobile_cta .elementor-button {
    width: 100%;
    justify-content: center;
    font-size: 16px !important;
    padding: 16px 24px !important;
}

/* schermi alti: un po' più d'aria fra le voci */
@media (min-height: 720px) {
    .ih-mobile-nav .elementor-nav-menu .elementor-item {
        padding: 20px 2px !important;
    }
}
/* tablet: il pannello non deve diventare una colonna sterminata */
@media (min-width: 600px) and (max-width: 1024px) {
    .ih-mobile-nav {
        padding-left: 40px !important;
        padding-right: 40px !important;
    }
    .ih-mobile-nav .elementor-nav-menu .elementor-item {
        font-size: 28px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ih-mobile-nav,
    .ih-mobile-nav .elementor-nav-menu li,
    .ih-mobile-nav .elementor-element-mobile_cta {
        transition-duration: .01ms !important;
        transform: none !important;
    }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .elementor-element-header_nav_c {
        display: none !important;
    }
    .elementor-element-header_main {
        padding: 10px 16px !important;
    }
    .elementor-element-header_main > .e-con-inner {
        gap: 10px !important;
    }
    .elementor-element-header_logo_c {
        --width: auto !important;
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 160px !important;
    }
    .elementor-element-header_actions_c {
        --width: auto !important;
        flex: 0 0 auto !important;
        width: auto !important;
    }
    .elementor-element-header_main > .e-con-inner {
        justify-content: space-between !important;
    }
}
@media (min-width: 1025px) {
    .elementor-element-hamburger_btn {
        display: none !important;
    }
    .elementor-element-mobile_nav {
        display: none !important;
    }
}

/* Admin bar offset */
.admin-bar .elementor-location-header {
    top: 32px;
}
@media (max-width: 782px) {
    .admin-bar .elementor-location-header {
        top: 46px;
    }
}

/* ── Footer ── */
.ih-footer {
    background: linear-gradient(180deg, #0F172A 0%, #0A0F1E 100%);
    position: relative;
    overflow: hidden;
}
.ih-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(59,130,246,.3), rgba(139,92,246,.3), transparent);
}
.ih-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 70px 30px 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 50px;
}
.ih-footer-brand {
    font-family: "Poppins", sans-serif;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 15px;
}
.ih-footer-desc {
    color: #94A3B8;
    font-size: 14px;
    line-height: 1.7;
    max-width: 300px;
}
.ih-footer-col { display: flex; flex-direction: column; }
.ih-footer-col h5 {
    color: #FFFFFF;
    font-family: "Poppins", sans-serif;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 18px;
}
.ih-footer-col a {
    color: #94A3B8;
    text-decoration: none;
    font-size: 14px;
    padding: 5px 0;
    transition: color .2s ease;
}
.ih-footer-col a:hover { color: #3B82F6; }

.ih-footer-bottom {
    background: #020617;
    border-top: 1px solid #1E293B;
    padding: 18px 30px;
    text-align: center;
}
.ih-footer-bottom p {
    color: #64748B;
    font-size: 13px;
    margin: 0;
}

@media (max-width: 768px) {
    .ih-footer-inner {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 50px 30px 30px;
    }
}

/* ── Gradient Heading (target by Elementor element IDs) ── */
.elementor-element-hero_h1 .elementor-heading-title,
.elementor-element-sol_h1 .elementor-heading-title,
.elementor-element-tsf_h1 .elementor-heading-title,
.elementor-element-pa_h1 .elementor-heading-title,
.elementor-element-chi_h1 .elementor-heading-title,
.elementor-element-cont_h1 .elementor-heading-title {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 25%, #8B5CF6 50%, #EC4899 75%, #F97316 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

/* ── Hero wrapper ── */
.ih-hero-wrapper {
    /* !important come per position/z-index: Elementor imposta overflow sui
       container e senza questo i due cerchi decorativi qui sotto (::after è a
       right:-10%) sporgono, allargando la pagina del 10% della viewport */
    position: relative;
    overflow: hidden !important;
}
.ih-hero-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.ih-hero-wrapper::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139,92,246,0.07) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

/* ── Geometric Shapes (Animated) ── */
.ih-shape { position: absolute; z-index: 0; pointer-events: none; }
.ih-shape-1 { width: 18px; height: 18px; background: #3B82F6; border-radius: 50%; top: 15%; left: 5%; animation: ih-float 6s ease-in-out infinite; }
.ih-shape-2 { width: 14px; height: 14px; background: #F97316; border-radius: 3px; top: 25%; left: 15%; animation: ih-float-slow 8s ease-in-out infinite; animation-delay: -1s; }
.ih-shape-3 { width: 0; height: 0; border-left: 8px solid transparent; border-right: 8px solid transparent; border-bottom: 14px solid #10B981; top: 55%; left: 8%; animation: ih-float 7s ease-in-out infinite; animation-delay: -2s; }
.ih-shape-4 { width: 20px; height: 20px; background: #EC4899; border-radius: 50%; top: 12%; right: 8%; animation: ih-pulse-soft 5s ease-in-out infinite; }
.ih-shape-5 { width: 10px; height: 10px; background: #F97316; border-radius: 50%; top: 45%; right: 5%; animation: ih-float-slow 6s ease-in-out infinite; animation-delay: -3s; }
.ih-shape-6 { width: 16px; height: 16px; background: #8B5CF6; border-radius: 3px; bottom: 20%; right: 12%; animation: ih-float 9s ease-in-out infinite; animation-delay: -4s; }
.ih-shape-7 { width: 22px; height: 22px; background: #3B82F6; border-radius: 50%; bottom: 15%; left: 3%; opacity: .6; animation: ih-pulse-soft 7s ease-in-out infinite; animation-delay: -2s; }

@media (max-width: 767px) {
    .ih-shape { display: none; }
    .ih-hero-wrapper::before, .ih-hero-wrapper::after { display: none; }
}

/* ── Buttons (by element IDs + class fallback) ── */
/* Primary buttons */
.elementor-element-hero_cta1 .elementor-button,
.elementor-element-sc1_btn .elementor-button,
.elementor-element-pa_btn .elementor-button,
.elementor-element-header_btn .elementor-button,
.ih-btn-primary .elementor-button {
    background: #1E3A8A !important;
    color: #FFFFFF !important;
    border-radius: 50px !important;
    padding: 14px 32px !important;
    font-weight: 600 !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 15px !important;
    border: none !important;
    transition: all .3s ease !important;
}
.ih-btn-primary .elementor-button:hover {
    background: #3B82F6 !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59,130,246,.4) !important;
}

/* Outline buttons */
.elementor-element-hero_cta2 .elementor-button,
.elementor-element-sc2_btn .elementor-button,
.ih-btn-outline .elementor-button {
    background: transparent !important;
    color: #374151 !important;
    border-radius: 50px !important;
    padding: 14px 32px !important;
    font-weight: 600 !important;
    font-family: "Poppins", sans-serif !important;
    font-size: 15px !important;
    border: 2px solid #D1D5DB !important;
    transition: all .3s ease !important;
}
.ih-btn-outline .elementor-button:hover {
    border-color: #3B82F6 !important;
    color: #3B82F6 !important;
    transform: translateY(-2px);
}

/* White buttons */
.elementor-element-cta_btn .elementor-button,
.elementor-element-sol_cta_btn .elementor-button,
.elementor-element-tsf_cta_btn .elementor-button,
.ih-btn-white .elementor-button {
    background: #FFFFFF !important;
    color: #1E3A8A !important;
    border-radius: 50px !important;
    padding: 14px 32px !important;
    font-weight: 600 !important;
    font-family: "Poppins", sans-serif !important;
    border: none !important;
    transition: all .3s ease !important;
}
.ih-btn-white .elementor-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.15) !important;
}

/* Blue buttons */
.elementor-element-serv_all_btn .elementor-button,
.ih-btn-blue .elementor-button {
    background: #3B82F6 !important;
    color: #FFFFFF !important;
    border-radius: 50px !important;
    padding: 14px 32px !important;
    font-weight: 600 !important;
    font-family: "Poppins", sans-serif !important;
    border: none !important;
    transition: all .3s ease !important;
}
.ih-btn-blue .elementor-button:hover {
    background: #1E3A8A !important;
    transform: translateY(-2px);
}

/* ── Trust Badges ── */
.ih-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #374151;
    transition: transform .3s ease;
}
.ih-trust-badge:hover {
    transform: translateY(-2px);
}
.ih-trust-badge .ih-check {
    width: 26px;
    height: 26px;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    transition: transform .3s ease, box-shadow .3s ease;
}
.ih-trust-badge:hover .ih-check {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(59,130,246,.3);
}

/* ── Cards ── */
.ih-card-container {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 30px 25px;
    box-shadow: 0 4px 20px rgba(0,0,0,.04);
    transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(0,0,0,.04);
    position: relative;
    overflow: hidden;
}
.ih-card-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6, #EC4899);
    opacity: 0;
    transition: opacity .4s ease;
}
.ih-card-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,.1);
    border-color: transparent;
}
.ih-card-container:hover::before {
    opacity: 1;
}

/* ── Feature Icons (Elementor icon-box widget) ── */
.ih-feature-icon .elementor-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .3s ease;
}
.ih-card-container:hover .ih-feature-icon .elementor-icon {
    transform: scale(1.1) rotate(-3deg);
    box-shadow: 0 8px 20px rgba(0,0,0,.1);
}
.ih-feature-icon.blue .elementor-icon { background: linear-gradient(135deg, #EFF6FF, #DBEAFE); color: #3B82F6; }
.ih-feature-icon.green .elementor-icon { background: linear-gradient(135deg, #ECFDF5, #D1FAE5); color: #10B981; }
.ih-feature-icon.purple .elementor-icon { background: linear-gradient(135deg, #F5F3FF, #EDE9FE); color: #8B5CF6; }
.ih-feature-icon.orange .elementor-icon { background: linear-gradient(135deg, #FFF7ED, #FFEDD5); color: #F97316; }
.ih-feature-icon.pink .elementor-icon { background: linear-gradient(135deg, #FDF2F8, #FCE7F3); color: #EC4899; }
/* SVG icon color inheritance */
.ih-feature-icon.blue .elementor-icon svg { fill: #3B82F6; }
.ih-feature-icon.green .elementor-icon svg { fill: #10B981; }
.ih-feature-icon.purple .elementor-icon svg { fill: #8B5CF6; }
.ih-feature-icon.orange .elementor-icon svg { fill: #F97316; }
.ih-feature-icon.pink .elementor-icon svg { fill: #EC4899; }

/* ── WhatsApp Float ── */
@keyframes ih-whatsapp-pulse {
    0% { box-shadow: 0 4px 20px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,.3); }
    70% { box-shadow: 0 4px 20px rgba(37,211,102,.4), 0 0 0 15px rgba(37,211,102,0); }
    100% { box-shadow: 0 4px 20px rgba(37,211,102,.4), 0 0 0 0 rgba(37,211,102,0); }
}
.ih-whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37,211,102,.4);
    transition: all .3s ease;
    text-decoration: none;
    animation: ih-whatsapp-pulse 3s ease-in-out infinite;
}
.ih-whatsapp-float:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 30px rgba(37,211,102,.6);
    animation: none;
}
.ih-whatsapp-float svg { width: 32px; height: 32px; fill: white; }

/* ── Back to Top ── */
.ih-back-to-top {
    position: fixed;
    bottom: 100px;
    right: 34px;
    z-index: 9998;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,.06);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0,0,0,.08);
    cursor: pointer;
    transition: all .4s cubic-bezier(0.16, 1, 0.3, 1);
    text-decoration: none;
    color: #374151;
    font-size: 16px;
    opacity: 0;
    pointer-events: none;
}
.ih-back-to-top:hover {
    background: #3B82F6;
    color: #FFFFFF;
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(59,130,246,.3);
}

/* ── Sidebar CTA ── */
.ih-sidebar-cta {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    transform-origin: left bottom;
    z-index: 9998;
    background: #3B82F6;
    color: white !important;
    padding: 8px 20px;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
    text-decoration: none;
    letter-spacing: .5px;
    transition: background .3s ease;
}
.ih-sidebar-cta:hover { background: #1E3A8A; }

@media (max-width: 767px) {
    .ih-sidebar-cta { display: none; }
}

/* ── Gradient Divider ── */
.ih-gradient-divider {
    height: 4px;
    width: 60px;
    background: linear-gradient(90deg, #3B82F6, #8B5CF6, #EC4899);
    background-size: 200% 100%;
    border-radius: 2px;
    margin: 15px auto 25px;
    animation: ih-gradient-shift 4s ease infinite;
}

/* ── Section Separator Wave ── */
.ih-wave-separator {
    position: relative;
    overflow: hidden;
}
.ih-wave-separator::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 60px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60'%3E%3Cpath fill='%23F8FAFC' d='M0,20 C360,60 720,0 1080,30 C1260,45 1380,20 1440,20 L1440,60 L0,60 Z'/%3E%3C/svg%3E") no-repeat bottom center;
    background-size: cover;
    pointer-events: none;
}

/* ── Section Label Tags ── */
.ih-section-tag {
    display: inline-block;
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 18px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
}
.ih-section-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
    animation: ih-shimmer 3s ease-in-out infinite;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .ih-trust-badges-row { flex-direction: column !important; gap: 15px !important; align-items: center !important; }
    .ih-blob { display: none; }
}

/* ── Force grid-containing HTML widgets to full width ── */
.e-con-inner > .elementor-widget-html {
    text-align: center;
}
.elementor-widget-html.ih-full-width {
    width: 100% !important;
    max-width: 100% !important;
    align-self: stretch !important;
    text-align: left;
}

/* ── Smooth scroll ── */
html { scroll-behavior: smooth; }

/* ── WP Admin Bar offset ── */
.admin-bar .ih-header { top: 32px; }
@media (max-width: 782px) {
    .admin-bar .ih-header { top: 46px; }
}

/* ══════════════════════════════════════
   HOME — Riposizionamento 28.08
   ══════════════════════════════════════ */

/* ── Lead paragraph sotto i titoli di sezione ── */
.ih-narrow-lead {
    max-width: 720px !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* ── Timeline del metodo (6 fasi) ── */
.ih-timeline {
    max-width: 820px;
    width: 100%;
    margin: 0 auto;
}
.ih-timeline-step {
    position: relative;
}
/* la colonna del numero non deve restringersi: la riga resta allineata
   e la linea di collegamento (left: 23px) resta centrata sul cerchio */
.ih-timeline-numcol {
    flex-shrink: 0 !important;
}
.ih-timeline-step:last-child {
    padding-bottom: 0 !important;
}
.ih-timeline-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 23px;
    top: 56px;
    bottom: 10px;
    width: 2px;
    background: linear-gradient(180deg, #BFDBFE, #DDD6FE);
}
.ih-timeline-num .elementor-heading-title {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3B82F6, #8B5CF6);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(59,130,246,.28);
    transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1);
}
.ih-timeline-step:hover .ih-timeline-num .elementor-heading-title {
    transform: scale(1.08);
}
.ih-timeline-body {
    padding-top: 9px;
}

/* ── Box CTA in coda al metodo ── */
.ih-metodo-cta {
    max-width: 820px;
    width: 100%;
    margin: 10px auto 0;
}

/* ── Stelle delle recensioni ── */
.ih-stars .elementor-heading-title {
    color: #F59E0B;
    letter-spacing: 3px;
    line-height: 1;
}

/* ── Responsive ── */
@media (max-width: 767px) {
    .ih-timeline-step:not(:last-child)::before {
        left: 23px;
        top: 48px;
    }
    .ih-timeline-num .elementor-heading-title {
        width: 40px;
        height: 40px;
        font-size: 14px !important;
    }
    .ih-timeline-body {
        padding-top: 5px;
    }
    .ih-metodo-cta {
        padding: 28px 20px !important;
    }
}

/* ── Form Elementor (guida e contatti) ── */
.elementor-widget-form input,
.elementor-widget-form textarea,
.elementor-widget-form select {
    font-family: "Inter", sans-serif !important;
}
.elementor-widget-form textarea {
    resize: vertical;
}
/* riga di consenso privacy: testo legale, piu' piccolo e discreto */
.elementor-widget-form .elementor-field-type-acceptance label {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: #6B7280;
    font-weight: 400;
}
.elementor-widget-form .elementor-field-type-acceptance a {
    color: #1E3A8A;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.elementor-widget-form .elementor-field-type-acceptance a:hover {
    color: #3B82F6;
}

/* ── Pagine WordPress non costruite con Elementor (es. Privacy Policy) ──
   Senza questo il contenuto si stende su tutta la larghezza della finestra
   e le righe diventano illeggibili. */
.page-template-default:not(.elementor-page) .site-main,
.page-template-default:not(.elementor-page) .site-main * {
    /* il tema padre qui non usa border-box: senza questo il padding si somma
       alla larghezza e la pagina sborda su mobile */
    box-sizing: border-box;
}
.page-template-default:not(.elementor-page) .site-main {
    max-width: 860px;
    width: 100%;
    margin: 0 auto;
    padding: 48px 24px 80px;
}
.page-template-default:not(.elementor-page) .site-main .page-header {
    margin-bottom: 28px;
}
.page-template-default:not(.elementor-page) .site-main h1 {
    font-size: 40px;
    line-height: 1.15;
    color: #1E3A8A;
}
.page-template-default:not(.elementor-page) .site-main h2 {
    font-size: 22px;
    line-height: 1.3;
    color: #1E3A8A;
    margin-top: 38px;
    margin-bottom: 12px;
}
.page-template-default:not(.elementor-page) .site-main p,
.page-template-default:not(.elementor-page) .site-main li {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
}
.page-template-default:not(.elementor-page) .site-main ul {
    padding-left: 22px;
    margin-bottom: 16px;
}
.page-template-default:not(.elementor-page) .site-main li {
    margin-bottom: 8px;
}
.page-template-default:not(.elementor-page) .site-main a {
    color: #1E3A8A;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.page-template-default:not(.elementor-page) .site-main a:hover {
    color: #3B82F6;
}
@media (max-width: 767px) {
    .page-template-default:not(.elementor-page) .site-main {
        padding: 32px 16px 56px;
    }
    .page-template-default:not(.elementor-page) .site-main h1 { font-size: 30px; }
    .page-template-default:not(.elementor-page) .site-main h2 { font-size: 19px; }
}

/* ══════════════════════════════════════
   BLOG — archivio e articolo singolo
   ══════════════════════════════════════ */

/* ── Card dell'archivio ── */
.ih-blog-grid .elementor-post__card {
    box-shadow: 0 6px 24px rgba(30,58,138,.06);
    transition: transform .3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .3s ease;
    overflow: hidden;
}
.ih-blog-grid .elementor-post__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(30,58,138,.12);
}
.ih-blog-grid .elementor-post__title,
.ih-blog-grid .elementor-post__title a {
    font-family: "Poppins", sans-serif;
    font-size: 20px;
    line-height: 1.32;
    font-weight: 700 !important;
}
.ih-blog-grid .elementor-post__excerpt p {
    font-size: 15px;
    line-height: 1.7;
}
/* il testo del "leggi tutto" lo scriviamo noi: niente maiuscolo forzato
   (la skin cards di Elementor lo mette uppercase con più specificità) */
.ih-blog-grid .elementor-post__read-more {
    text-transform: none !important;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 14px;
}
.ih-blog-grid .elementor-post__badge {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 11px;
    letter-spacing: .6px;
}
.ih-blog-grid .elementor-post__meta-data {
    font-size: 13px;
}
/* paginazione */
.ih-blog-grid .elementor-pagination {
    margin-top: 44px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
}
.ih-blog-grid .page-numbers {
    display: inline-block;
    min-width: 38px;
    padding: 7px 10px;
    margin: 0 3px;
    border-radius: 10px;
    text-decoration: none;
    color: #374151;
}
.ih-blog-grid .page-numbers.current {
    background: #1E3A8A;
    color: #FFFFFF;
}
.ih-blog-grid a.page-numbers:hover {
    background: #EFF6FF;
    color: #1E3A8A;
}

/* ── Meta dell'articolo (categoria e data) ── */
.ih-post-meta .elementor-icon-list-item {
    font-family: "Inter", sans-serif;
}
.ih-post-meta a {
    color: #6B7280;
    text-decoration: none;
}
.ih-post-meta a:hover {
    color: #3B82F6;
}

/* ── Corpo dell'articolo ── */
.ih-post-body {
    font-family: "Inter", sans-serif;
}
.ih-post-body p,
.ih-post-body li {
    font-size: 17px;
    line-height: 1.85;
    color: #374151;
}
.ih-post-body p {
    margin-bottom: 20px;
}
.ih-post-body h2 {
    font-size: 26px;
    line-height: 1.3;
    color: #1E3A8A;
    margin-top: 44px;
    margin-bottom: 14px;
}
.ih-post-body h3 {
    font-size: 21px;
    line-height: 1.35;
    color: #1E3A8A;
    margin-top: 34px;
    margin-bottom: 10px;
}
.ih-post-body ul,
.ih-post-body ol {
    padding-left: 24px;
    margin-bottom: 24px;
}
.ih-post-body li {
    margin-bottom: 9px;
}
.ih-post-body a {
    color: #1E3A8A;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.ih-post-body a:hover {
    color: #3B82F6;
}
.ih-post-body blockquote {
    margin: 30px 0;
    padding: 4px 0 4px 22px;
    border-left: 3px solid #3B82F6;
    font-style: italic;
    color: #1E3A8A;
}
.ih-post-body img {
    border-radius: 14px;
    margin: 12px 0 24px;
}

/* ── Navigazione tra articoli ── */
.ih-post-nav .elementor-post-navigation {
    font-family: "Poppins", sans-serif;
}
.ih-post-nav .post-navigation__prev--label,
.ih-post-nav .post-navigation__next--label {
    font-size: 12px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: #6B7280;
}
.ih-post-nav .post-navigation__prev--title,
.ih-post-nav .post-navigation__next--title {
    font-size: 16px;
    font-weight: 600;
    color: #1E3A8A;
}
.ih-post-nav a:hover .post-navigation__prev--title,
.ih-post-nav a:hover .post-navigation__next--title {
    color: #3B82F6;
}

@media (max-width: 767px) {
    .ih-post-body p,
    .ih-post-body li { font-size: 16px; }
    .ih-post-body h2 { font-size: 22px; margin-top: 34px; }
    .ih-post-body h3 { font-size: 19px; }
}

/* ── Contatori "20+ / 100+ / 500+" della home su telefono ──
   Il gap di 60px va bene da desktop, ma su 390px si mangia 120px dei 358
   disponibili e lascia 79px per etichette che ne chiedono fino a 102:
   il testo sbordava di 7px. */
@media (max-width: 767px) {
    .elementor-element-chi_breve_stats {
        --gap: 16px !important;
        --row-gap: 16px !important;
        --column-gap: 16px !important;
        gap: 16px !important;
    }
    .elementor-element-chi_breve_stats > .e-con {
        min-width: 0 !important;
    }
}
