/* ===================================================================
   GUIDONIA MARKETING — main.css  (Part 1/2)
   Tokens · Reset · Header · Hero · Marquee · Intro · Services · Process
   =================================================================== */

:root {
    /* BASE */
    --cream: #e8f0e4;

    /* SECONDARI — più luminosi per evitare l'effetto "opaco" */
    --choco: #5c3d3a;
    /* era #4d3735 — +15% luminosità */
    --choco-light: #7a5546;
    /* era #654836 — +10% luminosità */

    /* ACCENTI — più vivaci */
    --sky: #b8d4ec;
    --sky-dark: #8aaccc;
    --lemon: #fef5c0;
    --lemon-dark: #fdeaa0;
    --blush: #f0d0ce;
    --blush-dark: #dea8b0;
    --olive: #a8b26a;
    --olive-light: #f8f6d6;

    /* TYPO & UTILS */
    --ft: 'Archivo Black', sans-serif;
    --fd: 'Cormorant Garamond', Georgia, serif;
    --fb: 'Jost', sans-serif;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
    font-size: clamp(15px, 1.1vw, 17px);
}

body {
    background: var(--cream);
    color: var(--choco);
    font-family: var(--fb);
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    cursor: none;
}

/* ── HEADER ─────────────────────────────────────────────────────── */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 1.5rem 4rem;
    background: rgba(242, 239, 228, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(77, 55, 53, 0.05);
    transition: all .4s var(--ease);
}

header.scrolled {
    padding: 0.8rem 4rem;
    background: rgba(242, 239, 228, 0.8);
    box-shadow: 0 4px 30px rgba(77, 55, 53, 0.03);
}

.logo {
    display: inline-flex;
    align-items: center;
    font-family: var(--fb);
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--choco);
    text-decoration: none;
}

.brand-logo {
    height: 38px;
    width: auto;
    margin-right: 12px;
    object-fit: contain;
    border-radius: 4px;
}

.logo em {
    font-family: var(--fd);
    font-style: italic;
    font-weight: 400;
    color: var(--choco-light);
}

.logo::after {
    content: '·';
    color: var(--lemon);
    margin-left: 0.15em;
    font-style: normal;
}

.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2.2rem;
    grid-column: 2;
}

.header-actions {
    grid-column: 3;
    display: flex;
    align-items: center;
    gap: 1.8rem;
    justify-self: end;
}

.nav-desktop a {
    font-family: var(--fb);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--choco);
    text-decoration: none;
    position: relative;
    transition: color .3s;
}

.nav-desktop a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--blush-dark);
    transition: width .4s var(--ease);
}

.nav-desktop a:hover {
    color: var(--blush-dark);
}

.nav-desktop a:hover::after {
    width: 100%;
}

.nav-phone {
    display: flex;
    align-items: center;
    color: var(--choco);
    opacity: 0.6;
    transition: opacity .3s, color .3s;
}

.nav-phone:hover {
    opacity: 1;
    color: var(--blush-dark);
}

.nav-phone::after {
    display: none !important;
}

.btn-nav {
    font-family: var(--fb);
    font-size: 0.73rem;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--cream) !important;
    padding: 0.75rem 2rem;
    text-decoration: none;
    display: inline-block;
    border-radius: 3px;
    background: #9ea66b;
    transition: all .4s var(--ease);
    border: 1px solid rgba(212, 175, 55, 0.6);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.4);
    position: relative;
    z-index: 1;
}

.btn-nav:hover {
    background: #9ea66b;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(212, 175, 55, 0.8);
    border-color: rgba(255, 215, 0, 0.9);
}

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
    min-height: calc(100vh - 385px);
    max-height: 980px;
    /* Cap height to prevent blow-up at extreme zoom */
    display: grid;
    grid-template-columns: 55% 45%;
    overflow: hidden;
}

.hero-l {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 4rem 18rem;
    /* Large bottom padding on desktop to keep away from marquee */
    background-color: var(--sky);
    background-image: repeating-linear-gradient(90deg, transparent, transparent 45px, rgba(242, 239, 228, .6) 45px, rgba(242, 239, 228, .6) 90px);
    position: relative;
    overflow: visible;
    z-index: 5;
}

.sticker {
    position: absolute;
    z-index: 10;
    pointer-events: auto;
    transition: transform .3s var(--ease);
}

.sticker:hover {
    transform: scale(1.1) rotate(5deg);
}

.hero-sticker-icons {
    top: 25%;
    right: 5%;
    width: 280px;
    height: auto;
    z-index: 12;
    filter: drop-shadow(0 8px 20px rgba(0, 0, 0, .15));
    animation: floating-rotated 6s ease-in-out infinite;
    transform-origin: center;
}

.hero-eyebrow {
    font-family: var(--fb);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: 1.8rem;
}

.hero-h1 {
    font-family: var(--ft);
    font-size: clamp(2.8rem, 6.4vw, 7rem);
    /* Slightly smaller max and min for better fit */
    font-weight: 400;
    line-height: 0.95;
    color: var(--choco);
    margin-bottom: 2.2rem;
    text-transform: uppercase;
    letter-spacing: -0.04em;
    word-break: break-word;
}

.hero-h1 em {
    font-family: var(--fd);
    font-style: italic;
    font-weight: 400;
    color: var(--choco-light);
    position: relative;
    text-transform: none;
    letter-spacing: 0.02em;
}

.hero-h1 em::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 2px;
    width: 100%;
    height: 1px;
    background: var(--lemon);
    opacity: 0.7;
}

.hero-p {
    font-size: 1rem;
    font-weight: 400;
    color: var(--choco);
    max-width: 40ch;
    line-height: 1.75;
    margin-bottom: 3rem;
}

.hero-ctas {
    display: flex;
    align-items: center;
    gap: 2.4rem;
}

.btn-dark {
    font-family: var(--fb);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--cream);
    background: var(--choco);
    padding: 1rem 2.4rem;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
    z-index: 10;
    transition: background .3s, transform .2s;
}

@media (max-width: 480px) {
    .btn-dark {
        font-size: 0.72rem;
        padding: 1rem 1.8rem;
    }
}

.btn-dark:hover {
    background: var(--blush-dark);
    transform: translateY(-2px);
}

.link-ghost {
    font-family: var(--fb);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    color: var(--choco);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: color .3s, gap .3s;
}

.link-ghost span {
    transition: transform .3s;
}

.link-ghost:hover {
    color: var(--blush-dark);
    gap: 0.9rem;
}

.hero-r-text-bg {
    position: absolute;
    inset: -10% -20%;
    transform: rotate(-15deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    pointer-events: none;
    opacity: 0.12;
    z-index: 1;
}

.hero-r-text-bg span {
    font-family: var(--fb);
    font-size: 5.8rem;
    font-weight: 900;
    line-height: 0.75;
    color: var(--blush);
    white-space: nowrap;
    text-transform: uppercase;
    display: block;
    letter-spacing: -0.01em;
}

.hero-r {
    background: #4d3735;
    position: relative;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6rem 4rem;
}

.hero-r-content {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3.5rem;
}

.hero-r-dot {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    background: var(--lemon);
    clip-path: polygon(50% 0%, 55% 45%, 100% 50%, 55% 55%, 50% 100%, 45% 55%, 0% 50%, 45% 45%);
    z-index: 3;
    box-shadow: 0 0 15px var(--lemon);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
    animation: star-flash 1s ease-in-out infinite;
    pointer-events: none;
}

.hero-r-dot::after {
    display: none;
}

.radar-ring {
    position: absolute;
    top: 42%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .15);
    animation: radar-pulse 3.6s ease-out infinite;
}

.radar-ring:nth-child(1) {
    width: 120px;
    height: 120px;
    animation-delay: 0s;
}

.radar-ring:nth-child(2) {
    width: 120px;
    height: 120px;
    animation-delay: 1.2s;
}

.radar-ring:nth-child(3) {
    width: 120px;
    height: 120px;
    animation-delay: 2.4s;
}

.hero-stat {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* Centered in the brown section */
    text-align: center;
}

.hero-stat::before {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background: var(--lemon);
    opacity: 0.65;
    margin-bottom: 1rem;
}

.hero-stat-n {
    font-family: var(--fd);
    font-size: 5rem;
    font-weight: 300;
    color: var(--cream);
    line-height: 1;
}

.hero-stat-line {
    width: 40px;
    height: 1px;
    background: var(--sky);
    margin: 0.8rem 0;
}

.hero-stat-l {
    font-family: var(--fb);
    font-size: 0.72rem;
    font-weight: 300;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(242, 239, 228, .55);
}

/* ── VIDEO CARD — LIQUID GLASS ───────────────────────────────────── */
.hero-video-wrap {
    position: relative;
    width: 92%;
    max-width: 480px;
    z-index: 10;
}

.liquid-glass-card {
    position: relative;
    border-radius: 28px;
    padding: 3px;
    background: rgba(255, 255, 255, 0.08);
    /* Slightly more visible base */
    backdrop-filter: blur(25px) saturate(180%);
    -webkit-backdrop-filter: blur(25px) saturate(180%);
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    box-shadow:
        0 50px 120px -20px rgba(0, 0, 0, 0.75),
        inset 0 0 40px rgba(255, 255, 255, 0.1),
        0 0 1px 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
    transition: transform 1s var(--ease), box-shadow 0.6s var(--ease), border-color 0.6s var(--ease);
}

.liquid-glass-card:hover {
    transform: perspective(1200px) rotateY(0deg) rotateX(0deg) scale(1.05);
    box-shadow:
        0 60px 140px -20px rgba(0, 0, 0, 0.85),
        inset 0 0 50px rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.5);
}

.liquid-glass-card::before {
    content: '';
    position: absolute;
    inset: -60%;
    background: conic-gradient(from 0deg,
            transparent 0%,
            rgba(184, 212, 236, 0.4) 15%,
            transparent 30%,
            rgba(254, 245, 192, 0.4) 45%,
            transparent 60%,
            rgba(216, 162, 174, 0.4) 75%,
            transparent 100%);
    z-index: 0;
    filter: blur(30px);
    display: block;
}

.liquid-glass-card video,
.liquid-glass-card img {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    z-index: 1;
    border-radius: 22px;
    object-fit: cover;
}

.liquid-glass-card video {
    aspect-ratio: 1080 / 1350;
    background: transparent;
    transition: opacity 0.5s ease;
}

.liquid-glass-card img {
    height: 100%;
    max-height: 550px;
}

@keyframes rotate-liquid {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Sizing for the Chi Siamo section image card */
.intro-img-wrap {
    position: relative;
    width: 100%;
    max-width: 620px;
    z-index: 10;
    justify-self: center;
}

/* Adjusting radar rings to center on the video card wrap */
.hero-video-wrap .radar-ring,
.hero-video-wrap .hero-r-dot,
.intro-img-wrap .radar-ring,
.intro-img-wrap .hero-r-dot {
    top: 50%;
    left: 50%;
}

/* ── MARQUEE ─────────────────────────────────────────────────────── */
.marquee-wrap {
    background: var(--olive);
    overflow: hidden;
    padding: 0.5rem 0;
}

.marquee-inner {
    display: flex;
    gap: 3.5rem;
    animation: scroll 24s linear infinite;
    white-space: nowrap;
    align-items: center;
}

.marquee-inner span {
    font-family: var(--fb);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f7f5d5;
    flex-shrink: 0;
}

.marquee-inner span.sep {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1;
    margin-top: -2px;
}

/* ── TYPE UTILITIES ──────────────────────────────────────────────── */
.label {
    font-family: var(--fb);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: 1.2rem;
}

.h2 {
    font-family: var(--ft);
    font-size: clamp(2rem, 3.2vw, 3.6rem);
    font-weight: 400;
    line-height: 1.1;
    color: var(--choco);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.h2 em {
    font-family: var(--fd);
    font-style: italic;
    font-weight: 400;
    color: var(--choco-light);
    text-transform: none;
    letter-spacing: 0.02em;
}

.body-txt {
    font-size: 0.95rem;
    color: var(--choco-light);
    max-width: 44ch;
    margin-bottom: 1rem;
}

/* ── INTRO (CHI SIAMO) ───────────────────────────────────────────── */
.intro {
    background: var(--choco);
    padding: 10rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7rem;
    align-items: center;
}

.intro .label {
    color: var(--olive);
}

.intro .h2 {
    color: var(--cream);
}

.intro .h2 em {
    color: var(--cream);
    opacity: 0.95;
}

.intro .body-txt {
    color: var(--cream);
    opacity: 0.9;
}

.stats {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.stat-card {
    padding: 2.2rem 2.5rem;
    border-left: 3px solid var(--blush-dark);
    background: rgba(242, 239, 228, 0.03);
    border-radius: 0 12px 12px 0;
}

.stat-card:nth-child(2) {
    border-color: var(--lemon);
}

.stat-n {
    font-family: var(--fd);
    font-size: 3.5rem;
    font-weight: 300;
    color: var(--cream);
    line-height: 1;
}

.stat-label {
    font-family: var(--fb);
    font-size: 0.85rem;
    color: var(--cream);
    opacity: 0.7;
    margin-top: 0.6rem;
}

.stats-footnote {
    color: var(--cream) !important;
    opacity: 0.4 !important;
}

.services {
    background: var(--cream);
    /* Adding subtle gradient mesh to make glass pop against it */
    background: radial-gradient(circle at right 20%, rgba(210, 227, 163, 0.3) 0%, var(--cream) 50%, rgba(219, 205, 179, 0.2) 100%), var(--cream);
    padding: 6rem 4rem 4rem 4rem;
}

.services .label {
    color: var(--olive);
    margin-bottom: 1.2rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.12em;
}

.services .h2 {
    color: var(--choco);
    font-size: clamp(2.5rem, 4vw, 3.8rem);
    margin-bottom: 4rem;
    max-width: 20ch;
}

.services .h2 em {
    color: var(--blush-dark);
}

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

.svc-v2 {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);

    /* ── GLASSMORPHISM CORE ── */
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    position: relative;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.04),
        /* Soft inner depth */
        0 0 45px rgba(255, 255, 255, 0.45),
        /* Elegant soft white aura (Brillo) */
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    /* Glass edge highlight */
}

.svc-v2:hover {
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.4);
    box-shadow:
        0 15px 45px rgba(0, 0, 0, 0.08),
        0 0 65px rgba(255, 255, 255, 0.8),
        /* Intensified elegant glow */
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.8);
}

.svc-shape-wrap {
    position: relative;
    width: 100%;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.svc-shape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    transition: transform 0.8s var(--ease);
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.04));
    object-fit: contain;
}

.svc-v2:hover .svc-shape {
    transform: translateY(-5px) scale(1.05);
}

.svc-v2 .svc-title {
    font-family: var(--fd);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--choco);
    margin-bottom: 1.2rem;
}

.svc-v2 .svc-text {
    font-family: var(--fb);
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--choco);
    opacity: 0.85;
    line-height: 1.65;
    max-width: 32ch;
}

/* ── PORTFOLIO FOLDER — ARTISTIC REFINEMENT ──────────────────────── */
.portfolio-section {
    background: #f7f5d5;
    padding: 6rem 4rem 16rem 4rem;
    overflow: hidden;
}

.portfolio-section .label {
    color: var(--olive);
    margin-bottom: 1.2rem;
}

.portfolio-section .h2 {
    color: var(--choco);
    margin-bottom: 6rem;
}

.folder-container {
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    padding-right: 2rem;
    transform: rotate(-2.5deg);
    /* Tilted for dynamism */
    transform-origin: center;
    transition: transform 0.5s var(--ease);
}

.folder-container:hover {
    transform: rotate(-1deg);
}

.folder-tabs {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 5rem;
    position: relative;
    z-index: 1;
}

.folder-tab {
    background: #f2efe4;
    /* Paper color */
    border: none;
    padding: 2.5rem 1.1rem;
    border-radius: 0 16px 16px 0;
    cursor: pointer;
    font-family: var(--fb);
    font-size: 0.65rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #4d3735;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    transition: all 0.5s var(--ease);
    opacity: 0.8;
    white-space: nowrap;
    position: relative;
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.15);
}

.folder-tab.active {
    background: #f2efe4;
    opacity: 1;
    color: var(--blush-dark);
    transform: translateX(12px);
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.folder-body {
    flex: 1;
    background: #4d3735;
    background: radial-gradient(circle at top left, #443834 0%, #2E2522 60%, #1F1916 100%);
    border-radius: 12px;
    padding: 5rem 6rem 5rem 7rem;
    box-shadow:
        35px 45px 80px rgba(0, 0, 0, 0.25),
        inset 2px 2px 5px rgba(255, 255, 255, 0.05),
        inset -2px -2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.8);
    z-index: 5;
}

/* Folder Spine Crease (Underneath photos) */
.folder-body::before {
    content: "";
    position: absolute;
    left: 4.5rem;
    top: 0;
    bottom: 0;
    width: 20px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.0) 50%, rgba(0, 0, 0, 0.2) 100%);
    box-shadow: inset 5px 0 10px rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.folder-texture {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.25;
    /* Even stronger texture */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    z-index: 2;
    /* Texture over the background but under photos */
    border-radius: 12px;
    mix-blend-mode: multiply;
}

.folder-spine {
    position: absolute;
    left: 2rem;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 1px 0 2px rgba(255, 255, 255, 0.05);
    z-index: 2;
}

.folder-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.folder-header {
    text-align: center;
    margin-bottom: 4rem;
}

.folder-title {
    display: block;
    font-family: var(--fb);
    font-size: 0.8rem;
    letter-spacing: 0.3em;
    font-weight: 400;
    color: #f2efe4;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.folder-subtitle {
    display: block;
    font-family: var(--ft);
    font-size: 3.5rem;
    color: #f2efe4;
    line-height: 1;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.folder-window {
    background: transparent;
    aspect-ratio: 16 / 11;
    position: relative;
    border: none;
    box-shadow: none;
    margin-top: 1rem;
}

.folder-item {
    position: absolute;
    inset: 0;
    background: #f2efe4;
    /* White photo border */
    padding: 0.8rem;
    box-shadow:
        0 15px 40px rgba(0, 0, 0, 0.6),
        0 2px 5px rgba(0, 0, 0, 0.4);
    /* Stronger drop shadow */
    border-radius: 2px;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.6s var(--ease), z-index 0s;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: visible;
    opacity: 1;
    z-index: 10;
    /* Make sure photos are above background elements */
}

/* Messy physical stack rotations */
.folder-item:nth-child(1) {
    transform: rotate(-3deg) translate(-10px, 5px);
    z-index: 10;
}

.folder-item:nth-child(2) {
    transform: rotate(1.5deg) translate(8px, -10px);
    z-index: 9;
}

.folder-item:nth-child(3) {
    transform: rotate(-1.2deg) translate(5px, 8px);
    z-index: 8;
}

.folder-item:nth-child(4) {
    transform: rotate(3.5deg) translate(-5px, -5px);
    z-index: 7;
}

.folder-item.active {
    z-index: 50 !important;
    transform: rotate(0) scale(1.05) translate(0, 0) !important;
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.8),
        0 5px 15px rgba(0, 0, 0, 0.5);
    /* Popped up shadow */
}

.folder-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.05) contrast(1.05);
}

.folder-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 4rem;
    font-family: var(--fb);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #f2efe4;
    opacity: 0.5;
}

@media (max-width: 960px) {
    .portfolio-section {
        padding: 2rem 2rem 6rem 2rem;
    }

    .folder-container {
        flex-direction: column;
        padding-right: 0;
    }

    .folder-tabs {
        flex-direction: row;
        width: 100%;
        order: -1;
        margin-top: 0;
        margin-bottom: -1px;
        z-index: 10;
        gap: 0;
    }

    .folder-tab {
        writing-mode: horizontal-tb;
        padding: 0.8rem 0.5rem;
        border-radius: 12px 12px 0 0;
        border-bottom: none;
        border-right: 1px solid rgba(77, 55, 53, 0.1);
        font-size: 0.55rem;
        flex: 1;
        text-align: center;
        opacity: 1;
        background: #f2efe4;
        color: #4d3735;
    }

    .folder-tab.active {
        transform: translateY(-5px);
        background: #f2efe4;
    }

    .folder-body {
        width: 100%;
        padding: 3rem 1.5rem;
        border-radius: 0 0 12px 12px;
    }

    .folder-body::after {
        display: none;
    }

    /* Hide right side tab on mobile */
    .folder-subtitle {
        font-size: 2.5rem;
    }

    .folder-window {
        padding: 0.8rem;
    }

    .folder-item {
        inset: 0.8rem;
    }
}

/* ══ METODO WHEEL ══════════════════════════════════════════════════ */
#metodo {
    background: var(--cream);
    background: radial-gradient(circle at 15% 50%, rgba(158, 166, 107, 0.05) 0%, transparent 60%),
        radial-gradient(circle at 85% 20%, rgba(216, 162, 174, 0.08) 0%, transparent 50%),
        var(--cream);
    padding: 20px 0;
    overflow: hidden;
    position: relative;
}

.metodo-container {
    max-width: 1540px;
    margin: 0 auto;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 0 40px;
    position: relative;
    min-height: auto;
}

/* METODO GRAPH AREA */
.metodo-graph-area {
    position: relative;
    flex: 2;
    width: 75%;
    aspect-ratio: 3 / 1;
    height: auto;
    z-index: 1;
}

.graph-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.graph-line {
    fill: none;
    stroke: var(--choco);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 2s var(--ease), stroke 0.8s var(--ease);
}

.graph-fill {
    fill: url(#graphGradient);
    opacity: 0.8;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 2s var(--ease), fill 0.8s var(--ease);
}

.graph-point {
    fill: #fff;
    stroke: var(--choco);
    stroke-width: 2;
    r: 5;
    opacity: 0;
    transition: opacity 0.5s var(--ease), stroke 0.8s var(--ease);
}

.graph-point.active {
    opacity: 1;
}

/* NODI AS TOOLTIPS */

/* NODI SATELLITI */
/* Tooltips for steps */



/* NODI AS TOOLTIPS (SATELLITI) */
.metodo-nodo {
    position: absolute;
    min-width: 90px;
    height: auto;
    background: #fff;
    border-radius: 12px;
    padding: 10px 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translate(-50%, -120%) scale(0.8);
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s var(--ease);
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
}

.metodo-nodo::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #fff;
}

.metodo-nodo.active {
    opacity: 1;
    transform: translate(-50%, -120%) scale(1);
    pointer-events: auto;
    background: rgba(var(--nodo-rgb), 1);
    color: var(--choco);
}

.metodo-nodo.active::after {
    border-top-color: rgba(var(--nodo-rgb), 1);
}



.metodo-nodo .nodo-numero {
    font-family: var(--fd);
    font-style: italic;
    font-size: 23px;
    color: var(--choco);
    line-height: 1;
}

.metodo-nodo .nodo-label {
    font-family: var(--fb);
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--choco);
    text-transform: uppercase;
    opacity: 0.8;
}

/* CONTENUTE TESTUALE */
/* CONTENUTO TESTUALE */
.metodo-content {
    position: relative;
    z-index: 2;
    flex: 0 0 350px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.metodo-eyebrow {
    font-family: 'Jost', sans-serif;
    font-size: 11px;
    letter-spacing: 0.25em;
    color: var(--lemon);
    opacity: 0.5;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.metodo-step-box {
    width: 100%;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.metodo-pill {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 100px;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.08em;
    margin-bottom: 24px;
    background: rgba(var(--nodo-rgb), 0.08);
    color: rgba(var(--nodo-rgb), 1);
    border: 1px solid rgba(var(--nodo-rgb), 0.15);
    text-transform: uppercase;
}

.metodo-h3 {
    font-family: var(--ft);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--choco);
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.metodo-h3 em {
    font-style: italic;
    color: rgba(var(--nodo-rgb), 1);
}

.metodo-desc {
    font-family: var(--fb);
    font-weight: 300;
    font-size: 16px;
    color: var(--choco-light);
    line-height: 1.6;
    margin-bottom: 32px;
}

.metodo-sep {
    width: 60px;
    height: 1px;
    background: rgba(var(--nodo-rgb), 1);
    opacity: 0.25;
    margin: 16px 0;
}

.metodo-detail {
    font-family: 'Jost', sans-serif;
    font-size: 14px;
    color: var(--choco);
    opacity: 0.5;
    display: flex;
    align-items: center;
    gap: 12px;
}

.metodo-detail b {
    color: var(--choco);
    font-weight: 500;
}

/* NAV DOTS & PROGRESS */
.metodo-nav {
    display: flex;
    justify-content: flex-start;
    gap: 20px;
    margin-top: 20px;
}

.metodo-dot {
    width: 32px;
    height: 2px;
    background: rgba(77, 55, 53, 0.1);
    cursor: pointer;
    position: relative;
    transition: all 0.4s ease;
}

.metodo-dot.active {
    background: rgba(77, 55, 53, 0.2);
    width: 48px;
}

.metodo-dot .dot-progress {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: rgba(var(--nodo-rgb), 1);
    z-index: 2;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .metodo-container {
        flex-direction: column-reverse;
        padding: 4rem 2rem;
        gap: 60px;
    }

    .metodo-content {
        flex: none;
        max-width: 600px;
        align-items: center;
        text-align: center;
    }

    .metodo-graph-area {
        width: 100%;
        height: 320px;
    }

    .metodo-nav,
    .metodo-detail {
        justify-content: center;
    }

    .metodo-sep {
        margin: 24px auto;
    }

    .metodo-step-box {
        align-items: center;
    }
}






/* ── TERRITORY ───────────────────────────────────────────────────── */
.territory {
    background: #d8a2ae;
    padding: 10rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7rem;
    align-items: center;
}

.territory .label {
    color: var(--cream);
    opacity: 0.8;
}

.territory .h2 {
    color: var(--cream);
}

.territory .h2 em {
    color: var(--choco);
}

.territory .body-txt {
    color: var(--cream);
    opacity: 0.9;
    margin-bottom: 1rem;
}

.terr-vis {
    background: rgba(255, 255, 255, 0.1);
    height: 400px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.terr-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(242, 239, 228, .12);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.terr-ring.r1 {
    width: 100px;
    height: 100px;
}

.terr-ring.r2 {
    width: 220px;
    height: 220px;
    border-color: rgba(242, 239, 228, .08);
}

.terr-ring.r3 {
    width: 360px;
    height: 360px;
    border-color: rgba(242, 239, 228, .05);
}

.terr-pin {
    position: absolute;
    z-index: 5;
    text-align: center;
    opacity: 1;
    transition: opacity .6s ease, left 0s, top 0s;
}

.terr-pin.fade {
    opacity: 0;
}

.terr-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lemon);
    margin: 0 auto 0.5rem;
    animation: ping 2s ease-out infinite;
}

.terr-name {
    font-family: var(--fd);
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--cream);
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 2rem;
}

.badge {
    font-family: var(--fb);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cream);
    background: rgba(77, 55, 53, 0.05);
    border: 1px solid rgba(242, 239, 228, 0.3);
    padding: 0.4rem 1.1rem;
    transition: background .3s, color .3s;
}

.badge:hover {
    background: var(--cream);
    color: var(--choco);
}

/* ── TESTIMONIALS ────────────────────────────────────────────────── */
.testi {
    background: var(--cream);
    padding: 8rem 4rem;
}

.testi .label {
    color: var(--olive);
}

.testi .h2 {
    color: var(--choco);
    margin-bottom: 3.5rem;
}

.testi .h2 em {
    color: var(--blush-dark);
}

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

.testi-card {
    background: var(--cream);
    padding: 2.5rem;
    border-top: 2px solid var(--lemon);
    position: relative;
}

.testi-card:nth-child(2) {
    border-top-color: var(--sky);
}

.testi-card:nth-child(3) {
    border-top-color: var(--blush);
}

.testi-card::before {
    content: '\201C';
    font-family: var(--fd);
    font-size: 4rem;
    color: var(--blush-dark);
    opacity: 0.15;
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    line-height: 1;
}

.testi-txt {
    font-family: var(--fd);
    font-size: 1.08rem;
    font-weight: 300;
    font-style: italic;
    color: var(--choco);
    line-height: 1.65;
    margin-bottom: 1.8rem;
}

.testi-auth {
    font-family: var(--fb);
    font-size: 0.76rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--choco);
}

.testi-role {
    font-family: var(--fb);
    font-size: 0.74rem;
    color: var(--olive);
    margin-top: 0.2rem;
}

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-section {
    background: var(--cream);
    padding: 8rem 4rem;
    border-top: 1px solid rgba(77, 55, 53, .07);
}

.faq-inner {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 7rem;
    align-items: start;
}

.faq-head {
    position: sticky;
    top: 7rem;
}

.faq-head .body-txt {
    margin-top: 1rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-top: 1px solid rgba(77, 55, 53, .1);
    overflow: hidden;
}

.faq-item:last-child {
    border-bottom: 1px solid rgba(77, 55, 53, .1);
}

.faq-q {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    padding: 1.6rem 0;
    font-family: var(--fd);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--choco);
    cursor: pointer;
    list-style: none;
    transition: color .3s;
    user-select: none;
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q::after {
    content: '+';
    font-family: var(--fb);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--blush-dark);
    flex-shrink: 0;
    transition: transform .4s var(--ease), color .3s;
    line-height: 1;
}

.faq-item[open] .faq-q {
    color: var(--blush-dark);
}

.faq-item[open] .faq-q::after {
    transform: rotate(45deg);
}

.faq-a {
    padding: 0 0 1.6rem 0;
    animation: faq-drop .35s var(--ease) forwards;
}

.faq-a p {
    font-size: 0.92rem;
    color: var(--choco-light);
    line-height: 1.78;
    max-width: 56ch;
}

.faq-a strong {
    color: var(--choco);
    font-weight: 500;
}

/* ── CTA + LEAD FORM ─────────────────────────────────────────────── */
.cta {
    background: var(--choco);
    padding: 9rem 4rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    border-radius: 50%;
    width: 700px;
    height: 700px;
    border: 1px solid rgba(242, 239, 228, .06);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cta::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    width: 400px;
    height: 400px;
    border: 1px solid rgba(242, 239, 228, .04);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.cta-tag {
    display: inline-block;
    font-family: var(--fb);
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--olive);
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.cta-h {
    font-family: var(--fd);
    font-size: clamp(2.5rem, 5vw, 5.2rem);
    font-weight: 300;
    color: var(--cream);
    line-height: 1.15;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-h em {
    font-style: italic;
    color: var(--blush);
}

.cta-line {
    width: 32px;
    height: 1px;
    background: var(--lemon);
    margin: 2rem auto 2.5rem;
    position: relative;
    z-index: 1;
    opacity: 0.7;
}

.btn-cream {
    display: inline-block;
    font-family: var(--fb);
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--choco);
    background: var(--cream);
    padding: 1.1rem 3rem;
    text-decoration: none;
    position: relative;
    z-index: 1;
    transition: background .3s, color .3s, transform .2s;
}

.btn-cream:hover {
    background: var(--lemon);
    transform: translateY(-2px);
}

.lead-form {
    background: var(--cream);
    border: 1px solid rgba(92, 61, 58, 0.1);
    border-radius: 4px;
    padding: 3.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
    position: relative;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.lead-form-intro {
    font-family: var(--fb);
    font-size: 0.92rem;
    color: rgba(92, 61, 58, .75);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.lead-form-intro strong {
    color: var(--choco);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.6rem 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.form-group:nth-child(n+3) {
    grid-column: 1 / -1;
}

.form-label {
    font-family: var(--fb);
    font-size: 0.68rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(92, 61, 58, .65);
}

.form-input {
    background: rgba(92, 61, 58, 0.03);
    border: 1px solid rgba(92, 61, 58, 0.15);
    color: var(--choco);
    font-family: var(--fb);
    font-size: 0.95rem;
    font-weight: 400;
    padding: 1rem 1.4rem;
    outline: none;
    transition: all 0.3s var(--ease);
    border-radius: 3px;
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
}

.form-input::placeholder {
    color: rgba(92, 61, 58, 0.4);
}

.form-input:focus {
    border-color: var(--olive);
    background: rgba(92, 61, 58, 0.06);
    box-shadow: 0 0 0 4px rgba(168, 178, 106, 0.15);
}

.form-input.error {
    border-color: var(--blush);
}

.radio-group {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.radio-option {
    cursor: pointer;
    display: block;
}

.radio-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

.radio-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem 0.6rem;
    border: 1px solid rgba(92, 61, 58, 0.15);
    border-radius: 4px;
    background: rgba(92, 61, 58, 0.02);
    transition: all 0.3s var(--ease);
    cursor: pointer;
    gap: 0.2rem;
    height: 100%;
    min-height: 85px;
    justify-content: center;
    width: 100%;
}

.radio-box:hover {
    border-color: rgba(92, 61, 58, 0.3);
    background: rgba(92, 61, 58, 0.05);
}

.radio-option input:checked+.radio-box {
    border-color: var(--olive);
    background: rgba(168, 178, 106, 0.1);
    box-shadow: 0 0 0 1px var(--olive) inset;
}

.radio-value {
    font-family: var(--fb);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--choco);
    line-height: 1.2;
}

.radio-desc {
    font-family: var(--fb);
    font-size: 0.65rem;
    color: rgba(92, 61, 58, .5);
    letter-spacing: 0.04em;
}

.radio-option input:checked+.radio-box .radio-value {
    color: var(--choco);
}

.radio-option input:checked+.radio-box .radio-desc {
    color: var(--choco-light);
}

.btn-form {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    width: 100%;
    margin-top: 2rem;
    padding: 1.1rem 2rem;
    background: var(--olive);
    color: var(--cream);
    font-family: var(--fb);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border: none;
    border-radius: 2px;
    cursor: pointer;
    transition: background .3s, transform .2s, box-shadow .3s;
    box-shadow: 0 4px 20px rgba(158, 166, 107, .3);
}

.btn-form:hover {
    background: #9ea66b;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(158, 166, 107, .45);
}

.btn-form:active {
    transform: translateY(0);
}

.form-note {
    font-family: var(--fb);
    font-size: 0.68rem;
    color: rgba(242, 239, 228, .3);
    text-align: center;
    margin-top: 1rem;
    letter-spacing: 0.06em;
}

.form-success {
    display: none;
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    background: rgba(158, 166, 107, .15);
    border: 1px solid var(--olive);
    border-radius: 2px;
    color: var(--lemon);
    font-family: var(--fb);
    font-size: 0.88rem;
    text-align: center;
}

.form-success.visible {
    display: block;
}

.cta-alt {
    margin-top: 2.5rem;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 1.2rem;
    position: relative;
    z-index: 1;
}

.cta-alt-or {
    font-family: var(--fb);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(242, 239, 228, .25);
}

.btn-whatsapp-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.9rem 2rem;
    background: #25D366;
    color: #fff;
    font-family: var(--fb);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: background .3s, transform .2s, box-shadow .3s;
    box-shadow: 0 4px 16px rgba(37, 211, 102, .3);
}

.btn-whatsapp-cta:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 211, 102, .45);
}

/* ── WHATSAPP STICKY ─────────────────────────────────────────────── */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1000;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, .45);
    text-decoration: none;
    transition: transform .3s var(--ease), box-shadow .3s var(--ease);
    animation: wa-pulse 2.5s ease-out infinite;
}

.whatsapp-btn svg {
    width: 30px;
    height: 30px;
    color: #fff;
    flex-shrink: 0;
}

.whatsapp-btn:hover {
    transform: scale(1.12) translateY(-3px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, .65), 0 0 0 8px rgba(37, 211, 102, .15);
    animation: none;
}

.whatsapp-tooltip {
    position: absolute;
    right: 70px;
    background: var(--choco);
    color: var(--cream);
    font-family: var(--fb);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    transform: translateX(8px);
    transition: opacity .3s, transform .3s;
    pointer-events: none;
}

.whatsapp-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right: none;
    border-left-color: var(--choco);
}

.whatsapp-btn:hover .whatsapp-tooltip {
    opacity: 1;
    transform: translateX(0);
}

/* ── FOOTER ──────────────────────────────────────────────────────── */
footer {
    background: var(--choco);
    border-top: 1px solid rgba(242, 239, 228, .08);
    padding: 5rem 4rem 2.5rem;
}

.foot-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid rgba(242, 239, 228, .08);
}

.foot-brand .logo {
    color: var(--cream);
}

.foot-brand .logo em {
    color: var(--blush);
}

.foot-brand p {
    font-size: 0.87rem;
    color: rgba(242, 239, 228, .4);
    max-width: 30ch;
    margin-top: 1rem;
    line-height: 1.75;
}

.foot-col h4 {
    font-family: var(--fb);
    font-size: 0.68rem;
    font-weight: 400;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--sky);
    margin-bottom: 1.3rem;
}

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

.foot-col li {
    margin-bottom: 0.65rem;
}

.foot-col a {
    font-size: 0.87rem;
    color: rgba(242, 239, 228, .42);
    text-decoration: none;
    transition: color .3s;
}

.foot-col a:hover {
    color: var(--cream);
}

.foot-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    font-size: 0.73rem;
    color: rgba(242, 239, 228, .25);
}

.foot-address {
    margin-top: 1.2rem;
    font-style: normal;
    font-size: 0.84rem;
    color: rgba(242, 239, 228, .35);
    line-height: 1.9;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.foot-address a {
    color: rgba(242, 239, 228, .4);
    text-decoration: none;
    transition: color .3s;
}

.foot-address a:hover {
    color: var(--cream);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────── */
@media (max-width: 960px) {

    header,
    header.scrolled {
        padding: 1.2rem 2rem;
    }

    nav {
        gap: 1.5rem;
    }

    nav a:not(.btn-nav) {
        display: none;
    }

    .nav-phone {
        display: none;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        max-height: none;
        overflow: visible;
    }

    .hero-l {
        padding: 7rem 1.8rem 4rem;
        /* Balanced mobile padding */
    }

    .hero-h1 {
        font-size: clamp(2.4rem, 12vw, 3.8rem);
        /* Mobile specific font scaling */
        line-height: 1;
    }

    .hero-ctas {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.2rem;
    }

    .hero-r {
        height: auto;
        min-height: 550px;
        /* Increased to fit the aspect ratio video better */
        padding: 4rem 1.8rem 8rem;
        /* Extra bottom padding for safety */
        background: var(--choco);
        /* Ensure background covers the whole area */
        overflow: hidden;
        /* Contain background text within the section */
    }

    .hero-r-text-bg span {
        font-size: 3.5rem;
        /* Smaller font on mobile for backround letters */
    }

    .hero-sticker-icons {
        width: 160px;
        top: 6rem;
        right: 1rem;
    }

    .intro {
        grid-template-columns: 1fr;
        padding: 6rem 2rem;
        gap: 4rem;
    }

    .stat-n {
        font-size: 2.8rem;
    }

    .services {
        padding: 4rem 2rem 2rem 2rem;
    }

    .svc-grid-v2 {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .svc-shape-wrap {
        height: 140px;
        margin-bottom: 1.5rem;
    }

    .svc-v2 .svc-title {
        font-size: 1.6rem;
    }

    .svc-v2 .svc-text {
        font-size: 0.9rem;
    }



    .territory {
        grid-template-columns: 1fr;
        padding: 5rem 2rem;
        gap: 3rem;
    }

    .terr-vis {
        height: 250px;
    }

    .testi {
        padding: 5rem 2rem;
    }

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

    .faq-inner {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .faq-section {
        padding: 5rem 2rem;
    }

    .faq-head {
        position: static;
    }

    .cta {
        padding: 6rem 2rem;
    }

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

    .form-group:nth-child(3),
    .form-group:nth-child(4) {
        grid-column: unset;
    }

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

    .lead-form {
        padding: 2rem 1.5rem;
    }

    .whatsapp-btn {
        width: 52px;
        height: 52px;
        bottom: 1.5rem;
        right: 1.5rem;
    }

    .whatsapp-btn svg {
        width: 26px;
        height: 26px;
    }

    .whatsapp-tooltip {
        display: none;
    }

    footer {
        padding: 4rem 2rem 2rem;
    }

    .foot-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2.5rem;
    }
}

/* ── PAGINE INTERNE — stili condivisi ────────────────────────────── */

/* Page Hero */
.page-hero {
    min-height: 50vh;
    background-color: var(--sky);
    background-image: none;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 12rem 4rem 7rem;
}

/* Soft noise + radial texture instead of stripes */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 50%, rgba(255, 255, 255, 0.45) 0%, transparent 65%),
        radial-gradient(ellipse at 15% 80%, rgba(158, 166, 107, 0.18) 0%, transparent 55%);
    z-index: 0;
    pointer-events: none;
}

.page-hero-inner {
    max-width: 760px;
    position: relative;
    z-index: 2;
}

.page-h1 {
    font-family: var(--ft);
    font-size: clamp(3rem, 5.5vw, 5.5rem);
    font-weight: 400;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -0.03em;
    color: var(--choco);
    margin-bottom: 1.5rem;
}

.page-h1 em {
    font-family: var(--fd);
    font-style: italic;
    text-transform: none;
    font-weight: 300;
    color: var(--choco-light);
    letter-spacing: 0.02em;
}

/* Contact Page */
.contact-section {
    background: var(--cream);
    padding: 7rem 4rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 7rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

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

.contact-block {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.contact-block-label {
    font-family: var(--fb);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--olive);
}

.contact-link {
    font-family: var(--fd);
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--choco);
    text-decoration: none;
    transition: color .3s;
}

.contact-link:hover {
    color: var(--blush-dark);
}

.contact-link.contact-wa {
    font-family: var(--fb);
    font-size: 0.88rem;
    color: #25D366;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.contact-note {
    font-family: var(--fb);
    font-size: 0.78rem;
    color: var(--choco-light);
    margin-top: 0.2rem;
}

.contact-address {
    font-style: normal;
    font-family: var(--fd);
    font-size: 1rem;
    color: var(--choco-light);
    line-height: 1.75;
}

/* Servizi page */
.svc-page-section {
    background: var(--cream);
    padding: 0;
}

.svc-page-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 4rem;
    padding: 6rem 4rem;
    border-bottom: 1px solid rgba(77, 55, 53, .07);
    align-items: start;
}

.svc-page-item--alt {
    background: var(--cream);
}

.svc-page-num {
    font-family: var(--fd);
    font-size: 5rem;
    font-weight: 300;
    color: rgba(77, 55, 53, .06);
    line-height: 1;
    padding-top: 0.5rem;
}

.svc-page-title {
    font-family: var(--fd);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 300;
    color: var(--choco);
    margin-bottom: 1.2rem;
}

.svc-page-desc {
    font-size: 0.98rem;
    color: var(--choco-light);
    line-height: 1.78;
    margin-bottom: 1.5rem;
    max-width: 55ch;
}

.svc-page-desc strong {
    color: var(--choco);
    font-weight: 500;
}

.svc-page-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.svc-page-list li {
    font-size: 0.9rem;
    color: var(--choco-light);
    padding-left: 1.2rem;
    position: relative;
}

.svc-page-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--olive);
    font-size: 0.8rem;
}

.svc-page-result {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 1.2rem 1.5rem;
    border-left: 2px solid var(--blush-dark);
    background: var(--cream);
}

.svc-result-n {
    font-family: var(--fd);
    font-size: 2.4rem;
    font-weight: 300;
    color: var(--choco);
}

.svc-result-l {
    font-family: var(--fb);
    font-size: 0.8rem;
    color: var(--choco-light);
}

/* Pricing note */
.pricing-note {
    background: var(--choco);
    padding: 7rem 4rem;
}

.pricing-note-inner {
    max-width: 640px;
    margin: 0 auto;
}

.pricing-note .label {
    color: var(--olive);
}

.pricing-note .h2 {
    color: var(--cream);
}

.pricing-note .h2 em {
    color: var(--blush);
}

.pricing-note .body-txt {
    color: rgba(242, 239, 228, .6);
}

/* Zones section */
.zones-section {
    background: var(--cream);
    padding: 7rem 4rem;
}

.zones-section .label {
    color: var(--olive);
}

.zones-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-top: 3rem;
}

.zone-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.4rem 1.8rem;
    border: 1px solid rgba(77, 55, 53, .1);
    text-decoration: none;
    background: var(--cream);
    transition: background .3s, border-color .3s, transform .2s;
}

.zone-card:hover {
    background: var(--choco);
    border-color: var(--choco);
    transform: translateX(4px);
}

.zone-name {
    font-family: var(--fd);
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--choco);
    transition: color .3s;
}

.zone-arrow {
    color: var(--olive);
    transition: color .3s;
}

.zone-card:hover .zone-name,
.zone-card:hover .zone-arrow {
    color: var(--cream);
}

/* About page */
.about-section {
    background: var(--cream);
    padding: 7rem 4rem;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7rem;
    align-items: start;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding-top: 2rem;
}

/* Values section */
.values-section {
    background: var(--choco);
    padding: 7rem 4rem;
}

.values-section .label {
    color: var(--olive);
}

.values-section .h2 {
    color: var(--cream);
}

.values-section .h2 em {
    color: var(--blush);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3.5rem;
}

.value-item {
    padding-top: 2rem;
    border-top: 1px solid rgba(242, 239, 228, .1);
}

.value-num {
    font-family: var(--fd);
    font-size: 3rem;
    font-weight: 300;
    color: rgba(242, 239, 228, .07);
    line-height: 1;
    margin-bottom: 1.5rem;
}

.value-title {
    font-family: var(--fd);
    font-size: 1.4rem;
    font-weight: 400;
    color: var(--cream);
    margin-bottom: 0.8rem;
}

.value-desc {
    font-size: 0.87rem;
    color: rgba(242, 239, 228, .5);
    line-height: 1.75;
}

/* Zone page specifics */
.zone-hero {
    min-height: 55vh;
    background: #4d3735;
    display: flex;
    align-items: flex-end;
    padding: 10rem 4rem 5rem;
    position: relative;
    overflow: hidden;
}

.zone-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.08;
    font-family: var(--fb);
    font-size: 8rem;
    font-weight: 900;
    color: var(--cream);
    white-space: nowrap;
    overflow: hidden;
    display: flex;
    align-items: center;
    pointer-events: none;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.zone-hero-content {
    position: relative;
    z-index: 1;
}

.zone-hero .page-h1 {
    color: var(--cream);
}

.zone-hero .page-h1 em {
    color: var(--blush);
}

.zone-hero .body-txt {
    color: rgba(242, 239, 228, .6);
    max-width: 45ch;
}

.zone-hero .label {
    color: var(--olive);
}

.zone-content {
    background: var(--cream);
    padding: 7rem 4rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7rem;
    align-items: start;
}

.zone-content .h2 em {
    color: var(--blush-dark);
}

.zone-services {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.zone-service {
    padding: 1.2rem 1.5rem;
    border-left: 2px solid var(--blush-dark);
    background: var(--cream);
}

.zone-service-title {
    font-family: var(--fd);
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--choco);
    margin-bottom: 0.3rem;
}

.zone-service-desc {
    font-size: 0.83rem;
    color: var(--choco-light);
}

.zone-service:nth-child(2) {
    border-color: var(--olive);
}

.zone-service:nth-child(3) {
    border-color: var(--lemon);
    filter: brightness(0.85);
}

/* Blog page */
.blog-hero {
    min-height: 40vh;
    background: var(--cream);
    padding: 10rem 4rem 5rem;
}

.blog-grid {
    background: var(--cream);
    padding: 5rem 4rem;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.blog-card {
    padding: 2.5rem;
    border-top: 2px solid var(--blush-dark);
    background: var(--cream);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform .3s, box-shadow .3s;
}

.blog-card:nth-child(2) {
    border-color: var(--olive);
}

.blog-card:nth-child(3) {
    border-color: var(--sky);
}

.blog-card:nth-child(4) {
    border-color: var(--blush);
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(77, 55, 53, .08);
}

.blog-cat {
    font-family: var(--fb);
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--olive);
}

.blog-title {
    font-family: var(--fd);
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--choco);
    line-height: 1.3;
}

.blog-excerpt {
    font-size: 0.87rem;
    color: var(--choco-light);
    line-height: 1.7;
}

.blog-link {
    font-family: var(--fb);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--blush-dark);
    margin-top: auto;
}

/* ── RESPONSIVE pagine interne ────────────────────────────────── */
@media (max-width: 960px) {
    .page-hero {
        padding: 9rem 2rem 5rem;
    }

    .contact-section {
        padding: 5rem 2rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .svc-page-item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 4rem 2rem;
    }

    .svc-page-num {
        font-size: 3rem;
    }

    .pricing-note {
        padding: 5rem 2rem;
    }

    .zones-section {
        padding: 5rem 2rem;
    }

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

    .about-section {
        padding: 5rem 2rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .values-section {
        padding: 5rem 2rem;
    }

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

    .zone-hero {
        padding: 8rem 2rem 4rem;
    }

    .zone-content {
        grid-template-columns: 1fr;
        padding: 5rem 2rem;
        gap: 3rem;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        padding: 4rem 2rem;
    }
}

/* ── HAMBURGER & OVERLAY MENU ───────────────────────────────────── */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 18px;
    cursor: pointer;
    z-index: 1001;
    position: relative;
    transition: transform .3s var(--ease);
}

.nav-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--choco);
    transition: all .4s var(--ease);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.nav-toggle.active span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

.menu-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(77, 55, 53, 0.2);
    backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: opacity .5s var(--ease), visibility .5s;
}

.menu-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.menu-overlay {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    height: 100vh;
    background: var(--cream);
    z-index: 3000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem 4rem;
    transform: translateX(100%);
    transition: transform .6s cubic-bezier(0.85, 0, 0.15, 1);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.1);
    border-left: 1px solid rgba(77, 55, 53, 0.05);
}

.menu-overlay.active {
    transform: translateX(0);
}

.menu-close {
    position: absolute;
    top: 2.5rem;
    right: 4rem;
    background: none;
    border: none;
    font-size: 2.5rem;
    font-family: var(--fb);
    font-weight: 300;
    color: var(--choco);
    cursor: pointer;
    line-height: 1;
    transition: transform .3s var(--ease), color .3s;
    z-index: 3100;
}

.menu-close:hover {
    color: var(--blush-dark);
    transform: rotate(90deg);
}

.menu-inner {
    width: 100%;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.menu-links {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.menu-whatsapp-wrap {
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s var(--ease) 0.7s;
}

.menu-overlay.active .menu-whatsapp-wrap {
    opacity: 1;
    transform: translateY(0);
}

.btn-whatsapp-nav {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.8rem;
    background: #25D366;
    color: #fff;
    font-family: var(--fb);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: background .3s, transform .2s, box-shadow .3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, .25);
}

.btn-whatsapp-nav:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, .4);
}

.btn-whatsapp-nav svg {
    flex-shrink: 0;
}

.menu-links a {
    font-family: var(--fd);
    font-size: clamp(1.8rem, 4vw, 3.20rem);
    font-weight: 300;
    color: var(--choco);
    text-decoration: none;
    line-height: 1.3;
    transition: color .3s, transform .4s var(--ease);
    display: inline-block;
    white-space: nowrap;
}

.menu-links a:hover {
    color: var(--blush-dark);
    transform: translateX(20px);
}

.menu-links a em {
    font-style: italic;
    color: var(--blush-dark);
}

.menu-links a:nth-child(1) {
    transition-delay: .2s;
}

.menu-links a:nth-child(2) {
    transition-delay: .3s;
}

.menu-links a:nth-child(3) {
    transition-delay: .4s;
}

.menu-links a:nth-child(4) {
    transition-delay: .5s;
}

.menu-links a:nth-child(5) {
    transition-delay: .6s;
}

.menu-side {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    opacity: 0;
    transition: opacity .6s ease .6s;
}

.menu-overlay.active .menu-side {
    opacity: 1;
}

.menu-side-block h4 {
    font-family: var(--fb);
    font-size: 0.7rem;
    color: var(--olive);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.menu-side-block a {
    display: block;
    font-size: 0.95rem;
    color: var(--choco-light);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color .3s;
}

.menu-side-block a:hover {
    color: var(--choco);
}

@media (max-width: 960px) {

    header,
    header.scrolled {
        padding: 1rem 2rem;
        display: flex;
        justify-content: space-between;
    }

    .nav-desktop {
        display: none;
    }

    .header-actions {
        justify-self: end;
        gap: 1.2rem;
    }

    .btn-nav {
        padding: 0.6rem 1.4rem;
        font-size: 0.7rem;
    }

    .menu-overlay {
        width: 100%;
        padding: 2rem 1.4rem;
    }

    .menu-links {
        gap: 0.8rem;
    }

    .menu-whatsapp-wrap {
        margin-top: 1.5rem;
    }

    .btn-whatsapp-nav {
        padding: 0.85rem 1.4rem;
        font-size: 0.75rem;
        width: 100%;
        justify-content: center;
    }

    .menu-links a {
        font-size: 1.25rem;
        font-weight: 400;
        letter-spacing: -0.015em;
    }

    .menu-close {
        top: 1.5rem;
        right: 1.5rem;
        font-size: 2rem;
    }

    .menu-side {
        display: none;
    }
}

/* ══════════════════════════════════════════════════════════════════
   STORIES — Homepage circles row
   ══════════════════════════════════════════════════════════════════ */

.stories-section {
    background: var(--cream);
    padding: 60px 0 20px 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 200px;
}

.stories-row {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    padding: 0 2rem 32px 2rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.stories-row::-webkit-scrollbar {
    display: none;
}

/* ── Single circle button ───────────────────────────────────────── */
.story-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    scroll-snap-align: center;
    flex-shrink: 0;
    background: none;
    border: none;
    padding: 6px;
    /* so the ring shadow isn't clipped */
    font-family: inherit;
    transition: transform 0.3s ease;
}

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

.story-item:active {
    transform: scale(0.97);
}

/* ── CTA Circle (Your Story) ───────────────────────────────────── */
.story-cta-ring {
    width: 94px;
    height: 94px;
    border-radius: 50%;
    padding: 4px;
    border: 2px solid #9baec8;
    position: relative;
    transition: transform 0.3s ease;
}

.story-item:hover .story-cta-ring {
    transform: scale(1.04);
}

.story-cta-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #f2efe4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.story-cta-logo {
    font-family: var(--fd);
    font-size: 42px;
    color: #9baec8;
    line-height: 1;
}

.story-cta-plus {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 32px;
    height: 32px;
    background: #d8a2ae;
    color: #fff;
    border: 3px solid var(--cream);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* ── Ring wrapper ───────────────────────────────────────────────── */
.story-ring {
    width: 94px;
    height: 94px;
    border-radius: 50%;
    padding: 4px;
    background:
        linear-gradient(var(--cream), var(--cream)) padding-box,
        linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888) border-box;
    border: 4px solid transparent;
    transition: background 0.4s ease;
    position: relative;
}

/* Viewed state — gray ring */
.story-item.viewed .story-ring {
    background:
        linear-gradient(var(--cream), var(--cream)) padding-box,
        linear-gradient(135deg, #bbb, #888) border-box;
}

/* ── Inner colored circle ───────────────────────────────────────── */
.story-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: transparent;
}

/* ── Story photo icons ──────────────────────────────────────────── */
.story-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

/* Per-circle fills */
.story-ring-1 .story-inner {
    background: linear-gradient(135deg, #d8a2ae, #eccecc);
}

.story-ring-2 .story-inner {
    background: linear-gradient(135deg, #9ea66b, #fdf1bb);
}

.story-ring-3 .story-inner {
    background: linear-gradient(135deg, #4d3735, #d8a2ae);
}

.story-ring-4 .story-inner {
    background: linear-gradient(135deg, #c1d7e9, #f2efe4);
}

.story-ring-5 .story-inner {
    background: linear-gradient(135deg, #fdf1bb, #9ea66b);
}

/* ── Icons ──────────────────────────────────────────────────────── */
.story-icon {
    font-style: italic;
    font-family: var(--fd);
    font-size: 28px;
    color: #fff;
    line-height: 1;
    user-select: none;
}

.story-icon.serif-b {
    font-size: 36px;
}

.story-icon.jost {
    font-family: var(--fb);
    font-style: normal;
    font-weight: 500;
    font-size: 17px;
    color: #4d3735;
    letter-spacing: 0.03em;
}

.story-icon.jost-sm {
    font-family: var(--fb);
    font-style: normal;
    font-weight: 500;
    font-size: 15px;
    color: #4d3735;
}

.story-icon.star {
    font-size: 30px;
    color: #4d3735;
    font-style: normal;
}

/* ── Label under each circle ───────────────────────────────────── */
.story-label {
    font-family: var(--fb);
    font-size: 14px;
    font-weight: 400;
    color: var(--choco);
    opacity: 0.85;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.story-item.viewed .story-label {
    opacity: 0.4;
}

/* ══════════════════════════════════════════════════════════════════
   STORIES OVERLAY — fullscreen modal
   ══════════════════════════════════════════════════════════════════ */

.sov {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.sov.open {
    pointer-events: all;
    opacity: 1;
}

/* Blurred backdrop */
.sov-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 10, 10, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* Center wrapper: card + stats vertically stacked */
.sov-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    max-height: 96vh;
    overflow-y: auto;
    scrollbar-width: none;
    padding: 1rem 0;
}

.sov-wrapper::-webkit-scrollbar {
    display: none;
}

/* ✕ Close button */
.sov-close {
    position: fixed;
    top: 1.2rem;
    right: 1.4rem;
    z-index: 9100;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.2s ease;
}

.sov-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

/* ── Story card (9:16 vertical) ────────────────────────────────── */
.sov-card {
    position: relative;
    width: min(390px, 90vw);
    aspect-ratio: 9 / 16;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}

/* Background photo/gradient layer */
.sov-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #d8a2ae, #eccecc);
    background-size: cover;
    background-position: center;
    transition: opacity 0.4s ease;
}

/* Vignette for text readability */
.sov-vignette {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(0, 0, 0, 0.35) 0%,
            transparent 35%,
            transparent 55%,
            rgba(0, 0, 0, 0.7) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ── Progress bars row ──────────────────────────────────────────── */
.sov-bars {
    position: absolute;
    top: 14px;
    left: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    gap: 4px;
}

.sov-bar-track {
    flex: 1;
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 3px;
    overflow: hidden;
}

.sov-bar-fill {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 3px;
    transition: none;
    /* JS-driven via RAF */
}

.sov-bar-track.done .sov-bar-fill {
    width: 100%;
}

.sov-bar-track.empty .sov-bar-fill {
    width: 0%;
}

/* ── Header (avatar + category name) ───────────────────────────── */
.sov-header {
    position: absolute;
    top: 32px;
    left: 14px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sov-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: linear-gradient(135deg, #d8a2ae, #9ea66b);
    flex-shrink: 0;
}

.sov-cat-name {
    font-family: var(--fb);
    font-size: 0.8rem;
    font-weight: 500;
    color: #fff;
    letter-spacing: 0.06em;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ── Bottom text content (inside card) ─────────────────────────── */
.sov-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 5;
    padding: 24px 20px 28px 20px;
}

.sov-title {
    font-family: var(--fd);
    font-size: clamp(1.3rem, 4vw, 1.9rem);
    font-weight: 400;
    font-style: italic;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 0.6rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.sov-desc {
    font-family: var(--fb);
    font-size: 0.82rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* ── Navigation: tap zones (invisible) + arrows ─────────────────── */
.sov-tap {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 4;
}

.sov-tap-prev {
    left: 0;
}

.sov-tap-next {
    right: 0;
}

.sov-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 6;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease, opacity 0.25s ease;
    opacity: 0;
    /* hidden by default, show on card hover */
}

.sov-card:hover .sov-arrow {
    opacity: 1;
}

.sov-arrow-prev {
    left: -52px;
}

.sov-arrow-next {
    right: -52px;
}

.sov-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sov-arrow:disabled {
    opacity: 0 !important;
    pointer-events: none;
}

/* ── Stat cards below the card ─────────────────────────────────── */
.sov-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    width: min(390px, 90vw);
}

.sov-stat-card {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    padding: 14px 16px;
    text-align: left;
}

.sov-stat-num {
    display: block;
    font-family: var(--fd);
    font-size: 1.6rem;
    font-weight: 400;
    color: #fff;
    line-height: 1;
    margin-bottom: 4px;
}

.sov-stat-lbl {
    font-family: var(--fb);
    font-size: 0.7rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.3;
}

/* ── Animations ─────────────────────────────────────────────────── */
@keyframes sovSlideIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes sovSlideOut {
    from {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    to {
        opacity: 0;
        transform: scale(0.94) translateY(16px);
    }
}

@keyframes storiesFadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sov.open .sov-wrapper {
    animation: sovSlideIn 0.38s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

/* ══════════════════════════════════════════════════════════════════
   MOBILE
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    .stories-section {
        padding: 36px 0 32px 0;
    }

    .stories-row {
        gap: 20px;
        justify-content: flex-start;
        padding: 0 1.2rem;
    }

    .story-ring,
    .story-cta-ring {
        width: 64px;
        height: 64px;
    }

    .sov-arrow-prev {
        left: 6px;
    }

    .sov-arrow-next {
        right: 6px;
    }

    .sov-card:hover .sov-arrow {
        opacity: 0.8;
    }

    .sov-arrow {
        opacity: 0.8;
    }

    /* always visible on mobile */

    .sov-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .sov-stat-card {
        padding: 12px 14px;
    }

    .sov-close {
        top: 0.8rem;
        right: 0.8rem;
    }
}

/* ══════════════════════════════════════════════════════════════════
   CONTACT FORM MODAL (CFM)
   ══════════════════════════════════════════════════════════════════ */
.cfm {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.cfm.open {
    pointer-events: all;
    opacity: 1;
}

.cfm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(77, 55, 53, 0.4);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.cfm-card {
    position: relative;
    z-index: 1;
    width: min(500px, 95vw);
    background: var(--cream);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.3);
    transform: translateY(30px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.cfm.open .cfm-card {
    transform: translateY(0) scale(1);
}

.cfm-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(77, 55, 53, 0.05);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.cfm-close:hover {
    background: rgba(77, 55, 53, 0.1);
}

.cfm-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.cfm-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #d8a2ae, #9ea66b);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-family: var(--fd);
    font-size: 28px;
}

.cfm-pre {
    font-size: 12px;
    color: var(--choco);
    opacity: 0.6;
    margin-bottom: 4px;
}

.cfm-title {
    font-family: var(--fd);
    font-size: 24px;
    font-style: italic;
    color: var(--choco);
    margin: 0;
}

.cfm-sub {
    font-size: 14px;
    color: var(--choco);
    opacity: 0.7;
    margin: 5px 0 0 0;
}

.cfm-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.cfm-field {
    margin-bottom: 20px;
}

.cfm-field label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--choco);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cfm-field input,
.cfm-field textarea {
    width: 100%;
    background: #fff;
    border: 1px solid rgba(77, 55, 53, 0.1);
    border-radius: 12px;
    padding: 12px 16px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.cfm-field input:focus,
.cfm-field textarea:focus {
    border-color: var(--blush-dark);
    outline: none;
}

.cfm-submit {
    width: 100%;
    background: var(--blush-dark);
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    margin-top: 10px;
}

.cfm-submit:hover {
    background: #d8a2ae;
    transform: translateY(-2px);
}

.cfm-success {
    display: none;
    text-align: center;
    padding: 20px 0;
}

.cfm-success.active {
    display: block;
}

.cfm-success-icon {
    font-size: 40px;
    color: #9ea66b;
    display: block;
    margin-bottom: 15px;
}

@media (max-width: 768px) {
    .cfm-card {
        padding: 30px 20px;
        width: 90vw;
    }

    .cfm-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .cfm-avatar {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
}

/* ══════════════════════════════════════════════════════════════════
   OUR WORKS (iPhones) SECTION
   ══════════════════════════════════════════════════════════════════ */
.our-works {
    background: var(--cream);
    padding: 0 0 120px 0;
    overflow: hidden;
}

.works-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.works-header {
    text-align: center;
    margin-bottom: 0px;
    /* Reduced from 40px */
}

.works-header .section-title {
    font-size: 64px;
    /* Enlarged */
    font-weight: 700;
    line-height: 1.1;
}

.works-header .section-title em {
    font-weight: 700;
    font-style: italic;
}

.phones-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    min-height: 600px;
    perspective: 1000px;
}

.phones-grid .mobile-clone {
    display: none;
}

.phone-wrapper {
    position: relative;
    padding: 10px 10px 40px 10px;
    /* Reduced top padding from 40px */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.75;
    z-index: 1;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    will-change: transform;
}

.phone-wrapper:nth-child(1) {
    transform: scale(0.92) rotate(3deg);
    margin-right: -10px;
}

.phone-wrapper:nth-child(2) {
    transform: scale(0.92) rotate(1.5deg);
    margin-right: -10px;
}

.phone-wrapper:nth-child(3) {
    transform: scale(0.92) rotate(-1.5deg);
    margin-left: -10px;
}

.phone-wrapper:nth-child(4) {
    transform: scale(0.92) rotate(-3deg);
    margin-left: -10px;
}

.phones-grid:hover .phone-wrapper {
    opacity: 0.45;
    filter: blur(1px);
}

.phones-grid:hover .phone-wrapper {
    transform: scale(0.88) rotate(0);
}

.phone-wrapper:hover {
    opacity: 1 !important;
    filter: blur(0) !important;
    transform: scale(1.05) translateY(-20px) rotate(0) !important;
    z-index: 10;
}

.iphone {
    width: 220px;
    height: 440px;
    background: #4d3735;
    border: 8px solid #4d3735;
    border-radius: 40px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    user-select: none;
    transition: box-shadow 0.4s ease;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

.phone-wrapper:hover .iphone {
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.25);
}

.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 18px;
    background: #4d3735;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 5;
}

.iphone-screen {
    width: 100%;
    height: 100%;
    background: #fff;
    border-radius: 34px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.ig-header {
    padding: 40px 12px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ig-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
    position: relative;
}

.ig-avatar.has-ring::after {
    content: '';
    position: absolute;
    inset: -3px;
    border: 1.5px solid transparent;
    border-radius: 50%;
    background: linear-gradient(var(--cream), var(--cream)) padding-box,
        linear-gradient(45deg, #f09433, #e6683c, #dc2743) border-box;
}

.ig-user {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    text-align: left;
}

.ig-user strong {
    font-size: 10px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 3px;
    color: var(--choco);
}

.ig-user span {
    font-size: 8px;
    opacity: 0.6;
    color: var(--choco);
}

.ig-verified {
    color: #c1d7e9;
    font-size: 8px;
}

.ig-stats {
    display: flex;
    justify-content: space-around;
    padding: 8px 0;
    border-top: 0.5px solid #f2efe4;
    border-bottom: 0.5px solid #f2efe4;
}

.ig-stats div {
    text-align: center;
}

.ig-stats strong {
    display: block;
    font-size: 11px;
    color: var(--choco);
}

.ig-stats span {
    font-size: 8px;
    color: #9baec8;
}

.ig-bio {
    padding: 10px 12px;
    font-size: 9px;
    line-height: 1.3;
    text-align: left;
    color: var(--choco);
}

.ig-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    padding: 1px;
    flex-grow: 1;
    background: #f2efe4;
}

.ig-post {
    background: #f2efe4;
    aspect-ratio: 1/1;
    position: relative;
}

.ig-reel-icon,
.ig-heart-icon {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 8px;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.r-bordeaux {
    background: var(--blush-dark);
}

.r-sky {
    background: var(--sky);
    color: #4d3735 !important;
}

.r-blush {
    background: var(--blush);
    color: #4d3735 !important;
}

.r-olive {
    background: var(--olive);
}

.p-warm-1 {
    background: #d8a2ae;
}

.p-warm-2 {
    background: #654836;
}

.p-warm-3 {
    background: #654836;
}

.p-cold-1 {
    background: #c1d7e9;
}

.p-cold-2 {
    background: #9baec8;
}

.p-cold-3 {
    background: #f2efe4;
}

.p-chic-1 {
    background: #eccecc;
}

.p-chic-2 {
    background: #d8a2ae;
}

.p-chic-3 {
    background: #f2efe4;
}

.p-wood-1 {
    background: #9ea66b;
}

.p-wood-2 {
    background: #654836;
}

.p-wood-3 {
    background: #f7f5d5;
}

.stat-card {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%) translateY(0);
    width: 260px;
    background: var(--choco);
    border-radius: 16px;
    padding: 20px 24px;
    color: var(--cream);
    z-index: 100;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    text-align: left;
}

@keyframes fadeInUpStat {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(-20px);
    }
}

.phone-wrapper:hover .stat-card {
    opacity: 1;
    visibility: visible;
    animation: fadeInUpStat 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.stat-label-p {
    font-size: 10px;
    color: rgba(242, 239, 228, 0.5);
    text-transform: uppercase;
}

.stat-label-d {
    font-size: 10px;
    color: var(--lemon);
    text-transform: uppercase;
}

.stat-sep {
    height: 1px;
    flex-grow: 1;
    background: rgba(242, 239, 228, 0.15);
    margin: 0 15px;
}

.stat-numbers {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 12px;
}

.num-p {
    font-size: 22px;
    font-family: var(--fd);
    opacity: 0.8;
}

.num-d {
    font-size: 22px;
    font-family: var(--fd);
    color: var(--cream);
    display: flex;
    align-items: center;
    gap: 8px;
}

.num-d small {
    font-size: 13px;
    color: var(--lemon);
    font-family: var(--fb);
    font-weight: 500;
}

.stat-feat {
    font-size: 12px;
    margin: 4px 0;
    opacity: 0.9;
}

.stat-time {
    margin-top: 15px;
    font-size: 11px;
    opacity: 0.5;
    text-align: center;
}

.works-footer {
    text-align: center;
    margin-top: 60px;
}

.privacy-note {
    font-family: var(--fb);
    font-weight: 300;
    font-size: 13px;
    color: rgba(77, 55, 53, 0.4);
    margin-bottom: 12px;
}

.works-cta {
    display: inline-block;
    color: var(--blush-dark);
    font-size: 15px;
    font-family: var(--fb);
    text-decoration: none;
    transition: border-bottom 0.3s ease;
    border-bottom: 1px solid transparent;
}

.works-cta:hover {
    border-bottom: 1px solid var(--blush-dark);
}

/* TABLET & MOBILE CAROUSEL OPTIMIZATION */
@media (max-width: 1180px) {
    .works-header .section-title {
        font-size: 48px;
    }

    .our-works {
        padding: 80px 0;
        overflow: hidden;
    }

    .phones-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        /* Center a 220px wide element: 50vw - 110px */
        padding: 60px calc(50vw - 110px);
        perspective: none;
        min-height: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        align-items: center;
    }

    .phones-grid::-webkit-scrollbar {
        display: none;
    }

    .phones-grid .mobile-clone {
        display: block;
    }

    .phone-wrapper {
        flex: 0 0 220px;
        scroll-snap-align: center;
        opacity: 0.4 !important;
        transform: scale(0.8) !important;
        margin: 0 !important;
        filter: none !important;
        transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease !important;
    }

    .phone-wrapper.focused {
        opacity: 1 !important;
        transform: scale(1.05) !important;
        z-index: 10;
        filter: drop-shadow(0 20px 40px rgba(77, 55, 53, 0.15)) !important;
    }

    .iphone {
        margin: 0 auto;
        width: 220px;
        height: 440px;
    }

    .phone-wrapper .stat-card {
        display: none !important;
    }
}

@media (max-width: 768px) {
    .works-header .section-title {
        font-size: 38px;
    }

    .phones-grid {
        /* Center a 200px wide element: 50vw - 100px */
        padding: 40px calc(50vw - 100px);
        gap: 10px;
    }

    .phone-wrapper {
        flex: 0 0 200px;
    }

    .iphone {
        width: 200px;
        height: 400px;
    }
}

/* ══ ROI CALCULATOR ════════════════════════════════════════════════ */
#calcolatore-roi {
    background: var(--olive);
    padding: 120px 20px;
    position: relative;
}

#calcolatore-roi::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    mix-blend-mode: multiply;
    z-index: 0;
}

.roi-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.roi-left {
    flex: 1;
}

.roi-eyebrow {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--choco);
    opacity: 0.8;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.roi-h2 {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 48px;
    color: var(--cream);
    line-height: 1.1;
    margin-bottom: 16px;
}

.roi-h2 em {
    font-style: italic;
}

.roi-desc {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 16px;
    color: var(--cream);
    opacity: 0.9;
    line-height: 1.5;
}

.roi-line {
    width: 32px;
    height: 1px;
    background: var(--choco);
    opacity: 0.4;
    margin-top: 32px;
}

.roi-right {
    flex: 1.2;
    background: rgba(245, 241, 228, 0.1);
    border: 1px solid rgba(245, 241, 228, 0.2);
    border-radius: 24px;
    padding: 40px 44px;
}

.roi-label {
    font-family: 'Jost', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.08em;
    color: var(--cream);
    opacity: 0.8;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.roi-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.roi-btn {
    background: rgba(245, 241, 228, 0.15);
    border: 1px solid rgba(245, 241, 228, 0.25);
    border-radius: 100px;
    padding: 12px 24px;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: var(--cream);
    cursor: pointer;
    transition: all 0.25s ease;
}

.roi-btn:hover {
    background: rgba(242, 239, 228, 0.1);
    border-color: rgba(242, 239, 228, 0.3);
}

.roi-btn.active {
    background: var(--choco);
    border-color: var(--choco);
    color: var(--cream);
    box-shadow: 0 4px 20px rgba(92, 61, 58, 0.2);
    transform: scale(1.04);
}

.roi-separator {
    height: 1px;
    background: rgba(245, 241, 228, 0.2);
    margin: 36px 0 32px 0;
    width: 100%;
}

.roi-res-small {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: var(--cream);
    opacity: 0.8;
}

.roi-res-val {
    font-family: 'Cormorant Garamond', serif;
    font-weight: 300;
    font-size: 56px;
    color: var(--choco);
    line-height: 1.1;
    margin-top: 4px;
    transition: color 0.3s ease;
}

.roi-res-val.updating {
    animation: roiFade 0.4s ease-out;
}

@keyframes roiFade {
    0% {
        opacity: 1;
        transform: translateY(0);
    }

    30% {
        opacity: 0;
        transform: translateY(-5px);
    }

    60% {
        opacity: 0;
        transform: translateY(5px);
    }

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


.roi-res-sub {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: var(--cream);
    opacity: 0.7;
    margin-top: 8px;
}

.roi-badge {
    display: inline-block;
    background: rgba(92, 61, 58, 0.1);
    border: 1px solid rgba(92, 61, 58, 0.2);
    border-radius: 100px;
    padding: 8px 20px;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: var(--choco);
    margin-top: 16px;
    transition: all 0.3s ease;
}

.roi-cta {
    width: 100%;
    background: var(--choco);
    color: var(--cream);
    border: none;
    border-radius: 4px;
    padding: 18px 32px;
    font-family: 'Jost', sans-serif;
    font-weight: 500;
    font-size: 13px;
    letter-spacing: 0.1em;
    cursor: pointer;
    margin-top: 32px;
    transition: all 0.25s ease;
}

.roi-cta:hover {
    background: var(--choco-light);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(92, 61, 58, 0.2);
}

.roi-note {
    font-family: 'Jost', sans-serif;
    font-weight: 300;
    font-size: 11px;
    color: var(--cream);
    opacity: 0.4;
    text-align: center;
    margin-top: 16px;
}

@media (max-width: 1150px) {
    .roi-container {
        padding: 0 40px;
        gap: 48px;
    }
}

@media (max-width: 991px) {
    #calcolatore-roi {
        padding: 80px 20px;
    }

    .roi-container {
        flex-direction: column;
        gap: 48px;
        text-align: center;
    }

    .roi-left,
    .roi-right {
        flex: 1 1 auto;
        width: 100%;
        max-width: 600px;
    }

    .roi-h2 {
        font-size: 40px;
    }

    .roi-line {
        margin: 32px auto 0;
    }

    .roi-options {
        justify-content: center;
        gap: 10px;
    }

    .roi-right {
        padding: 32px 24px;
    }

    .roi-res-val {
        font-size: 48px;
    }
}

@media (max-width: 480px) {
    .roi-h2 {
        font-size: 32px;
    }

    .roi-res-val {
        font-size: 38px;
    }

    .roi-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}