/* Riscovra visual refresh 2026 - shared pages */
body {
    overflow-x: hidden;
}

header.container {
    position: sticky;
    top: 1rem;
    z-index: 80;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    box-shadow: 0 18px 45px rgba(0,0,0,0.05);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    padding-top: 0.85rem !important;
    padding-bottom: 0.85rem !important;
    margin-top: 1rem;
}

header.container > a .w-10 {
    box-shadow: 0 10px 24px rgba(59,130,246,0.25);
}

header nav a {
    position: relative;
    padding: 0.4rem 0;
}

header nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background-color: #3b82f6;
    border-radius: 9999px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.24s ease;
}

header nav a:hover::after {
    transform: scaleX(1);
}

#search-toggle {
    border-radius: 9999px;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

#search-toggle:hover {
    background-color: #f7f9fc;
    transform: translateY(-1px);
}

.hero-section {
    overflow: hidden;
    min-height: 720px;
}

.hero-section .container {
    position: relative;
    z-index: 2;
}

.hero-section p.text-gray-400 {
    display: inline-flex !important;
    align-items: center;
    gap: 0.55rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid #e5e7eb;
    border-radius: 9999px;
    background-color: #ffffff;
    box-shadow: 0 10px 28px rgba(0,0,0,0.05);
}

.hero-section p.text-gray-400::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 9999px;
    background-color: #3b82f6;
    box-shadow: 0 0 0 5px rgba(59,130,246,0.1);
    flex: 0 0 auto;
}

.hero-section h1 {
    max-width: 680px;
}

.hero-section p.text-lg.text-gray-500 {
    max-width: 620px !important;
}

#tool-demo,
#esempio-report,
#chi-sono,
#faq,
#approfondimenti-seo,
#clausole-medici,
#clausole-pa,
#demo-partner,
#abbonamento,
#btn-submit-analisi,
.section-anchor {
    scroll-margin-top: 6.25rem;
}

.hero-pc-picture {
    cursor: default;
    pointer-events: none;
    user-select: none;
}

.hero-pc-picture img {
    transform: translateZ(0);
}

.btn-custom {
    border-radius: 0.85rem !important;
    box-shadow: 0 18px 38px rgba(59,130,246,0.25);
}

.btn-custom:hover {
    box-shadow: 0 22px 48px rgba(59,130,246,0.25);
}

.hero-section a.text-blue-600.font-bold {
    border-radius: 9999px;
    padding: 0.85rem 1rem;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.hero-section a.text-blue-600.font-bold:hover {
    background-color: #f7f9fc;
    transform: translateY(-1px);
}

.features-section article,
#tool-demo a.group,
.faq-card {
    box-shadow: 0 18px 48px rgba(0,0,0,0.05);
}

.features-section article {
    position: relative;
    min-height: 100%;
    padding: 2rem;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    background-color: #ffffff;
}

.features-section article .text-4xl {
    width: 3.75rem;
    height: 3.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1.25rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 34px rgba(59,130,246,0.1);
}

.riscovra-wrapper #tool-demo {
    position: relative;
}

#tool-demo a.group {
    border-radius: 1.5rem !important;
    transform: translateZ(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

#tool-demo a.group:hover {
    transform: translateY(-6px);
    box-shadow: 0 28px 66px rgba(0,0,0,0.15);
}

#tool-demo .lg\:w-7\/12 .bg-slate-900 {
    position: relative;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,0.15);
}

#tool-demo .lg\:w-7\/12 .bg-slate-900::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 1px solid #ffffff;
    border-radius: inherit;
    opacity: 0.08;
    pointer-events: none;
}

#tool-demo .lg\:w-7\/12 .bg-slate-900 > * {
    position: relative;
    z-index: 1;
}

#tool-demo .risk-index-panel {
    transform: none !important;
}

#tool-demo .risk-index-summary {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: end;
    gap: 1.25rem;
}

#tool-demo .risk-index-value,
#tool-demo .risk-index-badge {
    white-space: nowrap;
}

#tool-demo .risk-index-badge {
    align-self: end;
}

#tool-demo .risk-index-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) max-content;
    align-items: center;
    gap: 1rem;
}

#tool-demo .risk-index-row span:first-child {
    min-width: 0;
    line-height: 1.25;
}

#tool-demo .risk-index-row span:last-child {
    text-align: right;
    white-space: nowrap;
}

.sezione-chi-sono {
    background-color: #ffffff;
}

.sezione-chi-sono .max-w-3xl {
    position: relative;
}

.sezione-chi-sono .max-w-3xl::before {
    content: "";
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    top: -2rem;
    height: 1px;
    background-color: #e5e7eb;
}

#approfondimenti-seo article {
    position: relative;
    padding: 1.5rem 0 1.5rem 1.5rem;
    border-left: 2px solid #e5e7eb;
}

.faq-card {
    border: 1px solid #e5e7eb;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-card:hover {
    transform: translateY(-3px);
    border-color: #3b82f6;
    box-shadow: 0 24px 56px rgba(0,0,0,0.15);
}

body.bg-white {
    background-color: #f7f9fc;
}

body.bg-white main.max-w-4xl {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1.5rem;
    box-shadow: 0 18px 48px rgba(0,0,0,0.05);
    margin-top: 3rem;
    margin-bottom: 4rem;
}

body.bg-white main.max-w-4xl > .mb-10 {
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 2rem;
}

body.bg-white .prose h2 {
    border-left: 3px solid #3b82f6;
    padding-left: 0.9rem;
}

body.bg-white .prose h3,
body.bg-white .prose h4 {
    letter-spacing: 0;
}

body.bg-white .prose table {
    border-radius: 0.75rem;
    overflow: hidden;
}

body.bg-white .btn-back {
    border-radius: 9999px;
    box-shadow: 0 18px 38px rgba(59,130,246,0.25);
}

.reveal-on-scroll {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
    transition: opacity 0.42s cubic-bezier(0.16, 1, 0.3, 1), transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.reveal-left {
    transform: translate3d(-18px, 0, 0);
}

.reveal-on-scroll.reveal-right {
    transform: translate3d(18px, 0, 0);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

@media (min-width: 768px) {
    .hero-section .md\:w-1\/2.text-left {
        padding-top: 2rem;
    }
}

@media (max-width: 767px) {
    header.container {
        top: 0;
        margin-top: 0;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
        box-shadow: 0 12px 30px rgba(0,0,0,0.05);
    }

    body.bg-white header.container {
        gap: 1rem;
        flex-wrap: wrap;
    }

    body.bg-white .btn-back {
        width: 100%;
        justify-content: center;
    }

    body.bg-white main.max-w-4xl {
        margin-top: 1.5rem;
        margin-bottom: 2rem;
        border-left: 0;
        border-right: 0;
        border-radius: 0;
    }

    .hero-section {
        min-height: auto;
    }

    .features-section article {
        padding: 1.4rem;
    }

    #tool-demo,
    #esempio-report,
    #chi-sono,
    #faq,
    #approfondimenti-seo,
    #clausole-medici,
    #clausole-pa,
    #demo-partner,
    #abbonamento,
    #btn-submit-analisi,
    .section-anchor {
        scroll-margin-top: 5.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
    }
}
