/* ==========================================================
   JokaDent — LIGHT WARM THEME FUNNEL PAGE
   Brand colors: teal #1d2c7b, amber #FAB338 (amber lives in the --coral* tokens)
   Audience: pazienti di lingua italiana (IT)
   Clear contrast, larger text, mobile-first responsive
========================================================== */

:root {
    /* Brand */
    --teal: #243444;
    --teal-bright: #33495f;
    --teal-light: #e2e8ed;
    --teal-soft: #f1f4f7;

    --coral: #e8c468;
    --coral-dark: #cfa53f;
    --coral-light: #f8ecd0;
    --coral-soft: #fcf7ea;

    --green: #243444;

    --gold: #e8c468;

    /* Neutrals — warm, not cold */
    --bg: #FAF8F4;
    --bg-warm: #F5F1E8;
    --surface: #FFFFFF;
    --surface-warm: #FBF8F2;

    --text: #1a2a45;
    --text-strong: #0F172A;
    --text-muted: #4B5563;
    --text-light: #6B7280;
    --text-faint: #9CA3AF;

    --border: #E5E7EB;
    --border-warm: #EDE7DA;
    --border-strong: #D1D5DB;

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow: 0 4px 16px rgba(15, 23, 42, 0.06);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.1);
    --shadow-teal: 0 8px 24px rgba(36, 52, 68, 0.22);
    --shadow-coral: 0 8px 24px rgba(232, 196, 104, 0.4);

    /* Radius */
    --r-sm: 8px;
    --r: 12px;
    --r-lg: 16px;
    --r-xl: 24px;

    /* Layout */
    --container: 1200px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: #ffffff;
    color: var(--text);
    font-size: 17px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

input:focus,
textarea:focus,
select:focus {
    outline: none;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

.container--narrow {
    max-width: 880px;
}

.text-teal {
    color: var(--coral);
    font-weight: 600;
    font-style: italic;
}

/* ==========================================================
   STICKY HEADER (preserved)
========================================================== */
.afd-old-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 12px 16px;
    display: flex;
    justify-content: center;
    background: transparent;
    margin-bottom: -98px;
}

.afd-old-header__box {
    background: #ffffff;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 8px 10px;
    max-width: var(--container);
    width: 100%;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(229, 231, 235, 0.6);
    gap: 12px;
}

.afd-old-header__logo {
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.afd-old-header__btn {
    background: var(--coral);
    color: var(--teal);
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 100px;
    padding: 12px 24px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(212, 169, 64, 0.38);
    white-space: nowrap;
}

.afd-old-header__btn:hover {
    background: var(--coral-dark);
    color: var(--teal);
    transform: translateY(-1px);
}

/* ==========================================================
   SHARED — eyebrows, buttons
========================================================== */
.eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 18px;
    padding: 8px 16px;
    background: var(--teal-light);
    border-radius: 100px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 30px;
    border-radius: 100px;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.btn--primary {
    background: var(--coral);
    color: var(--teal);
    box-shadow: 0 4px 14px rgba(212, 169, 64, 0.38);
}

.btn--primary:hover {
    background: var(--coral-dark);
    color: var(--teal);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(212, 169, 64, 0.45);
}

.btn__arrow {
    transition: transform 0.25s ease;
}

.btn--primary:hover .btn__arrow {
    transform: translateX(4px);
}

.btn--ghost {
    background: #ffffff;
    color: var(--text-strong);
    border: 1.5px solid var(--border-strong);
}

.btn--ghost:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-2px);
}

/* ==========================================================
   HERO — Scroll-driven video collapse, desktop (3 columns) and
   mobile (vertical stack of squares) alike. See the mobile media
   query below for the vertical-layout / sticky hand-off notes.
   Card images: assets/corona_faccetter.jpg, https://media.marketing4smb.com/joka/denti_fissi.webp
   (solid-color fallback below if either is missing).
========================================================== */
.hero-collapse {
    position: relative;
    height: 250vh;
    background: var(--teal);
}

.hero-collapse__stage {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-collapse__video-col {
    position: relative;
    width: 100%;
    height: 100vh;
    flex-shrink: 0;
    overflow: hidden;
    z-index: 2;
}

.hero-collapse__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center center;
    background: #0d1330;
}

.hero-collapse__overlay {
    position: absolute;
    inset: 0;
    /* Very light — there's no overlay text to protect anymore, just a hint
       of tone so the video reads as a designed block rather than raw footage. */
    background: linear-gradient(180deg, rgba(10, 14, 35, 0.18) 0%, rgba(10, 14, 35, 0.05) 45%, rgba(10, 14, 35, 0.22) 100%);
    pointer-events: none;
}

.hero-collapse__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
}

/* Non-destructive kill-switch: remove this class from the element to bring
   the overlay text back (markup + JS fade step are otherwise untouched). */
.hero-overlay--hidden {
    display: none !important;
}

.hero-collapse__eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 22px;
}

.hero-collapse__title {
    max-width: 880px;
    font-family: 'Fraunces', Georgia, serif;
    font-size: 60px;
    font-weight: 600;
    line-height: 1.05;
    color: #ffffff;
    letter-spacing: -1.8px;
    margin-bottom: 24px;
}

.hero-collapse__subtitle {
    max-width: 640px;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 36px;
}

.hero-collapse__cta-row {
    display: inline-flex;
    gap: 14px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-collapse .btn--ghost.hero-collapse__btn-ghost {
    background: transparent;
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.55);
}

/* Side treatment cards (appear as the video shrinks) */
.hero-collapse__card {
    position: absolute;
    top: 50%;
    width: 26%;
    height: 78vh;
    border-radius: var(--r-xl);
    overflow: hidden;
    z-index: 1;
    opacity: 0;
    pointer-events: none;
    background-size: cover;
    background-position: center;
    box-shadow: var(--shadow-lg);
}

.hero-collapse__card--left {
    left: 0;
    transform: translateY(-50%) translateX(-60px);
    background-color: var(--teal);
    /* Smile sits in the upper part of this portrait source (1080x1920) —
       verified at both the desktop tall-narrow column and the mobile 4:5
       tile (headless-render sweep): this same focus works at both sizes,
       so one shared value covers both breakpoints. */
    background-position: center 15%;
    background-image:
        linear-gradient(0deg, rgba(10, 14, 35, 0.9) 0%, rgba(10, 14, 35, 0.15) 55%, rgba(10, 14, 35, 0.05) 100%),
        url('assets/corona_faccetter.jpg');
}

.hero-collapse__card--right {
    right: 0;
    transform: translateY(-50%) translateX(60px);
    background-color: var(--teal-bright);
    /* Same reasoning as --left: verified good at both breakpoints. This
       source (938x1677) has more chin/beard below the smile, hence the
       slightly lower focus point than corona_faccetter. */
    background-position: center 20%;
    background-image:
        linear-gradient(0deg, rgba(10, 14, 35, 0.9) 0%, rgba(10, 14, 35, 0.15) 55%, rgba(10, 14, 35, 0.05) 100%),
        url('https://media.marketing4smb.com/joka/denti_fissi.webp');
}

/* Mobile-only caption for the reused #heroVideo, so it reads as "card 2"
   (label/title/link over the same video-col — no duplicate video element). */
.hero-collapse__video-caption {
    display: none;
}

.hero-collapse__card-inner {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 26px;
}

.hero-collapse__card-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 10px;
}

.hero-collapse__card-title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(22px, 2vw, 27px);
    font-weight: 600;
    line-height: 1.15;
    color: #ffffff;
    margin-bottom: 14px;
}

.hero-collapse__card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 700;
    color: var(--gold);
    text-decoration: none;
    transition: gap 0.2s ease, color 0.2s ease;
}

.hero-collapse__card-link span {
    transition: transform 0.2s ease;
}

.hero-collapse__card-link:hover {
    color: #ffffff;
}

.hero-collapse__card-link:hover span {
    transform: translateX(4px);
}

/* Reduced motion (desktop): skip the scroll-hijack, show the final 3-column state */
@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
    .hero-collapse {
        height: 100vh;
    }

    .hero-collapse__stage {
        position: relative;
        top: auto;
    }

    .hero-collapse__video-col {
        width: 46%;
        height: 78vh;
        border-radius: var(--r-xl);
        box-shadow: 0 24px 60px rgba(15, 23, 42, 0.35);
    }

    .hero-collapse__content {
        opacity: 0;
        transform: translateY(-30px);
        pointer-events: none;
    }

    .hero-collapse__card {
        opacity: 1;
        pointer-events: auto;
    }

    .hero-collapse__card--left,
    .hero-collapse__card--right {
        transform: translateY(-50%) translateX(0);
    }
}

/* Mobile: SAME scroll-collapse behavior as desktop (full-bleed video ->
   shrinks + cards reveal), just adapted to a VERTICAL layout since there's
   no room for 3 side-by-side columns. All positioning/sizing here is
   JS-driven per frame (see the script's mobile branch) — these rules only
   set the pre-JS/fallback shape and the properties JS never touches.
   video-col and both cards become position: absolute, each centered via
   top/left: 50% + a JS transform (translate(-50%,-50%) plus a computed
   pixel offset) — this mirrors how the desktop cards are already
   absolutely positioned, just recomputed for a vertical stack instead of
   left:0/right:0.

   Cards are landscape 9/5 rectangles here (not square) — at that ratio the
   full 3-item stack (~3 * cardHeight + 2 * 14px gaps) comfortably fits
   inside one 100svh frame, so the video stays dead-center the whole time
   (no shift trick needed) and BOTH cards animate fully within the pin —
   nothing needs to hang off-frame or bleed past overflow: hidden. That
   also means the sticky hand-off is trivial: once progress hits 1 the
   whole settled stack is already fully on-screen, and the page just
   scrolls on to .founder normally.
   200svh breakdown (tune here + MOBILE_ANIM_FRACTION in the JS together
   if you change either): 100svh sticky frame + 80svh for the shrink/
   reveal animation + 20svh held at the finished state before releasing. */
@media (max-width: 900px) {
    .hero-collapse {
        height: 100vh;
        height: 200svh;
    }

    .hero-collapse__stage {
        position: sticky !important;
        top: 0 !important;
        height: 100vh;
        height: 100svh !important;
        overflow: hidden !important;
    }

    .hero-collapse__video-col {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        /* 100% not 100vw/100svw — vw-family units are sized off the initial
           containing block, which on desktop-class Chrome includes the
           classic scrollbar gutter (~15-17px), making the column wider than
           the actual visible+scrollable page and causing horizontal wobble.
           100% of the (sticky, viewport-width) containing block avoids that
           entirely while looking identical. */
        width: 100%;
        height: 100vh;
        height: 100svh;
        transform: translate(-50%, -50%);
        border-radius: 0;
        box-shadow: none;
    }

    .hero-collapse__overlay {
        /* Strong bottom gradient here (not the light desktop one) so the
           captions stay legible once the cards/video-caption reveal. */
        background: linear-gradient(0deg, rgba(10, 14, 35, 0.9) 0%, rgba(10, 14, 35, 0.15) 55%, rgba(10, 14, 35, 0.05) 100%);
    }

    .hero-collapse__video-caption {
        display: block;
        opacity: 0;
        pointer-events: none;
    }

    .hero-collapse__content {
        padding: 0 20px;
    }

    .hero-collapse__title {
        font-size: 34px;
        letter-spacing: -1px;
    }

    .hero-collapse__subtitle {
        font-size: 17px;
        margin-bottom: 28px;
    }

    .hero-collapse__cta-row {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .hero-collapse__card {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        right: auto !important;
        width: calc(100% - 40px) !important;
        height: auto !important;
        aspect-ratio: 3 / 2 !important;
        border-radius: 16px !important;
        /* This aspect-ratio is the pre-JS/fallback shape. The JS clamps the
           actual rendered height down from here (explicit inline height)
           on short viewports where 3/2 wouldn't fit under the header — see
           the script's mobile branch. opacity/transform/pointer-events
           default from the shared base rule above (opacity: 0, no
           transform yet) — JS drives them from there each frame. */
    }

    /* Re-verified against the real images at the taller 3/2 crop
       (headless-render sweep) — the shared 15%/20% desktop focus (tuned
       for the tall narrow desktop column) doesn't apply here, and denti
       needs less of a downward push than it did at the shorter 9/5 ratio
       since there's more vertical room now. */
    .hero-collapse__card--left {
        background-position: center 10%;
    }

    .hero-collapse__card--right {
        background-position: center 20%;
    }

    .hero-collapse__card-inner {
        padding: 14px 16px;
    }

    .hero-collapse__card-title {
        font-size: 20px;
        margin-bottom: 6px;
    }

    .hero-collapse__card-label {
        margin-bottom: 4px;
    }
}

/* Mobile + reduced motion: skip the scroll-hijack, show the final stacked-
   rectangles state statically (video between the two image cards, in
   normal document flow — same trick as the old static layout: flex
   column + order, no absolute positioning needed once nothing animates). */
@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
    .hero-collapse {
        height: auto !important;
    }

    .hero-collapse__stage {
        position: static !important;
        display: flex;
        flex-direction: column;
        height: auto !important;
        overflow: visible;
        padding-top: 14px;
    }

    .hero-collapse__video-col,
    .hero-collapse__card {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        width: calc(100% - 40px) !important;
        height: auto !important;
        aspect-ratio: 3 / 2 !important;
        margin: 0 auto 14px !important;
        border-radius: 16px !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .hero-collapse__video-col {
        order: 2;
        box-shadow: var(--shadow-lg) !important;
    }

    .hero-collapse__card--left {
        order: 1;
        background-position: center 10%;
    }

    .hero-collapse__card--right {
        order: 3;
        background-position: center 20%;
    }

    .hero-collapse__video-caption {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

/* ==========================================================
   FAQ
========================================================== */
.faq {
    padding: 90px 0;
    background: var(--bg-warm);
}

.faq__header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 44px;
}

.faq__eyebrow {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--coral-dark);
    margin-bottom: 12px;
}

.faq__title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 600;
    line-height: 1.15;
    color: var(--teal);
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.faq__lead {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-muted);
}

.faq__list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Each item gets its own subtle card enclosure — a plain border by
   default, gold on hover, and a gold left-accent while open. The border
   lives on .afd-faq-item (not .afd-faq-question) so the answer's own
   padding stays visually aligned with the question above it. */
.afd-faq-item {
    background: #ffffff;
    border: 1px solid var(--border-warm);
    border-left: 3px solid transparent;
    border-radius: 12px;
    transition: border-color 0.2s ease;
}

.afd-faq-item:hover {
    border-color: var(--coral);
}

.afd-faq-item.active {
    border-left-color: var(--coral);
}

.afd-faq-question {
    width: 100%;
    border: none;
    background: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-family: 'Inter', sans-serif;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--teal);
    padding: 18px 22px;
    transition: color 0.2s ease;
}

.afd-faq-question:hover {
    color: var(--coral-dark);
}

.afd-faq-question::after {
    content: "+";
    font-size: 22px;
    font-weight: 300;
    color: var(--coral);
    line-height: 1;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.afd-faq-item.active .afd-faq-question::after {
    transform: rotate(45deg);
}

.afd-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
    color: var(--text-muted);
    font-size: 15.5px;
    line-height: 1.65;
}

.afd-faq-answer p {
    margin: 0;
    padding: 0 22px 20px;
}

/* ==========================================================
   GOOGLE REVIEWS STRIP — auto-scrolling, seamless (same duplicated-
   content trick as .ticker__track), sits right before the navy #contact
   section. Distinct namespace (.gr-*) from the pre-existing, unused
   .greviews/.greview-card grid rules further down — those aren't wired
   into any markup and are left untouched.
========================================================== */
.gr-strip {
    padding: 90px 0 70px;
    background: var(--bg-warm);
}

.gr-strip__header {
    text-align: center;
    margin-bottom: 40px;
}

.gr-strip__stars {
    color: var(--coral);
    font-size: 20px;
    letter-spacing: 4px;
    margin-bottom: 10px;
}

.gr-strip__label {
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--teal);
}

.gr-strip__wrap {
    overflow: hidden;
    width: 100%;
    padding: 10px 0;
}

.gr-strip__track {
    display: inline-flex;
    gap: 20px;
    animation: grStripScroll 60s linear infinite;
    will-change: transform;
}

.gr-strip__wrap:hover .gr-strip__track {
    animation-play-state: paused;
}

@keyframes grStripScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.gr-card {
    flex: 0 0 340px;
    width: 340px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 26px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.gr-card__stars {
    color: var(--coral);
    font-size: 15px;
    letter-spacing: 2px;
}

.gr-card__text {
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--teal);
    margin: 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.gr-card__name {
    font-family: 'Inter', sans-serif;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--teal);
    margin: 0;
}

.gr-card__name span {
    font-weight: 500;
    color: var(--text-light);
}

.gr-strip__more {
    text-align: center;
    margin-top: 40px;
}

.gr-strip__more a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: 'Inter', sans-serif;
    font-size: 14.5px;
    font-weight: 700;
    color: var(--teal);
    text-decoration: none;
    border-bottom: 1.5px solid var(--coral);
    padding-bottom: 2px;
    transition: color 0.2s ease;
}

.gr-strip__more a:hover {
    color: var(--coral-dark);
}

@media (prefers-reduced-motion: reduce) {
    .gr-strip__track {
        animation: none;
    }
}

@media (max-width: 480px) {
    .gr-card {
        flex: 0 0 280px;
        width: 280px;
    }
}

/* ==========================================================
   CTA / FORM SECTION — compact navy statement + one white form card
========================================================== */
.cta {
    padding: 70px 0;
    background: var(--teal);
}

.cta__inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.cta__eyebrow {
    display: block;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--coral);
    margin-bottom: 14px;
}

.cta__title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(26px, 3.2vw, 36px);
    font-weight: 600;
    line-height: 1.15;
    color: #ffffff;
    letter-spacing: -0.01em;
    margin-bottom: 12px;
}

.cta__lead {
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 32px;
}

.cta__card {
    background: #ffffff;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    text-align: left;
}

/* Form — classes/names unchanged, form-validation.js untouched.
   Minimal skin: no boxed inputs, just an underline that turns gold on
   focus. */
.afd-form:not([hidden]) {
    display: grid;
    gap: 16px;
}

.afd-form input,
.afd-form textarea {
    width: 100%;
    background: transparent;
    color: var(--teal);
    border: none;
    border-bottom: 1.5px solid var(--border-strong);
    font-family: 'Inter', sans-serif;
    border-radius: 0;
    padding: 10px 2px;
    transition: border-color 0.2s ease;
    font-size: 16px;
    line-height: 1.4;
}

.afd-form input::placeholder,
.afd-form textarea::placeholder {
    color: var(--text-light);
}

.afd-form input:focus,
.afd-form textarea:focus {
    outline: none;
    border-color: var(--coral);
}

.afd-form textarea {
    min-height: 80px;
    resize: vertical;
}

.afd-btn-submit {
    width: 100%;
    border: none;
    cursor: pointer;
    background: var(--coral);
    color: var(--teal);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 700;
    padding: 15px 22px;
    line-height: 1;
    text-align: center;
    transition: all 0.2s ease;
    border-radius: 100px;
    margin-top: 6px;
}

.afd-btn-submit:hover {
    background: var(--coral-dark);
    color: var(--teal);
    transform: translateY(-1px);
}

.afd-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.cta__privacy {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.5;
    margin: 14px 0 0;
    text-align: center;
}

.cta__privacy a {
    color: var(--teal);
    text-decoration: underline;
    font-weight: 600;
}

.cta__trust {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.cta__trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13.5px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
}

.cta__trust-check {
    width: 20px;
    height: 20px;
    background: var(--coral);
    color: var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Form success (ID unchanged) */
.afd-form-success {
    text-align: center;
    animation: afdFadeIn 0.4s ease;
}

.afd-form-success:not([hidden]) {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.afd-form-success__icon {
    width: 56px;
    height: 56px;
    background: var(--teal);
    color: var(--coral);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: bold;
    margin: 0 auto 16px;
    animation: afdScaleIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.afd-form-success__title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--teal);
    margin: 0 0 10px;
}

.afd-form-success__text {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-muted);
    margin: 0 0 20px;
    max-width: 38ch;
}

.afd-form-success__btn {
    background: var(--coral);
    color: var(--teal);
    box-shadow: 0 4px 14px rgba(232, 196, 104, 0.38);
    border: none;
    border-radius: 100px;
    padding: 12px 32px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

.afd-form-success__btn:hover {
    background: var(--coral-dark);
}

.afd-form-toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--teal);
    color: #ffffff;
    padding: 14px 24px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    animation: afdSlideUp 0.3s ease;
    max-width: 90%;
    border: 1px solid rgba(232, 196, 104, 0.4);
}

.afd-form-toast.afd-form-toast--warning {
    background: #92400e;
    border-color: rgba(232, 196, 104, 0.5);
}

/* Responsive down to 360px */
@media (max-width: 900px) {
    .cta {
        padding: 56px 0;
    }

    .cta__card {
        padding: 30px 24px;
    }

    .faq {
        padding: 64px 0;
    }

    .faq__header {
        margin-bottom: 32px;
    }

    .faq__title {
        font-size: 24px;
    }

    .afd-faq-question {
        font-size: 16px;
        padding: 16px 18px;
    }

    .afd-faq-answer p {
        padding: 0 18px 18px;
    }
}

@media (max-width: 400px) {
    .cta__card {
        padding: 24px 18px;
    }

    .cta__title {
        font-size: 24px;
    }

    .afd-faq-question {
        font-size: 15px;
        padding: 14px 16px;
    }

    .afd-faq-answer p {
        padding: 0 16px 16px;
    }
}

/* ==========================================================
   COOKIE BANNER — Bottom banner, GDPR compliant
========================================================== */
.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    z-index: 99999;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.15);
    padding: 20px 24px;
    max-width: 1100px;
    margin: 0 auto;
    display: none;
}

.cookie-banner.active {
    display: block;
    animation: cookieSlideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes cookieSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cookie-banner__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.cookie-banner__text {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.cookie-banner__icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}

.cookie-banner__title {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--text-strong);
    margin-bottom: 4px;
}

.cookie-banner__desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.55;
    margin: 0;
}

.cookie-banner__desc a {
    color: var(--teal);
    text-decoration: underline;
    font-weight: 600;
}

.cookie-banner__desc a:hover {
    color: var(--teal-bright);
}

.cookie-banner__actions {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

.cookie-banner__btn {
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 100px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-banner__btn--reject {
    background: transparent;
    color: var(--text-muted);
    border: 1.5px solid var(--border-strong);
}

.cookie-banner__btn--reject:hover {
    background: var(--surface-warm);
    color: var(--text-strong);
}

.cookie-banner__btn--accept {
    background: var(--coral);
    color: var(--teal);
    box-shadow: 0 4px 14px rgba(212, 169, 64, 0.38);
}

.cookie-banner__btn--accept:hover {
    background: var(--coral-dark);
    color: var(--teal);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(29, 44, 123, 0.35);
}

.cookie-reopen {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #ffffff;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    z-index: 9998;
    display: flex;
    align-items: center;
    gap: 6px;
}

.cookie-reopen::before {
    content: "🍪";
    font-size: 14px;
}

.cookie-reopen:hover {
    border-color: var(--teal);
    color: var(--teal);
    transform: translateY(-1px);
}

.cookie-reopen[hidden] {
    display: none;
}

/* ==========================================================
   ANIMATIONS
========================================================== */
@keyframes afdFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes afdScaleIn {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

@keyframes afdSlideUp {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

/* ==========================================================
   RESPONSIVE — TABLET (1024px)
========================================================== */
@media (max-width: 1024px) {
    .hero-collapse__title {
        font-size: 46px;
    }
}

/* ==========================================================
   RESPONSIVE — MOBILE (768px)
========================================================== */
@media (max-width: 768px) {
    body {
        font-size: 16px;
    }

    .container {
        padding: 0 16px;
    }

    /* Header */
    .afd-old-header {
        padding: 10px 12px;
        margin-bottom: -78px;
    }

    .afd-old-header__box {
        padding: 6px 10px 6px 8px;
    }

    .afd-old-header__logo {
        height: 44px;
    }

    .afd-old-header__btn {
        font-size: 13px;
        padding: 10px 18px;
    }

    .eyebrow {
        font-size: 11px;
        padding: 6px 14px;
        margin-bottom: 14px;
    }

    .btn {
        width: 100%;
        font-size: 15px;
        padding: 15px 24px;
    }

    /* CTA form + FAQ — main responsive tweaks live in the dedicated
       max-width: 900px / 400px blocks near the .cta rules; this just
       tightens the trust row and answer text a touch further down. */
    .cta__trust {
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
    }

    .afd-faq-answer {
        font-size: 15px;
    }

    /* Cookie banner — stack on mobile, float off the bottom edge */
    .cookie-banner {
        bottom: 18px;
        left: 10px;
        right: 10px;
        width: auto;
        padding: 16px;
        border-radius: 14px;
    }

    .cookie-banner__inner {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .cookie-banner__icon {
        font-size: 24px;
    }

    .cookie-banner__title {
        font-size: 14px;
    }

    .cookie-banner__desc {
        font-size: 13px;
    }

    .cookie-banner__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .cookie-banner__btn {
        padding: 12px 16px;
        font-size: 14px;
    }

    /* Collapse to an icon-only white circle on mobile (shown only after a consent choice) */
    .cookie-reopen {
        bottom: 12px;
        left: 12px;
        width: 44px;
        height: 44px;
        padding: 0;
        gap: 0;
        font-size: 0;
        border-radius: 50%;
        justify-content: center;
    }

    .cookie-reopen::before {
        font-size: 18px;
    }

}

/* ==========================================================
   RESPONSIVE — SMALL MOBILE (480px)
========================================================== */
@media (max-width: 480px) {
    .afd-old-header__logo {
        height: 38px;
    }

    .afd-old-header__btn {
        font-size: 11px;
        padding: 9px 14px;
    }

    .hero-collapse__title {
        font-size: 28px;
    }

    .hero-collapse__subtitle {
        font-size: 16px;
    }
}

/* ============================================
   SCROLLING TICKER
   ============================================ */

@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-wrap {
  width: 100%;
  background: var(--teal); /* brand navy — was a hardcoded #141f58 leftover */
  overflow: hidden;
  padding: 15px 0;
  white-space: nowrap;
}

.ticker__track {
  display: inline-flex;
  align-items: center;
  animation: tickerScroll 32s linear infinite;
  will-change: transform;
}

/* First ticker on the page: reverse playback of the same keyframe scrolls
   it left-to-right instead of right-to-left. The loop stays seamless
   because the track's content is duplicated end-to-end — translateX(0)
   and translateX(-50%) are visually identical, so the restart jump (at
   either end, forward or reversed) is imperceptible either way. */
.ticker-wrap--reverse .ticker__track {
  animation-direction: reverse;
}

.ticker-wrap:hover .ticker__track {
  animation-play-state: paused;
}

.ticker__item {
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0 28px;
  flex-shrink: 0;
}

.ticker__check {
  color: var(--coral);
}

.ticker__sep {
  color: var(--coral);
  font-size: 0.7rem;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track {
    animation: none;
  }
}

/* ============================================
   VIDEO TESTIMONIAL SECTION
   ============================================ */

.video-proof {
  padding: 80px 0;
  background: #ffffff;
}

.video-proof__inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.video-proof__left {
  display: flex;
  justify-content: center;
}

.video-proof__video-wrap {
  position: relative;
  width: 100%;
  max-width: 300px;
  border-radius: 22px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.18);
  aspect-ratio: 9 / 16;
  background: #111;
}

.video-proof__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 22px;
  overflow: hidden;
}

.video-proof__location {
  position: absolute;
  top: -1px;
  left: 14px;
  transform: translateY(-100%);
  animation: badgeFloatTop 3.5s ease-in-out infinite;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 5px 13px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-strong);
}

.video-proof__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e53e3e;
  flex-shrink: 0;
  display: inline-block;
}

.video-proof__incluso {
  position: absolute;
  bottom: 0;
  left: 10px;
  right: 10px;
  transform: translateY(95%);
  animation: badgeFloatBottom 4s ease-in-out infinite;
  animation-delay: 0.8s;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 12px;
  padding: 7px 10px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #111;
  text-align: center;
  white-space: nowrap;
}

.video-proof__right {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: flex-start;
}

.video-proof__text {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}

.video-proof__headline {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 600;
  color: var(--text-strong);
  line-height: 1.15;
  margin: 0;
}

.video-proof__support {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 55ch;
  margin: 0;
}

.video-proof__attribution {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal, #1d2c7b);
  margin: 0;
}

.video-proof__headline em {
  font-style: italic;
  font-weight: 600;
  color: #333;
  font-size: 0.9em;
  display: block;
  margin-top: 10px;
  line-height: 1.5;
}

.video-proof__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral);
  color: var(--teal);
  font-size: 1.05rem;
  font-weight: 700;
  padding: 18px 34px;
  border-radius: 50px;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
  box-shadow: 0 4px 14px rgba(212, 169, 64, 0.38);
}

.video-proof__cta:hover {
  background: var(--coral-dark);
  color: var(--teal);
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .video-proof {
    padding: 40px 0 48px;
  }
  .video-proof__inner {
    grid-template-columns: 1fr;
    gap: 20px;
    text-align: center;
  }
  .video-proof__video-wrap {
    /* 100%, not 88vw — vw is sized off the full viewport (scrollbar
       included on desktop-class browsers), which at narrow widths made
       this wider than .container's actual padded content box and pushed
       the page into horizontal overflow. 100% just fills the column,
       already inset by .container's own padding — same visual result. */
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
  }
  .video-proof__left {
    padding-bottom: 38px;
  }
  .video-proof__right {
    align-items: center;
  }
  .video-proof--flip .video-proof__left,
  .video-proof--flip .video-proof__right { order: 0; }
}

/* ============================================
   VIDEO TESTIMONIAL CAROUSEL — MOBILE ONLY
   ============================================ */

/* Hidden on desktop */
.vid-carousel {
  display: none;
}

/* Show only on mobile */
@media (max-width: 768px) {
  .vid-carousel {
    display: block;
    padding: 24px 0 20px;
    background: #fff;
  }

  .vid-carousel__track {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 16px 4px;
  }

  .vid-carousel__track::-webkit-scrollbar {
    display: none;
  }

  /* Each card: portrait reel style, show ~2.2 cards */
  .vid-card {
    flex: 0 0 44vw;
    min-width: 44vw;
    aspect-ratio: 9 / 16;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
    background: #222;
    cursor: pointer;
  }

  .vid-card__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Static image card (e.g. the denti_fissi insert) — same tile shape as
     the video cards, no overlay/play button, not cursor:pointer since it
     has no click-to-play behavior. */
  .vid-card--image {
    cursor: default;
  }

  .vid-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    display: block;
  }

  /* Dark overlay + play button */
  .vid-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.18);
    transition: background 0.2s;
  }

  .vid-card.playing .vid-card__overlay {
    background: transparent;
  }

  .vid-card__play {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.88);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, transform 0.15s;
    flex-shrink: 0;
    clip-path: none;
  }

  .vid-card__play::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 9px 0 9px 17px;
    border-color: transparent transparent transparent #111;
    margin-left: 3px;
  }

  .vid-card.playing .vid-card__play {
    opacity: 0;
    transform: scale(0.7);
    pointer-events: none;
  }

}

@keyframes badgeFloatTop {
  0%, 100% { transform: translateY(-100%) translateY(0px); }
  50%       { transform: translateY(-100%) translateY(-5px); }
}

@keyframes badgeFloatBottom {
  0%, 100% { transform: translateY(95%) translateY(0px); }
  50%       { transform: translateY(95%) translateY(5px); }
}

/* ============================================
   STEPS V2 — ZIG-ZAG ANIMATED
   ============================================ */

.steps-v2 {
  padding: 80px 0;
  background: #fff;
}

.steps-v2__eyebrow {
  display: block;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal, #1d2c7b);
  background: rgba(0,148,141,0.08);
  padding: 5px 16px;
  border-radius: 50px;
  width: fit-content;
  margin: 0 auto 16px;
}

.steps-v2__title {
  font-family: 'Fraunces', Georgia, serif;
  text-align: center;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  color: #111;
  margin-bottom: 12px;
}

.steps-v2__lead {
  text-align: center;
  font-size: 1rem;
  color: #666;
  max-width: 580px;
  margin: 0 auto 60px;
  line-height: 1.6;
}

.steps-v2__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
  align-items: start;
}

/* SVG zig-zag connector */
.steps-v2__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

#stepsPath {
  stroke: var(--teal, #1d2c7b);
  stroke-opacity: 0.3;
  stroke-width: 2;
  stroke-dasharray: 2000;
  stroke-dashoffset: 2000;
  transition: stroke-dashoffset 1.2s ease 0.4s;
}

#stepsPath.is-drawn {
  stroke-dashoffset: 0;
}

/* Alternate row offset for zig-zag */
.step-v2--2,
.step-v2--4 {
  margin-top: 80px;
}

/* Step cards */
.step-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(32px) scale(0.95);
  transition: opacity 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-v2.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.step-v2.is-visible .step-v2__icon {
  animation: iconPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.step-v2--2.is-visible .step-v2__icon { animation-delay: 0.12s; }
.step-v2--3.is-visible .step-v2__icon { animation-delay: 0.24s; }
.step-v2--4.is-visible .step-v2__icon { animation-delay: 0.36s; }

@keyframes iconPop {
  0%   { transform: scale(0.5) rotate(-10deg); opacity: 0; }
  70%  { transform: scale(1.15) rotate(4deg); }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

.step-v2--2 { transition-delay: 0.12s; }
.step-v2--3 { transition-delay: 0.24s; }
.step-v2--4 { transition-delay: 0.36s; }

.step-v2__icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.step-v2__icon svg {
  width: 28px;
  height: 28px;
}

.step-v2--1 .step-v2__icon { background: #E1F5EE; color: #0F6E56; }
.step-v2--2 .step-v2__icon { background: #FAECE7; color: #993C1D; }
.step-v2--3 .step-v2__icon { background: #E6F1FB; color: #185FA5; }
.step-v2--4 .step-v2__icon { background: #EAF3DE; color: #3B6D11; }

.step-v2__body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
  line-height: 1.3;
}

.step-v2__body p {
  font-size: 0.86rem;
  color: #666;
  line-height: 1.6;
}

/* Mobile: 2 per row */
@media (max-width: 768px) {
  .steps-v2__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .step-v2--2,
  .step-v2--4 {
    margin-top: 0;
  }
  .steps-v2__svg {
    display: none;
  }
}

.vid-carousel-header {
  display: none;
}

@media (max-width: 768px) {
  .vid-carousel-header {
    display: block;
    padding: 32px 24px 0;
    background: transparent;
    text-align: center;
    position: relative;
  }

  .vid-carousel-header__title {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #111;
    line-height: 1.25;
    margin: 0 0 10px;
    display: inline-block;
    position: relative;
    z-index: 1;
  }

  .vid-carousel-header__title::before {
    content: '';
    position: absolute;
    inset: -5px -16px -3px -12px;
    background: #FFD60A;
    z-index: -1;
    filter: url(#marker-rough);
    transform: rotate(-1deg);
    border-radius: 2px;
  }

  .vid-carousel-header__sub {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
  }
}

/* "Seguici su Instagram" — mobile-only, same hidden-by-default /
   shown-below-768px pattern as the carousel above it. */
.vid-carousel-instagram {
  display: none;
}

@media (max-width: 768px) {
  .vid-carousel-instagram {
    display: flex;
    justify-content: center;
    padding: 4px 24px 28px;
    background: #fff;
  }

  .vid-carousel-instagram__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--teal);
    text-decoration: none;
    padding: 10px 18px;
    border-radius: 100px;
    border: 1.5px solid var(--border-strong);
    transition: border-color 0.2s ease, color 0.2s ease;
  }

  .vid-carousel-instagram__link:hover {
    border-color: var(--teal);
  }

  .vid-carousel-instagram__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
  }
}

/* Explicit, self-documenting confirmation that all three stay hidden on
   desktop — otherwise redundant with the display: none defaults above
   (only overridden back to visible at max-width: 768px), but stated
   directly here so it doesn't silently depend on that breakpoint if it
   ever changes. The hero-collapse side cards cover this role ≥901px. */
@media (min-width: 901px) {
  .vid-carousel-header,
  .vid-carousel,
  .vid-carousel-instagram {
    display: none !important;
  }
}

/* ============================================
   LEAD-CAPTURE POPUP FORM
   ============================================ */

/* Design tokens — tweak these to rebrand the whole form */
:root {
  --brand: #1d2c7b;
  --brand-dark: #141f58;
  --brand-soft: #e4e8f7;
  --ink: #0f1a14;
  --ink-2: #4a5650;
  --ink-3: #8a948f;
  --line: #e6eae7;
  --card: #ffffff;
  --accent-1: #ff7a3c;
  --accent-2: #e8559f;
  --accent-3: #8b5cf6;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-pop: 0 30px 80px -20px rgba(15, 26, 20, 0.35);
  --font-sans: 'Nunito', system-ui, -apple-system, sans-serif;
}

/* ===== FORM (everything below is required) ===== */
*, *::before, *::after { box-sizing: border-box; }

.ada-form {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  background: var(--card);
  border-radius: var(--radius-lg);
  position: relative;
  font-family: var(--font-sans);
  color: var(--ink);
}

.ada-form__progress {
  display: flex; gap: 6px;
  padding: 24px 22px 0;
}
.ada-form__progress span {
  flex: 1; height: 4px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  position: relative;
}
.ada-form__progress span::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 999px;
  transform: translateX(-100%);
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.ada-form__progress span:nth-child(1)::after { background: var(--accent-1); }
.ada-form__progress span:nth-child(2)::after { background: var(--accent-2); }
.ada-form__progress span:nth-child(3)::after { background: var(--accent-3); }
.ada-form__progress span:nth-child(4)::after { background: var(--brand); }
.ada-form__progress span.is-done::after { transform: translateX(0); }

.ada-form__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 0;
  min-height: 36px;
}
.ada-form__back {
  background: transparent; border: none; cursor: pointer;
  padding: 6px; margin-left: -6px;
  border-radius: 8px; color: var(--ink-2);
  display: inline-flex; align-items: center;
  transition: background .15s ease, color .15s ease;
}
.ada-form__back:hover { background: var(--brand-soft); color: var(--ink); }
.ada-form__back[hidden] { visibility: hidden; }
.ada-form__close {
  background: transparent; border: none; cursor: pointer;
  color: var(--brand); font-weight: 600; font-size: 14px;
  padding: 6px 8px; border-radius: 8px;
  transition: background .15s ease;
}
.ada-form__close:hover { background: var(--brand-soft); }
.ada-form__close.hidden { display: none; }

.ada-form__body { padding: 8px 28px 24px; min-height: 360px; position: relative; }
.ada-form__brand {
  display: flex; flex-direction: column;
  align-items: center; text-align: center;
  margin: 8px 0 18px;
}
.ada-form__logo {
  width: 72px; height: 72px;
  border-radius: 50%; overflow: hidden;
  background: white; margin-bottom: 10px;
  display: grid; place-items: center;
}
.ada-form__logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ada-form__brand-name {
  font-size: 13px; color: var(--ink-2);
  font-weight: 600; letter-spacing: 0.02em;
}

.ada-step {
  display: none;
  animation: fadeUp .45s cubic-bezier(.2,.8,.2,1) both;
}
.ada-step.is-active { display: block; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.ada-step__title {
  font-family: var(--font-sans);
  font-weight: 800; font-size: 22px;
  line-height: 1.25; letter-spacing: -0.01em;
  text-align: center; margin: 0 0 6px;
  color: var(--ink);
}
.ada-step__sub {
  text-align: center; color: var(--ink-2);
  font-size: 14px; margin: 0 0 22px;
}

/* Step 1 — choice list */
.ada-choices { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.ada-choice {
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: 14px 20px;
  background: white;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  text-align: left;
  transition: all .18s ease;
  position: relative;
}
.ada-choice:hover { border-color: var(--brand); transform: translateY(-1px); }
.ada-choice.is-selected {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 600;
}
.ada-choice.is-selected::after {
  content: '\2713';
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%);
  color: var(--brand); font-weight: 700;
}

/* Inputs */
.ada-field { margin-bottom: 14px; }
.ada-field input,
.ada-field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--ink);
  background: white;
  transition: border-color .15s ease, box-shadow .15s ease;
  resize: vertical;
}
.ada-field textarea { min-height: 110px; line-height: 1.5; }
.ada-field input:focus,
.ada-field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(29, 44, 123, 0.12);
}
.ada-field input::placeholder,
.ada-field textarea::placeholder { color: var(--ink-3); }
.ada-field__hint {
  font-size: 12px; color: var(--ink-3);
  margin-top: 6px; text-align: right;
}
.ada-field__hint.is-error { color: #c0392b; }

/* Phone field with country picker */
.ada-phone {
  display: flex;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  background: white;
  transition: border-color .15s ease, box-shadow .15s ease;
  position: relative;
}
.ada-phone:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(29, 44, 123, 0.12);
}
.ada-phone__country {
  position: relative;
  border-right: 1.5px solid var(--line);
  background: var(--brand-soft);
  border-top-left-radius: 9px;
  border-bottom-left-radius: 9px;
}
.ada-phone__country-btn {
  height: 100%;
  background: transparent; border: none;
  padding: 0 6px 0 10px;
  cursor: pointer;
  display: flex; align-items: center; gap: 3px;
  font-family: inherit;
}
.ada-phone__flag { font-size: 18px; line-height: 1; }
.ada-phone__caret {
  width: 9px; height: 9px;
  color: var(--brand-dark);
  transition: transform .2s ease;
  opacity: 0.7;
}
.ada-phone__country.is-open .ada-phone__caret { transform: rotate(180deg); }
.ada-phone__list {
  position: absolute;
  top: calc(100% + 6px); left: 0;
  min-width: 220px;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px -8px rgba(15, 26, 20, 0.18);
  list-style: none;
  padding: 4px; margin: 0;
  z-index: 10;
  max-height: 240px; overflow-y: auto;
}
.ada-phone__list[hidden] { display: none; }
.ada-phone__list li {
  padding: 9px 10px;
  border-radius: 6px;
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  color: var(--ink);
  transition: background .12s ease;
}
.ada-phone__list li:hover { background: var(--brand-soft); }
.ada-phone__list li.is-selected {
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-weight: 700;
}
.ada-phone__list .name { flex: 1; }
.ada-phone__list .code { color: var(--ink-3); font-size: 13px; font-weight: 500; }
.ada-phone__list li.is-selected .code { color: var(--brand); }
.ada-field .ada-phone input {
  border: none !important;
  border-radius: 0 !important;
  flex: 1;
  box-shadow: none !important;
  padding: 14px 16px;
  min-width: 0;
  background: transparent;
}
.ada-field .ada-phone input:focus {
  box-shadow: none !important;
  border: none !important;
}
.ada-phone-hint {
  font-size: 12px; color: var(--ink-3);
  margin-top: 6px; text-align: right;
}
.ada-phone-hint.is-error { color: #c0392b; }

.ada-disclaimer {
  font-size: 11.5px; color: var(--ink-3);
  line-height: 1.5; margin: 14px 0 0;
}

/* CTA */
.ada-cta {
  width: calc(100% - 56px);
  margin: 8px 28px 22px;
  padding: 16px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--coral);
  color: #1d2c3d;
  box-shadow: 0 4px 14px rgba(212, 169, 64, 0.38);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease, opacity .15s ease;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ada-cta:hover:not(:disabled) { background: var(--coral-dark); color: #1d2c3d; }
.ada-cta:active:not(:disabled) { transform: scale(0.99); }
.ada-cta:disabled { opacity: 0.4; cursor: not-allowed; }
.ada-cta__spinner {
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: none;
}
.ada-cta.is-loading .ada-cta__spinner { display: inline-block; }
.ada-cta.is-loading .ada-cta__label { opacity: 0.6; }
@keyframes spin { to { transform: rotate(360deg); } }

.ada-form__footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 22px 16px;
  font-size: 12px;
  color: var(--ink-3);
  border-top: 1px solid var(--line);
}
.ada-form__footer-arrows { display: flex; gap: 6px; }
.ada-form__footer-arrows button {
  width: 26px; height: 22px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  color: var(--ink-2);
  display: grid; place-items: center;
  transition: background .15s ease;
}
.ada-form__footer-arrows button:hover:not(:disabled) { background: var(--brand-soft); }
.ada-form__footer-arrows button:disabled { opacity: .35; cursor: not-allowed; }

/* Success step */
.ada-success { text-align: center; padding: 18px 8px 8px; }
.ada-success__icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--brand-soft);
  display: grid; place-items: center;
  color: var(--brand);
  animation: pop .5s cubic-bezier(.2,1.4,.4,1) both;
}
@keyframes pop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.ada-success__icon svg { width: 30px; height: 30px; }
.ada-success h3 {
  font-family: var(--font-sans);
  font-weight: 800; font-size: 22px;
  margin: 0 0 8px; letter-spacing: -0.01em;
}
.ada-success p {
  color: var(--ink-2);
  font-size: 14.5px; line-height: 1.55;
  margin: 0 0 22px;
  max-width: 320px; margin-inline: auto;
}

/* Popup overlay */
.ada-overlay {
  position: fixed; inset: 0;
  background: rgba(15, 26, 20, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.ada-overlay.is-open { display: flex; opacity: 1; }
.ada-overlay .ada-form {
  box-shadow: var(--shadow-pop);
  animation: popIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes popIn {
  from {
    transform: translateY(60px) scale(0.98);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
.ada-overlay .ada-form__close { z-index: 2; }

.mobile-sticky-cta { display: none; }

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: block;
    position: fixed;
    bottom: 12px;
    right: 12px;
    z-index: 9998;
  }
  .mobile-sticky-cta__btn {
    background: var(--coral);
    color: var(--teal);
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border: 1px solid transparent;
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(212, 169, 64, 0.38);
    display: flex;
    align-items: center;
    gap: 6px;
  }
}

/* ===== Video-proof mirrored variant (text left / video right) ===== */
@media (min-width: 769px) {
    .video-proof--flip .video-proof__inner {
        grid-template-columns: 1.2fr 1fr;
    }
    .video-proof--flip .video-proof__left { order: 2; }
    .video-proof--flip .video-proof__right { order: 1; }
}

/* ===== Featured video: transparent play button ===== */
.video-proof__video { cursor: pointer; }
.vp-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(15, 22, 58, 0.35);
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 3;
    transition: transform .2s ease, background .2s ease, opacity .25s ease;
    padding: 0;
}
.vp-play svg { width: 22px; height: 22px; margin-left: 3px; }
.vp-play:hover {
    transform: translate(-50%, -50%) scale(1.08);
    background: rgba(15, 22, 58, 0.55);
}
.vp-play.is-hidden { opacity: 0; pointer-events: none; }
@media (max-width: 768px) {
    .vp-play { width: 48px; height: 48px; }
    .vp-play svg { width: 19px; height: 19px; }
}

/* ===== Perf: skip rendering of far-below-fold content ===== */
.faq { content-visibility: auto; contain-intrinsic-size: auto 1200px; }

/* ==========================================================
   SITE FOOTER
========================================================== */
.site-footer {
    background: var(--teal);
    padding: 56px 0 28px;
}

.site-footer__inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.site-footer__logo img {
    height: 40px;
    width: auto;
    margin: 0 auto 20px;
    display: block;
    /* The logo's wordmark is brand-navy, invisible on this same navy
       background — flatten it to a white monochrome silhouette instead of
       swapping in a different asset. */
    filter: brightness(0) invert(1);
}

.site-footer__desc {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 20px;
}

.site-footer__desc a {
    color: var(--coral);
    font-weight: 600;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.site-footer__desc a:hover {
    color: var(--coral-dark);
}

.site-footer__legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    margin-bottom: 16px;
}

.site-footer__legal a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.site-footer__legal a:hover {
    color: var(--coral);
}

.site-footer__legal span {
    color: rgba(255, 255, 255, 0.3);
}

.site-footer__copy {
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

@media (max-width: 480px) {
    .site-footer {
        padding: 44px 0 24px;
    }

    .site-footer__legal {
        flex-direction: column;
        gap: 6px;
    }

    .site-footer__legal span {
        display: none;
    }
}

/* ===== Section reveal ===== */
.vid-carousel-header, .vid-carousel, .vid-carousel-instagram, .video-proof,
.gr-strip, .steps-v2, .cta, .faq, .site-footer {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .6s ease, transform .6s ease;
}
.vid-carousel-header.in-view, .vid-carousel.in-view, .vid-carousel-instagram.in-view,
.video-proof.in-view, .gr-strip.in-view, .steps-v2.in-view, .cta.in-view, .faq.in-view,
.site-footer.in-view {
    opacity: 1;
    transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
    .vid-carousel-header, .vid-carousel, .vid-carousel-instagram, .video-proof,
    .gr-strip, .steps-v2, .cta, .faq, .site-footer {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Cookie banner: Garante model ===== */
.cookie-banner__close {
    display: none;
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    padding: 4px 8px;
}
.cookie-banner.is-prefs-open .cookie-banner__close { display: block; }
.cookie-banner__close:hover { color: #0f172a; }
.cookie-prefs {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 23, 42, 0.1);
    display: grid;
    gap: 12px;
}
.cookie-pref {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.cookie-pref p { margin: 2px 0 0; font-size: 12.5px; color: #64748b; }
.cookie-pref strong { font-size: 13.5px; }
.cookie-switch {
    appearance: none;
    -webkit-appearance: none;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: #cbd5e1;
    position: relative;
    cursor: pointer;
    flex: 0 0 auto;
    transition: background .2s ease;
}
.cookie-switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.cookie-switch:checked { background: var(--teal); }
.cookie-switch:checked::after { transform: translateX(20px); }
.cookie-switch:disabled { opacity: 0.55; cursor: not-allowed; }
.cookie-prefs__actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
}
.cookie-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(10, 14, 35, 0.32);
    opacity: 0;
    pointer-events: none;   /* never blocks interaction */
    transition: opacity .35s ease;
    z-index: 99998;         /* one below .cookie-banner's z-index: 99999 */
}
.cookie-backdrop.is-visible { opacity: 1; }
.cookie-prefs__note {
    margin: 0 0 2px;
    font-size: 12.5px;
    color: #64748b;
}
.cookie-prefs[hidden] { display: none !important; }
.cookie-banner.is-prefs-open .cookie-banner__actions { display: none; }

/* ==========================================================
   FOUNDER — La storia dal 1972 (JokaDent)
========================================================== */
.founder {
    position: relative;
    padding: 96px 0;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--border-warm);
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.founder.in-view {
    opacity: 1;
    transform: none;
}

/* Wave divider — closes the navy hero-collapse into the cream founder
   section. Absolutely positioned (adds no height, doesn't touch the hero's
   sticky/scroll math) and full-bleed (ignores .container's max-width). A
   1px negative top offset overlaps the hero's navy so no hairline seam can
   show at any viewport width, even with subpixel rounding. */
.founder__wave {
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 90px;
    line-height: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.founder__wave svg {
    display: block;
    width: 100%;
    height: 100%;
}

.founder__wave-fill {
    fill: var(--teal);
}

.founder__wave-line {
    stroke: var(--coral);
    stroke-width: 2px;
    opacity: 0.7;
}

@media (max-width: 900px) {
    .founder__wave {
        height: 48px;
    }
}

.founder__inner {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 64px;
    align-items: center;
}

/* "Ieri e oggi" composition: the vintage anchor photo (.founder__photo-frame,
   unchanged gold-inner-border style) plus a smaller, rotated "now" print
   (.founder__photo-now) overlapping its bottom-LEFT corner (kept off the
   bottom-right, where the founder's hands treating a patient are — the
   most important detail in the vintage photo). The wrapper's own
   left/bottom padding is what reserves room for that overlap to bleed
   into without ever clipping against the section edge. */
.founder__media {
    position: relative;
    padding: 0 0 14% 14%;
}

.founder__photo-frame {
    position: relative;
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-warm);
    background: var(--surface);
}

.founder__photo-frame::after {
    content: "";
    position: absolute;
    inset: 12px;
    border: 1.5px solid rgba(232, 196, 104, 0.55);
    border-radius: calc(var(--r-xl) - 8px);
    pointer-events: none;
}

.founder__photo-frame img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* Small gold pill tags — replace the old single "Dal 1972" badge */
.founder__tag {
    position: absolute;
    background: var(--coral);
    color: var(--teal);
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 700;
    font-size: 14px;
    padding: 7px 14px;
    border-radius: 100px;
    box-shadow: 0 6px 18px rgba(36, 52, 68, 0.25);
    letter-spacing: 0.01em;
    white-space: nowrap;
    z-index: 3;
}

.founder__tag--then {
    top: 16px;
    right: 16px;
}

.founder__tag--now {
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
}

/* The "now" print: a smaller, slightly rotated card overlapping the
   anchor's bottom-left corner — cream border + soft shadow so it reads as
   a printed photo sitting on top, not a matching frame. Rotated the
   opposite way from the old right-side placement so it leans naturally
   from the left. */
.founder__photo-now {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 45%;
    aspect-ratio: 4 / 5;
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    border: 6px solid #fdfaf3;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.28), 0 6px 16px rgba(15, 23, 42, 0.15);
    transform: rotate(2deg);
    z-index: 2;
}

.founder__photo-now img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.founder__title {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.15;
    color: var(--text-strong);
    margin: 14px 0 22px;
    letter-spacing: -0.01em;
}

.founder__para {
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 16px;
    max-width: 60ch;
}

.founder__quote {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(19px, 2vw, 23px);
    font-style: italic;
    font-weight: 500;
    line-height: 1.45;
    color: var(--teal);
    border-left: 3px solid var(--coral);
    padding: 6px 0 6px 22px;
    margin: 26px 0 8px;
}

.founder__quote-attribution {
    font-size: 13.5px;
    font-style: italic;
    color: var(--text-light);
    padding-left: 22px;
    margin: 0 0 26px;
}

.founder__sign {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 30px;
}

.founder__sign-line {
    font-size: 14.5px;
    color: var(--text-light);
}

.founder__sign strong {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 19px;
    color: var(--text-strong);
    font-weight: 600;
}

.founder__sign span {
    font-size: 14.5px;
    color: var(--text-light);
}

.founder__stats {
    display: flex;
    gap: 0;
    border-top: 1px solid var(--border-warm);
    padding-top: 26px;
}

.founder__stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 18px;
}

.founder__stat + .founder__stat {
    border-left: 1px solid var(--border-warm);
    padding-left: 22px;
}

.founder__stat-num {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(26px, 2.6vw, 34px);
    font-weight: 700;
    color: var(--teal);
    line-height: 1;
}

.founder__stat-label {
    font-size: 13.5px;
    color: var(--text-light);
    font-weight: 500;
}

@media (max-width: 900px) {
    .founder {
        padding: 64px 0;
    }

    .founder__inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .founder__media {
        max-width: 420px;
        margin: 0 auto;
        width: 100%;
        /* Same overlap composition, reduced so both photos stay fully
           on screen at mobile widths. */
        padding: 0 0 10% 10%;
    }

    .founder__photo-now {
        width: 40%;
    }

    .founder__stats {
        flex-wrap: wrap;
        gap: 18px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .founder {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ============================================
   NARROW-VIEWPORT FIX (<=400px) — the header (logo + CTA) and the
   cookie-banner action row had a min-content width of ~355px, which
   overflowed narrow screens, widened the layout viewport, and let the
   whole page pan left-right while clipping sections at the right edge.
============================================ */
@media (max-width: 400px) {
    .afd-old-header {
        padding: 10px 10px;
    }

    .afd-old-header__box {
        padding: 6px 8px 6px 6px;
        gap: 8px;
        min-width: 0;
    }

    .afd-old-header__logo {
        height: 36px;
        flex-shrink: 1;
        min-width: 0;
        max-width: 45%;
    }

    .afd-old-header__btn {
        font-size: 12.5px;
        padding: 9px 14px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .cookie-banner {
        left: 12px;
        right: 12px;
        padding: 16px 16px;
    }

    .cookie-banner__actions {
        flex-wrap: wrap;
    }

    .cookie-banner__btn {
        flex: 1 1 auto;
        padding: 11px 16px;
        font-size: 13.5px;
        text-align: center;
    }
}
