html {
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Roboto', sans-serif;
    overflow-x: hidden;
    max-width: 100vw;
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

h1, h2, h3, .font-serif-title {
    font-family: 'Playfair Display', Georgia, serif;
}

.gradient-text {
    background: linear-gradient(135deg, #3B82F6, #D946EF, #F97316);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.glass-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}
.hero-bg {
    background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
}

/* Trusted logos marquee */
.trusted-logos-marquee {
    position: relative;
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
    mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
}
.trusted-logos-track {
    display: flex;
    width: max-content;
    animation: trustedLogosScroll 50s linear infinite;
    will-change: transform;
}
.trusted-logos-marquee:hover .trusted-logos-track {
    animation-play-state: paused;
}
.trusted-logos-group {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3.5rem);
    padding-right: clamp(1.5rem, 3vw, 3.5rem);
}
.trusted-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: clamp(8.5rem, 13vw, 11rem);
    height: 4.5rem;
    flex: 0 0 auto;
}
.trusted-logo img, .trusted-logo svg {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 3.25rem;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.64;
    transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}
.trusted-logo:hover img, .trusted-logo:hover svg {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.04);
}
@keyframes trustedLogosScroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .trusted-logos-track {
        animation-play-state: paused;
    }
}



/* Form Custom Styles & Focus State A11y */
.form-step {
    display: none;
    animation: fadeIn 0.5s ease;
}
.form-step.active {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
.option-card {
    border: 2px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.option-card:hover {
    border-color: #cbd5e1;
    background-color: #f8fafc;
}
.option-card.selected {
    border-color: #3B82F6;
    background-color: #eff6ff;
}
/* A11y: Keyboard Focus State for Radio Cards */
.option-card:has(input:focus-visible) {
    outline: 2px solid #3B82F6;
    outline-offset: 2px;
    border-color: #3B82F6;
}

/* --- Testo Rotante CSS --- */
.text-rotate-container {
    display: inline-block;
    min-width: min(300px, 90vw);
    max-width: 100%;
    text-align: left;
}
.text-rotate {
    display: inline-block;
    transition: opacity 0.4s ease-in-out, transform 0.4s ease-in-out;
}
.text-rotate.fade-out {
    opacity: 0;
    transform: translateY(10px);
}

/* FAQ Custom Styles */
.faq-content {
    transition: max-height 0.3s ease-in-out;
    max-height: 0;
    overflow: hidden;
}

/* --- Animazione Badge in alto --- */
.badge-slider {
    display: grid;
    grid-template-areas: "testo";
    align-items: center;
}
.badge-slider > span {
    grid-area: testo;
    animation: slideFadeBadge 6s infinite;
    opacity: 0;
    white-space: nowrap;
}
.badge-slider > span:nth-child(1) {
    animation-delay: 0s;
}
.badge-slider > span:nth-child(2) {
    animation-delay: 3s;
}
@keyframes slideFadeBadge {
    0% { opacity: 0; transform: translateY(10px); }
    5%, 45% { opacity: 1; transform: translateY(0); }
    50%, 100% { opacity: 0; transform: translateY(-10px); }
}
/* --- Scroll Reveal & Enhanced Site Animations --- */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.pulse-subtle {
    animation: pulseSubtle 3s infinite ease-in-out;
}
@keyframes pulseSubtle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.02); }
}

.gradient-border-glow {
    position: relative;
}
.gradient-border-glow::after {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, #3B82F6, #D946EF, #F97316);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}
.gradient-border-glow:hover::after {
    opacity: 0.8;
}

/* Process Comparison Bars Animation */
.process-bar-fill {
    transition: width 1.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

