/* ===== Eretum Capital 2 ===== */
:root {
    --primary: #18181b;
    --primary-hover: rgba(24, 24, 27, 0.9);
    --accent: #f5c518;
    --accent-hover: #e0af00;
    --navy-900: #18181b;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --white: #ffffff;
    --max-w: 80rem;
    --px-mobile: 1.5rem;
    --px-desktop: 5rem;
    --section-margin-x: 1.25rem;
    --navbar-height: 88px;
}
@media (min-width: 768px) {
    :root { --section-margin-x: 2.5rem; }
}

*, *::before, *::after { box-sizing: border-box; }
html {
    overflow-x: hidden;
}
/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
body {
    margin: 0;
    overflow-x: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--navy-900);
    background: var(--white);
}
.min-h-screen { min-height: 100vh; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }

.container {
    max-width: 100%;
    margin: 0 auto;
    padding-left: var(--px-mobile);
    padding-right: var(--px-mobile);
}
@media (min-width: 768px) {
    .container {
        padding-left: var(--px-desktop);
        padding-right: var(--px-desktop);
    }
}

/* ===== Navbar ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    padding: -0.7rem 0;
    border-bottom: 1px solid transparent;
    background-color: transparent;
    color: #ffffff;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease, transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.45s ease;
}
.navbar--scrolled,
.navbar.is-open {
    background: rgba(255, 255, 255, 0.98);
    border-bottom-color: var(--slate-200);
    box-shadow: 0 10px 30px rgba(24, 24, 27, 0.08);
    color: var(--navy-900);
}

/* Navbar sempre visibile (anche sull'hero) */
body.hero-active .navbar {
    transform: none;
    opacity: 1;
    pointer-events: auto;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1140px;
    margin: 0 auto;
    position: relative;
    z-index: 60;
}

/* Barra sotto la navbar */
.navbar-bar {
    display: none;
    width: 100%;
    background: #18181b;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(248, 250, 252, 0.95);
}
.navbar.is-open .navbar-bar {
    display: block;
}
.navbar-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0.5rem var(--px-mobile);
    gap: 1rem;
}
@media (min-width: 768px) {
    .navbar-bar-inner {
        padding: 0.6rem var(--px-desktop);
    }
}
/* Animated arrow CTA "Unisciti a noi" */
.navbar-bar .animated-arrow {
    --arrow-color: rgba(248, 250, 252, 0.95);
    --arrow-hover: #fff;
    --text-arrow-space: 12px;
    --shaft-width: 1px;
    --newshaft-width: 48px;
    --shaft-thickness: 1px;
    --arrow-head-width: 6px;
    display: inline-flex;
    align-items: center;
    color: var(--arrow-color);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    position: relative;
    transition: color 0.2s;
    box-sizing: content-box;
}
.navbar-bar .animated-arrow:hover {
    color: var(--arrow-hover);
}
.navbar-bar .animated-arrow .the-arrow {
    width: var(--shaft-width);
    transition: all 0.2s;
}
.navbar-bar .animated-arrow .the-arrow .shaft {
    background-color: currentColor;
    display: block;
    height: var(--shaft-thickness);
    position: relative;
    transition: all 0.2s;
    transition-delay: 0;
    will-change: transform;
}
.navbar-bar .animated-arrow .the-arrow .shaft::before,
.navbar-bar .animated-arrow .the-arrow .shaft::after {
    background-color: currentColor;
    content: '';
    display: block;
    height: var(--shaft-thickness);
    position: absolute;
    top: 0;
    right: 0;
    transition: all 0.2s;
    transition-delay: 0;
}
.navbar-bar .animated-arrow .the-arrow .shaft::before { transform-origin: top right; }
.navbar-bar .animated-arrow .the-arrow .shaft::after { transform-origin: bottom right; }

.navbar-bar .animated-arrow .the-arrow.\-left {
    position: absolute;
    top: 60%;
    left: 0;
}
.navbar-bar .animated-arrow .the-arrow.\-left .shaft {
    width: 0;
}
.navbar-bar .animated-arrow .the-arrow.\-left .shaft::before,
.navbar-bar .animated-arrow .the-arrow.\-left .shaft::after { width: 0; }
.navbar-bar .animated-arrow .the-arrow.\-left .shaft::before { transform: rotate(0); }
.navbar-bar .animated-arrow .the-arrow.\-left .shaft::after { transform: rotate(0); }

.navbar-bar .animated-arrow .the-arrow.\-right {
    top: -1px;
}
.navbar-bar .animated-arrow .the-arrow.\-right .shaft {
    width: var(--shaft-width);
    transition-delay: 0.2s;
}
.navbar-bar .animated-arrow .the-arrow.\-right .shaft::before,
.navbar-bar .animated-arrow .the-arrow.\-right .shaft::after {
    width: var(--arrow-head-width);
    transition-delay: 0.3s;
    transition: all 0.5s;
}
.navbar-bar .animated-arrow .the-arrow.\-right .shaft::before { transform: rotate(40deg); }
.navbar-bar .animated-arrow .the-arrow.\-right .shaft::after { transform: rotate(-40deg); }

.navbar-bar .animated-arrow:hover .the-arrow.\-left .shaft {
    width: var(--newshaft-width);
    transition-delay: 0.1s;
}
.navbar-bar .animated-arrow:hover .the-arrow.\-left .shaft::before,
.navbar-bar .animated-arrow:hover .the-arrow.\-left .shaft::after {
    width: var(--arrow-head-width);
    transition-delay: 0.1s;
}
.navbar-bar .animated-arrow:hover .the-arrow.\-left .shaft::before { transform: rotate(40deg); }
.navbar-bar .animated-arrow:hover .the-arrow.\-left .shaft::after { transform: rotate(-40deg); }

.navbar-bar .animated-arrow .main {
    display: flex;
    align-items: center;
    transition: all 0.2s;
    margin-left: var(--shaft-width);
}
.navbar-bar .animated-arrow .main .text {
    margin: 0 var(--text-arrow-space) 0 0;
    line-height: 1;
}
.navbar-bar .animated-arrow .main .the-arrow { position: relative; }

.navbar-bar .animated-arrow:hover .main {
    transform: translateX(calc(var(--newshaft-width) + var(--text-arrow-space)));
}
.navbar-bar .animated-arrow:hover .main .the-arrow.\-right .shaft {
    width: 0;
    transform: translateX(200%);
    transition-delay: 0;
}
.navbar-bar .animated-arrow:hover .main .the-arrow.\-right .shaft::before,
.navbar-bar .animated-arrow:hover .main .the-arrow.\-right .shaft::after {
    width: 0;
    transition-delay: 0;
    transition: all 0.1s;
}
.navbar-bar .animated-arrow:hover .main .the-arrow.\-right .shaft::before { transform: rotate(0); }
.navbar-bar .animated-arrow:hover .main .the-arrow.\-right .shaft::after { transform: rotate(0); }
.navbar-bar-lang {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(248, 250, 252, 0.9);
}
.navbar-bar-lang {
    margin-left: auto;
    margin-right: auto;
}
.navbar-bar-lang-flag {
    display: inline-block;
    width: 18px;
    height: auto;
    border-radius: 2px;
}
.navbar-bar-lang-link {
    color: inherit;
    text-decoration: none;
    opacity: 0.75;
    transition: opacity 0.2s ease, color 0.2s ease;
}
.navbar-bar-lang-link:hover {
    opacity: 1;
    color: #fff;
}
.navbar-bar-lang-link.is-active {
    opacity: 1;
    color: #fff;
}
.navbar-bar-lang-sep {
    opacity: 0.6;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    margin-left: -5.2rem;
}
.site-logo-image {
    display: block;
    width: 180px;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    transform: scale(1.52);
    transform-origin: left center;
    transition: filter 0.25s ease;
}
.navbar:not(.navbar--scrolled):not(.is-open) .site-logo-image {
    filter: brightness(0) invert(1);
}
.nav-main {
    display: none;
}
.nav-link {
    color: inherit;
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 600;
    transition: color 0.2s;
}
.nav-link:hover { color: var(--accent); }
.nav-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Hamburger Menu (McButton) */
.McButton {
    position: relative;
    display: inline-flex;
    width: 1.75rem;
    height: 1.25rem;
    cursor: pointer;
    color: inherit;
    z-index: 60;
}
.McButton b {
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 9999px;
    background-color: currentColor;
    transition: transform 0.3s ease, opacity 0.2s ease, top 0.3s ease, bottom 0.3s ease;
}
.McButton b:nth-child(1) { top: 0; }
.McButton b:nth-child(2) { top: 50%; transform: translateY(-50%); }
.McButton b:nth-child(3) { bottom: 0; }
.McButton.active b:nth-child(1) { top: 50%; transform: translateY(-50%) rotate(45deg); }
.McButton.active b:nth-child(2) { opacity: 0; }
.McButton.active b:nth-child(3) { bottom: auto; top: 50%; transform: translateY(-50%) rotate(-45deg); }

.nav-mobile {
    position: relative;
    width: 100%;
    padding: 1.5rem 1.5rem 2.5rem 1.5rem;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.75rem;
}
.nav-extended {
    position: fixed;
    top: 4.5rem;
    left: 0;
    right: 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    transform: translateY(-100%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
}
.nav-extended .nav-mobile,
.nav-extended .navbar-bar {
    pointer-events: auto;
}
.nav-extended .navbar-bar {
    display: block;
    opacity: 0;
    transition: opacity 0.15s ease;
}
.navbar.is-open .nav-extended .navbar-bar {
    opacity: 1;
}
.navbar.is-open .nav-extended {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.3s ease, visibility 0s linear 0s;
}
.nav-mobile-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    transform: translateX(-56px);
    margin-top: 1.2rem;
}
.nav-mobile-link {
    color: var(--navy-900);
    font-size: 1.25rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.nav-mobile-link:hover {
    color: var(--accent-hover);
}
.nav-mobile-media {
    margin-top: 0.5rem;
    position: relative;
    max-width: 620px;
    transform: translateX(-24px);
    display: none;
}
.nav-mobile-text {
    position: absolute;
    inset: 1.4rem 1.6rem auto 1.6rem;
    z-index: 1;
    color: rgba(248, 250, 252, 0.96);
    font-size: 0.85rem;
    line-height: 1.7;
    font-weight: 500;
    height: 230.4375px;
    max-width: 260px;
}
.nav-mobile-image {
    display: block;
    width: 520px;
    max-width: 100%;
    height: 260px;
    border-radius: 1.6rem;
    object-fit: cover;
    box-shadow: 0 20px 50px rgba(24, 24, 27, 0.35);
}
.nav-mobile-media::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 1.6rem;
    background: linear-gradient(135deg, rgba(24,24,27,0.6), rgba(24,24,27,0.35));
    pointer-events: none;
}
@media (min-width: 768px) {
    .nav-mobile {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2.5rem;
    }
    .nav-mobile-links {
        align-items: flex-start;
        transform: translateX(-32px);
    }
    .nav-mobile-media {
        margin-right: 3rem;
        transform: translateX(-32px);
        display: block;
    }
}
@media (max-width: 767px) {
    .logo { margin-left: -1.9rem; }
    .site-logo-image {
        transform: scale(1.32);
        transform-origin: left center;
    }
}

/* ===== Hero: sequenza frame (canvas + GSAP ScrollTrigger) ===== */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    background: #0d0d10;
    overflow: hidden;
}
.hero-canvas,
.hero-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Maschera scura costante su tutti i frame (migliora leggibilità del bianco) */
.hero-tint {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(13, 13, 16, 0.42);
    pointer-events: none;
}
/* Scurimento extra sul primo frame (sfuma allo scroll) */
.hero-mask {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(13, 13, 16, 0.3);
    pointer-events: none;
}

/* Testo in cima alla hero */
.hero-copy {
    position: absolute;
    top: clamp(8rem, 20vh, 13rem);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    width: min(96%, 72rem);
    text-align: center;
    color: #ffffff;
    pointer-events: none;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.95rem;
    border-radius: 9999px;
    background: rgba(245, 197, 24, 0.16);
    border: 1px solid #f5c518;
    color: #f5c518;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 1.1rem;
}
.hero-badge-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: #f5c518; }
.hero-headline {
    margin: 0;
    font-family: inherit;
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.02em;
}
.hero-headline .accent { color: #f5c518; }
.hero-subhead {
    margin: 1.1rem auto 0;
    font-family: inherit;
    font-size: clamp(1.1rem, 2vw, 1.45rem);
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255,255,255,0.92);
    max-width: 60ch;
}

/* Brand "Eretum Capital" disegnato a tratto, compare dopo il testo hero */
.brand-reveal {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
}
.brand-svg {
    width: min(96%, 1200px);
    height: auto;
    overflow: visible;
}
.brand-text {
    fill: transparent;
    stroke: #ffffff;
    stroke-width: 1.6;
    stroke-miterlimit: 10;
    stroke-dasharray: 2800;
    stroke-dashoffset: 2800;
    font-family: 'Michroma', sans-serif;
    font-weight: 400;
    font-size: 92px;
    letter-spacing: 4px;
}

/* Pulsante CTA hero (stile findrealestate: rettangolare, leggermente arrotondato) */
.hero-cta {
    margin-top: 2rem;
    display: inline-block;
    pointer-events: auto;
    cursor: pointer;
    padding: 1rem 2.6rem;
    background: #f5c518;
    color: #151717;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, transform 0.2s ease;
}
.hero-cta:hover {
    background: #e0af00;
    transform: translateY(-2px);
}

/* ===== Modal contatti (squadrata) ===== */
.contact-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
}
.contact-modal.is-open {
    display: flex;
}
.contact-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 13, 16, 0.6);
    backdrop-filter: blur(2px);
}
.contact-modal-box {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 0;
    border: 1px solid var(--slate-200);
    box-shadow: 0 30px 80px rgba(13, 13, 16, 0.4);
    padding: 2.5rem 2.25rem;
}
.contact-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.9rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: var(--slate-500);
    cursor: pointer;
}
.contact-modal-close:hover { color: var(--navy-900); }
.contact-modal-title {
    margin: 0 0 0.35rem;
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}
.contact-modal-sub {
    margin: 0 0 1.5rem;
    color: var(--slate-500);
    font-size: 0.95rem;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.contact-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--slate-600);
}
.contact-field input,
.contact-field textarea {
    font-family: inherit;
    font-size: 1rem;
    color: var(--navy-900);
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--slate-200);
    border-radius: 0;
    background: var(--slate-50);
    resize: vertical;
}
.contact-field input:focus,
.contact-field textarea:focus {
    outline: none;
    border-color: var(--navy-900);
    background: #fff;
}
.contact-submit {
    margin-top: 0.5rem;
    padding: 0.9rem 1rem;
    background: #0d0d10;
    color: #fff;
    border: none;
    border-radius: 0;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}
.contact-submit:hover { background: #000; }

/* indicatore scroll */
.hero-scroll-hint {
    position: absolute;
    left: 50%;
    bottom: 2rem;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    pointer-events: none;
    animation: heroHintFade 2.4s ease-in-out infinite;
}
.hero-scroll-hint::after {
    content: "";
    width: 1px;
    height: 38px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.9), rgba(255,255,255,0));
}
@keyframes heroHintFade {
    0%, 100% { opacity: 0.35; transform: translate(-50%, 0); }
    50% { opacity: 1; transform: translate(-50%, 6px); }
}
body:not(.hero-active) .hero-scroll-hint { opacity: 0; }

/* Hero follow-up (continua la prima fase, compare verso fine hero) */
.hero-followup {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    padding: 0 24px;
    opacity: 0;
    pointer-events: none;
}
.hero-followup-text {
    margin: 0;
    text-align: center;
    color: #ffffff;
    font-family: 'Lora', Georgia, serif;
    font-weight: 500;
    font-size: clamp(1.7rem, 4vw, 3.4rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
    max-width: 20ch;
}
.hero-followup-text .accent { color: #f5c518; }
.hero-followup-cta { margin-top: 0; pointer-events: auto; }

/* ===== Sezioni Eretum Capital ===== */
.ec {
    --d: #151717;
    --m: #b3b3b3;
    --light: #f1f1f1;
    --accent: #f5c518;
    --sans: 'Instrument Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    --serif: 'Lora', Georgia, 'Times New Roman', serif;
    position: relative;
    font-family: var(--sans);
    color: var(--d);
    background: #fff;
}
.ec-w { max-width: 100%; margin: 0 auto; padding: 0 clamp(24px, 5vw, 80px); }

/* Pill / ec-chip buttons */
.ec-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 9999px; font-size: 13.5px; font-weight: 500; text-decoration: none; padding: 12px 20px; transition: opacity .2s ease, transform .2s ease; }
.ec-pill:hover { opacity: .9; transform: translateY(-1px); }
.ec-pill-dark { background: var(--d); color: #fff; }
.ec-pill-dark:hover { background: var(--accent); color: #151717; opacity: 1; }
.ec-pill-light { background: #fff; color: var(--d); }
.ec-pill-light:hover { background: var(--accent); opacity: 1; }
.ec-pill-outline { border: 1px solid rgba(255,255,255,.3); color: #fff; }
.ec-arrow { width: 16px; height: 16px; flex: 0 0 auto; }
.ec-chip { background: #fff; color: var(--d); font-size: 12px; font-weight: 500; padding: 8px 16px; border-radius: 9999px; text-decoration: none; display: inline-block; }
.ec-chip-outline { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(0,0,0,.2); color: var(--d); font-size: 12px; padding: 8px 16px; border-radius: 9999px; text-decoration: none; }
.ec-chip-outline .ec-arrow { width: 14px; height: 14px; }
.ec-label { font-size: 18px; font-weight: 600; color: var(--accent); }

/* Fill-text (words muted -> dark on scroll) */
.ec-fill span { transition: color .3s ease; }

/* Claim */
.ec-claim { padding: 140px 0; }
.ec-claim-inner { max-width: 100%; margin: 0 auto; padding: 0 clamp(24px, 5vw, 80px); text-align: center; }
.ec-claim-h { font-family: var(--serif); font-size: clamp(32px,5vw,54px); font-weight: 500; line-height: 1; letter-spacing: -2.16px; margin: 0; }
.ec-claim-p { margin: 32px 0 0; font-size: 24px; font-weight: 500; line-height: 31px; letter-spacing: -.24px; }

/* Metodo */
.ec-metodo { padding: 120px 0; }
.ec-metodo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.ec-metodo-title { font-size: clamp(40px,5vw,64px); font-weight: 700; line-height: .95; letter-spacing: -2px; margin: 0; }
.ec-metodo-title .d { display: block; color: var(--d); }
.ec-metodo-title .m { display: block; color: var(--m); }
.ec-metodo .ec-pill { margin-top: 28px; }
.ec-metodo-steps-label { margin: 0 0 16px; font-size: 18px; font-weight: 500; }
.ec-step { display: flex; gap: 24px; border-top: 1px solid rgba(0,0,0,.1); padding: 28px 0; }
.ec-step-idx { flex: 0 0 auto; padding-top: 8px; font-size: 12px; color: var(--accent); }
.ec-step p { margin: 0; font-size: clamp(22px,2.6vw,33px); font-weight: 500; line-height: 38px; letter-spacing: -.99px; }
.ec-step .d { color: var(--d); }
.ec-step .m { color: var(--m); }

/* Il Gruppo */
.ec-gruppo { padding: 120px 0; }
.ec-gruppo-big {
    margin: 20px 0 56px;
    max-width: 18ch;
    font-family: var(--serif);
    font-size: clamp(32px, 5vw, 68px);
    font-weight: 500;
    line-height: 1.04;
    letter-spacing: -1.5px;
}
.ec-gruppo-big .d { color: var(--d); }
.ec-gruppo-big .m { color: var(--m); }
.ec-gruppo-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ec-gruppo-h { font-family: var(--serif); font-size: clamp(26px,3vw,40px); font-weight: 500; line-height: 1.1; letter-spacing: -1px; margin: 0; }
.ec-gruppo-text p { margin: 22px 0 0; font-size: 17px; line-height: 1.7; color: #3a3d3d; max-width: 56ch; }
.ec-gruppo-text .ec-pill { margin-top: 30px; }
/* immagini: principale + secondaria sovrapposta */
.ec-gruppo-media { position: relative; }
.ec-gruppo-img-main { width: 88%; margin-left: auto; display: block; border-radius: 10px; aspect-ratio: 4 / 3; object-fit: cover; }
.ec-gruppo-img-sub { position: absolute; left: 0; bottom: -36px; width: 42%; border-radius: 10px; aspect-ratio: 3 / 4; object-fit: cover; border: 6px solid #fff; box-shadow: 0 20px 50px rgba(21,23,23,.18); }

/* Testimonials */
.ec-chisiamo { background: var(--light); padding: 0; }
.ec-chisiamo-w { padding: 100px 24px; }
.ec-chisiamo-title { font-size: clamp(28px,4vw,48px); font-weight: 500; letter-spacing: -1.5px; margin: 0 0 48px; }
.ec-chisiamo-title .m { color: var(--m); }
.ec-chisiamo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.ec-chisiamo-photo { aspect-ratio: 4/5; border-radius: 8px; overflow: hidden; }
.ec-chisiamo-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ec-chisiamo-card { display: flex; flex-direction: column; justify-content: space-between; padding: 40px; gap: 32px; }
.ec-chisiamo-top { display: flex; align-items: flex-start; justify-content: space-between; }
.ec-chisiamo-dots { display: flex; align-items: center; gap: 8px; }
.ec-chisiamo-dots button { width: 8px; height: 8px; border-radius: 9999px; border: none; background: rgba(0,0,0,.2); cursor: pointer; padding: 0; transition: background .2s ease; }
.ec-chisiamo-dots button.active { background: var(--accent); }
.ec-chisiamo-glyph { font-family: var(--serif); font-size: 60px; line-height: 1; color: var(--m); }
.ec-chisiamo-quote { font-size: 18px; line-height: 1.7; color: #000; margin: 0; }
.ec-chisiamo-author { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; margin: 0; }
.ec-chisiamo-stars { display: flex; gap: 4px; margin-top: 8px; }
.ec-chisiamo-stars svg { width: 12px; height: 12px; color: #000; }

/* Servizi */
.ec-servizi { background: var(--d); color: #fff; padding: 0; }
.ec-servizi .ec-w { padding: 0; max-width: 100%; }
.ec-servizi-head { padding: 80px clamp(24px,5vw,80px); display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.ec-servizi-head .ec-label { color: var(--accent); }
.ec-servizi-h { font-size: clamp(34px,4.5vw,54px); font-weight: 500; line-height: 1.05; margin: 0; }
.ec-servizi-h .w { display: block; color: #fff; }
.ec-servizi-h .m { display: block; color: var(--m); }
.ec-servizi-row { position: relative; overflow: hidden; border-top: 1px solid rgba(255,255,255,.15); min-height: 320px; display: flex; align-items: center; cursor: pointer; }
.ec-servizi-row:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
.ec-servizi-row-bg { position: absolute; inset: 0; background-image: var(--bg); background-size: cover; background-position: center; opacity: 0; transform: scale(1.05); transition: opacity .5s ease; }
.ec-servizi-row::after { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .4s ease; }
.ec-servizi-row:hover .ec-servizi-row-bg { opacity: 1; }
.ec-servizi-row:hover::after { opacity: 1; }
.ec-servizi-row-in { position: relative; z-index: 2; width: 100%; display: flex; align-items: center; justify-content: center; gap: 32px; padding: 48px clamp(24px,5vw,80px); }
.ec-servizi-left { position: absolute; left: clamp(24px,5vw,80px); top: 50%; transform: translateY(-50%); display: flex; gap: 18px; max-width: 480px; }
.ec-servizi-num { flex: 0 0 auto; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.4); border-radius: 9999px; display: flex; align-items: center; justify-content: center; font-size: 13px; }
.ec-servizi-desc { margin: 0; font-size: clamp(20px,1.7vw,26px); font-weight: 600; max-width: 440px; line-height: 1.4; }
/* parola a destra + underline animata + freccia grande in hover */
.ec-servizi-wordwrap { display: inline-flex; align-items: center; }
.ec-servizi-word { position: relative; font-size: clamp(96px,16vw,230px); font-weight: 500; line-height: 1; text-align: left; }
.ec-servizi-word::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0.04em;
    width: 100%;
    height: 8px;
    background: #fff;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .55s cubic-bezier(.16,1,.3,1);
}
.ec-servizi-row:hover .ec-servizi-word::after { transform: scaleX(1); }
.ec-servizi-arrow {
    position: absolute;
    right: clamp(24px,5vw,80px);
    top: 50%;
    display: inline-flex;
    align-items: center;
    font-size: clamp(96px,16vw,230px);
    line-height: 1;
    opacity: 0;
    transform: translate(-0.3em, -50%);
    transition: opacity .4s ease, transform .55s cubic-bezier(.16,1,.3,1);
}
.ec-servizi-arrow svg { width: 1em; height: 1em; display: block; }
.ec-servizi-row:hover .ec-servizi-arrow { opacity: 1; transform: translate(0, -50%); }
.ec-servizi-foot { border-top: 1px solid rgba(255,255,255,.15); padding: 90px clamp(24px,5vw,80px); display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.ec-servizi-foot p { margin: 0; font-size: clamp(22px,2.4vw,34px); font-weight: 500; max-width: 640px; line-height: 1.35; }

/* Supporto */
.ec-supporto { background: var(--d); color: #fff; padding: 100px 0; }
.ec-supporto-top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.ec-supporto-h { font-size: clamp(34px,4.5vw,54px); font-weight: 500; line-height: 1.05; letter-spacing: -1.5px; max-width: 460px; margin: 0; }
.ec-supporto-h .w { color: #fff; }
.ec-supporto-h .m { color: var(--m); }
.ec-supporto-top p { font-size: clamp(20px,2vw,28px); color: rgba(255,255,255,.85); max-width: 560px; margin: 0; line-height: 1.4; }
.ec-supporto-top .ec-pill { margin-top: 28px; }

/* Pulsanti più grandi in Servizi (footer) e Features */
.ec-servizi-foot .ec-pill, .ec-supporto-top .ec-pill {
    font-size: 16px;
    padding: 16px 32px;
    gap: 12px;
}
.ec-servizi-foot .ec-pill .ec-arrow, .ec-supporto-top .ec-pill .ec-arrow {
    width: 20px;
    height: 20px;
}
.ec-supporto-cards { margin-top: 64px; display: flex; gap: 20px; }
.ec-supporto-card { position: relative; border-radius: 12px; overflow: hidden; height: 420px; flex: 1 1 0; min-width: 0; transition: flex-grow .6s cubic-bezier(.16,1,.3,1); }
/* hover: la card sotto il cursore si allarga, le altre si stringono */
.ec-supporto-cards:hover .ec-supporto-card { flex-grow: 0.9; }
.ec-supporto-cards .ec-supporto-card:hover { flex-grow: 1.3; }
.ec-supporto-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ec-supporto-card:hover img { transform: scale(1.05); }
.ec-supporto-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.8), rgba(0,0,0,.2), transparent); }
.ec-supporto-card-in { position: relative; z-index: 2; padding: 24px; display: flex; flex-direction: column; height: 100%; }
.ec-supporto-card-in h3 { font-size: clamp(22px,2vw,30px); font-weight: 500; line-height: 1.15; margin: 0; }
.ec-supporto-bottom { margin-top: auto; }
.ec-supporto-bottom p { font-size: 14px; color: rgba(255,255,255,.7); margin: 0 0 12px; }

/* Latest Posts */
.ec-posts { background: var(--light); padding: 100px 0; }
.ec-posts-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ec-posts-h { font-size: clamp(34px,4.5vw,52px); font-weight: 500; line-height: 1; letter-spacing: -1.5px; margin: 0; }
.ec-posts-h .m { color: var(--m); }
.ec-posts-h .blk { display: block; }
.ec-posts-head > div { max-width: 360px; }
.ec-posts-head p { font-size: 16px; margin: 0 0 16px; }
.ec-posts-list { margin-top: 64px; }
.ec-post { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 32px; border-top: 1px solid rgba(0,0,0,.1); padding: 32px 0; text-decoration: none; color: var(--d); }
.ec-post-date { font-size: 12px; color: var(--m); }
.ec-post h3 { margin: 8px 0 0; font-size: clamp(22px,2.6vw,32px); font-weight: 500; }
.ec-post-body > p { margin: 8px 0 0; max-width: 520px; font-size: 14px; color: rgba(0,0,0,.7); }
.ec-post .ec-chip-outline { margin-top: 16px; }
.ec-post-img { width: 280px; height: 180px; border-radius: 8px; overflow: hidden; }
.ec-post-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Chi Siamo */
.ec-about { background: #fff; padding: 120px 0; }
.ec-about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: stretch; margin-top: 24px; }
.ec-about-h { font-family: var(--serif); font-size: clamp(30px,3.6vw,52px); font-weight: 500; line-height: 1.08; letter-spacing: -1px; margin: 0 0 20px; }
.ec-about-text p { font-size: 17px; line-height: 1.7; color: #3a3d3d; margin: 0 0 16px; }
.ec-about-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; display: block; }
.ec-approach-heading { margin: 40px 0 0; font-family: var(--serif); font-size: clamp(22px,2.2vw,30px); font-weight: 500; letter-spacing: -0.5px; }
.ec-approach { margin-top: 20px; display: grid; grid-template-columns: 1fr; gap: 18px; }
.ec-approach-item { display: flex; gap: 16px; border-top: 1px solid rgba(0,0,0,.1); padding-top: 16px; }
.ec-approach-num { flex: 0 0 auto; font-family: var(--serif); font-size: 22px; color: var(--accent); font-weight: 600; }
.ec-approach-item h4 { margin: 0 0 6px; font-size: 20px; font-weight: 600; }
.ec-approach-item p { margin: 0; font-size: 15px; line-height: 1.6; color: #3a3d3d; }

/* Lavora con noi */
.ec-careers { background: var(--light); padding: 110px 0; }
.ec-careers-in { max-width: 720px; }
.ec-careers-h { font-family: var(--serif); font-size: clamp(32px,4.2vw,56px); font-weight: 500; line-height: 1.05; letter-spacing: -1.2px; margin: 14px 0 18px; }
.ec-careers-in p { font-size: 18px; line-height: 1.6; color: #3a3d3d; margin: 0 0 28px; max-width: 60ch; }

/* CTA finale */
.ec-cta { display: grid; place-items: center; min-height: 70vh; overflow: hidden; padding: 0; }
.ec-cta-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ec-cta-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.ec-cta-in { position: relative; z-index: 2; text-align: center; padding: 0 24px; }
.ec-cta-in h2 { font-size: clamp(30px,5vw,56px); font-weight: 500; letter-spacing: -1.5px; margin: 0; }
.ec-cta-in .w { color: #fff; }
.ec-cta-in .m { color: var(--m); }
.ec-cta-in .ec-pill { margin-top: 32px; }

/* Footer reveal-parallax: il footer è fisso dietro, il contenuto scorre sopra */
main { position: relative; z-index: 1; background: #fff; }
.ec-footer { position: fixed; left: 0; right: 0; bottom: 0; z-index: 0; background: #151717; color: #fff; padding: 72px 0 28px; font-family: 'Instrument Sans', -apple-system, sans-serif; }
.ec-foot-top { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 48px; padding-bottom: 56px; }
.ec-foot-col { display: flex; flex-direction: column; gap: 6px; }
.ec-foot-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em; font-weight: 600; color: #f5c518; margin-bottom: 6px; }
.ec-foot-label-mt { margin-top: 22px; }
.ec-foot-col p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(255,255,255,.8); }
.ec-foot-col a { width: fit-content; font-size: 15px; color: #fff; text-decoration: none; transition: color .2s ease; }
.ec-foot-col a:hover { color: #f5c518; }
.ec-foot-nav { display: flex; flex-direction: column; gap: 8px; }
.ec-foot-wordmark { font-family: 'Michroma', sans-serif; font-weight: 400; font-size: clamp(26px, 8.4vw, 118px); line-height: 1.05; letter-spacing: 0; color: #fff; white-space: nowrap; border-top: 1px solid rgba(255,255,255,.12); padding-top: 36px; }
.ec-foot-legal { margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; font-size: 12px; color: rgba(255,255,255,.5); }
.ec-foot-legal a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s ease; }
.ec-foot-legal a:hover { color: #f5c518; }
.ec-foot-credit { margin-left: auto; }

/* Reveal */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 900px) {
    .ec { padding: 0; }
    .ec-claim { padding: 80px 0; }
    .ec-metodo, .ec-gruppo { padding: 80px 0; }
    .ec-metodo-grid, .ec-supporto-top, .ec-chisiamo-grid, .ec-servizi-head, .ec-foot-top, .ec-posts-head, .ec-about-grid, .ec-approach { grid-template-columns: 1fr; }
    .ec-supporto-cards { flex-direction: column; }
    .ec-supporto-cards:hover .ec-supporto-card, .ec-supporto-cards .ec-supporto-card:hover { flex-grow: 1; }
    .ec-gruppo-grid2 { grid-template-columns: 1fr; gap: 40px; }
    .ec-gruppo-big { font-size: clamp(28px, 8vw, 44px); margin-bottom: 36px; }
    .ec-gruppo-img-main { width: 100%; }
    .ec-gruppo-img-sub { position: relative; left: auto; bottom: auto; width: 46%; margin-top: -32px; margin-left: 16px; }

    /* Servizi su mobile: fasce statiche, sfondo sempre visibile, testo sopra */
    .ec-servizi-row { min-height: 78vh; display: flex; align-items: center; }
    .ec-servizi-row-bg { opacity: 1; transform: none; }
    .ec-servizi-row::after { opacity: 1; }
    .ec-servizi-row-in { position: static; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 18px; padding: 40px clamp(20px,5vw,40px); }
    .ec-servizi-left { position: static; transform: none; max-width: 100%; flex-direction: column; gap: 14px; }
    .ec-servizi-wordwrap { position: static; width: 100%; display: inline-flex; align-items: center; gap: 12px; }
    .ec-servizi-word { position: static; text-align: left; font-size: clamp(72px, 22vw, 150px); }
    .ec-servizi-word::after { display: none; }
    .ec-servizi-arrow { display: inline-flex; position: static; opacity: 1; transform: none; transition: none; font-size: clamp(72px, 22vw, 150px); }
    .ec-servizi-row:hover .ec-servizi-arrow { transform: none; }
    .ec-servizi-head, .ec-servizi-foot { padding-left: clamp(20px,5vw,40px); padding-right: clamp(20px,5vw,40px); }

    .ec-post { grid-template-columns: 1fr; }
    .ec-post-img { display: none; }

    /* Footer: niente parallax fisso su mobile (altrimenti il top resta tagliato) */
    main { margin-bottom: 0 !important; }
    .ec-footer { position: static; padding: 56px 0 28px; }
    .ec-foot-credit { margin-left: 0; }
    .ec-foot-wordmark { font-size: clamp(30px, 12vw, 80px); white-space: normal; letter-spacing: 1px; }
    .ec-foot-label-mt { margin-top: 18px; }
}

/* Telefoni piccoli */
@media (max-width: 600px) {
    .hero-copy { top: clamp(5.5rem, 16vh, 8rem); width: 92%; }
    .hero-headline { font-size: clamp(2rem, 8.5vw, 2.8rem); }
    .hero-subhead { font-size: 1rem; }
    .hero-followup-text { font-size: clamp(1.4rem, 6vw, 2rem); }
    .ec-metodo-title { font-size: clamp(34px, 11vw, 52px); }
    .ec-chisiamo-w { padding: 64px 20px; }
    .ec-supporto, .ec-posts { padding: 64px 0; }
    .ec-supporto-card { height: 320px; }
}
