/* ============================================================
   PRISMA DIGITAL — Becklyn-Inspired Dark Theme
   ============================================================ */

:root {
    --bg: #0d0d0d;
    --bg-card: #141414;
    --bg-card-hover: #1a1a1a;
    --bg-elevated: #1e1e1e;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-muted: #606060;
    --border: #222222;
    --border-light: #2a2a2a;
    --accent-gradient: linear-gradient(235deg, #0061FF 0%, #60EFFF 100%);
    --accent-blue: #0061FF;
    --accent-violet: #3080FF;
    --accent-crimson: #60EFFF;
    --accent-cyan: #60EFFF;
    --accent-olive: #0045B8;
    --radius-section: 2rem;
    --radius-card: 1.5rem;
    --radius-pill: 100px;
    --font-sans: 'Syne', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --backdrop-bg: rgba(13, 13, 13, 0.6);
    --backdrop-blur: blur(20px);
}

/* ============ RESET ============ */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

ul,
ol {
    list-style: none;
}

button {
    font: inherit;
    border: none;
    background: none;
    cursor: pointer;
    color: inherit;
}

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

/* ============ TOP NAVIGATION ============ */


.nav-top.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

.nav-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--backdrop-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

.nav-top.scrolled::before {
    opacity: 1;
}

.nav-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.nav-logo-img {
    height: 40px;
    width: auto;
    display: block;
    object-fit: contain;
}

.nav-top-right {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-cta-top {
    padding: 0.7rem 1.8rem;
    background: var(--text-primary);
    color: var(--bg);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.3s var(--transition-smooth);
    font-family: var(--font-body);
}

.nav-cta-top:hover {
    background: var(--accent-gradient);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 10px 30px rgba(0, 97, 255, 0.30);
}

/* ============ BOTTOM NAVIGATION (Pill) ============ */
.nav-bottom {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(calc(100% + 4rem));
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: var(--radius-pill);
    background: rgba(20, 20, 20, 0.7);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s var(--transition-smooth),
        opacity 0.5s var(--transition-smooth);
    opacity: 0;
}

.nav-bottom.visible {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.nav-bottom-links {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.nav-bottom-link {
    position: relative;
    z-index: 1;
    padding: 0.75rem 1.4rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
    transition: color 0.35s var(--transition-smooth),
        text-shadow 0.35s ease;
    white-space: nowrap;
    border-radius: var(--radius-pill);
}

.nav-bottom-link:hover {
    color: var(--text-primary);
}

.nav-bottom-link.active {
    color: #fff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}

/* Sliding pill indicator */
.nav-pill-indicator {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: var(--radius-pill);
    background: var(--accent-gradient);
    box-shadow: 0 4px 20px rgba(0, 97, 255, 0.35),
        0 0 40px rgba(96, 239, 255, 0.25);
    transition: transform 0.35s var(--transition-smooth),
        width 0.35s var(--transition-smooth),
        opacity 0.35s ease;
    z-index: 0;
    pointer-events: none;
    opacity: 0;
}

.nav-bottom-links.has-active .nav-pill-indicator {
    opacity: 1;
}

/* ============ HERO SECTION ============ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    padding: 0 3rem 8rem;
    overflow: hidden;
}

.hero-gradient-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 1.5s ease;
}

.hero-gradient-bg.visible {
    opacity: 0.15;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    padding-top: 2rem;
    /* spazio per non sovrapporsi alla nav-top */
    padding-bottom: 4rem;
}

/* ── Logo nella hero — allineato con il bordo sinistro del titolo ── */
.hero-logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    margin-top: -10px;
    /* alzato di 10px — cambia questo valore per regolare */
    margin-bottom: 3rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.8s var(--transition-smooth) 0.2s,
        transform 0.8s var(--transition-smooth) 0.2s;
}

.hero-logo-link.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero-logo-img {
    height: 55px;
    width: auto;
    display: block;
    object-fit: contain;
}

.hero-title {
    font-family: var(--font-sans);
    font-size: clamp(3.2rem, 8vw, 7.5rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.04em;
    color: var(--text-primary);
    margin-bottom: 0;
}

.hero-title .line {
    display: block;
    overflow: hidden;
}

.hero-title .line-inner {
    display: block;
    transform: translateY(110%);
    transition: transform 0.9s var(--transition-smooth);
}

.hero-title .line-inner.revealed {
    transform: translateY(0);
}

.hero-title .italic-accent {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.02em;
}

.hero-title .gradient-word,
.hero-subtitle .gradient-word,
.section-title .gradient-word,
.contact-title .gradient-word {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-title strong {
    font-weight: 800;
}

/* ── Hero carousel — 3rd line vertical text ticker ── */
.line--carousel {
    /* height locked to one line — prevents layout shift during animation */
    height: 1.02em;
    position: relative;
}

.carousel-word {
    display: block;
    transform: translateY(110%);
    opacity: 0;
    transition: transform 0.7s var(--transition-smooth),
        opacity 0.55s var(--transition-smooth);
    will-change: transform, opacity;
}

.carousel-word.word-enter {
    transform: translateY(0);
    opacity: 1;
}

.carousel-word.word-leave {
    transform: translateY(-110%);
    opacity: 0;
}

.hero-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 5rem;
    gap: 4rem;
}

.hero-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 600px;
    line-height: 1.6;
    font-weight: 400;
    letter-spacing: -0.01em;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s var(--transition-smooth) 0.8s;
}

.staggered-subtitle {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.staggered-subtitle .stag-1 { margin-left: 0; }
.staggered-subtitle .stag-2 { margin-left: 1.5rem; }
.staggered-subtitle .stag-3 { margin-left: 3rem; }

@media (max-width: 768px) {
    .staggered-subtitle .stag-2,
    .staggered-subtitle .stag-3 {
        margin-left: 0;
    }
}

.hero-subtitle.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero-stats {
    display: flex;
    gap: 4rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s var(--transition-smooth) 1s;
}

.hero-stats.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero-stat {
    text-align: left;
}

.hero-stat-number {
    font-family: var(--font-sans);
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 0.3rem;
}

.hero-stat-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: -0.01em;
}

.hero-scroll-cue {
    position: absolute;
    bottom: 3rem;
    left: 3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.8s var(--transition-smooth) 1.2s;
}

.hero-scroll-cue.revealed {
    opacity: 1;
    transform: translateY(0);
}

.hero-scroll-cue .scroll-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(1.3);
    }
}

/* ============ TRUST / LOGOS BAR ============ */
.trust-bar {
    padding: 5rem 3rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.trust-container {
    max-width: 1400px;
    margin: 0 auto;
}

.trust-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.trust-logos {
    display: flex;
    align-items: center;
    gap: 5rem;
    flex-wrap: wrap;
}

.trust-logo {
    font-family: var(--font-sans);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: color 0.3s ease;
    letter-spacing: -0.02em;
}

.trust-logo:hover {
    color: var(--text-primary);
}

/* ============ SECTION CARD WRAPPER ============ */
.section-card {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-section);
    margin: 1rem 1rem 0;
    overflow: hidden;
}

.section-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-section);
    border: 1px solid var(--border);
    pointer-events: none;
    z-index: 1;
}

/* ============ FEATURES / SERVIZI SECTION ============ */
.features {
    padding: 7rem 3rem;
}

.features-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 5rem;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.section-eyebrow::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-gradient);
}

.section-title {
    font-family: var(--font-sans);
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    max-width: 800px;
    margin-bottom: 1.5rem;
}

.section-title .italic-accent {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 560px;
    line-height: 1.6;
    letter-spacing: -0.01em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.feature-card {
    padding: 2.5rem;
    border-radius: var(--radius-card);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    transition: all 0.4s var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-card);
    background: var(--accent-gradient);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.feature-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
}

.feature-card:hover::after {
    opacity: 0.08;
}

.feature-card>* {
    position: relative;
    z-index: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.feature-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.feature-title {
    font-family: var(--font-sans);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.feature-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

/* ============ SHOWCASE / PORTFOLIO ============ */
.showcase {
    padding: 7rem 3rem;
    background: var(--bg-card);
}

.showcase-container {
    max-width: 1400px;
    margin: 0 auto;
}

.showcase-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
    gap: 2rem;
}

.showcase-header .section-title {
    margin-bottom: 0.5rem;
}

.showcase-header .section-subtitle {
    margin: 0;
}

.btn-outline {
    padding: 0.8rem 2rem;
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.btn-outline:hover {
    border-color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.04);
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.showcase-item {
    display: block;
    border-radius: var(--radius-card);
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/10;
    cursor: pointer;
    transition: transform 0.5s var(--transition-smooth);
}

.showcase-item:hover {
    transform: scale(1.015);
}

.showcase-item.large {
    grid-column: span 2;
    aspect-ratio: 21/9;
}

.showcase-item-bg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-family: var(--font-sans);
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    transition: transform 0.6s var(--transition-smooth);
}

.showcase-item:hover .showcase-item-bg {
    transform: scale(1.05);
}

.showcase-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.showcase-item:hover .showcase-overlay {
    opacity: 1;
}

.showcase-tag {
    display: inline-block;
    padding: 0.375rem 0.875rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 0.75rem;
    width: fit-content;
}

.showcase-name {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
}

/* ============ STATS SECTION ============ */
.stats {
    padding: 6rem 3rem;
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.stat-box {
    padding: 2.5rem;
    border-radius: var(--radius-card);
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    text-align: center;
    transition: all 0.3s ease;
}

.stat-box:hover {
    border-color: var(--border-light);
    transform: translateY(-3px);
}

.stat-box-number {
    font-family: var(--font-sans);
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.stat-box-number span {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-box-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ============ TEAM SECTION ============ */
.testimonials {
    padding: 7rem 3rem;
    background: var(--bg-card);
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* 2-column grid for 2 co-founders */
.team-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 4rem;
}

.team-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-card);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: transform 0.4s var(--transition-smooth),
        border-color 0.4s ease,
        box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    transform: translateY(-6px);
    border-color: rgba(193, 189, 219, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* Card top — avatar centred on a gradient strip */
.team-card-top {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem 2rem 2.5rem;
    background: linear-gradient(160deg, #0e0e18 0%, #141822 60%, #0d0d14 100%);
    position: relative;
    overflow: hidden;
}

.team-card-top::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0.06;
}

/* Large avatar circle */
.team-avatar-glow {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 35px rgba(59, 130, 246, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.team-avatar-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: 50%;
}

/* Card body */
.team-card-body {
    padding: 2rem 2.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.team-role-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: transparent;
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 0.65rem;
}

.team-name {
    font-family: var(--font-sans);
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1rem;
    line-height: 1.15;
}

.team-bio {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex: 1;
}

.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: auto;
}

.team-tag {
    padding: 0.35rem 0.9rem;
    border-radius: var(--radius-pill);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-light);
    transition: all 0.25s ease;
}

.team-card:hover .team-tag {
    border-color: rgba(193, 189, 219, 0.4);
    color: var(--text-primary);
}


/* ============ TEAM CAROUSEL ============ */

/* Root: position relative to place arrows */
.tc-root {
    position: relative;
    margin-top: 4rem;
    /* horizontal padding to make room for arrows */
    padding: 0 3.5rem;
}

/* Viewport: clips the sliding track */
.tc-viewport {
    overflow: hidden;
    border-radius: var(--radius-card);
}

/* Track: all slides in a flex row */
.tc-track {
    display: flex;
    transition: transform 0.52s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    /* no gap on track — gap goes on slides */
}

/* Each slide: rigid width set by JS */
.tc-slide {
    flex: 0 0 auto;
    /* small inner gap between cards */
    padding: 0 0.625rem;
    box-sizing: border-box;
}

/* The actual card inside a slide fills the slide */
.tc-slide .team-card {
    height: 100%;
}

/* ── Arrows ── */
.tc-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.tc-arrow:hover {
    background: rgba(193, 189, 219, 0.35);
    border-color: rgba(193, 189, 219, 0.5);
    transform: translateY(-50%) scale(1.08);
}

.tc-arrow svg {
    width: 18px;
    height: 18px;
}

.tc-arrow--prev {
    left: 0;
}

.tc-arrow--next {
    right: 0;
}

/* ── Dots ── */
.tc-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.tc-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border-light);
    transition: background 0.3s ease, transform 0.3s ease;
    cursor: pointer;
    border: none;
    padding: 0;
}

.tc-dot.active {
    background: var(--accent-gradient);
    background: linear-gradient(235deg, #A2C7E5, #C1BDDB);
    transform: scale(1.4);
}

/* ── Responsive: on mobile arrows go below, slides stack ── */
@media (max-width: 768px) {
    .tc-root {
        padding: 0;
    }

    .tc-arrow {
        top: auto;
        bottom: -3.5rem;
        transform: none;
    }

    .tc-arrow--prev {
        left: calc(50% - 56px);
    }

    .tc-arrow--next {
        left: calc(50% + 12px);
    }

    .tc-arrow:hover {
        transform: scale(1.08);
    }

    .tc-dots {
        margin-top: 5rem;
    }
}

/* ============ CONTACT SECTION ============ */
.contact-section {
    padding: 7rem 3rem;
    position: relative;
    overflow: hidden;
}

/* Background glow */
.contact-glow {
    position: absolute;
    inset: 0;
    background: var(--accent-gradient);
    opacity: 0.07;
    z-index: 0;
    pointer-events: none;
}

/* 2-column layout: headline | form */
.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 5rem;
    align-items: start;
    position: relative;
    z-index: 1;
}

/* ── Left column ── */
.contact-headline {
    padding-top: 0.5rem;
}

.contact-title {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.08;
    color: var(--text-primary);
    margin-top: 1rem;
    margin-bottom: 1.25rem;
}

.contact-title .italic-accent {
    font-family: var(--font-serif);
    font-style: italic;
    font-weight: 400;
}

.contact-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 380px;
    margin-bottom: 2.5rem;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-info-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.contact-info-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    color: var(--accent-cyan);
    opacity: 0.8;
}

/* ── Right column: form wrap ── */
.contact-form-wrap {
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    padding: 2.5rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* ── Form layout ── */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* 2-col row (Nome+Cognome, Email+Tel) */
.cf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* Single field block */
.cf-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.cf-field--full {
    grid-column: 1 / -1;
}

/* Label */
.cf-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.cf-req {
    color: var(--accent-violet);
}

/* Input + Textarea shared styles */
.cf-input {
    width: 100%;
    padding: 0.875rem 1.125rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-light);
    border-radius: 0.875rem;
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-family: var(--font-body);
    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    -webkit-appearance: none;
}

.cf-input::placeholder {
    color: var(--text-muted);
}

.cf-input:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.055);
}

.cf-input:focus {
    border-color: var(--accent-cyan);
    background: rgba(88, 252, 236, 0.06);
    box-shadow: 0 0 0 3px rgba(88, 252, 236, 0.12);
}

/* Invalid + touched */
.cf-input.cf-invalid,
.cf-input.cf-input--error {
    border-color: #c23b5a;
    box-shadow: 0 0 0 3px rgba(194, 59, 90, 0.1);
}

/* Textarea */
.cf-textarea {
    resize: vertical;
    min-height: 150px;
    line-height: 1.65;
}

/* Error text */
.cf-error {
    font-size: 0.78rem;
    color: #e05a7a;
    min-height: 1rem;
    display: block;
}

/* Submit row */
.cf-submit-row {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}

.cf-submit {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.95rem 2.25rem;
    background: var(--text-primary);
    color: var(--bg);
    border-radius: var(--radius-pill);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    border: none;
    transition: background 0.3s var(--transition-smooth),
        color 0.3s var(--transition-smooth),
        transform 0.3s var(--transition-smooth),
        box-shadow 0.3s var(--transition-smooth);
    white-space: nowrap;
}

.cf-submit:hover {
    background: var(--accent-gradient);
    background: linear-gradient(235deg, #A2C7E5, #FF99C9);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(162, 199, 229, 0.30);
}

.cf-submit:active {
    transform: translateY(0);
}

.cf-submit-icon {
    width: 18px;
    height: 18px;
    transition: transform 0.25s ease;
}

.cf-submit:hover .cf-submit-icon {
    transform: translateX(3px);
}

.cf-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 220px;
}

/* Success banner */
.cf-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(0, 200, 100, 0.08);
    border: 1px solid rgba(0, 200, 100, 0.25);
    border-radius: 0.875rem;
    color: #4cd97b;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-top: 0.5rem;
}

/* Garantisce che l'attributo HTML [hidden] prevalga sempre su display:flex */
.cf-success[hidden] {
    display: none !important;
}

.cf-success svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Server/General error banner */
.cf-server-error {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(224, 90, 122, 0.08);
    border: 1px solid rgba(224, 90, 122, 0.25);
    border-radius: 0.875rem;
    color: #e05a7a;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-top: 10px;
}

.cf-server-error[hidden] {
    display: none !important;
}

.cf-server-error svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .contact-container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .contact-desc {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 4rem 1.5rem;
    }

    .contact-form-wrap {
        padding: 1.75rem 1.25rem;
    }

    .cf-row {
        grid-template-columns: 1fr;
    }

    .cf-submit-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .cf-note {
        max-width: 100%;
    }
}

/* ============ FOOTER ============ */
.footer {
    padding: 5rem 3rem 2rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand-link {
    display: inline-block;
    margin-bottom: 1rem;
    transition: opacity 0.3s ease;
}

.footer-brand-link:hover {
    opacity: 0.8;
}

.footer-logo-img {
    height: 50px;
    width: auto;
    display: block;
    object-fit: contain;
}

.footer-desc {
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 300px;
}

.footer-col h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.75rem;
}

.footer-col a {
    color: var(--text-muted);
    font-size: 0.875rem;
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-col a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 6px;
    height: 1.5px;
    background: var(--text-primary);
    transition: width 0.25s ease;
}

.footer-col a:hover {
    color: var(--text-primary);
}

.footer-col a:hover::after {
    width: 100%;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    color: var(--text-muted);
    transition: color 0.3s ease;
    position: relative;
    display: inline-block;
}

.footer-social a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 6px;
    height: 1.5px;
    background: var(--text-primary);
    transition: width 0.25s ease;
}

.footer-social a:hover {
    color: var(--text-primary);
}

.footer-social a:hover::after {
    width: 100%;
}

/* ============ SCROLL REVEAL ANIMATIONS ============ */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s var(--transition-smooth),
        transform 0.7s var(--transition-smooth);
}

.reveal-up.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* staggering */
.reveal-up.delay-1 {
    transition-delay: 0.1s;
}

.reveal-up.delay-2 {
    transition-delay: 0.2s;
}

.reveal-up.delay-3 {
    transition-delay: 0.3s;
}

.reveal-up.delay-4 {
    transition-delay: 0.4s;
}

.reveal-up.delay-5 {
    transition-delay: 0.5s;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {

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

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

    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .showcase-item.large {
        grid-column: span 1;
        aspect-ratio: 16/10;
    }

    .hero-bottom {
        flex-direction: column;
        gap: 3rem;
    }

    .hero-stats {
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .nav-top {
        padding: 1rem 1.5rem;
    }

    .nav-cta-top {
        display: none;
    }

    .hero {
        padding: 0 1.5rem 5rem;
        min-height: 90vh;
    }

    .hero-content {
        padding-top: 5rem;
    }

    .hero-logo-link {
        margin-bottom: 2rem;
    }

    .hero-stats {
        gap: 2rem;
        flex-wrap: wrap;
    }

    .hero-stat-number {
        font-size: 2rem;
    }

    .features,
    .showcase,
    .testimonials,
    .stats,
    .cta {
        padding: 4rem 1.5rem;
    }

    .trust-bar {
        padding: 3rem 1.5rem;
    }

    .trust-logos {
        gap: 2.5rem;
    }

    .features-grid,
    .team-grid,
    .stats-container {
        grid-template-columns: 1fr;
    }

    .showcase-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .section-card {
        margin: 0.5rem 0.5rem 0;
        border-radius: 1.25rem;
    }

    .section-card::before {
        border-radius: 1.25rem;
    }

    .cta-form {
        flex-direction: column;
    }

    .footer {
        padding: 3rem 1.5rem 2rem;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    /* Bottom nav mobile adjustments */
    .nav-bottom {
        bottom: 1rem;
        left: 1rem;
        right: 1rem;
        transform: translateX(0) translateY(calc(100% + 4rem));
        width: auto;
        justify-content: center;
    }

    .nav-bottom.visible {
        transform: translateX(0) translateY(0);
    }

    .nav-bottom-link {
        padding: 0.65rem 0.9rem;
        font-size: 0.75rem;
    }

    .nav-pill-indicator {
        display: none;
    }

    .nav-bottom-link.active {
        color: var(--text-primary);
        background: rgba(255, 255, 255, 0.1);
        border-radius: var(--radius-pill);
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: clamp(2.5rem, 10vw, 3.5rem);
    }

    .hero-stat-number {
        font-size: 1.75rem;
    }

    .nav-bottom-link {
        padding: 0.6rem 0.7rem;
        font-size: 0.6875rem;
    }
}