/* ============================================
   Getly - Anteprima gratuita
   Stile coerente con getly.it: navy, verde acqua, Work Sans + Inter
   ============================================ */

@font-face{font-family:'Inter';font-style:normal;font-weight:400 700;font-display:swap;src:url('../fonts/inter-400.woff2') format('woff2');}
@font-face{font-family:'Work Sans';font-style:normal;font-weight:400 700;font-display:swap;src:url('../fonts/work-sans-600.woff2') format('woff2');}
@font-face{font-family:'Inter Fallback';src:local('Arial');size-adjust:107.12%;ascent-override:90.44%;descent-override:22.52%;line-gap-override:0%;}
@font-face{font-family:'Work Sans Fallback';src:local('Arial');size-adjust:103%;ascent-override:95%;descent-override:25%;line-gap-override:0%;}

:root {
    --primary-color: #042C53;      /* navy getly */
    --primary-dark: #021E3A;       /* navy profondo (footer) */
    --secondary-color: #185FA5;    /* blu link/accento testo */
    --accent-color: #5DCAA5;       /* verde acqua CTA */
    --accent-dark: #1F7A5E;        /* verde scuro (testo su chiaro / testo bianco su verde) */
    --text-dark: #33475B;
    --text-body: #44566A;
    --text-light: #fff;
    --text-muted: #5A6B7B;
    --bg-light: #F4F8FB;
    --bg-dark: #021E3A;
    --border: #E3EAF1;
    --radius: 16px;
    --font-head: 'Work Sans', 'Work Sans Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-body: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

html, body { overflow-x: hidden; max-width: 100vw; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background: #fff;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--primary-color); }
a { color: var(--secondary-color); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--accent-color); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 10000; background: var(--primary-color); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; color: #fff; }

/* ---------- Bottoni ---------- */
.btn-getly {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    background: var(--accent-color); color: var(--primary-color);
    font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
    border: none; border-radius: 11px; padding: 14px 24px;
    box-shadow: 0 10px 22px -8px rgba(93, 202, 165, .7);
    text-decoration: none; transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease;
}
.btn-getly:hover, .btn-getly:focus { color: var(--primary-color); background: var(--accent-color); transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(93, 202, 165, .9); }
.btn-getly-sm { font-size: .95rem; padding: 10px 18px; }
.btn-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-head); font-weight: 600; color: var(--secondary-color);
    text-decoration: none;
}
.btn-ghost:hover { color: var(--primary-color); }
.btn-getly .btn-arrow, .btn-ghost svg, .work-visit svg { transition: transform .2s ease; }
.btn-getly:hover .btn-arrow, .btn-ghost:hover svg, .work-card:hover .work-visit svg { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) {
    .btn-getly .btn-arrow, .btn-ghost svg, .work-visit svg,
    .step, .feature, .work-card, .video-play-btn,
    .mock-logo, .mock-subtitle, .mock-title, .mock-btn, .mock-service-icon, .browser-url {
        transition: none;
    }
}

/* ---------- Navbar ---------- */
.navbar {
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    padding-top: 14px; padding-bottom: 14px;
    transition: padding .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.navbar.scrolled { padding-top: 8px; padding-bottom: 8px; border-bottom-color: var(--border); box-shadow: 0 6px 20px -12px rgba(4, 44, 83, .35); }
.navbar-brand { padding: 0; }
.navbar-logo { height: 50px; width: auto; display: block; }
.navbar .nav-link {
    font-family: var(--font-head); font-weight: 500; font-size: .98rem;
    color: var(--text-dark); padding: .5rem .9rem !important;
}
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--secondary-color); }
.navbar-toggler { border: 1px solid var(--border); padding: 6px 10px; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(93, 202, 165, .4); }
@media (max-width: 991.98px) {
    .navbar-collapse { background: #fff; border-radius: 12px; margin-top: 10px; padding: 10px 6px 16px; box-shadow: 0 16px 30px -18px rgba(4, 44, 83, .4); }
    .navbar .btn-getly { margin: 10px .9rem 0; }
}
@media (max-width: 575.98px) { .navbar-logo { height: 40px; } }

/* ---------- Hero ---------- */
.hero {
    background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-light) 100%);
    padding: 10.5rem 0 4.5rem;
}
@media (min-width: 992px) { .hero { padding: 10.5rem 0 5.5rem; } }
.eyebrow {
    display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem;
    letter-spacing: .1em; text-transform: uppercase; color: #1F7A5F;
    background: #EAF7F1; padding: 6px 12px; border-radius: 999px;
}
.hero h1 {
    font-weight: 600; font-size: clamp(2rem, 5vw, 3.25rem); line-height: 1.08;
    letter-spacing: -.02em; margin: 18px 0 0; text-wrap: balance;
}

/* Entrata a cascata della hero al caricamento (80ms di ritardo tra un elemento e l'altro).
   h1 e .hero-lede NON animano: sono l'elemento LCP, devono essere visibili e fermi dal primo frame. */
@keyframes heroIn { from { opacity: .01; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.hero .eyebrow, .hero .checks, .hero-mockup-wrap, #modulo.form-card {
    animation: heroIn .5s ease both;
}
.hero .eyebrow { animation-delay: 0s; }
.hero .checks { animation-delay: .16s; }
.hero-mockup-wrap { animation-delay: .24s; }
#modulo.form-card { animation-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
    .hero .eyebrow, .hero .checks, .hero-mockup-wrap, #modulo.form-card, .checks li {
        animation: none; opacity: 1; transform: none;
    }
}
.hero h1 span { color: var(--secondary-color); }
.hero-lede { font-size: clamp(1.05rem, 1.9vw, 1.25rem); line-height: 1.65; color: var(--text-body); margin: 18px 0 0; max-width: 34em; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; line-height: 1.5; animation: checkPop .4s cubic-bezier(.2,.8,.2,1) both; }
.checks li:nth-child(1) { animation-delay: .26s; }
.checks li:nth-child(2) { animation-delay: .34s; }
.checks li:nth-child(3) { animation-delay: .42s; }
.checks li:nth-child(4) { animation-delay: .5s; }
@keyframes checkPop { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
.checks li::before {
    content: "\2713"; flex: 0 0 24px; height: 24px; border-radius: 999px;
    background: var(--accent-color); color: var(--primary-color); font-weight: 700; font-size: 13px;
    display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}
.hero-note { font-size: .9rem; color: var(--text-muted); margin: 20px 0 0; }
.hero-jump { margin-top: 22px; width: 100%; }

/* ---------- Card modulo ---------- */
.form-card {
    background: #fff; border: 1px solid var(--border); border-radius: 18px;
    padding: clamp(22px, 3vw, 32px);
    box-shadow: 0 30px 60px -32px rgba(4, 44, 83, .35);
    scroll-margin-top: 110px;
}
.form-card h2 { font-weight: 600; font-size: 1.4rem; margin: 0 0 6px; }
.form-card .form-intro { font-size: .95rem; color: var(--text-muted); margin: 0 0 16px; }
.form-card .form-label { font-family: var(--font-head); font-weight: 500; font-size: .86rem; color: var(--text-dark); margin-bottom: 5px; }
.form-card .form-control, .form-card .form-select {
    font-size: 1rem; color: var(--primary-color); padding: 11px 14px;
    border: 1.5px solid #D5E0EA; border-radius: 10px;
}
.form-card .form-control:focus, .form-card .form-select:focus { border-color: var(--secondary-color); box-shadow: 0 0 0 3px rgba(24, 95, 165, .15); }
.form-card .form-control::placeholder { color: #8796A5; }
.form-card .form-check-label { font-size: .86rem; color: var(--text-muted); line-height: 1.5; }
.form-card .form-check-input { margin-top: .2rem; }
.form-card .form-check-input:checked { background-color: var(--primary-color); border-color: var(--primary-color); }
.form-card .alert { font-size: .95rem; border-radius: 10px; }
#formSuccess { display: flex; gap: 12px; align-items: flex-start; }
#formSuccess .ok-mark { flex: 0 0 34px; height: 34px; border-radius: 999px; background: var(--accent-dark); color: #fff; display: inline-flex; align-items: center; justify-content: center; }

.btn-submit {
    width: 100%; display: inline-flex; align-items: center; justify-content: center;
    background: var(--accent-color); color: var(--primary-color);
    font-family: var(--font-head); font-weight: 600; font-size: 1.05rem;
    border: none; border-radius: 11px; padding: 14px 20px;
    box-shadow: 0 10px 22px -8px rgba(93, 202, 165, .7);
    transition: transform .2s ease, background .2s ease;
}
.btn-submit:hover, .btn-submit:focus { background: #4DBB96; color: var(--primary-color); transform: translateY(-1px); }
.btn-submit:disabled { opacity: .75; transform: none; }
.form-small { font-size: .82rem; color: var(--text-muted); text-align: center; margin: 10px 0 0; }
.recaptcha-note { font-size: .75rem; color: #5A6B7B; text-align: center; margin: 8px 0 0; line-height: 1.5; }
.recaptcha-note a { color: #3D5266; text-decoration: underline; }
.grecaptcha-badge { visibility: hidden !important; }

/* Toggle canale Messaggio / WhatsApp */
.form-channel-toggle { display: inline-flex; background: rgba(4, 44, 83, .07); border-radius: 999px; padding: 4px; margin-bottom: 1.25rem; gap: 2px; }
.form-channel-toggle .channel-btn { border: none; background: transparent; color: var(--text-muted); padding: 8px 20px; border-radius: 999px; font-weight: 500; font-size: .92rem; cursor: pointer; transition: all .25s ease; display: inline-flex; align-items: center; }
.form-channel-toggle .channel-btn:hover { color: var(--primary-color); }
.form-channel-toggle .channel-btn.active { background: var(--primary-color); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.form-channel-toggle .channel-btn[data-channel="whatsapp"].active { background: #1F7A5E; color: #fff; box-shadow: 0 2px 8px rgba(31, 122, 94, .35); }
.form-channel-toggle .channel-btn[data-channel="whatsapp"].active:hover,
.form-channel-toggle .channel-btn[data-channel="whatsapp"].active:focus { background: #185F49; color: #fff; }
form#contactForm[data-channel="whatsapp"] .btn-submit { background: #1F7A5E !important; border-color: #1F7A5E !important; color: #fff; box-shadow: 0 10px 22px -8px rgba(31, 122, 94, .6); }
form#contactForm[data-channel="whatsapp"] .btn-submit:hover,
form#contactForm[data-channel="whatsapp"] .btn-submit:focus { background: #185F49 !important; border-color: #185F49 !important; color: #fff; }
@media (max-width: 480px) { .form-channel-toggle .channel-btn { padding: 7px 14px; font-size: .85rem; } }

/* Validazione */
.form-control.is-invalid, .form-check-input.is-invalid { border-color: #dc3545 !important; box-shadow: 0 0 0 0.2rem rgba(220,53,69,0.25) !important; }
.form-check-input.is-invalid ~ .form-check-label { color: #dc3545; }
.form-select.is-invalid { border-color: #dc3545 !important; box-shadow: 0 0 0 0.2rem rgba(220,53,69,0.25) !important; }

/* ---------- Sezioni ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-alt { background: var(--bg-light); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto; }
.section-kicker { display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: #1F7A5F; margin-bottom: 12px; }
.section h2 { font-weight: 600; font-size: clamp(1.65rem, 3.6vw, 2.4rem); line-height: 1.15; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.section-sub { font-size: clamp(1rem, 1.8vw, 1.13rem); line-height: 1.65; color: var(--text-body); margin: 14px auto 0; max-width: 40em; }

/* Come funziona: percorso con linea che si disegna allo scroll */
.section-path-bg { background: linear-gradient(135deg, rgba(24, 95, 165, .045) 0%, rgba(93, 202, 165, .06) 100%); }
.path-wrap { margin: 56px 0 0; position: relative; }
.path-steps {
    list-style: none; padding: 0; margin: 0;
    display: flex; flex-direction: column; gap: 36px;
}
.path-line { position: absolute; left: 27px; top: 8.3%; width: 3px; height: 83.3%; pointer-events: none; }
.path-line-track, .path-line-fill {
    position: absolute; left: 0; top: 0; width: 100%; height: 100%; border-radius: 3px;
}
.path-line-track { background: var(--border); }
.path-line-fill {
    background: #1F7A5E; transform-origin: top; transform: scaleY(0);
    transition: transform 1.2s cubic-bezier(.4, 0, .2, 1);
}
.path-wrap.is-drawn .path-line-fill { transform: scaleY(1); }

.path-step { position: relative; padding-left: 76px; min-height: 56px; }
.path-circle {
    position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%;
    background: #fff; border: 3px solid var(--border); color: var(--text-muted);
    font-family: var(--font-head); font-weight: 700; font-size: 1.2rem;
    display: inline-flex; align-items: center; justify-content: center;
    transition: background-color .3s ease, border-color .3s ease, color .3s ease;
}
.path-step.is-active .path-circle { background: #1F7A5E; border-color: #1F7A5E; color: #fff; }
.path-illus {
    display: flex; align-items: center; justify-content: center; box-sizing: border-box;
    width: 120px; height: 90px; margin: 2px 0 14px; padding: 12px;
    background: #fff; border: 1px solid #E2E8F0; border-radius: 14px;
    box-shadow: 0 8px 18px -10px rgba(4, 44, 83, .22);
}
.path-illus svg { width: 100%; height: 100%; display: block; }
.path-step h3 { font-weight: 600; font-size: 1.15rem; margin: 0 0 6px; }
.path-step p { font-size: .98rem; line-height: 1.6; color: var(--text-body); margin: 0; max-width: 46em; }

/* Illustrazioni: stato finale sempre leggibile da ferme; l'animazione è solo un disegno
   d'ingresso one-shot quando la tappa diventa attiva, non un loop che le fa sparire. */
.illus-line { transform: scaleX(1); transform-origin: left; }
.path-step.is-active .illus-line-1 { animation: illusFillLine .7s ease-out forwards; }
.path-step.is-active .illus-line-2 { animation: illusFillLine .7s ease-out .15s forwards; }
.path-step.is-active .illus-line-3 { animation: illusFillLine .7s ease-out .3s forwards; }
@keyframes illusFillLine { 0% { transform: scaleX(0); } 100% { transform: scaleX(1); } }

.illus-block { opacity: 1; }
.path-step.is-active .illus-block-1 { animation: illusFadeIn .7s ease-out forwards; }
.path-step.is-active .illus-block-2 { animation: illusFadeIn .7s ease-out .18s forwards; }
.path-step.is-active .illus-block-3 { animation: illusFadeIn .7s ease-out .36s forwards; }
@keyframes illusFadeIn { 0% { opacity: 0; } 100% { opacity: 1; } }

.illus-check { stroke-dasharray: 34; stroke-dashoffset: 0; transform-origin: center; }
.path-step.is-active .illus-check { animation: illusCheckDraw .7s cubic-bezier(.4, 0, .2, 1) forwards; }
@keyframes illusCheckDraw {
    0% { stroke-dashoffset: 34; transform: scale(1); }
    70% { stroke-dashoffset: 0; transform: scale(1); }
    85% { transform: scale(1.12); }
    100% { stroke-dashoffset: 0; transform: scale(1); }
}

@media (min-width: 768px) {
    .path-steps { flex-direction: row; align-items: flex-start; gap: 0; }
    .path-steps > li { flex: 1 1 0; padding-left: 0; padding-top: 76px; }
    .path-line { left: 16.6667%; top: 27px; width: 66.6667%; height: 3px; }
    .path-line-fill { transform-origin: left; transform: scaleX(0); }
    .path-wrap.is-drawn .path-line-fill { transform: scaleX(1); }
    .path-circle { left: 50%; top: 0; transform: translateX(-50%); }
    .path-illus { margin: 12px auto 14px; }
    .path-step { text-align: center; padding-right: 20px; }
    .path-step p { margin-left: auto; margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) {
    .path-line-fill { transition: none; transform: scaleX(1) scaleY(1) !important; }
    .path-circle { background: #1F7A5E; border-color: #1F7A5E; color: #fff; }
    .illus-line, .illus-block, .illus-check { animation: none !important; }
    .illus-line { transform: scaleX(1); }
    .illus-block { opacity: 1; }
    .illus-check { stroke-dashoffset: 0; }
}

/* Riquadro cambio fornitore */
.switch-box {
    background: linear-gradient(135deg, #EAF2FA 0%, #EAF7F1 100%);
    border: 1px solid #D6E4F0; border-radius: 20px;
    padding: clamp(26px, 4vw, 44px);
    display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: center;
}
.switch-icon { width: 72px; height: 72px; border-radius: 18px; background: var(--primary-color); color: var(--accent-color); display: flex; align-items: center; justify-content: center; font-size: 1.9rem; }
.switch-box h2 { font-size: clamp(1.35rem, 2.6vw, 1.8rem); }
.switch-box p { font-size: 1.05rem; line-height: 1.65; color: var(--text-body); margin: 12px 0 0; max-width: 46em; }
.switch-box .switch-points { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.switch-box .switch-points li { font-family: var(--font-head); font-weight: 500; font-size: .93rem; color: var(--primary-color); display: inline-flex; align-items: center; gap: 7px; }
.switch-box .switch-points i, .switch-box .switch-points svg { color: var(--accent-dark); }
.switch-box .switch-price { font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--primary-color); margin: 14px 0 0; }
@media (max-width: 575.98px) { .switch-box { grid-template-columns: minmax(0, 1fr); } }
.switch-testai-card { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(4, 44, 83, .1); }
.switch-testai-icon { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: #E8F1FA; color: #185FA5; display: inline-flex; align-items: center; justify-content: center; }
.switch-testai-copy { flex: 1 1 auto; min-width: 0; }
.switch-testai-title { font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: #042C53; margin: 0; }
.switch-testai-desc { font-size: .875rem; color: var(--text-muted); margin: 4px 0 0; line-height: 1.5; }
.switch-testai-btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid #185FA5; color: #185FA5; background: transparent; padding: 10px 16px; border-radius: 10px; font-family: var(--font-head); font-weight: 600; font-size: .92rem; text-decoration: none; white-space: nowrap; transition: background .2s ease, color .2s ease; }
.switch-testai-btn:hover, .switch-testai-btn:focus { background: #185FA5; color: #fff; }
@media (max-width: 575.98px) {
    .switch-testai-card { flex-direction: column; align-items: flex-start; }
    .switch-testai-btn { width: 100%; white-space: normal; }
}

/* Vantaggi */
.feature { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.feature:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(4, 44, 83, .5); }
.feature-icon {
    width: 56px; height: 56px; border-radius: 14px; background: linear-gradient(135deg, #EAF7F1 0%, #D2EEE1 100%);
    color: var(--accent-dark); display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.feature h3 { font-weight: 600; font-size: 1.1rem; margin: 16px 0 6px; }
.feature p { font-size: .96rem; line-height: 1.6; color: var(--text-body); margin: 0; }
.feature--highlight { background: linear-gradient(180deg, #FFFFFF 0%, #F2FBF8 100%); border: 2px solid var(--accent-color); box-shadow: 0 16px 34px -20px rgba(93, 202, 165, .55); }

/* Lavori */
#lavori ul.row { list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.work-card { display: block; text-decoration: none; color: inherit; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; height: 100%; transition: transform .2s ease, box-shadow .2s ease; }
.work-card:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -22px rgba(4, 44, 83, .55); color: inherit; }
.work-card img { display: block; width: 100%; height: 200px; object-fit: cover; object-position: top; background: var(--bg-light); transition: transform .6s ease; }
.work-card:hover img, .work-card:focus-visible img { transform: scale(1.06); }
.work-card .work-body { padding: 18px 22px 20px; }
.work-card h3 { font-weight: 600; font-size: 1.1rem; margin: 0; }
.work-card p { font-size: .9rem; color: var(--text-muted); margin: 5px 0 0; }
.work-card .work-visit { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-head); font-weight: 600; font-size: .85rem; color: var(--secondary-color); margin-top: 10px; }
.works-more { text-align: center; margin: 28px 0 0; }

/* Cornice da browser sopra l'immagine + fascia hover "Visita il sito" */
.work-browser-bar { display: flex; align-items: center; gap: 7px; padding: 9px 12px; background: #F1F5F9; border-bottom: 1px solid var(--border); }
.work-domain { margin-left: 8px; font-size: .72rem; color: #5A6B7B; font-family: var(--font-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.work-img-wrap { position: relative; overflow: hidden; }
.work-hover-cta {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 18px;
    background: linear-gradient(180deg, rgba(4, 44, 83, 0) 0%, rgba(4, 44, 83, .85) 100%);
    color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .9rem;
    transform: translateY(100%); opacity: 0; transition: transform .3s ease, opacity .3s ease;
}
.work-card:hover .work-hover-cta, .work-card:focus-visible .work-hover-cta { transform: translateY(0); opacity: 1; }
@media (prefers-reduced-motion: reduce) {
    .work-card img, .work-hover-cta { transition: none; }
}

/* Mobile: carosello orizzontale con scroll-snap, niente librerie */
@media (max-width: 767.98px) {
    #lavori ul.row {
        display: flex; flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch; padding-bottom: 6px; scroll-padding-left: 4px;
    }
    #lavori ul.row::-webkit-scrollbar { display: none; }
    #lavori ul.row > li { flex: 0 0 82%; scroll-snap-align: center; }
    .work-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
}
@media (min-width: 768px) { .work-dots { display: none; } }
.work-dot { width: 8px; height: 8px; border-radius: 50%; border: none; padding: 0; background: var(--border); cursor: pointer; transition: background-color .2s ease, transform .2s ease; }
.work-dot.is-active { background: var(--accent-dark); transform: scale(1.25); }
@media (prefers-reduced-motion: reduce) { #lavori ul.row { scroll-behavior: auto; } }

/* FAQ */
.faq-list { max-width: 780px; margin: 36px auto 0; display: grid; gap: 12px; }
.faq-list details { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; }
.faq-list summary { cursor: pointer; padding: 16px 28px 16px 0; font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; color: var(--primary-color); list-style: none; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 400; color: var(--secondary-color); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { margin: 0 0 16px; font-size: .98rem; line-height: 1.65; color: var(--text-body); }

/* Chiusura */
.final { background: linear-gradient(135deg, var(--primary-color) 0%, #0A3A66 100%); position: relative; overflow: hidden; }
.final .container { position: relative; z-index: 1; }
.final h2 { color: #fff; }
.final .section-sub { color: #C3D4E6; }
.final .btn-getly { margin-top: 28px; }
.final-text { text-align: left; }
.final-text h2, .final-text .section-sub { margin-left: 0; text-align: left; max-width: 34em; }
@media (max-width: 991.98px) {
    .final-text { text-align: center; }
    .final-text h2, .final-text .section-sub { text-align: center; margin-left: auto; margin-right: auto; }
}

/* Forme morbide sfumate sullo sfondo, movimento molto lento */
.final-blobs { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.final-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .32; }
.final-blob--a { width: 420px; height: 420px; background: #185FA5; top: -130px; left: -90px; animation: finalBlobA 20s ease-in-out infinite; animation-play-state: paused; }
.final-blob--b { width: 380px; height: 380px; background: #5DCAA5; bottom: -150px; right: -70px; animation: finalBlobB 20s ease-in-out infinite; animation-play-state: paused; }
.final.in-view .final-blob { animation-play-state: running; }
@keyframes finalBlobA { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(40px, 30px) scale(1.08); } }
@keyframes finalBlobB { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-30px, -25px) scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .final-blob { animation: none; } }

/* Mini mockup statico nella chiusura */
.final-mockup-wrap { position: relative; max-width: 320px; margin: 0 auto; }
.final-mockup-tag {
    position: absolute; top: -38px; right: 0; z-index: 2; background: var(--accent-color); color: var(--primary-color);
    font-family: var(--font-head); font-weight: 600; font-size: .72rem; line-height: 1.3; max-width: 170px;
    padding: 7px 12px; border-radius: 14px; box-shadow: 0 10px 22px -10px rgba(0, 0, 0, .4);
}
.final-mockup { transform: none !important; }

/* Contatti */
.contact-item { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-item .ci-icon { flex: 0 0 44px; height: 44px; border-radius: 12px; background: #EAF2FA; color: var(--secondary-color); display: inline-flex; align-items: center; justify-content: center; }
.contact-item h3 { font-size: .85rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 2px; }
.contact-item a, .contact-item p { font-size: 1.02rem; color: var(--primary-color); text-decoration: none; margin: 0; }
.contact-item a:hover { color: var(--secondary-color); text-decoration: underline; }

/* Card WhatsApp grande nei contatti */
.whatsapp-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: clamp(28px, 4vw, 40px); text-align: center; height: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    box-shadow: 0 20px 44px -26px rgba(4, 44, 83, .35);
}
.whatsapp-card-icon {
    width: 64px; height: 64px; border-radius: 50%; background: #1F7A5E; color: #fff;
    display: inline-flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 18px;
}
.whatsapp-card h3 { font-weight: 600; font-size: 1.25rem; margin: 0 0 10px; }
.whatsapp-card p { color: var(--text-body); font-size: 1rem; margin: 0 0 22px; max-width: 26em; }
.btn-whatsapp-card {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
    background: #1F7A5E; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 1rem;
    padding: 13px 28px; border-radius: 11px; text-decoration: none;
    transition: background-color .2s ease, transform .2s ease;
}
.btn-whatsapp-card:hover, .btn-whatsapp-card:focus { background: #185F49; color: #fff; transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary-dark); color: #A9BCD0; font-size: .93rem; padding: 64px 0 0; }
.site-footer h3, .site-footer h2 { font-family: var(--font-head); color: #fff; font-size: .9rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 16px; }
.site-footer a { color: #C3D4E6; text-decoration: none; }
.site-footer a:hover { color: var(--accent-color); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.site-footer p { margin: 0 0 10px; line-height: 1.6; }
.footer-brand .footer-logo-wrap { display: inline-block; background: #fff; padding: 10px 16px; border-radius: 10px; margin-bottom: 1rem; }
.footer-brand .footer-logo-wrap img { height: 42px; width: auto; display: block; max-width: 100%; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 44px; padding: 20px 0 26px; font-size: .84rem; color: #8FA6BE; }
.footer-bottom a { color: #C3D4E6; }

/* ---------- WhatsApp FAB ---------- */
.wa-fab { position: fixed; right: 20px; bottom: 20px; width: 60px; height: 60px; border-radius: 50%; background: #1F7A5E; color: #fff !important; display: flex; align-items: center; justify-content: center; font-size: 28px; box-shadow: 0 4px 12px rgba(0,0,0,0.25); z-index: 9998; transition: transform 0.2s, background 0.2s; text-decoration: none; animation: waPulse 2s infinite; }
.wa-fab:hover, .wa-fab:focus { transform: scale(1.08); color: #fff; background: #185F49; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(31,122,94,.45), 0 4px 12px rgba(0,0,0,.25); } 70% { box-shadow: 0 0 0 14px rgba(31,122,94,0), 0 4px 12px rgba(0,0,0,.25); } 100% { box-shadow: 0 0 0 0 rgba(31,122,94,0), 0 4px 12px rgba(0,0,0,.25); } }
@media (prefers-reduced-motion: reduce) { .wa-fab { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 576px) { .wa-fab { width: 50px; height: 50px; font-size: 24px; right: 15px; bottom: 15px; } }

/* Cookie icon: verde getly scuro, mai rosso */
#cookie-settings-icon { background: var(--accent-dark, #1F7A5E) !important; }
#cookie-settings-icon:hover { background: var(--primary-color) !important; }
@media (max-width: 576px) { .cookie-settings-btn { left: 15px; bottom: 15px; width: 50px; height: 50px; } }

/* Modali legali */
.modal-body h6 { font-family: var(--font-head); color: var(--primary-color); font-weight: 600; margin-top: 1.4rem; }
.modal-body h6:first-child { margin-top: 0; }
.modal-body table { font-size: .88rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
/* Cascata di 90ms tra le card dentro le griglie (steps, feature, lavori) */
.row .reveal:nth-child(1) { transition-delay: 0ms; }
.row .reveal:nth-child(2) { transition-delay: 90ms; }
.row .reveal:nth-child(3) { transition-delay: 180ms; }
.row .reveal:nth-child(4) { transition-delay: 270ms; }
.row .reveal:nth-child(5) { transition-delay: 360ms; }
.row .reveal:nth-child(6) { transition-delay: 450ms; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Hero mockup "anteprima dal vivo" ---------- */
.hero-mockup-wrap { margin-top: 32px; perspective: 1400px; }
.mockup-label {
    display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 600;
    font-size: .82rem; color: #1F7A5F; background: #EAF7F1; padding: 6px 14px; border-radius: 999px; margin: 0 0 14px;
}
.mockup-dot { width: 8px; height: 8px; border-radius: 50%; background: #1F7A5F; display: inline-block; }
@media (prefers-reduced-motion: no-preference) {
    .mockup-dot { animation: mockupPulse 1.8s ease-in-out infinite; }
}
@keyframes mockupPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(31, 122, 95, .5); }
    50% { box-shadow: 0 0 0 6px rgba(31, 122, 95, 0); }
}
.browser-mock {
    background: #fff; border-radius: 14px; overflow: hidden; max-width: 560px; margin: 0 auto;
    box-shadow: 0 30px 60px -28px rgba(4, 44, 83, .45), 0 2px 10px rgba(4, 44, 83, .08);
}
@media (min-width: 992px) {
    /* allineato al margine sinistro del testo della hero, non centrato */
    .browser-mock { margin: 0; }
}
@media (min-width: 992px) and (prefers-reduced-motion: no-preference) {
    .browser-mock { transform: rotateY(5deg); transition: transform .5s ease; }
    .browser-mock:hover { transform: rotateY(0deg); }
}
.browser-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; background: #F1F5F9; border-bottom: 1px solid var(--border); }
.browser-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.browser-dot--red { background: #FF5F57; }
.browser-dot--yellow { background: #FEBC2E; }
.browser-dot--green { background: #28C840; }
.browser-url {
    margin-left: 10px; flex: 1; background: #fff; border: 1px solid var(--border); border-radius: 999px;
    padding: 4px 12px; font-size: .72rem; color: #5A6B7B; font-family: var(--font-body);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .25s ease;
}
.browser-body { padding: 18px 20px 22px; background: #fff; }
.mock-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.mock-logo { font-family: var(--font-head); font-weight: 700; font-size: .92rem; color: var(--mock-accent-text); transition: opacity .25s ease, color .3s ease; }
.mock-nav-links { display: flex; gap: 8px; }
.mock-nav-links span { width: 20px; height: 6px; border-radius: 4px; background: var(--border); display: inline-block; }
.mock-hero {
    text-align: center; padding: 22px 14px 20px; border-radius: 10px; margin: 0 0 2px;
    background: linear-gradient(135deg, var(--mock-hero-from, #334155) 0%, var(--mock-hero-to, #3f4c5f) 100%);
    transition: background .3s ease;
}
.mock-title {
    font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; color: #fff;
    margin: 0 0 6px; min-height: 1.3em; transition: opacity .25s ease;
}
.mock-subtitle { font-size: .85rem; color: #fff; margin: 0 0 14px; transition: opacity .25s ease; }
.mock-btn {
    display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem;
    color: var(--mock-accent-text); background: #fff; padding: 8px 18px; border-radius: 8px;
    transition: background-color .3s ease, color .3s ease;
}
.mock-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.mock-service { background: #F8FAFC; border-radius: 10px; padding: 12px 8px; text-align: center; }
.mock-service-icon { width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; color: var(--mock-accent); margin-bottom: 8px; transition: color .3s ease; }
.mock-service-icon svg { width: 16px; height: 16px; }
.mock-line { display: block; height: 6px; border-radius: 4px; background: var(--border); margin: 6px auto 0; width: 80%; }
.mock-line.short { width: 55%; }
@media (max-width: 991.98px) {
    /* Versione compatta: solo navbar, titolo, sottotitolo e bottone (altezza complessiva ~220px) */
    .hero-mockup-wrap { margin: 20px 0; }
    .mockup-label { margin-bottom: 10px; }
    .browser-mock { max-width: 100%; }
    .browser-bar { padding: 8px 12px; }
    .mock-services { display: none; }
    .browser-body { padding: 12px 14px 14px; }
    .mock-nav { margin-bottom: 12px; }
    .mock-hero { padding: 10px 6px 6px; }
    .mock-title { font-size: .98rem; margin: 0 0 4px; }
    .mock-subtitle { font-size: .8rem; margin: 0 0 10px; }
    .mock-btn { padding: 7px 16px; font-size: .78rem; }
}

/* ---------- Testimonianza video ---------- */
.testimonial-video { background: #042C53; color: #fff; padding: clamp(56px, 8vw, 96px) 0; overflow: hidden; }
.testimonial-video .section-kicker--light {
    display: inline-block; font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .1em;
    text-transform: uppercase; color: #8FE6C4; background: rgba(93, 202, 165, .15); padding: 6px 12px; border-radius: 999px; margin-bottom: 12px;
}
.testimonial-video h2 { color: #fff; font-weight: 600; font-size: clamp(1.6rem, 3.4vw, 2.2rem); line-height: 1.22; margin: 14px 0 0; text-wrap: balance; }
.testimonial-text { color: #fff; font-size: 1.05rem; line-height: 1.7; margin: 16px 0 0; max-width: 36em; }
.testimonial-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.testimonial-points li { display: flex; gap: 10px; align-items: flex-start; font-size: .98rem; line-height: 1.5; color: #fff; }
.testimonial-points li::before {
    content: "\2713"; flex: 0 0 22px; height: 22px; border-radius: 999px; background: #5DCAA5; color: #042C53;
    font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px;
}
.video-frame { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 20px 50px -24px rgba(0, 0, 0, .5); }
.video-frame picture, .video-frame img, .video-frame iframe { width: 100%; height: 100%; object-fit: cover; display: block; border: 0; }
.video-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%;
    background: rgba(255, 255, 255, .95); color: var(--primary-color); border: none; display: flex; align-items: center;
    justify-content: center; font-size: 1.9rem; cursor: pointer; box-shadow: 0 10px 26px rgba(0, 0, 0, .35);
    transition: transform .2s ease, background-color .2s ease;
}
.video-play-btn svg { width: 1.6rem; height: 1.6rem; margin-left: 2px; }
.video-play-btn:hover, .video-play-btn:focus-visible { background: #fff; transform: translate(-50%, -50%) scale(1.08); }
.video-badge {
    position: absolute; left: 14px; bottom: 14px; background: rgba(4, 44, 83, .85); color: #fff; font-size: .8rem;
    font-weight: 600; padding: 6px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
}
.video-note { color: #9FB4C9; font-size: .85rem; margin: 12px 0 0; text-align: center; }
@media (max-width: 991.98px) { .testimonial-video .video-frame { margin-bottom: 4px; } }

/* ---------- 404 ---------- */
.page-404 .navbar { background: #fff; border-bottom-color: var(--border); }
.error-wrap { padding: 11rem 0 5rem; text-align: center; background: linear-gradient(180deg, #FFFFFF 0%, var(--bg-light) 100%); min-height: 70vh; }
.error-icon { width: 88px; height: 88px; border-radius: 24px; background: #EAF2FA; color: var(--secondary-color); display: inline-flex; align-items: center; justify-content: center; font-size: 2.2rem; }
.error-code { font-family: var(--font-head); font-weight: 700; font-size: clamp(3.5rem, 10vw, 6rem); color: var(--primary-color); line-height: 1; margin: 22px 0 0; letter-spacing: -.03em; }
.error-wrap h1 { font-weight: 600; font-size: clamp(1.5rem, 3vw, 2rem); margin: 12px 0 0; }

/* ---------- Black Friday (temporaneo, valido fino al 30/11/2026 23:59 - vedi REPORT.md) ---------- */
.bf-bar, #black-friday, .bf-field { display: none; }
#black-friday { scroll-margin-top: calc(110px + var(--bf-bar-h, 0px)); }
html.bf-on .bf-bar { display: flex; }
html.bf-on #black-friday { display: block; }
html.bf-on .bf-field { display: block; }

.bf-field-box {
    display: flex; flex-direction: column;
    background: linear-gradient(180deg, #FFFFFF 0%, #F2FBF8 100%);
    border: 1.5px solid var(--accent-color);
    border-radius: 12px;
    padding: 10px 12px 12px;
}
.bf-field-tag {
    align-self: flex-start;
    display: inline-flex; align-items: center;
    background: var(--accent-color); color: var(--primary-color);
    font-family: var(--font-head); font-weight: 700; font-size: .68rem;
    text-transform: uppercase; letter-spacing: .03em;
    padding: 3px 10px; border-radius: 999px; margin-bottom: 7px;
}
.bf-field-box .form-label { margin-bottom: 4px; }

.bf-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1035;
    background: #0B0C10; color: #fff;
    align-items: center; justify-content: center;
    text-align: center; font-size: .85rem; line-height: 1.4; padding: 9px 14px;
    overflow: hidden;
}
.bf-bar::before {
    content: "";
    position: absolute; top: -25%; right: -10%;
    width: 30%; height: 150%;
    background: radial-gradient(circle, rgba(93, 202, 165, .16), transparent 70%);
    pointer-events: none;
}
.bf-bar-inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; }
.bf-bar-tag {
    display: inline-flex; align-items: center;
    background: var(--accent-color); color: var(--primary-color);
    font-family: var(--font-head); font-weight: 700; font-size: .68rem;
    text-transform: uppercase; letter-spacing: .03em;
    padding: 3px 10px; border-radius: 999px;
}
.bf-bar-text { color: #C7C7DE; }
.bf-bar-hl { color: var(--accent-color); font-weight: 700; }
.bf-bar .btn-getly.bf-bar-cta { padding: 5px 16px; font-size: .78rem; box-shadow: none; white-space: nowrap; }
.bf-bar .btn-getly.bf-bar-cta:hover, .bf-bar .btn-getly.bf-bar-cta:focus { box-shadow: 0 10px 20px -8px rgba(93, 202, 165, .7); }
.bf-bar-mobile { display: none; }
html.bf-on .navbar.fixed-top { top: var(--bf-bar-h, 0px); }
html.bf-on .hero { padding-top: calc(10.5rem + var(--bf-bar-h, 0px)); }

/* Barra Black Friday: su mobile una riga sola, altezza max 40px, tutta cliccabile */
@media (max-width: 767.98px) {
    html.bf-on .bf-bar { height: 40px; padding: 0; }
    .bf-bar-inner { display: none; }
    .bf-bar-mobile {
        display: flex; align-items: center; justify-content: center; gap: 8px;
        position: relative; z-index: 1;
        width: 100%; height: 100%;
        padding: 0 14px;
        color: #fff; text-decoration: none;
        overflow: hidden;
    }
    .bf-bar-mobile .bf-bar-tag { flex: 0 0 auto; }
    .bf-bar-mobile-text { color: #C7C7DE; font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

.bf-section {
    background: #0B0C10;
    position: relative;
    overflow: hidden;
}
.bf-section::before {
    content: "";
    position: absolute; top: -25%; right: -10%;
    width: 55%; height: 70%;
    background: radial-gradient(circle, rgba(93, 202, 165, .16), transparent 70%);
    pointer-events: none;
}
.bf-section .container { position: relative; z-index: 1; }
.bf-section .section-kicker {
    background: var(--accent-color); color: var(--primary-color);
    padding: 6px 16px; border-radius: 999px; margin-bottom: 18px;
}
.bf-section #bf-title { color: #fff; }
.bf-section #bf-title .bf-highlight { color: var(--accent-color); }
.bf-section .section-sub { color: #C7C7DE; }
.bf-card { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); }
.bf-card h3 { margin-top: 0; color: #fff; }
.bf-card p { color: #C7C7DE; }
.bf-note { max-width: 54em; margin: 20px auto 0; color: #9A9AB8; }
.bf-cta { margin-top: 28px; }
.error-wrap p { color: var(--text-body); font-size: 1.05rem; max-width: 34em; margin: 12px auto 0; }
