/* ==========================================================================
   OKPRESTITO — DESIGN SYSTEM v2.0 — PREMIUM REDESIGN
   Palette originale mantenuta, sistema esteso con animazioni premium,
   mobile experience completa, footer moderno e micro-interazioni.
   ========================================================================== */

:root {
    --orange: #ED7D31;
    --orange-hover: #D66B26;
    --dark: #1E1E1E;
    --dark-bg: #0a0a0a;
    --text-gray: #64748B;
    --bg-light: #F8FAFC;
    --white: #FFFFFF;

    /* Calibrazione pallino sulla "ı" corsiva del logo */
    --dot-offset-x: 0.10em;
    --dot-offset-y: 0.085em;

    /* Palette estesa */
    --ink: #14171c;
    --ink-soft: #1d2128;
    --ink-softer: #262b34;
    --orange-deep: #C75A1E;
    --orange-pale: #FCEBDD;
    --slate: #5B6472;
    --line: #E7E2D9;

    --shadow-soft: 0 16px 40px rgba(30, 30, 30, 0.08);
    --shadow-lift: 0 24px 50px rgba(237, 125, 49, 0.28);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

    /* Nuovi token premium */
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glow-orange: 0 0 40px rgba(237, 125, 49, 0.25);
    --glow-orange-intense: 0 0 60px rgba(237, 125, 49, 0.4);
    --radius-xl: 20px;
    --radius-2xl: 28px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-light);
    color: var(--dark);
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Poppins', sans-serif;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================
   1. BACKGROUND & INTRO SCREEN (solo Home)
   ========================================= */
#intro-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: radial-gradient(circle at center, #262626 0%, var(--dark-bg) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s ease;
}

.star-field {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.stars-small,
.stars-big {
    position: absolute;
    top: 0;
    left: 0;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: transparent;
}

.stars-small {
    box-shadow: 1309px 228px 0 rgba(255, 255, 255, 0.21), 563px 501px 0 rgba(255, 255, 255, 0.29), 1508px 209px 0 rgba(255, 255, 255, 0.47), 1827px 178px 0 rgba(255, 255, 255, 0.44), 65px 61px 0 rgba(255, 255, 255, 0.24), 476px 1034px 0 rgba(255, 255, 255, 0.44), 1149px 407px 0 rgba(255, 255, 255, 0.49), 1436px 859px 0 rgba(255, 255, 255, 0.29), 1206px 569px 0 rgba(255, 255, 255, 0.52), 13px 326px 0 rgba(255, 255, 255, 0.48), 696px 569px 0 rgba(255, 255, 255, 0.26), 1563px 689px 0 rgba(255, 255, 255, 0.24), 778px 198px 0 rgba(255, 255, 255, 0.34), 704px 541px 0 rgba(255, 255, 255, 0.52), 1494px 940px 0 rgba(255, 255, 255, 0.41), 1888px 775px 0 rgba(255, 255, 255, 0.23), 600px 740px 0 rgba(255, 255, 255, 0.43), 1442px 142px 0 rgba(255, 255, 255, 0.22), 466px 592px 0 rgba(255, 255, 255, 0.59), 1751px 476px 0 rgba(255, 255, 255, 0.55), 778px 569px 0 rgba(255, 255, 255, 0.38), 1708px 747px 0 rgba(255, 255, 255, 0.27), 727px 429px 0 rgba(255, 255, 255, 0.47), 1437px 146px 0 rgba(255, 255, 255, 0.44), 350px 501px 0 rgba(255, 255, 255, 0.27), 777px 552px 0 rgba(255, 255, 255, 0.6), 1310px 449px 0 rgba(255, 255, 255, 0.47), 1726px 114px 0 rgba(255, 255, 255, 0.29), 65px 646px 0 rgba(255, 255, 255, 0.36), 135px 432px 0 rgba(255, 255, 255, 0.57), 1161px 644px 0 rgba(255, 255, 255, 0.29), 1022px 810px 0 rgba(255, 255, 255, 0.55), 1316px 939px 0 rgba(255, 255, 255, 0.26), 285px 505px 0 rgba(255, 255, 255, 0.5), 1103px 538px 0 rgba(255, 255, 255, 0.5), 877px 817px 0 rgba(255, 255, 255, 0.34), 283px 1043px 0 rgba(255, 255, 255, 0.4), 1547px 96px 0 rgba(255, 255, 255, 0.54), 313px 327px 0 rgba(255, 255, 255, 0.52), 864px 130px 0 rgba(255, 255, 255, 0.35), 1220px 958px 0 rgba(255, 255, 255, 0.41), 1133px 23px 0 rgba(255, 255, 255, 0.47), 234px 546px 0 rgba(255, 255, 255, 0.51), 696px 228px 0 rgba(255, 255, 255, 0.32), 323px 929px 0 rgba(255, 255, 255, 0.2), 1478px 539px 0 rgba(255, 255, 255, 0.59), 1560px 365px 0 rgba(255, 255, 255, 0.4), 217px 611px 0 rgba(255, 255, 255, 0.54), 1039px 407px 0 rgba(255, 255, 255, 0.26), 1561px 330px 0 rgba(255, 255, 255, 0.42), 1594px 1px 0 rgba(255, 255, 255, 0.44), 1000px 39px 0 rgba(255, 255, 255, 0.24), 743px 629px 0 rgba(255, 255, 255, 0.3), 493px 161px 0 rgba(255, 255, 255, 0.23), 995px 141px 0 rgba(255, 255, 255, 0.59), 1090px 257px 0 rgba(255, 255, 255, 0.25), 973px 338px 0 rgba(255, 255, 255, 0.31), 1786px 866px 0 rgba(255, 255, 255, 0.59), 1902px 411px 0 rgba(255, 255, 255, 0.49), 817px 764px 0 rgba(255, 255, 255, 0.38), 1059px 924px 0 rgba(255, 255, 255, 0.25), 460px 131px 0 rgba(255, 255, 255, 0.34), 1204px 471px 0 rgba(255, 255, 255, 0.44), 14px 145px 0 rgba(255, 255, 255, 0.48), 120px 468px 0 rgba(255, 255, 255, 0.23), 64px 676px 0 rgba(255, 255, 255, 0.23), 487px 570px 0 rgba(255, 255, 255, 0.47), 438px 270px 0 rgba(255, 255, 255, 0.49), 1807px 968px 0 rgba(255, 255, 255, 0.3), 968px 833px 0 rgba(255, 255, 255, 0.28), 198px 882px 0 rgba(255, 255, 255, 0.34), 841px 956px 0 rgba(255, 255, 255, 0.55), 110px 201px 0 rgba(255, 255, 255, 0.22), 1491px 694px 0 rgba(255, 255, 255, 0.52), 223px 509px 0 rgba(255, 255, 255, 0.28), 1098px 918px 0 rgba(255, 255, 255, 0.26), 375px 570px 0 rgba(255, 255, 255, 0.39), 1790px 154px 0 rgba(255, 255, 255, 0.38), 1764px 200px 0 rgba(255, 255, 255, 0.22), 1107px 30px 0 rgba(255, 255, 255, 0.59), 1897px 484px 0 rgba(255, 255, 255, 0.27), 994px 985px 0 rgba(255, 255, 255, 0.29), 821px 120px 0 rgba(255, 255, 255, 0.27), 4px 799px 0 rgba(255, 255, 255, 0.31), 1605px 931px 0 rgba(255, 255, 255, 0.31), 1426px 996px 0 rgba(255, 255, 255, 0.26), 607px 445px 0 rgba(255, 255, 255, 0.59), 1186px 124px 0 rgba(255, 255, 255, 0.5), 117px 102px 0 rgba(255, 255, 255, 0.43), 1029px 322px 0 rgba(255, 255, 255, 0.22), 1040px 164px 0 rgba(255, 255, 255, 0.54), 140px 139px 0 rgba(255, 255, 255, 0.47), 481px 826px 0 rgba(255, 255, 255, 0.25), 1823px 504px 0 rgba(255, 255, 255, 0.43), 81px 167px 0 rgba(255, 255, 255, 0.37), 1195px 1070px 0 rgba(255, 255, 255, 0.33), 534px 418px 0 rgba(255, 255, 255, 0.47), 643px 488px 0 rgba(255, 255, 255, 0.31), 268px 614px 0 rgba(255, 255, 255, 0.38), 1902px 148px 0 rgba(255, 255, 255, 0.2), 1272px 204px 0 rgba(255, 255, 255, 0.23), 436px 1036px 0 rgba(255, 255, 255, 0.31), 1911px 714px 0 rgba(255, 255, 255, 0.55), 1800px 500px 0 rgba(255, 255, 255, 0.35), 323px 897px 0 rgba(255, 255, 255, 0.53), 1440px 619px 0 rgba(255, 255, 255, 0.44), 1652px 16px 0 rgba(255, 255, 255, 0.47), 1135px 613px 0 rgba(255, 255, 255, 0.57), 212px 275px 0 rgba(255, 255, 255, 0.31), 1822px 219px 0 rgba(255, 255, 255, 0.5), 318px 557px 0 rgba(255, 255, 255, 0.31), 431px 702px 0 rgba(255, 255, 255, 0.28), 1298px 540px 0 rgba(255, 255, 255, 0.4), 514px 104px 0 rgba(255, 255, 255, 0.24), 867px 566px 0 rgba(255, 255, 255, 0.22), 683px 267px 0 rgba(255, 255, 255, 0.45), 536px 330px 0 rgba(255, 255, 255, 0.5), 1129px 875px 0 rgba(255, 255, 255, 0.42), 229px 154px 0 rgba(255, 255, 255, 0.58), 1415px 305px 0 rgba(255, 255, 255, 0.42);
    animation: twinkle 4.5s ease-in-out infinite alternate;
}

.stars-big {
    box-shadow: 1709px 756px 0 rgba(255, 255, 255, 0.76), 303px 880px 0 rgba(255, 255, 255, 0.56), 631px 746px 0 rgba(255, 255, 255, 0.9), 1630px 81px 0 rgba(255, 255, 255, 0.9), 430px 511px 0 rgba(255, 255, 255, 0.8), 724px 832px 0 rgba(255, 255, 255, 0.94), 1534px 316px 0 rgba(255, 255, 255, 0.92), 484px 332px 0 rgba(255, 255, 255, 0.94), 1660px 362px 0 rgba(255, 255, 255, 0.9), 50px 367px 0 rgba(255, 255, 255, 0.83), 680px 843px 0 rgba(255, 255, 255, 0.86), 1769px 508px 0 rgba(255, 255, 255, 0.62), 1612px 221px 0 rgba(255, 255, 255, 0.67), 79px 963px 0 rgba(255, 255, 255, 0.6), 1672px 942px 0 rgba(255, 255, 255, 0.66), 1680px 466px 0 rgba(255, 255, 255, 0.6), 1351px 395px 0 rgba(255, 255, 255, 0.68), 570px 142px 0 rgba(255, 255, 255, 0.94);
    width: 3px;
    height: 3px;
    animation: twinkle 3.2s ease-in-out infinite alternate-reverse;
}

@keyframes twinkle {
    0% {
        opacity: 0.35;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.ambient-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 900px;
    height: 900px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, rgba(237, 125, 49, 0.18) 0%, rgba(237, 125, 49, 0) 70%);
    filter: blur(10px);
    animation: pulseGlow 6s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.08);
    }
}

.waves-edge {
    position: absolute;
    width: 100vw;
    height: 260px;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    overflow: hidden;
    pointer-events: none;
}

.ribbon-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 200vw;
    height: 100%;
    transform: translate3d(0, 0, 0);
}

.line-glow {
    fill: none;
    stroke: url(#waveGradientWhite);
    stroke-width: 22px;
    animation: flowBob 22s ease-in-out infinite;
}

.line-1 {
    fill: none;
    stroke: url(#waveGradientOrange);
    stroke-width: 2px;
    animation: flowBob 8s ease-in-out infinite;
}

.line-2 {
    fill: none;
    stroke: rgba(255, 255, 255, 0.25);
    stroke-width: 1px;
    filter: url(#softBlur1);
    animation: flowBob 13s ease-in-out infinite reverse;
}

.line-3 {
    fill: none;
    stroke: rgba(237, 125, 49, 0.35);
    stroke-width: 6px;
    filter: url(#softBlur2);
    animation: flowBob 16s ease-in-out infinite;
}

.line-4 {
    fill: none;
    stroke: rgba(180, 180, 190, 0.25);
    stroke-width: 1.5px;
    filter: url(#softBlur1);
    animation: flowBob 20s ease-in-out infinite alternate;
}

.line-5 {
    fill: none;
    stroke: rgba(255, 255, 255, 0.4);
    stroke-width: 1.5px;
    animation: flowBob 10s ease-in-out infinite reverse;
}

@keyframes flowBob {
    0% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-50vw, -10px);
    }

    100% {
        transform: translate(-100vw, 0);
    }
}

/* =========================================
   2. LOGO ANIMATO
   ========================================= */
.logo-container-anim {
    position: relative;
    z-index: 100;
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 8rem;
    letter-spacing: -3px;
    display: flex;
    align-items: baseline;
    color: var(--white);
}

@media (max-width: 768px) {
    .logo-container-anim {
        font-size: 4rem;
        letter-spacing: -1px;
    }
}

.logo-orange {
    color: var(--orange);
}

.letter-i-wrapper {
    position: relative;
    display: inline-block;
    margin: 0 3px;
}

.animated-dot {
    position: absolute;
    top: var(--dot-offset-y);
    left: calc(50% + var(--dot-offset-x));
    width: 0.27em;
    height: 0.27em;
    background-color: var(--orange);
    border-radius: 50%;
    transform: translateX(-50%);
    transform-origin: bottom center;
    z-index: 2;
}

@keyframes disneyBounceTwice {
    0% {
        transform: translateX(-50%) translateY(0) scale(1, 1);
    }

    10% {
        transform: translateX(-50%) translateY(8px) scale(1.4, 0.6);
    }

    28% {
        transform: translateX(-50%) translateY(-130px) scale(0.7, 1.3);
    }

    42% {
        transform: translateX(-50%) translateY(0) scale(1.3, 0.7);
    }

    58% {
        transform: translateX(-50%) translateY(-65px) scale(0.85, 1.15);
    }

    72% {
        transform: translateX(-50%) translateY(0) scale(1.2, 0.8);
    }

    84% {
        transform: translateX(-50%) translateY(-15px) scale(0.95, 1.05);
    }

    94% {
        transform: translateX(-50%) translateY(0) scale(1.05, 0.95);
    }

    100% {
        transform: translateX(-50%) translateY(0) scale(1, 1);
    }
}

/* Piccola versione del pallino animato per il logo della navbar (hover) */
.nav-logo {
    font-family: 'Poppins', sans-serif;
    font-style: italic;
    font-weight: 900;
    font-size: 2rem;
    letter-spacing: -1px;
    color: var(--dark);
    text-decoration: none;
    display: flex;
    align-items: baseline;
    position: relative;
}

.nav-logo span {
    color: var(--orange);
    transition: transform 0.4s var(--ease-out);
    display: inline-block;
}

.nav-logo:hover span {
    animation: navDotHop 0.5s var(--ease-out);
}

@keyframes navDotHop {
    0% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-4px);
    }

    100% {
        transform: translateY(0);
    }
}

/* =========================================
   3. HEADER / NAVBAR — PREMIUM
   ========================================= */
header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 14px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
    position: sticky;
    top: 0;
    z-index: 200;
    transition: padding 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

header.is-scrolled {
    padding: 8px 40px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.08);
}

header.is-scrolled .nav-logo {
    font-size: 1.6rem;
}

.nav-links {
    display: flex;
    gap: 30px;
    list-style: none;
    font-weight: 500;
    font-size: 0.95rem;
}

.nav-links a {
    color: var(--dark);
    text-decoration: none;
    transition: color 0.3s;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--orange);
    transition: width 0.3s var(--ease-out);
}

.nav-links a:hover {
    color: var(--orange);
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-links a.is-current {
    color: var(--orange-deep);
}

.nav-links a.nav-cta {
    color: var(--orange-deep);
    font-weight: 600;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 22px;
}

/* Dropdown "I nostri servizi" */
.nav-item-dropdown {
    position: relative;
}

/* Bridge per mantenere l'hover tra link e tendina */
.nav-item-dropdown::before {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    height: 24px;
    z-index: 10;
}

.nav-item-dropdown>a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 6px;
    transition: transform 0.25s var(--ease-out);
}

.nav-item-dropdown.is-open>a::after,
.nav-item-dropdown:hover>a::after {
    transform: rotate(-135deg) translateY(2px);
}

.nav-dropdown {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translate(-50%, 8px);
    background: var(--white);
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(20, 23, 28, 0.14);
    padding: 10px;
    min-width: 240px;
    list-style: none;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out);
    z-index: 60;
}

.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown.is-open .nav-dropdown {
    opacity: 1;
    transform: translate(-50%, 0);
    pointer-events: auto;
}

.nav-dropdown a {
    display: block;
    padding: 11px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--dark);
    text-decoration: none;
}

.nav-dropdown a:hover {
    background: var(--orange-pale);
    color: var(--orange-deep);
}

.nav-dropdown a::before {
    display: none;
}

/* =========================================
   3b. MOBILE NAV — PREMIUM
   ========================================= */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 210;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 2px;
    transition: transform 0.4s var(--ease-out), opacity 0.3s, width 0.3s var(--ease-out);
    transform-origin: center;
}

/* Hamburger → X animation */
.nav-toggle.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.is-active span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.nav-toggle.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav-right {
        gap: 12px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        gap: 0;
        padding: 100px 32px 40px;
        transform: translateX(100%);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
        z-index: 199;
    }

    .nav-links.is-open {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--line);
        opacity: 0;
        transform: translateX(30px);
        transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
    }

    .nav-links.is-open li {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.is-open li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links.is-open li:nth-child(2) {
        transition-delay: 0.15s;
    }

    .nav-links.is-open li:nth-child(3) {
        transition-delay: 0.2s;
    }

    .nav-links.is-open li:nth-child(4) {
        transition-delay: 0.25s;
    }

    .nav-links.is-open li:nth-child(5) {
        transition-delay: 0.3s;
    }

    .nav-links a {
        display: block;
        padding: 18px 4px;
        font-size: 1.15rem;
        font-weight: 600;
    }

    .nav-dropdown {
        position: static;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        box-shadow: none;
        background: transparent;
        display: block;
        padding: 4px 0 4px 14px;
        min-width: 0;
    }

    .nav-dropdown a {
        color: var(--dark);
        padding: 10px 12px;
        font-size: 1rem;
    }

    .nav-item-dropdown>a::after {
        display: none;
    }

    body.nav-is-open {
        overflow: hidden;
    }
}

/* =========================================
   3c. BTN ORANGE — PREMIUM PULSE
   ========================================= */
.btn-orange {
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 14px 32px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    font-family: 'Inter', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
    position: relative;
    overflow: hidden;
}

.btn-orange::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-orange:hover {
    background: var(--orange-hover);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(237, 125, 49, 0.35);
}

.btn-orange:hover::before {
    opacity: 1;
}

.btn-orange:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(237, 125, 49, 0.25);
}

/* Pulse animation on CTA */
@keyframes ctaPulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(237, 125, 49, 0.4);
    }

    50% {
        box-shadow: 0 0 0 12px rgba(237, 125, 49, 0);
    }
}

.btn-orange.pulse-glow {
    animation: ctaPulse 2.5s ease-in-out infinite;
}

/* =========================================
   4. HERO (Home, con slider)
   ========================================= */
.hero-real {
    position: relative;
    background: radial-gradient(circle at 30% 20%, #232833 0%, var(--ink) 65%);
    overflow: hidden;
    padding: 120px 40px 100px;
    color: var(--white);
}

.hero-waves {
    top: 55%;
    opacity: 0.8;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
    margin: 0 auto;
    text-align: center;
}

.eyebrow {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--orange);
    border: 1px solid rgba(237, 125, 49, 0.4);
    border-radius: 999px;
    padding: 6px 16px;
    margin-bottom: 28px;
}

.eyebrow-dark {
    color: var(--orange-deep);
    border-color: rgba(199, 90, 30, 0.3);
}

.hero-slides {
    position: relative;
    min-height: 190px;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    pointer-events: none;
}

.hero-slide.is-active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    pointer-events: auto;
}

.hero-slide h1 {
    font-size: 2.75rem;
    line-height: 1.2;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.hero-slide p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.72);
}

/* Gradient text shimmer effect */
.hero-slide h1 {
    background: linear-gradient(90deg, var(--white) 0%, rgba(237, 125, 49, 0.7) 50%, var(--white) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShimmer 6s linear infinite;
}

@keyframes gradientShimmer {
    0% {
        background-position: 0% center;
    }

    100% {
        background-position: 200% center;
    }
}

.hero-actions {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.hero-dots {
    display: flex;
    gap: 8px;
}

.hero-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: background 0.3s, transform 0.3s, width 0.3s;
}

.hero-dots span.is-active {
    background: var(--orange);
    transform: scale(1.2);
    width: 24px;
    border-radius: 4px;
}

.section-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 80px;
    display: block;
}

.section-wave-top {
    position: absolute;
    top: -1px;
    bottom: auto;
}

/* =========================================
   4b. HERO PAGINE INTERNE (senza slider)
   ========================================= */
.page-hero {
    position: relative;
    background: radial-gradient(circle at 30% 20%, #232833 0%, var(--ink) 65%);
    overflow: hidden;
    padding: 96px 40px 90px;
    color: var(--white);
}

.page-hero .hero-content {
    max-width: 820px;
}

.page-hero .breadcrumb {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto 18px;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    display: flex;
    gap: 8px;
    justify-content: center;
}

.page-hero .breadcrumb a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
}

.page-hero .breadcrumb a:hover {
    color: var(--orange);
}

.page-hero h1 {
    position: relative;
    z-index: 2;
    font-size: 2.6rem;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 16px;
    text-align: center;
}

.page-hero .lede {
    position: relative;
    z-index: 2;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    max-width: 620px;
    margin: 0 auto 36px;
}

.page-hero .hero-actions {
    margin-top: 0;
}

/* =========================================
   5. REVEAL ON SCROLL — PREMIUM
   ========================================= */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger.is-visible>* {
    opacity: 1;
    transform: translateY(0);
}

.reveal-stagger>* {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal-stagger>*:nth-child(1) {
    transition-delay: 0.05s;
}

.reveal-stagger>*:nth-child(2) {
    transition-delay: 0.12s;
}

.reveal-stagger>*:nth-child(3) {
    transition-delay: 0.19s;
}

.reveal-stagger>*:nth-child(4) {
    transition-delay: 0.26s;
}

/* =========================================
   6. SEZIONE INTRO DI PAGINA
   ========================================= */
.intro-copy {
    padding: 96px 40px 40px;
    background: var(--white);
}

.intro-copy .intro-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 60px;
    align-items: start;
}

.intro-copy .intro-label {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--orange-deep);
}

.intro-copy .intro-text h2 {
    font-size: 2rem;
    letter-spacing: -0.5px;
    color: var(--dark);
    margin-bottom: 18px;
}

.intro-copy .intro-text p {
    color: var(--slate);
    line-height: 1.75;
    margin-bottom: 16px;
    font-size: 1.02rem;
}

.intro-copy .intro-text p strong {
    color: var(--dark);
}

@media (max-width: 800px) {
    .intro-copy .intro-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* =========================================
   7. SERVIZI (griglia card) — 3D TILT
   ========================================= */
.services {
    padding: 90px 40px 110px;
    background: var(--bg-light);
}

.section-head {
    max-width: 640px;
    margin: 0 auto 56px;
    text-align: center;
}

.section-head h2 {
    font-size: 2.25rem;
    letter-spacing: -0.5px;
    color: var(--dark);
}

.services-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 32px 26px;
    transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.3s;
    will-change: transform;
    transform-style: preserve-3d;
    perspective: 800px;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(30, 30, 30, 0.12);
    border-color: rgba(237, 125, 49, 0.3);
}

.service-icon {
    font-size: 1.8rem;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--orange-pale);
    border-radius: 14px;
    margin-bottom: 20px;
    transition: transform 0.4s var(--ease-out), box-shadow 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(-5deg);
    box-shadow: 0 8px 24px rgba(237, 125, 49, 0.2);
}

.service-card h3 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--dark);
    line-height: 1.35;
}

.service-card p {
    font-size: 0.95rem;
    color: var(--slate);
    line-height: 1.55;
    margin-bottom: 18px;
}

.service-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--orange-deep);
    text-decoration: none;
    transition: letter-spacing 0.3s var(--ease-out);
}

.service-link:hover {
    text-decoration: underline;
    letter-spacing: 0.5px;
}

/* Card più semplici a 3 colonne (tipologie/caratteristiche nelle pagine interne) */
.type-grid {
    max-width: 1100px;
    margin: 56px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.type-card {
    background: var(--bg-light);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 30px 26px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: rgba(237, 125, 49, 0.35);
}

.type-card .type-mark {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--orange-deep);
    font-size: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: block;
}

.type-card h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 10px;
}

.type-card p {
    font-size: 0.93rem;
    color: var(--slate);
    line-height: 1.6;
}

@media (max-width: 900px) {

    .services-grid,
    .type-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {

    .services-grid,
    .type-grid {
        grid-template-columns: 1fr;
    }

    .hero-slide h1 {
        font-size: 2rem;
    }

    .page-hero h1 {
        font-size: 1.9rem;
    }
}

/* =========================================
   8. PERCHÉ SCEGLIERCI (fascia scura)
   ========================================= */
.why-us {
    position: relative;
    background: var(--ink);
    padding: 100px 40px;
    overflow: hidden;
}

.why-grid {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.why-mark {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--orange);
    letter-spacing: 1px;
    margin-bottom: 14px;
}

.why-item h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.why-item p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
    line-height: 1.55;
}

.why-item {
    transition: transform 0.3s var(--ease-out);
    padding: 28px 24px;
    border-radius: 16px;
    border: 1px solid transparent;
}

.why-item:hover {
    transform: translateY(-6px);
    background: var(--glass-bg);
    border-color: var(--glass-border);
}

/* =========================================
   9. TRUST / COUNTER SECTION — NEW
   ========================================= */
.trust-section {
    padding: 80px 40px;
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.trust-section::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(237, 125, 49, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.trust-grid {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    text-align: center;
}

.trust-item {
    padding: 30px 20px;
    border-radius: 16px;
    transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.trust-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
}

.trust-number {
    font-family: 'Poppins', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: var(--orange);
    line-height: 1;
    margin-bottom: 8px;
    display: block;
}

.trust-label {
    font-size: 0.9rem;
    color: var(--slate);
    font-weight: 500;
}

@media (max-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .trust-number {
        font-size: 2.4rem;
    }
}

/* =========================================
   9b. QUOTE / CITAZIONE
   ========================================= */
.quote-block {
    max-width: 900px;
    margin: 56px auto 0;
    background: var(--ink);
    border-radius: 18px;
    padding: 46px 48px;
    color: rgba(255, 255, 255, 0.86);
    position: relative;
    overflow: hidden;
}

.quote-block::before {
    content: '\201C';
    position: absolute;
    top: -30px;
    left: 20px;
    font-family: 'Poppins', sans-serif;
    font-size: 9rem;
    color: rgba(237, 125, 49, 0.18);
    font-weight: 900;
    line-height: 1;
}

.quote-block p {
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
    line-height: 1.8;
    font-style: italic;
}

.quote-block .quote-cite {
    position: relative;
    z-index: 1;
    display: block;
    margin-top: 20px;
    font-style: normal;
    font-size: 0.85rem;
    color: var(--orange);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =========================================
   10. LISTA CARATTERISTICHE (checklist a icona)
   ========================================= */
.feature-list {
    max-width: 900px;
    margin: 50px auto 0;
    display: grid;
    gap: 18px;
}

.feature-row {
    display: flex;
    gap: 18px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-row:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-soft);
}

.feature-row .feature-dot {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--orange-pale);
    color: var(--orange-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
}

.feature-row p {
    color: var(--slate);
    line-height: 1.65;
    font-size: 0.97rem;
}

.feature-row p strong {
    color: var(--dark);
}

/* =========================================
   11. DOCUMENTAZIONE — TAB PILL
   ========================================= */
.docs-section {
    padding: 100px 40px;
    background: var(--bg-light);
}

.docs-wrap {
    max-width: 900px;
    margin: 0 auto;
}

.doc-tabs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 34px;
}

.doc-tab {
    background: var(--white);
    border: 1px solid var(--line);
    color: var(--slate);
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
}

.doc-tab:hover {
    border-color: var(--orange);
    color: var(--orange-deep);
}

.doc-tab.is-active {
    background: var(--orange);
    border-color: var(--orange);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(237, 125, 49, 0.3);
}

.doc-panel {
    display: none;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 36px 40px;
}

.doc-panel.is-active {
    display: block;
    animation: fadeUp 0.4s var(--ease-out);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.doc-panel h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    color: var(--orange-deep);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 18px;
}

.doc-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.doc-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--dark);
    font-size: 0.98rem;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--line);
}

.doc-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.doc-list li::before {
    content: '';
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--orange);
    margin-top: 7px;
}

.doc-sub {
    margin: 18px 0 6px 20px;
    font-weight: 600;
    color: var(--slate);
    font-size: 0.88rem;
}

.doc-note {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--slate);
    font-style: italic;
}

/* =========================================
   12. AZIENDA / CHI SIAMO
   ========================================= */
.about {
    position: relative;
    padding: 110px 40px 100px;
    background: var(--white);
}

.about-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 70px;
    align-items: center;
}

.about-text h2 {
    font-size: 2rem;
    letter-spacing: -0.5px;
    color: var(--dark);
    margin: 14px 0 22px;
}

.about-text p {
    color: var(--slate);
    line-height: 1.7;
    margin-bottom: 18px;
}

.about-figure {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-badge {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    box-shadow: var(--shadow-lift);
    animation: badgeFloat 4s ease-in-out infinite;
}

@keyframes badgeFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.about-badge strong {
    font-family: 'Poppins', sans-serif;
    font-size: 1.6rem;
    letter-spacing: 1px;
}

.about-badge span {
    font-size: 0.95rem;
    opacity: 0.9;
    margin-top: 4px;
}

/* =========================================
   13. CTA BAND
   ========================================= */
.cta-band {
    text-align: center;
    padding: 90px 40px;
    background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 100%);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.cta-band::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -20%;
    width: 140%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    animation: ctaGlow 8s ease-in-out infinite;
    pointer-events: none;
}

@keyframes ctaGlow {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(10%, -10%);
    }
}

.cta-band h2 {
    font-size: 2rem;
    max-width: 640px;
    margin: 0 auto 12px;
    letter-spacing: -0.5px;
    position: relative;
}

.cta-band p {
    font-size: 1.05rem;
    opacity: 0.9;
    margin-bottom: 32px;
    position: relative;
}

.cta-band .btn-orange {
    background: var(--white);
    color: var(--orange-deep);
    position: relative;
}

.cta-band .btn-orange:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--orange-deep);
}

/* =========================================
   14. CONTATTI
   ========================================= */
.contact {
    padding: 100px 40px;
    background: var(--bg-light);
}

.contact-grid {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 60px;
    align-items: stretch;
}

.contact-info h2 {
    font-size: 2rem;
    letter-spacing: -0.5px;
    color: var(--dark);
    margin: 14px 0 28px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    color: var(--slate);
    line-height: 1.6;
}

.contact-list li strong {
    color: var(--dark);
}

.contact-list a {
    color: var(--orange-deep);
    text-decoration: none;
    font-weight: 600;
}

.contact-map {
    border-radius: 16px;
    overflow: hidden;
    min-height: 320px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    min-height: 320px;
    border: 0;
}

/* =========================================
   14b. FAQ ACCORDION — NEW
   ========================================= */
.faq-section {
    padding: 90px 40px;
    background: var(--bg-light);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.faq-item.is-open {
    border-color: rgba(237, 125, 49, 0.3);
    box-shadow: 0 8px 30px rgba(237, 125, 49, 0.08);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 28px;
    font-family: 'Poppins', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--dark);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    text-align: left;
    transition: color 0.3s;
}

.faq-question:hover {
    color: var(--orange-deep);
}

.faq-question .faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--orange-pale);
    color: var(--orange-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: transform 0.4s var(--ease-out), background 0.3s;
}

.faq-item.is-open .faq-icon {
    transform: rotate(45deg);
    background: var(--orange);
    color: var(--white);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out), padding 0.5s var(--ease-out);
    padding: 0 28px;
}

.faq-item.is-open .faq-answer {
    max-height: 400px;
    padding: 0 28px 24px;
}

.faq-answer p {
    color: var(--slate);
    line-height: 1.7;
    font-size: 0.95rem;
}

/* =========================================
   15. FOOTER — PREMIUM REDESIGN
   ========================================= */
.site-footer {
    background: linear-gradient(180deg, var(--ink) 0%, #0d0f13 100%);
    color: rgba(255, 255, 255, 0.65);
    padding: 0;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, rgba(237, 125, 49, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Footer main area */
.footer-main {
    padding: 80px 40px 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 50px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-logo {
    color: var(--white);
    font-size: 1.6rem;
}

.footer-brand p {
    margin-top: 14px;
    font-size: 0.9rem;
    max-width: 260px;
    line-height: 1.6;
}

/* OAM Badge in footer */
.footer-oam-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.82rem;
    transition: all 0.3s var(--ease-out);
}

.footer-oam-badge:hover {
    background: rgba(237, 125, 49, 0.1);
    border-color: rgba(237, 125, 49, 0.3);
    color: var(--orange);
}

.footer-oam-badge .oam-shield {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: linear-gradient(135deg, #2E8B57, #1a6b3c);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.6rem;
    letter-spacing: 0.5px;
    flex-shrink: 0;
}

.footer-oam-badge .oam-text strong {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.85rem;
}

.footer-col h4 {
    color: var(--white);
    font-size: 0.82rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--orange);
    border-radius: 2px;
}

.footer-col a,
.footer-col span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 14px;
    transition: color 0.3s, transform 0.3s var(--ease-out);
}

.footer-col a:hover {
    color: var(--orange);
    transform: translateX(4px);
}

.footer-col .footer-icon {
    width: 16px;
    height: 16px;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.footer-col a:hover .footer-icon {
    opacity: 1;
}

/* Social row */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s var(--ease-out);
    margin-bottom: 0;
    transform: none;
}

.footer-social a:hover {
    background: rgba(237, 125, 49, 0.15);
    border-color: rgba(237, 125, 49, 0.3);
    color: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(237, 125, 49, 0.2);
}

/* Footer bottom copyright */
.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-bottom a:hover {
    color: var(--orange);
}

@media (max-width: 900px) {

    .services-grid,
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .quote-block {
        padding: 34px 26px;
    }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .doc-panel {
        padding: 26px 22px;
    }
}

/* =========================================
   16. MODALE "RICHIEDI PREVENTIVO"
   ========================================= */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-box {
    background: var(--white);
    border-radius: var(--radius-2xl);
    max-width: 560px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 40px 40px 32px;
    position: relative;
    transform: translateY(24px) scale(0.98);
    transition: transform 0.35s var(--ease-out);
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.35);
}

.modal-overlay.is-open .modal-box {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: var(--bg-light);
    color: var(--dark);
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
}

.modal-close:hover {
    background: var(--orange-pale);
    color: var(--orange-deep);
    transform: rotate(90deg);
}

.modal-box h3 {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 6px;
}

.modal-box .modal-sub {
    color: var(--slate);
    font-size: 0.92rem;
    margin-bottom: 26px;
}

.modal-form {
    display: grid;
    gap: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--slate);
    margin-bottom: 6px;
}

.field input,
.field select {
    width: 100%;
    padding: 11px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--dark);
    background: var(--bg-light);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(237, 125, 49, 0.1);
}

.field-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 4px;
}

.field-checkbox input {
    width: 16px;
    height: 16px;
    margin-top: 3px;
    accent-color: var(--orange);
}

.field-checkbox label {
    font-size: 0.8rem;
    color: var(--slate);
    line-height: 1.5;
}

.modal-form .btn-orange {
    margin-top: 6px;
    width: 100%;
    padding: 14px;
}

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

    .modal-box {
        padding: 32px 22px 26px;
    }
}

.modal-success {
    display: none;
    text-align: center;
    padding: 20px 0 10px;
}

.modal-success.is-active {
    display: block;
    animation: fadeUp 0.5s var(--ease-out);
}

.modal-success .success-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--orange-pale);
    color: var(--orange-deep);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    margin: 0 auto 18px;
    animation: successPop 0.6s var(--ease-out);
}

@keyframes successPop {
    0% {
        transform: scale(0);
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

.modal-success h3 {
    margin-bottom: 10px;
}

.modal-success p {
    color: var(--slate);
    font-size: 0.95rem;
}

/* =========================================
   17. SCROLL TO TOP — PREMIUM
   ========================================= */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--ink);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 100;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s var(--ease-out);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.scroll-top.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--orange);
    border-color: var(--orange);
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(237, 125, 49, 0.3);
}

/* Progress ring inside scroll-top */
.scroll-top svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.scroll-top .progress-ring {
    fill: none;
    stroke: var(--orange);
    stroke-width: 2;
    stroke-dasharray: 176;
    stroke-dashoffset: 176;
    transition: stroke-dashoffset 0.1s;
}

/* =========================================
   18. WHATSAPP FLOATING BUTTON
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    text-decoration: none;
    z-index: 100;
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.35);
    transition: all 0.3s var(--ease-out);
    animation: whatsappPulse 3s ease-in-out infinite;
}

@keyframes whatsappPulse {

    0%,
    100% {
        box-shadow: 0 6px 30px rgba(37, 211, 102, 0.35);
    }

    50% {
        box-shadow: 0 6px 30px rgba(37, 211, 102, 0.35), 0 0 0 12px rgba(37, 211, 102, 0.12);
    }
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 35px rgba(37, 211, 102, 0.5);
}

/* =========================================
   19. COOKIE BANNER
   ========================================= */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(20, 23, 28, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.8);
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.5s var(--ease-out);
    font-size: 0.88rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.cookie-banner.is-visible {
    transform: translateY(0);
}

.cookie-banner p {
    max-width: 700px;
    line-height: 1.5;
}

.cookie-banner a {
    color: var(--orange);
    text-decoration: underline;
}

.cookie-banner .cookie-accept {
    background: var(--orange);
    color: var(--white);
    border: none;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.3s;
}

.cookie-banner .cookie-accept:hover {
    background: var(--orange-hover);
}

@media (max-width: 640px) {
    .cookie-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px 24px;
    }
}

/* =========================================
   20. GLOBAL RESPONSIVE TWEAKS
   ========================================= */
@media (max-width: 900px) {
    .hero-real {
        padding: 100px 24px 80px;
    }

    .page-hero {
        padding: 80px 24px 70px;
    }

    .services,
    .why-us,
    .cta-band,
    .contact,
    .faq-section,
    .trust-section,
    .about,
    .docs-section,
    .intro-copy {
        padding-left: 24px;
        padding-right: 24px;
    }

    .footer-main {
        padding: 50px 24px 30px;
    }

    .footer-bottom {
        padding: 20px 24px;
    }

    header {
        padding: 12px 20px;
    }

    header.is-scrolled {
        padding: 8px 20px;
    }
}

@media (max-width: 560px) {
    .hero-slide h1 {
        font-size: 1.8rem;
    }

    .page-hero h1 {
        font-size: 1.7rem;
    }

    .section-head h2,
    .about-text h2,
    .contact-info h2 {
        font-size: 1.6rem;
    }

    .cta-band h2 {
        font-size: 1.5rem;
    }

    .intro-copy .intro-text h2 {
        font-size: 1.5rem;
    }

    .trust-number {
        font-size: 2rem;
    }

    .about-badge {
        width: 160px;
        height: 160px;
    }

    .about-badge strong {
        font-size: 1.2rem;
    }

    .about-badge span {
        font-size: 0.8rem;
    }

    .whatsapp-float {
        width: 48px;
        height: 48px;
        font-size: 1.3rem;
        bottom: 20px;
        left: 20px;
    }

    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }
}

/* Focus visibile per accessibilità */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}