.tt-hero > .tt-container {
    width: 100%;
    max-width: none;
    padding-left: clamp(1.5rem, 4vw, 5rem);
    padding-right: clamp(1.5rem, 4vw, 5rem);
}

.tt-hero {
    position: relative;
    min-height: auto;
    display: flex;
    align-items: flex-start;
    background: var(--tt-gradient-hero);
    background-image: var(--tt-gradient-mesh), var(--tt-gradient-hero);
    color: var(--tt-text-on-dark);
    overflow: hidden;
    padding: 3rem 0 3.5rem;
}

#wrap.tt-theme > .tt-hero:first-child {
    margin-top: calc(-1 * var(--tt-header-h));
    padding-top: calc(var(--tt-header-h) + clamp(1.5rem, 3.5vw, 2.25rem));
    min-height: calc(100vh - 1.5rem) !important;
    align-items: center;
}

main:has(> #wrap.tt-theme > .tt-hero:first-child) {
    padding-top: 0 !important;
}

@media (max-width: 767.98px) {
    #wrap.tt-theme > .tt-hero:first-child {
        min-height: auto;
        align-items: flex-start;
        padding-bottom: clamp(2.5rem, 8vw, 3.5rem);
    }

    .tt-hero__actions {
        flex-direction: column;
    }

    .tt-hero__actions .tt-btn {
        width: 100%;
    }
}

.tt-hero__glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.2) 0%, transparent 68%);
    top: 5%;
    right: -12%;
    pointer-events: none;
    animation: tt-float 9s ease-in-out infinite;
    filter: blur(2px);
}

.tt-hero__glow--2 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 68%);
    top: auto;
    bottom: 5%;
    left: -8%;
    right: auto;
    animation-delay: -4.5s;
}

.tt-hero__content {
    position: relative;
    z-index: 2;
}

.tt-hero__headline {
    font-size: clamp(2.4rem, 6vw, 3.75rem);
    font-weight: 800;
    line-height: 1.06;
    margin-bottom: 1.5rem;
    letter-spacing: -0.035em;
}

.tt-hero__subtitle {
    font-size: clamp(1.08rem, 2.3vw, 1.3rem);
    line-height: 1.75;
    color: var(--tt-text-on-dark-muted);
    max-width: 560px;
    margin-bottom: 2.5rem;
}

.tt-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2.75rem;
}

.tt-hero__stats {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--tt-border);
}

.tt-hero__stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--tt-gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.tt-hero__stat-label {
    font-size: 0.82rem;
    color: var(--tt-text-on-dark-muted);
    max-width: 12rem;
    line-height: 1.4;
}

.tt-hero__visual {
    position: relative;
    z-index: 2;
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.28),
        0 0 0 1px rgba(0, 212, 170, 0.15);
    transform: translateY(12px);
}

.tt-hero__visual::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        rgba(15, 42, 70, 0.22) 0%,
        rgba(15, 42, 70, 0.08) 12%,
        transparent 28%
    );
}

.tt-hero__visual img {
    width: 100%;
    display: block;
    border-radius: inherit;
}

@media (min-width: 1200px) {
    .tt-hero__visual {
        transform: scale(1.04);
        transform-origin: center left;
    }
}

.tt-positioning {
    position: relative;
}

.tt-positioning__quote {
    font-size: clamp(1.6rem, 3.8vw, 2.4rem);
    font-weight: 700;
    line-height: 1.3;
    max-width: 820px;
    margin: 0 auto 1.5rem;
    letter-spacing: -0.025em;
}

/* Pagine servizio — colonne alternate più ariose */
.tt-section .row.g-5 {
    --bs-gutter-y: 2.5rem;
}

@media (min-width: 992px) {
    .tt-section .row.g-5 > .col-lg-6:first-child {
        padding-right: 2rem;
    }
    .tt-section .row.g-5 > .col-lg-6:last-child {
        padding-left: 1rem;
    }
    .tt-section .flex-lg-row-reverse > .col-lg-6:first-child {
        padding-left: 2rem;
        padding-right: 0;
    }
}

/* Separatore sottile tra sezioni (in fondo alla sezione, non in cima alla successiva) */
.tt-section:has(+ .tt-section)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(90%, 600px);
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,212,170,0.2), transparent);
    pointer-events: none;
    z-index: 2;
}

.tt-process {
    position: relative;
}

.tt-process__line {
    display: none;
}

@media (min-width: 992px) {
    .tt-process__line {
        display: block;
        position: absolute;
        top: 2.85rem;
        left: 8%;
        right: 8%;
        height: 2px;
        background: linear-gradient(90deg, transparent, var(--tt-accent), var(--tt-accent-2), transparent);
        opacity: 0.35;
    }
}

.tt-process__message {
    margin-top: 3rem;
    padding: 2rem 2.25rem;
    border-radius: var(--tt-radius-lg);
    background: linear-gradient(135deg, var(--tt-accent-soft), rgba(34, 211, 238, 0.08));
    border: 1px solid rgba(0, 212, 170, 0.2);
    border-left: 4px solid var(--tt-accent);
    font-size: 1.08rem;
    font-style: italic;
    line-height: 1.75;
    color: var(--tt-text-dark);
    box-shadow: var(--tt-shadow-card);
}

.tt-section--dark .tt-process__message {
    color: var(--tt-text-on-dark);
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.18), rgba(34, 211, 238, 0.12));
    border-color: rgba(0, 212, 170, 0.35);
    box-shadow: none;
}

.tt-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.85rem;
}

.tt-tech-category {
    margin-bottom: 3.5rem;
    padding: 2rem;
    border-radius: var(--tt-radius-lg);
    background: var(--tt-bg-white);
    border: 1px solid var(--tt-border-light);
    box-shadow: var(--tt-shadow-card);
}

.tt-tech-category:last-child {
    margin-bottom: 0;
}

.tt-tech-category__title {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--tt-text-muted);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--tt-border-light);
}

/* Technologies page — light block delineation */
.tt-page-tecnologie .tt-card {
    background: var(--tt-bg-white);
    border: 1px solid var(--tt-border-light);
    box-shadow: var(--tt-shadow-card);
}

.tt-page-tecnologie .tt-card:hover {
    box-shadow: var(--tt-shadow-card-hover);
}

.tt-page-tecnologie .tt-section-heading {
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--tt-border-light);
}

.tt-page-tecnologie .tt-card .tt-tech-grid {
    padding-top: 0.85rem;
    border-top: 1px solid var(--tt-border-light);
}

.tt-page-tecnologie .tt-section--light .tt-tech-pill {
    background: var(--tt-bg-light);
}

.tt-contact-hero {
    position: relative;
    padding: clamp(6rem, 13vw, 9rem) 0 clamp(3.5rem, 7vw, 5rem);
    background: var(--tt-gradient-hero);
    background-image: var(--tt-gradient-mesh), var(--tt-gradient-hero);
    color: var(--tt-text-on-dark);
    overflow: hidden;
}
