/*═════════════════════════════════════════════════
   WBS STUDIO — CSS
   ══════════════════════════════════════════════════ */

:root {
    --bg:         #FFFFFF;
    --bg-2:       #F7F4F0;
    --surface:    #F0ECE6;
    --surface-2:  #E8E3DB;
    --border:     rgba(0,0,0,0.09);
    --text:       #111010;
    --text-muted: #888078;
    --accent:     #FF5C00;
    --accent-dark:#CC4400;
    --radius:     12px;
    --radius-lg:  20px;
    --nav-h:      72px;
    --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --service-card-h: 360px;
}

/* ── Reset ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    font-size: 16px;
    overflow-x: clip;
}
body {
    font-family: 'DM Sans', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: clip;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.loading { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }

/* ── Noise overlay — disabilitato su tema chiaro ── */
.noise { display: none; }

/* ── Loader ────────────────────────────────────── */
.loader {
    position: fixed; inset: 0;
    background: var(--bg);
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.loader-inner { text-align: center; }
.loader-logo {
    margin: 0 auto 32px;
    opacity: 0;
}
.loader-logo-img {
    width: clamp(180px, 24vw, 300px);
    height: auto;
    display: block;
}
.loader-bar {
    width: 200px; height: 2px;
    background: var(--border);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto 16px;
}
.loader-fill {
    height: 100%;
    width: 0%;
    background: var(--accent);
    border-radius: 2px;
    transition: width 0.05s linear;
}
.loader-label {
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0;
    animation: fadeIn 0.5s 0.3s forwards;
}
@keyframes fadeIn { to { opacity: 1; } }

/* ── Typography ────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
}
em { font-style: italic; color: var(--accent); }

/* ── Layout ────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}
.section { padding: 120px 0; }

#servizi {
    margin-top: -38px;
}

#servizio-design,
#servizio-seo,
#servizio-manutenzione {
    scroll-margin-top: 100px;
}

#lavori .section-header {
    margin-top: -58px;
}

#lavori {
    margin-top: -28px;
}

#blog {
    margin-top: -76px;
}

#processo {
    margin-top: -76px;
}

/* ── Section header ────────────────────────────── */
.section-header {
    margin-bottom: 72px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.section-tag {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}
.section-tag::before {
    content: '';
    display: block;
    width: 28px; height: 1px;
    background: var(--accent);
    flex-shrink: 0;
}
.section-title {
    font-size: clamp(2.4rem, 4.5vw, 4rem);
    max-width: 14ch;
    font-family: 'Syne', sans-serif;
}

/* ── Buttons ───────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 100px;
    font-family: 'Syne', sans-serif;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s var(--ease-out);
    position: relative;
    overflow: hidden;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.1);
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: inherit;
}
.btn:hover::after { opacity: 1; }

.btn-primary {
    background: var(--accent);
    color: #fff;
    font-weight: 600;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 36px rgba(255,92,0,0.35);
}

.btn-ghost {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: rgba(0,0,0,0.25); }

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

.btn-large { padding: 18px 36px; font-size: 17px; }

/* ── Header ────────────────────────────────────── */
.header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 800;
    height: var(--nav-h);
    transition: background 0.4s, backdrop-filter 0.4s, box-shadow 0.4s, transform 0.35s var(--ease-out);
}
.header.scrolled {
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 var(--border);
}
.header.hide { transform: translateY(-100%); }

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Logo */
.nav-logo {
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s;
}
.nav-logo:hover { opacity: 0.8; }
.nav-logo-img {
    width: clamp(120px, 12vw, 190px);
    height: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    font-size: 14px;
    color: var(--text-muted);
    padding: 8px 16px;
    border-radius: 100px;
    transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--text); background: rgba(255,92,0,0.10); }
.nav-cta {
    color: #fff !important;
    background: var(--accent) !important;
    font-weight: 400;
}
.nav-cta:hover { opacity: 0.88; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    padding: 8px;
    z-index: 10;
}
.hamburger span {
    display: block;
    width: 24px; height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.35s var(--ease-out);
    transform-origin: center;
}
.hamburger.open span:first-child { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:last-child  { transform: rotate(-45deg) translate(5px, -5px); }

/* ── Mobile Menu ───────────────────────────────── */
.mobile-menu {
    position: fixed; inset: 0;
    background: var(--bg-2);
    z-index: 700;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px;
    clip-path: circle(0% at calc(100% - 50px) 36px);
    transition: clip-path 0.65s var(--ease-out);
    pointer-events: none;
}
.mobile-menu.open {
    clip-path: circle(150% at calc(100% - 50px) 36px);
    pointer-events: all;
}
.mobile-links { margin-bottom: 60px; }
.mobile-link {
    display: block;
    font-family: 'Syne', sans-serif;
    font-size: clamp(2rem, 8vw, 3.5rem);
    font-weight: 700;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-muted);
    opacity: 0;
    transform: translateX(-30px);
    transition: color 0.2s, opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.mobile-menu.open .mobile-link { opacity: 1; transform: none; }
.mobile-link:hover { color: var(--accent); }
.mobile-links li:nth-child(1) .mobile-link { transition-delay: 0.08s; }
.mobile-links li:nth-child(2) .mobile-link { transition-delay: 0.14s; }
.mobile-links li:nth-child(3) .mobile-link { transition-delay: 0.20s; }
.mobile-links li:nth-child(4) .mobile-link { transition-delay: 0.26s; }
.mobile-footer {
    display: flex; flex-direction: column; gap: 6px;
    color: var(--text-muted); font-size: 14px;
}

/* ══════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════ */
.hero {
    min-height: 75vh;
    position: relative;
    overflow: hidden;
    padding-top: var(--nav-h);
}

/* Floating bg shapes */
.hero-shapes {
    position: absolute; inset: 0;
    pointer-events: none; overflow: hidden;
}
.shape { position: absolute; border-radius: 50%; }
.shape-circle-lg {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(255,92,0,0.08) 0%, transparent 65%);
    right: -140px; top: 50%; transform: translateY(-50%);
    will-change: transform;
}
.shape-circle-sm {
    width: 260px; height: 260px;
    background: radial-gradient(circle, rgba(255,92,0,0.1) 0%, transparent 70%);
    left: 7%; top: 16%;
    will-change: transform;
}
.shape-circle-xs {
    position: absolute;
    width: 120px; height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,130,0,0.1) 0%, transparent 70%);
    left: 42%; top: 72%;
    will-change: transform;
}
.shape-ring {
    width: 360px; height: 360px;
    border: 1.5px solid rgba(255,92,0,0.14);
    right: 16%; bottom: 10%;
    border-radius: 50%;
    will-change: transform;
}
.shape-ring-sm {
    position: absolute;
    width: 160px; height: 160px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,92,0,0.18);
    left: 20%; top: 30%;
    will-change: transform;
}
.shape-dot-grid {
    position: absolute;
    left: 4%; bottom: 8%;
    opacity: 0.45;
    will-change: transform, opacity;
}
.shape-line-v {
    width: 1px; height: 220px;
    background: linear-gradient(to bottom, transparent, rgba(255,92,0,0.25), transparent);
    right: 31%; top: 10%;
    border-radius: 0;
    will-change: transform, opacity;
}
.shape-line-h {
    width: 180px; height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,92,0,0.18), transparent);
    left: 13%; top: 60%;
    border-radius: 0;
    will-change: transform, opacity;
}
/* Particelle statiche — animate via GSAP */
.bg-particle {
    position: absolute;
    border-radius: 50%;
    background: var(--accent);
    pointer-events: none;
    will-change: transform, opacity;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Hero eyebrow — rimosso, stili mantenuti per compatibilità */
.hero-eyebrow { display: none; }
.hero-wbs-mark {
    display: flex;
    align-items: center;
    gap: 28px;
}
.hero-wbs-text {
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    font-size: clamp(4.5rem, 9vw, 8.5rem);
    color: var(--accent);
    letter-spacing: -0.04em;
    line-height: 1;
    display: block;
}
.hero-wbs-sep {
    width: 1px;
    height: 68px;
    background: var(--border);
    flex-shrink: 0;
}
.hero-wbs-meta {
    display: flex;
    flex-direction: column;
    gap: 7px;
}
.hero-wbs-meta span {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 1;
}
.hero-eyebrow-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    padding-bottom: 6px;
}
.tag-dot {
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(1.4); }
}

/* Hero grid ───────────────────────────────────── */
.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
    padding-top: 120px;
    padding-bottom: 36px;
}

.hero-title {
    font-size: clamp(2.8rem, 5.5vw, 5rem);
    line-height: 1.05;
    margin-bottom: 44px;
    overflow: hidden;
}
.title-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.07em;
}
.title-mask {
    display: block;
    transform: translateY(112%);
    font-family: 'Syne', sans-serif;
}

.hero-body { opacity: 0; transform: translateY(24px); }
.hero-desc {
    font-size: 17px;
    line-height: 1.75;
    color: var(--text-muted);
    max-width: 38ch;
    margin-bottom: 40px;
    font-weight: 300;
}
.hero-cta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* Illustration */
.hero-right { display: flex; align-items: center; justify-content: center; }
.hero-illustration {
    position: relative;
    width: 100%; max-width: 520px;
    opacity: 0; transform: scale(0.96);
}
.hero-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* SVG animations */
.il-bg-circle { animation: none; filter: none; }
.il-phone-mockup {
    filter: drop-shadow(0 14px 24px rgba(0,0,0,0.2));
}
.il-card-1 { animation: floatCard1 5s ease-in-out infinite; transform-origin: 344px 116px; }
.il-card-2 { animation: floatCard2 6s ease-in-out infinite 1s; transform-origin: 85px 300px; }
.il-orbit-dot { transform-origin: 260px 260px; animation: orbitDot 8s linear infinite; }
.il-sparkles  { animation: sparkle 3s ease-in-out infinite; }
.il-pill      { animation: floatCard1 4s ease-in-out infinite 0.5s; }

@keyframes floatCard1 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
@keyframes floatCard2 { 0%,100%{transform:translateY(0)} 50%{transform:translateY(8px)}  }
@keyframes orbitDot {
    from { transform: rotate(0deg) translateX(170px) rotate(0deg); }
    to   { transform: rotate(360deg) translateX(170px) rotate(-360deg); }
}
@keyframes sparkle { 0%,100%{opacity:0.7} 50%{opacity:1} }

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 36px; left: 50%;
    transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    opacity: 0;
}
.hero-scroll-hint span {
    font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
    color: var(--text-muted); writing-mode: vertical-rl;
}
.scroll-line-container { width: 1px; height: 48px; background: var(--border); overflow: hidden; }
.scroll-line-inner {
    height: 100%; background: var(--accent);
    transform: translateY(-100%);
    animation: scrollLine 2s ease-in-out infinite 1.5s;
}
@keyframes scrollLine {
    0%   { transform: translateY(-100%); }
    50%  { transform: translateY(0); }
    100% { transform: translateY(100%); }
}


/* ── Services ──────────────────────────────────── */
.about {
    background: linear-gradient(180deg, #fff 0%, #faf8f4 100%);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: start;
}
.about-copy {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.about-copy p {
    color: var(--text-muted);
    line-height: 1.78;
    max-width: 62ch;
}
.about-points {
    display: grid;
    gap: 14px;
}
.about-point {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 14px;
    padding: 18px 18px 16px;
}
.about-point h3 {
    font-size: 1.02rem;
    margin-bottom: 8px;
}
.about-point p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.65;
}
.about-page { position: relative; overflow: hidden; }
.about-page .container { position: relative; z-index: 1; }
.about-page .hero-cta { margin-top: 32px; }

/* Chi siamo: impaginazione */
.about-page .section-header {
    margin-bottom: clamp(40px, 5vw, 64px);
}
.about-page .about-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: clamp(32px, 4.5vw, 56px);
    align-items: start;
}
.about-page .about-copy {
    gap: 18px;
}
.about-page .about-copy p {
    font-size: 17px;
    line-height: 1.78;
    max-width: 54ch;
}
.about-page .about-metrics {
    margin-top: 28px;
    padding-top: 26px;
    border-top: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.about-page .about-metric {
    padding: 18px 18px 16px;
    gap: 8px;
    border-radius: 14px;
    min-height: 100%;
    box-shadow: 0 8px 22px rgba(10, 9, 7, 0.04);
}
.about-page .about-metric strong {
    font-size: 1rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text);
}
.about-page .about-metric span {
    font-size: 14px;
    line-height: 1.68;
}
.about-page .about-points {
    gap: 16px;
    padding-left: 12px;
    border-left: 2px solid rgba(255, 92, 0, 0.32);
}
.about-page .about-point {
    padding: 22px 22px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(10, 9, 7, 0.045);
}
.about-page .about-point h3 {
    font-family: 'Syne', sans-serif;
    font-size: 1.06rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 10px;
    color: var(--text);
}
.about-page .about-point p {
    font-size: 15px;
    line-height: 1.72;
}
.about-page .about-manifesto {
    margin-top: clamp(40px, 5vw, 52px);
}
.about-page .about-manifesto p {
    max-width: 72ch;
}
.about-decor { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.about-orb { position: absolute; border-radius: 50%; filter: blur(72px); opacity: 0.45; }
.about-orb--one {
    width: 320px;
    height: 320px;
    top: 90px;
    left: -110px;
    background: rgba(255, 92, 0, 0.14);
}
.about-orb--two {
    width: 270px;
    height: 270px;
    right: -90px;
    bottom: 130px;
    background: rgba(245, 158, 11, 0.13);
}
.about-grid-dots {
    position: absolute;
    right: 10%;
    top: 170px;
    width: 110px;
    height: 110px;
    background-image: radial-gradient(rgba(10, 9, 7, 0.15) 1.1px, transparent 1.1px);
    background-size: 11px 11px;
    opacity: 0.55;
}
.about-ring {
    position: absolute;
    left: 7%;
    bottom: 120px;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    border: 1px solid rgba(255, 92, 0, 0.25);
}
.about-metrics { margin-top: 8px; display: grid; gap: 10px; }
.about-metric {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(2px);
}
.about-metric strong { font-family: 'Syne', sans-serif; font-size: 0.95rem; }
.about-metric span { font-size: 13px; color: var(--text-muted); }
.about-manifesto {
    margin-top: 36px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: #fff;
    padding: 24px 24px 22px;
    display: grid;
    gap: 14px;
}
.about-manifesto-line {
    width: 72px;
    height: 3px;
    border-radius: 999px;
    background: var(--accent);
}
.about-manifesto p { font-size: 17px; line-height: 1.75; max-width: 78ch; }

.services {
    position: relative;
    overflow: hidden;
}
.services .container {
    position: relative;
    z-index: 1;
}
.services-decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.services-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.45;
}
.services-orb--one {
    width: 360px;
    height: 360px;
    background: rgba(255, 92, 0, 0.12);
    top: 70px;
    left: -120px;
}
.services-orb--two {
    width: 300px;
    height: 300px;
    background: rgba(255, 140, 0, 0.08);
    right: -90px;
    bottom: 140px;
}
.services-ring {
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    border: 1px solid rgba(255, 92, 0, 0.2);
    top: 120px;
    right: 11%;
}
.services-grid-dots {
    position: absolute;
    width: 170px;
    height: 170px;
    left: 6%;
    bottom: 90px;
    opacity: 0.28;
    background-image: radial-gradient(rgba(255, 92, 0, 0.52) 1.3px, transparent 1.3px);
    background-size: 16px 16px;
}
.services-list { display: flex; flex-direction: column; border-top: 1px solid var(--border); }
.service-item {
    display: flex;
    gap: 36px;
    align-items: stretch;
    min-height: var(--service-card-h);
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    position: relative;
    cursor: default;
}
.service-gallery {
    width: min(44%, 500px);
    height: var(--service-card-h);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(255,92,0,0.12), rgba(255,92,0,0.03));
    flex-shrink: 0;
}
.service-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0.88;
    filter: grayscale(100%);
    transition: transform 0.5s var(--ease-out), opacity 0.35s ease, filter 0.35s ease;
}
.service-item:hover .service-gallery-image {
    transform: scale(1.04);
    opacity: 1;
    filter: grayscale(0%);
}
.service-content {
    flex: 1;
    min-height: var(--service-card-h);
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 24px;
    align-items: start;
}
.service-item:nth-child(even) {
    flex-direction: row-reverse;
}
.service-item::after {
    content: '';
    position: absolute;
    left: -40px; right: -40px; top: 0; bottom: 0;
    background: rgba(255, 92, 0, 0.08);
    opacity: 0; transition: opacity 0.3s;
    border-radius: var(--radius); z-index: -1;
}
.service-item:hover::after { opacity: 1; }

.service-left { display: flex; flex-direction: column; gap: 16px; padding-top: 6px; }
.service-num {
    font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 700;
    color: var(--text-muted); letter-spacing: 0.1em;
}
.service-icon-wrap {
    display: flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 12px;
    background: #fff; border: 1px solid var(--border);
    transition: background 0.3s, border-color 0.3s;
}
.service-item:hover .service-icon-wrap {
    background: rgba(255,92,0,0.14);
    border-color: rgba(255,92,0,0.25);
}

.service-mid { padding: 6px 0 0; }
.service-title {
    font-family: 'Syne', sans-serif; font-size: 1.5rem; font-weight: 700;
    margin-bottom: 16px; transition: color 0.2s;
}
.service-item:hover .service-title { color: var(--accent); }
.service-desc {
    font-size: 15px; color: var(--text-muted); max-width: 46ch;
    line-height: 1.7; margin-bottom: 20px; font-weight: 300;
}
.service-list { display: flex; flex-direction: column; gap: 8px; }
.service-list li {
    font-size: 13px; color: var(--text-muted);
    display: flex; align-items: center; gap: 10px;
}
.service-list li::before { content: '→'; color: var(--accent); font-size: 12px; flex-shrink: 0; }


/* ── Work ──────────────────────────────────────── */
.work-grid {
    display: grid;
    grid-template-columns: 1.7fr 1.3fr;
    grid-auto-rows: minmax(480px, auto);
    gap: 3px; margin: 0 0 60px;
}
.work-item { position: relative; overflow: hidden; min-height: 100%; }
.work-item-link {
    display: block;
    height: 100%;
    color: inherit;
}
.work-item-inner { position: relative; height: 100%; min-height: 480px; }

.work-visual {
    position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--clr-a) 0%, var(--clr-b) 100%);
    overflow: hidden; transition: transform 0.6s var(--ease-out);
}
.work-item:hover .work-visual { transform: scale(1.04); }

.work-bg-shape { position: absolute; border-radius: 50%; transition: transform 0.8s var(--ease-out); }
.work-bg-shape--circle { width: 400px; height: 400px; background: rgba(255,255,255,0.04); right: -100px; top: -100px; }
.work-bg-shape--ring  { width: 300px; height: 300px; border: 1px solid rgba(255,255,255,0.08); bottom: -80px; left: -60px; }
.work-item:hover .work-bg-shape { transform: scale(1.1) rotate(15deg); }

.work-mock-browser {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: 0.8; transition: opacity 0.4s;
}
.work-item:hover .work-mock-browser { opacity: 1; }
.work-project-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 0.35s ease;
}
.work-project-image.is-loaded {
    opacity: 1;
}
.work-item:hover .work-project-image.is-loaded {
    opacity: 1;
}
.work-project-image--hq {
    object-fit: cover;
    object-position: center;
    image-rendering: auto;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.work-info {
    position: absolute; bottom: 0; left: 0; right: 0; padding: 32px;
    background: linear-gradient(to top, rgba(0,0,0,0.88) 0%, transparent 100%);
    transform: translateY(8px); transition: transform 0.3s var(--ease-out);
}
.work-item:hover .work-info { transform: translateY(0); }
.work-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.65);
}
.work-name { font-family: 'Syne', sans-serif; font-size: 1.2rem; font-weight: 700; color: white; margin-bottom: 6px; }
.work-result { font-size: 13px; color: rgba(255,255,255,0.6); }
.work-note {
    margin: 36px auto 0;
    color: var(--text);
    font-size: clamp(1.15rem, 2.1vw, 1.55rem);
    line-height: 1.55;
    max-width: 34ch;
    font-weight: 600;
    text-align: center;
    letter-spacing: -0.01em;
    text-wrap: balance;
    font-family: 'Syne', sans-serif;
    font-style: italic;
    position: relative;
    padding-top: 18px;
}
.work-note::before { display: none; }
.work-note em {
    color: inherit;
}
.work-cta { display: flex; justify-content: center; padding-top: 60px; }

.work-more-wrap {
    display: none;
    width: 100%;
    justify-content: center;
    align-items: center;
    margin: 12px 0 48px;
    padding: 0 40px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.work--has-more .work-more-wrap {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}
.work-more-btn {
    min-width: 220px;
    margin-inline: auto;
    justify-content: center;
    text-align: center;
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease;
}
.work-more-btn:hover:not(:disabled) {
    transform: translateY(-2px);
}
.work-more-btn:active:not(:disabled) {
    transform: translateY(0);
}
.work-more-btn:disabled {
    opacity: 0.65;
    cursor: wait;
}
.work-grid:not(.work-grid--expanded) .work-item.work-item--extra-hidden {
    display: none !important;
}
.work-grid--expanded {
    transition: gap 0.35s ease;
}
.work-item--extra:not(.work-item--extra-hidden) {
    will-change: transform, opacity;
}

/* ── Process ───────────────────────────────────── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; }
.process-intro {
    max-width: 62ch;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-muted);
    font-weight: 300;
}
.process-step { padding: 0 32px 0 0; }
.step-connector { display: flex; align-items: center; margin-bottom: 32px; }
.step-number {
    font-family: 'Syne', sans-serif; font-size: 12px; font-weight: 700;
    color: var(--accent); letter-spacing: 0.1em;
    background: rgba(255,92,0,0.1);
    border: 1px solid rgba(255,92,0,0.22);
    padding: 6px 12px; border-radius: 100px; white-space: nowrap; flex-shrink: 0;
}
.step-line { flex: 1; height: 1px; background: var(--border); overflow: hidden; margin-left: 16px; }
.step-line-fill { height: 100%; background: var(--accent); width: 0%; transition: width 1.2s var(--ease-out); }
.process-step.animated .step-line-fill { width: 100%; }

.step-icon {
    width: 52px; height: 52px; border-radius: 12px;
    background: #fff; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; margin-bottom: 20px;
    transition: background 0.3s, border-color 0.3s;
}
.process-step:hover .step-icon { background: rgba(255,92,0,0.14); border-color: rgba(255,92,0,0.25); }
.step-content {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 16px 18px;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.process-step.animated .step-content {
    animation: stepContentIn 0.45s var(--ease-out) both;
}
.process-step:hover .step-content {
    background: #fff;
    border-color: rgba(255, 92, 0, 0.2);
    box-shadow: 0 14px 28px rgba(255, 92, 0, 0.12);
}
.step-content h3 { font-family: 'Syne', sans-serif; font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; }
.step-content p  { font-size: 14px; color: var(--text-muted); line-height: 1.7; font-weight: 300; }
@keyframes stepContentIn {
    from { opacity: 0.75; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Blog ──────────────────────────────────────── */
.blog-carousel-wrap {
    position: relative;
}
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.blog-grid--quad {
    grid-template-columns: repeat(4, 1fr);
}
.blog-grid--carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 24px;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 92, 0, 0.35) transparent;
}
.blog-grid--carousel::-webkit-scrollbar {
    height: 6px;
}
.blog-grid--carousel::-webkit-scrollbar-thumb {
    background: rgba(255, 92, 0, 0.35);
    border-radius: 999px;
}
.blog-grid--carousel .blog-card {
    flex: 0 0 calc((100% - 72px) / 4);
    min-width: 260px;
    scroll-snap-align: start;
}
.blog-carousel-btn {
    position: absolute;
    top: 50%;
    z-index: 2;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: #fff;
    color: var(--text);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    display: none;
    place-items: center;
    transition: border-color 0.25s, color 0.25s, transform 0.25s;
}
.blog-carousel-wrap:has(.blog-grid--carousel) .blog-carousel-btn:not([hidden]) {
    display: grid;
}
.blog-carousel-btn[hidden] {
    display: none !important;
    pointer-events: none;
}
.blog-carousel-btn:hover {
    border-color: rgba(255, 92, 0, 0.4);
    color: var(--accent);
    transform: translateY(-50%) scale(1.04);
}
.blog-carousel-btn--prev { left: -14px; }
.blog-carousel-btn--next { right: -14px; }
.blog-intro {
    max-width: 64ch;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-muted);
    font-weight: 300;
}
.blog-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
}
.blog-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255,92,0,0.28);
    box-shadow: 0 14px 28px rgba(255, 92, 0, 0.12);
}
.blog-card-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    object-position: center;
}
.blog-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}
.blog-card-meta {
    font-size: 11px;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}
.blog-card-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.28rem;
    line-height: 1.28;
}
.blog-card-excerpt {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-muted);
    font-weight: 300;
    flex: 1;
}
.blog-card-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}
.blog-card-link:hover { color: var(--accent-dark); }

.blog-more-wrap {
    display: none;
    justify-content: center;
    margin-top: 8px;
}
.blog-more-btn {
    min-width: 220px;
    justify-content: center;
    text-align: center;
}

/* ── Article page: footer CTA + related posts ─── */
.article-footer {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
    display: grid;
    gap: 44px;
}
.article-cta-panel {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 92, 0, 0.2);
    background: #fff;
    box-shadow:
        0 24px 56px rgba(10, 9, 7, 0.07),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset;
    overflow: hidden;
}
.article-cta-panel-accent {
    width: 6px;
    flex-shrink: 0;
    background: linear-gradient(180deg, #ff5c00 0%, #f59e0b 55%, #ff5c00 100%);
}
.article-cta-panel-content {
    flex: 1;
    padding: clamp(28px, 4vw, 42px) clamp(22px, 4vw, 40px);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}
.article-cta-kicker {
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
}
.article-cta-lead {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.32rem, 2.5vw, 1.78rem);
    font-weight: 600;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: var(--text);
    margin: 0;
    max-width: 28ch;
}
.article-cta-sub {
    font-size: 16px;
    line-height: 1.68;
    color: var(--text-muted);
    font-weight: 300;
    margin: 0;
    max-width: 48ch;
}
.article-cta-panel-content .btn-primary {
    margin-top: 8px;
}
.article-footer-heading {
    font-family: 'Syne', sans-serif;
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    line-height: 1.2;
}
.article-footer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 640px) {
    .article-footer {
        margin-top: 36px;
        padding-top: 32px;
        gap: 32px;
    }
    .article-cta-panel {
        flex-direction: column;
    }
    .article-cta-panel-accent {
        width: 100%;
        height: 5px;
        background: linear-gradient(90deg, #ff5c00 0%, #f59e0b 50%, #ff5c00 100%);
    }
    .article-cta-panel-content {
        padding: 24px 20px 28px;
    }
    .article-cta-sub {
        font-size: 15px;
    }
    .article-footer-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Testimonials ──────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testimonial-card {
    padding: 40px; border-radius: var(--radius-lg);
    background: #fff; border: 1px solid var(--border);
    display: flex; flex-direction: column; gap: 24px;
    transition: transform 0.35s var(--ease-out), border-color 0.35s, background-color 0.35s, box-shadow 0.35s;
    will-change: transform;
}
.testimonial-card:hover {
    transform: translateY(-8px) scale(1.01);
    border-color: rgba(255,92,0,0.35);
    background: #ffe4cc;
    box-shadow: 0 14px 30px rgba(255, 92, 0, 0.14);
}
.testimonial-card--accent {
    background: #fff;
    border-color: rgba(255,92,0,0.22);
    transform: scale(1.14);
    padding: 52px;
    z-index: 2;
}

.testimonial-card--accent:hover {
    background: #fff;
    transform: translateY(-8px) scale(1.16);
}
.testimonial-stars { color: var(--accent); font-size: 14px; letter-spacing: 2px; }
.testimonial-quote { font-size: 15px; line-height: 1.75; color: var(--text); font-weight: 300; flex: 1; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: #fff; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-family: 'Syne', sans-serif; font-weight: 700; font-size: 13px;
    color: var(--accent); flex-shrink: 0;
}
.author-avatar::before { content: attr(data-initials); }
.testimonial-author strong { display: block; font-family: 'Syne', sans-serif; font-size: 14px; font-weight: 700; margin-bottom: 3px; }
.testimonial-author span  { font-size: 12px; color: var(--text-muted); }

/* ── CTA ───────────────────────────────────────── */
.article-page .cta-section {
    margin-top: clamp(80px, 10vw, 140px);
}
body.portfolio-page .cta-section {
    min-height: clamp(560px, 68vh, 780px);
}
body.portfolio-page .cta-desc {
    margin-bottom: 36px;
}
.cta-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(72px, 8vw, 120px) 0;
    overflow: hidden;
    background: #ffe4cc;
    border-top: 1px solid var(--border);
}
.cta-section > .container {
    width: 100%;
    position: relative;
    z-index: 1;
}
.cta-bg { position: absolute; inset: 0; pointer-events: none; }
.cta-orb { position: absolute; border-radius: 50%; filter: blur(80px); }
.cta-orb--1 { width: 500px; height: 500px; background: rgba(255,92,0,0.07); left: -100px; top: -100px; animation: floatBg 9s ease-in-out infinite; }
.cta-orb--2 { width: 400px; height: 400px; background: rgba(255,130,0,0.05); right: -80px; bottom: -80px; animation: floatBg 11s ease-in-out infinite reverse; }
.cta-grid { position: absolute; inset: 0; }

.cta-inner { position: relative; z-index: 1; text-align: center; max-width: min(960px, 100%); margin: 0 auto; }
.cta-tag {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 13px; color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase;
    margin-bottom: 36px;
    background: rgba(255,92,0,0.1); border: 1px solid rgba(255,92,0,0.22);
    padding: 8px 20px; border-radius: 100px;
}
.cta-title { font-family: 'Syne', sans-serif; font-size: clamp(3.5rem, 7vw, 6.5rem); font-weight: 800; line-height: 1.0; margin-bottom: 32px; }
.cta-line { display: block; overflow: hidden; }
.cta-line--accent { color: var(--accent); }
.cta-desc { font-size: 17px; color: var(--text-muted); max-width: 48ch; margin: 0 auto 44px; font-weight: 300; line-height: 1.7; }

.cta-form-card {
    width: 100%;
    max-width: 920px;
    margin: 0 auto 40px;
    padding: 34px 36px 30px;
    text-align: left;
    background: #fff;
    border: 1px solid rgba(10, 9, 7, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 18px 42px rgba(10, 9, 7, 0.06);
}
.cta-form { display: flex; flex-direction: column; gap: 20px; }
.cta-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 20px 24px;
    align-items: start;
    min-height: 280px;
}
.cta-form-row--head {
    grid-column: 1 / -1;
    grid-row: 1;
}
.cta-form-field--message {
    grid-column: 1;
    grid-row: 2 / 4;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    min-width: 0;
    align-self: stretch;
}
.cta-form-field--message .cta-form-textarea {
    flex: 1;
    min-height: 200px;
    height: 100%;
}
.cta-form-field--tel {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    align-self: start;
}
.cta-form-honey {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.cta-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.cta-form-field { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.cta-form-label {
    font-family: 'Syne', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
}
.cta-form-optional {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
    font-size: 11px;
}
.cta-form-input {
    width: 100%;
    min-height: 48px;
    padding: 13px 16px;
    box-sizing: border-box;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: var(--text);
    background: #faf8f4;
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.cta-form-input::placeholder { color: rgba(10, 9, 7, 0.35); }
.cta-form-input:hover { border-color: rgba(10, 9, 7, 0.18); }
.cta-form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 92, 0, 0.15);
}
.cta-form-textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.58;
}
.cta-form-submit {
    grid-column: 2;
    grid-row: 3;
    width: 100%;
    justify-content: center;
    margin-top: 0;
    align-self: stretch;
}
.cta-form-legal {
    margin: 0;
    font-size: 12px;
    line-height: 1.55;
    color: var(--text-muted);
    font-weight: 300;
    text-align: center;
}
.cta-form-status {
    margin: 0 0 4px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}
.cta-form-status--ok {
    background: rgba(34, 120, 70, 0.12);
    color: #1a5c36;
    border: 1px solid rgba(34, 120, 70, 0.25);
}
.cta-form-status--error {
    background: rgba(180, 50, 40, 0.1);
    color: #8b2e26;
    border: 1px solid rgba(180, 50, 40, 0.22);
}
.cta-form-legal a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.cta-or {
    margin: 0 0 24px;
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}
.cta-or::before,
.cta-or::after {
    content: '';
    flex: 1;
    max-width: 120px;
    height: 1px;
    background: rgba(10, 9, 7, 0.12);
}
.cta-or span { white-space: nowrap; }

.cta-actions { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.cta-phone { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-muted); transition: color 0.2s; }
.cta-phone:hover { color: var(--text); }

/* ── Footer ────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 80px 0 40px; background: var(--bg); }
.footer-top {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px;
    margin-bottom: 60px; padding-bottom: 60px; border-bottom: 1px solid var(--border);
}
.footer-brand .nav-logo { margin-bottom: 20px; display: block; }
.footer-brand p { font-size: 14px; color: var(--text-muted); line-height: 1.7; font-weight: 300; }
.footer-links-group h4 {
    font-family: 'Syne', sans-serif; font-size: 13px; font-weight: 700;
    letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px;
}
.footer-links-group ul { display: flex; flex-direction: column; gap: 12px; }
.footer-links-group a, .footer-links-group span { font-size: 14px; color: var(--text-muted); transition: color 0.2s; }
.footer-links-group a:hover { color: var(--text); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; }
.footer-bottom p { font-size: 13px; color: var(--text-muted); }
.footer-social { display: flex; gap: 16px; }
.footer-social a {
    width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); transition: all 0.2s;
}
.footer-social a:hover { border-color: var(--accent); color: var(--accent); }

/* Floating WhatsApp button */
.whatsapp-float {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    z-index: 9999;
    transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), background 0.22s var(--ease-out);
}
.whatsapp-float:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
    background: var(--accent-dark);
}
.whatsapp-float svg {
    width: 30px;
    height: 30px;
}
@media (max-width: 768px) {
    .whatsapp-float {
        right: 16px;
        bottom: 16px;
        width: 54px;
        height: 54px;
    }
    .footer {
        padding-bottom: 88px;
    }
    .footer-bottom {
        padding-right: 72px;
        text-align: left;
        align-items: flex-start;
    }
}

/* ── Cookie Banner ─────────────────────────────── */
.cookie-banner {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: min(940px, calc(100% - 28px));
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px 24px;
    /* Sopra .whatsapp-float (9999): altrimenti il WA intercetta i click sul banner */
    z-index: 10050;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
}
.cookie-banner.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(12px);
}
.cookie-banner-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
    margin: 0;
}
.cookie-banner-text .cookie-banner-link:first-of-type::before {
    content: "";
    display: block;
    margin-top: 10px;
}
.cookie-banner-link {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.cookie-banner-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.cookie-btn {
    padding: 11px 20px;
    font-size: 14px;
}
.cookie-btn-reject {
    border-color: rgba(0,0,0,0.18);
}

.cookie-banner-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

#cookieStep1,
#cookieStep2 {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.cookie-step-hidden {
    display: none !important;
}

.cookie-banner-sep {
    margin: 0 0.25em;
    color: rgba(10, 9, 7, 0.35);
}

.cookie-banner-actions--primary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.cookie-banner-actions--secondary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    width: 100%;
    margin-top: 2px;
}

.cookie-prefs-lead {
    font-size: 14px;
    line-height: 1.55;
    color: var(--text-muted);
    font-weight: 300;
    margin: 0 0 12px;
}

.cookie-pref-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-muted);
    font-weight: 300;
    cursor: pointer;
}

.cookie-pref-row input {
    margin-top: 4px;
    flex-shrink: 0;
    accent-color: var(--accent);
}

.footer-prefs-btn {
    display: inline;
    padding: 0;
    margin: 0;
    border: 0;
    background: none;
    font-family: inherit;
    font-size: 14px;
    font-weight: inherit;
    line-height: inherit;
    color: var(--text-muted);
    text-align: left;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-prefs-btn:hover {
    color: var(--text);
}

/* ── Misc ──────────────────────────────────────── */
.reveal-tag, .reveal-title { overflow: hidden; }
[data-magnetic] { position: relative; display: inline-flex; }

/* ══════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .hero-container { gap: 48px; }
    .process-grid { grid-template-columns: repeat(2, 1fr); gap: 48px; }
    .footer-top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 900px) {
    .section { padding: 80px 0; }
    .container { padding: 0 24px; }
    .work-more-wrap { padding: 0 24px; }
    .nav { padding: 0 24px; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    /* Senza mockup a destra non serve forzare 75vh: meno vuoto sotto la hero */
    .hero { min-height: 0; }
    .hero-eyebrow { padding-top: 36px; padding-bottom: 28px; margin-bottom: 40px; }
    .hero-wbs-sep { height: 52px; }
    .hero-eyebrow-badge { display: none; }
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding-top: 56px;
        padding-bottom: 40px;
    }
    /* Laptop + telefono nascosti su mobile per evitare vuoti: tolta tutta la colonna illustrazione */
    .hero-right { display: none; }
    .hero-title { font-size: clamp(2.6rem, 8vw, 4rem); }
    .about-grid { grid-template-columns: 1fr; gap: 20px; }
    /* Più specifico del .about-page .about-grid a due colonne: una colonna su tablet/phone */
    .about-page .about-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .about-page .about-metrics {
        grid-template-columns: 1fr;
    }
    .about-page .about-points {
        padding-left: 0;
        border-left: none;
        margin-top: 8px;
    }
    .about-page .about-point {
        box-shadow: 0 6px 18px rgba(10, 9, 7, 0.04);
    }
    .about-grid-dots,
    .about-ring { display: none; }
    .about-manifesto { margin-top: 26px; padding: 18px; }
    .about-manifesto p { font-size: 15px; }
    .work-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(400px, auto); }
    .work-item-inner { min-height: 400px; }
    .blog-grid { grid-template-columns: 1fr; gap: 20px; }
    .blog-card-image { height: 240px; }
    .service-item { gap: 20px; min-height: 300px; }
    .service-gallery { width: min(45%, 320px); height: 300px; }
    .service-content { min-height: 300px; grid-template-columns: 80px 1fr; gap: 20px; }
    .services-orb--one { width: 260px; height: 260px; left: -90px; }
    .services-orb--two { width: 220px; height: 220px; right: -70px; }
    .services-ring { width: 180px; height: 180px; right: 5%; }
    .services-grid-dots { width: 120px; height: 120px; left: 2%; }
    .testimonials-grid { grid-template-columns: 1fr; }
    .cookie-banner {
        width: min(680px, calc(100% - 24px));
        padding: 18px 20px;
        align-items: stretch;
    }
    .cookie-banner-actions { width: 100%; }
    .cookie-banner-actions--primary {
        grid-template-columns: 1fr;
    }
    .cookie-banner-actions--secondary {
        justify-content: stretch;
    }
    .cookie-banner-actions--secondary .cookie-btn {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .section { padding: 60px 0; }
    .container { padding: 0 20px; }
    .work-more-wrap { padding: 0 20px; }
    .nav { padding: 0 20px; }
    .hero-container {
        padding-top: 40px;
        padding-bottom: 28px;
    }
    .hero-title { margin-bottom: 32px; }
    .hero-desc { margin-bottom: 28px; }
    .hero-eyebrow { flex-direction: column; align-items: flex-start; gap: 20px; }
    .process-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        padding-left: 0;
    }
    .process-step {
        padding: 0;
        position: relative;
    }
    .step-connector {
        margin-bottom: 12px;
        align-items: center;
    }
    .step-number {
        min-width: 46px;
        text-align: center;
        padding: 6px 10px;
    }
    .step-line {
        margin-left: 12px;
        height: 1px;
    }
    .step-line-fill { display: none; }
    .step-content {
        border: 1px solid var(--border);
        border-radius: 12px;
        background: #fff;
        padding: 14px 14px 16px;
    }
    .step-icon {
        width: 46px;
        height: 46px;
        margin-bottom: 14px;
    }
    .step-content h3 {
        font-size: 1rem;
        margin-bottom: 10px;
    }
    .step-content p {
        font-size: 14px;
        line-height: 1.65;
    }

    /* Chi siamo — layout più compatto su mobile */
    section.about-page#chi-siamo {
        padding-top: calc(var(--nav-h) + 28px) !important;
        padding-bottom: 44px;
    }
    .about-page .section-header {
        margin-bottom: 24px;
        gap: 12px;
    }
    .about-page .section-title {
        font-size: clamp(1.85rem, 7vw, 2.45rem);
    }
    .about-page .about-grid {
        gap: 18px;
    }
    .about-page .about-copy {
        gap: 14px;
    }
    .about-page .about-copy p {
        font-size: 15px;
        line-height: 1.65;
        max-width: none;
    }
    .about-page .about-metrics {
        margin-top: 18px;
        padding-top: 16px;
        gap: 10px;
    }
    .about-page .about-metric {
        padding: 14px 14px 12px;
    }
    .about-page .about-metric strong {
        font-size: 0.95rem;
    }
    .about-page .about-metric span {
        font-size: 13px;
        line-height: 1.6;
    }
    .about-page .about-points {
        gap: 11px;
        margin-top: 2px;
    }
    .about-page .about-point {
        padding: 15px 14px 14px;
        border-radius: 14px;
    }
    .about-page .about-point h3 {
        font-size: 0.98rem;
        margin-bottom: 7px;
    }
    .about-page .about-point p {
        font-size: 14px;
        line-height: 1.62;
    }
    .about-page .about-manifesto {
        margin-top: 24px;
        padding: 16px;
    }
    .about-page .about-manifesto p {
        font-size: 14px;
        line-height: 1.65;
        max-width: none;
    }
    .about-page .hero-cta {
        margin-top: 22px;
        flex-direction: column;
        align-items: stretch;
        gap: 11px;
    }
    .about-page .hero-cta .btn {
        width: 100%;
        justify-content: center;
    }

    .footer {
        padding: 44px 0 28px;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 28px;
        padding-bottom: 28px;
    }
    .footer-brand .nav-logo {
        margin-bottom: 10px;
    }
    .footer-brand .nav-logo-img {
        max-height: 40px;
        width: auto;
    }
    /* Mobile: logo, contatti, privacy/cookie, P.IVA, diritti (no tagline, no menu, no social) */
    .footer-brand > p {
        display: none;
    }
    .footer-top > .footer-links-group:nth-child(2),
    .footer-top > .footer-links-group:nth-child(3) {
        display: none !important;
    }
    .footer-top > .footer-links-group:last-child li:last-child {
        grid-column: 1 / -1;
        grid-row: 4;
        margin-top: 4px;
    }
    .footer-top > .footer-links-group:last-child h4 {
        margin-bottom: 8px;
    }
    .footer-top > .footer-links-group:last-child ul {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 18px;
        row-gap: 8px;
        align-items: start;
    }
    .footer-top > .footer-links-group:last-child li:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    .footer-top > .footer-links-group:last-child li:nth-child(2) {
        grid-column: 1;
        grid-row: 2;
    }
    .footer-top > .footer-links-group:last-child li:nth-child(3) {
        grid-column: 1;
        grid-row: 3;
    }
    .footer-top > .footer-links-group:last-child li:nth-child(4) {
        grid-column: 2;
        grid-row: 1;
    }
    .footer-top > .footer-links-group:last-child li:nth-child(5) {
        grid-column: 2;
        grid-row: 2;
    }
    .footer-top > .footer-links-group:last-child li:nth-child(6) {
        grid-column: 2;
        grid-row: 3;
    }
    .footer-bottom .footer-social {
        display: none !important;
    }
    .footer-links-group h4 {
        font-size: 11px;
        margin-bottom: 10px;
        letter-spacing: 0.12em;
    }
    .footer-links-group ul {
        gap: 8px;
    }
    .footer-links-group a,
    .footer-links-group span {
        font-size: 13px;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 14px;
        text-align: left;
        padding-right: 72px;
        align-items: flex-start;
    }
    .footer-bottom p {
        font-size: 12px;
        max-width: 100%;
    }
    .footer-social {
        gap: 12px;
    }
    .footer-social a {
        width: 34px;
        height: 34px;
    }
    .service-item {
        flex-direction: column !important;
        gap: 18px;
        min-height: auto;
    }
    .service-gallery {
        width: 100%;
        height: 190px;
    }
    .blog-card-image { height: 200px; }
    .blog-card-body { padding: 18px 18px 20px; }

    /* Blog homepage: sezione più compatta su mobile */
    #blog {
        margin-top: -44px;
    }
    #blog.section {
        padding: 44px 0 52px;
    }
    #blog .section-header {
        margin-bottom: 24px;
        gap: 10px;
    }
    #blog .section-title {
        font-size: clamp(1.65rem, 6.2vw, 2.2rem);
        max-width: none;
    }
    #blog .blog-intro {
        font-size: 14px;
        line-height: 1.5;
        max-width: 36ch;
    }
    #blog .blog-grid {
        gap: 12px;
    }
    #blog .blog-grid--carousel .blog-card {
        flex: 0 0 86%;
        min-width: 0;
    }
    #blog .blog-carousel-btn {
        display: none;
    }
    #blog .blog-card:hover {
        transform: translateY(-3px);
    }
    #blog .blog-card-image {
        height: 132px;
    }
    #blog .blog-card-body {
        padding: 12px 14px 14px;
        gap: 6px;
    }
    #blog .blog-card-meta {
        font-size: 10px;
        letter-spacing: 0.1em;
    }
    #blog .blog-card-title {
        font-size: 1.02rem;
        line-height: 1.22;
    }
    #blog .blog-card-excerpt {
        flex: 0 1 auto;
        min-height: 0;
        font-size: 13px;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    #blog .blog-card-link {
        font-size: 13px;
        padding-top: 2px;
    }
    #blog .blog-more-wrap {
        display: flex;
        margin-top: 18px;
    }
    #blog .blog-grid--compact-mobile .blog-card.blog-card--mobile-hidden {
        display: none !important;
    }
    .service-content { min-height: auto; grid-template-columns: 1fr; gap: 12px; }
    .service-left { flex-direction: row; align-items: center; gap: 16px; }
    .services-ring, .services-grid-dots { display: none; }
    .cookie-banner {
        width: calc(100% - 16px);
        bottom: 10px;
        border-radius: 14px;
        padding: 16px 18px;
        gap: 14px;
    }
    #cookieStep1,
    #cookieStep2 {
        gap: 16px;
    }
    .cookie-banner-text { font-size: 13px; }
    .cookie-banner-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr;
    }
    .cookie-btn {
        width: 100%;
        justify-content: center;
        padding: 10px 14px;
    }
    .step-content {
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }
    .section-title { font-size: clamp(2rem, 7vw, 2.8rem); }
    .cta-section {
        padding: clamp(56px, 10vw, 88px) 0;
    }
    body.portfolio-page .cta-section {
        min-height: clamp(480px, 62vh, 640px);
    }
    .cta-inner {
        margin-top: 0;
    }
    .cta-tag { margin-bottom: 18px; }
    .cta-title { font-size: clamp(3rem, 11vw, 4.5rem); margin-bottom: 18px; }
    .cta-desc { margin-bottom: 26px; }
    .cta-form-card { padding: 24px 18px 22px; margin-bottom: 28px; max-width: 100%; }
    .cta-form-grid {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        grid-auto-rows: auto;
        min-height: 0;
    }
    .cta-form-row--head { grid-column: 1; grid-row: auto; }
    .cta-form-field--message {
        grid-column: 1;
        grid-row: auto;
    }
    .cta-form-field--tel { grid-column: 1; grid-row: auto; }
    .cta-form-field--message .cta-form-textarea {
        flex: none;
        min-height: 180px;
        height: auto;
    }
    .cta-form-submit { grid-column: 1; grid-row: auto; }
    .cta-form-row { grid-template-columns: 1fr; }
}

/* ── Portfolio: niente scroll / overscroll orizzontale su mobile ── */
@media (max-width: 960px) {
    body.portfolio-page {
        overflow-x: clip;
        max-width: 100%;
        overscroll-behavior-x: none;
        touch-action: pan-y pinch-zoom;
    }

    body.portfolio-page main {
        overflow-x: clip;
        max-width: 100%;
    }

    body.portfolio-page .portfolio-hero,
    body.portfolio-page .folio-band,
    body.portfolio-page .portfolio-gallery {
        overflow-x: clip;
        max-width: 100%;
    }

    body.portfolio-page .folio-device {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        max-width: 100%;
        overflow: visible;
    }

    body.portfolio-page .container {
        max-width: 100%;
        padding-left: 32px;
        padding-right: 32px;
    }

    body.portfolio-page .folio-copy {
        padding-inline: 4px;
    }

    body.portfolio-page .portfolio-grid > div:first-child {
        transform: none !important;
    }

    body.portfolio-page .folio-device .folio-phone,
    body.portfolio-page .folio-device .folio-tablet {
        position: relative;
        left: auto !important;
        right: auto;
        margin-left: auto;
        margin-right: auto;
        width: auto;
        max-width: 100%;
        height: auto;
        display: block;
        object-fit: contain;
        object-position: center;
        --folio-mock-nudge-x: clamp(14px, 4vw, 22px);
    }

    body.portfolio-page .folio-device .folio-phone {
        max-width: min(280px, 100%);
    }

    body.portfolio-page .folio-device .folio-tablet {
        max-width: min(320px, 100%);
    }

    /* Reveal verticale + leggero shift a destra sui mockup */
    body.portfolio-page .folio-band--green .folio-copy,
    body.portfolio-page .folio-band--brown .folio-copy {
        transform: translateY(28px);
    }

    body.portfolio-page .folio-band--green .folio-phone {
        transform: translate(var(--folio-mock-nudge-x), 28px);
    }

    body.portfolio-page .folio-band--brown .folio-tablet {
        transform: translate(var(--folio-mock-nudge-x), 28px);
    }

    body.portfolio-page .folio-band--green.in-view .folio-copy,
    body.portfolio-page .folio-band--brown.in-view .folio-copy {
        transform: translateY(0);
    }

    body.portfolio-page .folio-band--green.in-view .folio-phone {
        transform: translate(var(--folio-mock-nudge-x), 0);
    }

    body.portfolio-page .folio-band--brown.in-view .folio-tablet {
        transform: translate(var(--folio-mock-nudge-x), 0);
    }

    body.portfolio-page .portfolio-gallery .section-desc {
        text-align: center !important;
        text-align-last: center;
    }
}

@media (max-width: 640px) {
    body.portfolio-page .container {
        padding-left: 28px;
        padding-right: 28px;
    }
}
