/*
 * Theme Name:   GeneratePress Child — Arkadia Studios
 * Theme URI:    https://arkadiastudios.it
 * Description:  Tema figlio di GeneratePress per Arkadia Studios
 * Author:       Arkadia Studios
 * Template:     generatepress
 * Version:      1.0.0
 * Text Domain:  arkadia-child
 */

/* ─────────────────────────────────────────
   RESET / BASE
───────────────────────────────────────── */

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

/* Selettori di body class WordPress — più specifici delle regole GP */
body.page,
body.single,
body.archive,
body.home,
body.blog,
body.search,
body.error404,
body.post-type-archive {
    background-color: #000000 !important;
    color: #ffffff !important;
}

html,
body {
    background-color: #000000 !important;
    color: #ffffff !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    padding-bottom: 0;
}

/* Annulla tutta la catena di container GP — il centraggio è nei nostri inner wrapper */
#page,
#content,
.site-content,
.grid-container,
.grid-parent,
#primary,
.content-area,
.site-main {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    box-sizing: border-box !important;
    background-color: transparent !important;
    color: #ffffff !important;
}

a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #999999;
}

/* Forza sfondo nero — override aggiuntivo per elementi GP e Gutenberg */
body,
.site,
.hentry,
.entry,
.entry-content,
.page-content,
.type-page,
.type-post,
.wp-site-blocks,
.is-layout-flow,
.wp-block-group,
.wp-block-group__inner-container,
.entry-header,
.post-thumbnail,
.wp-singular {
    background-color: transparent !important;
    color: inherit !important;
}

/* ─── NASCONDE TITOLO AUTOMATICO WORDPRESS/GP ─── */
.entry-title,
.page-title,
h1.entry-title,
.wp-block-post-title {
    display: none !important;
}

/* ─────────────────────────────────────────
   RIMOZIONE HEADER GENERATEPRESS
───────────────────────────────────────── */

#site-header,
.site-header,
#masthead,
.nav-primary,
.main-navigation {
    display: none !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* WP admin bar (logged-in dev view): compensate 32px html margin-top so hero stays flush */
html.admin-bar .hero {
    margin-top: -32px;
    min-height: calc(100svh + 32px);
}
@media screen and (max-width: 782px) {
    html.admin-bar .hero {
        margin-top: -46px;
        min-height: calc(100svh + 46px);
    }
}

/* ─────────────────────────────────────────
   FLOATING TAB BAR
───────────────────────────────────────── */

.arkadia-tab-bar {
    position: fixed;
    bottom: max(24px, calc(env(safe-area-inset-bottom) + 8px));
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;

    display: flex;
    align-items: center;
    gap: 2px;

    background: rgba(10, 10, 10, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);

    padding: 8px 10px;
    white-space: nowrap;

    transition:
        transform 0.38s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.38s ease;
    will-change: transform, opacity;
}

.arkadia-tab-bar.is-hidden {
    transform: translateX(-50%) translateY(calc(100% + 36px));
    opacity: 0;
    pointer-events: none;
}

/* ── Singolo tab ── */

.arkadia-tab-bar__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;

    padding: 8px 14px;
    border-radius: 14px;
    min-width: 58px;

    color: #666666;
    text-decoration: none;
    cursor: pointer;

    transition: color 0.2s ease, background 0.2s ease;
}

.arkadia-tab-bar__item:hover {
    color: #999999;
    background: rgba(255, 255, 255, 0.04);
    text-decoration: none;
}

.arkadia-tab-bar__item.is-active {
    color: #EA0909;
}

.arkadia-tab-bar__item.is-active:hover {
    color: #c00707;
    background: rgba(234, 9, 9, 0.08);
}

/* Colori accent per tab con pagine a tema diverso */
.arkadia-tab-bar__item--noleggio.is-active {
    color: #df7d2d;
}
.arkadia-tab-bar__item--noleggio.is-active:hover {
    color: #df7d2d;
    background: rgba(223, 125, 45, 0.08);
}

.arkadia-tab-bar__item--ecosistema.is-active {
    color: #1A6B8A;
}
.arkadia-tab-bar__item--ecosistema.is-active:hover {
    color: #1A6B8A;
    background: rgba(26, 107, 138, 0.08);
}

.arkadia-tab-bar__item--contatti.is-active {
    color: #9C0404;
}
.arkadia-tab-bar__item--contatti.is-active:hover {
    color: #9C0404;
    background: rgba(156, 4, 4, 0.08);
}

/* Logo Home — la PNG non risponde a currentColor; si usa filter per l'active state */
.arkadia-tab-bar__item:first-child .arkadia-tab-bar__icon {
    opacity: 0.4;
    transition: opacity 0.2s ease, filter 0.2s ease;
}

.arkadia-tab-bar__item:first-child:hover .arkadia-tab-bar__icon {
    opacity: 0.7;
}

.arkadia-tab-bar__item:first-child.is-active .arkadia-tab-bar__icon {
    opacity: 1;
    filter: brightness(0) invert(22%) sepia(100%) saturate(5000%) brightness(0.92);
}

/* ── Icona SVG ── */

.arkadia-tab-bar__icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.arkadia-tab-bar__icon svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    overflow: visible;
}

/* ── Label ── */

.arkadia-tab-bar__label {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    line-height: 1;
    user-select: none;
}

/* ─────────────────────────────────────────
   RESPONSIVE — Mobile identico al desktop
───────────────────────────────────────── */

@media (max-width: 768px) {
    .arkadia-tab-bar {
        bottom: 14px;
        padding: 6px 8px;
        border-radius: 16px;
    }

    .arkadia-tab-bar__item {
        padding: 6px 9px;
        min-width: 44px;
        gap: 3px;
    }

    .arkadia-tab-bar__icon svg {
        width: 19px;
        height: 19px;
    }

    .arkadia-tab-bar__label {
        font-size: 8px;
    }
}

/* Su schermi piccoli: solo icone, niente label */
@media (max-width: 480px) {
    .arkadia-tab-bar {
        padding: 6px 6px;
        border-radius: 14px;
    }

    .arkadia-tab-bar__item {
        padding: 8px 10px;
        min-width: 40px;
    }

    .arkadia-tab-bar__label {
        display: none;
    }

    .arkadia-tab-bar__icon svg {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 360px) {
    .arkadia-tab-bar__item {
        padding: 8px 8px;
        min-width: 36px;
    }
}

/* ─────────────────────────────────────────
   UTILITY / COMPONENTI GLOBALI
───────────────────────────────────────── */

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #EA0909;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .section-tag {
        font-size: 11px;
    }
}

/* Homepage: scritte piccole in grigio chiaro per leggibilità su sfondo nero */
#arkadia-home .section-tag   { color: #cccccc; }
#arkadia-home .hero__eyebrow { color: #cccccc; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 28px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.22s ease;
    cursor: pointer;
    border: none;
    outline: none;
}

.btn--primary {
    background: #EA0909;
    color: #ffffff;
}

.btn--primary:hover {
    background: #5a0000;
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(69, 0, 0, 0.4);
}

.btn--ghost {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
}

.btn--large {
    padding: 16px 40px;
    font-size: 15px;
    border-radius: 12px;
}

/* ─────────────────────────────────────────
   HERO
───────────────────────────────────────── */

.hero {
    position: relative;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 80px 24px 120px;
}

/* Media layer (video + overlay + glow) */
.hero__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

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

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.25) 0%,
        rgba(0, 0, 0, 0.55) 55%,
        #000000 100%
    );
}

.hero__glow {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 400px;
    background: radial-gradient(ellipse at center, rgba(69, 0, 0, 0.22) 0%, transparent 70%);
    filter: blur(50px);
    pointer-events: none;
}

/* Contenuto testuale con animazione di ingresso */
.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

.hero__content > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1), transform 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero__content.is-visible > * {
    opacity: 1;
    transform: translateY(0);
}

.hero__content.is-visible > *:nth-child(1) { transition-delay: 0s;    }
.hero__content.is-visible > *:nth-child(2) { transition-delay: 0.18s; }
.hero__content.is-visible > *:nth-child(3) { transition-delay: 0.34s; }
.hero__content.is-visible > *:nth-child(4) { transition-delay: 0.50s; }

.hero__eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #999999;
    margin-bottom: 28px;
}

.hero__title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.hero__title-line {
    display: block;
    color: #ffffff;
}

.hero__title-line--accent {
    color: #EA0909;
}

/* ── Accessibilità / SEO — testo solo per screen reader e motori ── */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ── Hero — modalità logo ── */
.hero__logo-wrap {
    margin: 0 0 28px;
}

.hero__logo-img {
    display: block;
    width: auto;
    max-width: 80%;
    height: auto;
    max-height: clamp(100px, 18vw, 260px);
    object-fit: contain;
}

.hero__logo-img--center {
    margin-left: auto;
    margin-right: auto;
}

.hero__sub {
    font-size: clamp(15px, 2vw, 18px);
    color: #999999;
    line-height: 1.7;
    margin-bottom: 44px;
}

.hero__cta-group {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Indicatore scroll */
.hero__scroll-hint {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.hero__scroll-line {
    display: block;
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3));
    margin: 0 auto;
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50%       { opacity: 1;   transform: scaleY(1.15); }
}

/* ─────────────────────────────────────────
   SERVIZI
───────────────────────────────────────── */

.services {
    padding: 80px 24px 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.services__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 8px;
}

.service-card {
    --card-accent: #EA0909;
    --card-accent-rgb: 234,9,9;
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.02);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at top left, rgba(var(--card-accent-rgb), 0.08), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
}

.service-card:hover {
    border-color: rgba(var(--card-accent-rgb), 0.4);
    background: rgba(var(--card-accent-rgb), 0.04);
    transform: translateY(-3px);
    text-decoration: none;
    color: inherit;
}

.service-card:hover::before {
    opacity: 1;
}

/* Immagine di sfondo hoverable — aggiungere style="background-image: url('...')" quando pronta */
.service-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    border-radius: inherit;
    opacity: 0;
    transition: opacity 0.45s ease;
    z-index: 0;
}

.service-card:hover .service-card__bg {
    opacity: 0.18;
}

.service-card__icon,
.service-card__title,
.service-card__desc,
.service-card__arrow {
    position: relative;
    z-index: 2;
}

.service-card__icon {
    width: 44px;
    height: 44px;
    color: #EA0909;
    margin-bottom: 20px;
    transition: color 0.25s ease;
}

.service-card__icon svg {
    width: 44px;
    height: 44px;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card__icon-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

.service-card__title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0 0 10px;
    color: #ffffff;
}

.service-card__desc {
    font-size: 14px;
    color: #999999;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}

.service-card__arrow {
    display: inline-block;
    margin-top: 24px;
    font-size: 18px;
    color: #EA0909;
    transition: transform 0.2s ease, color 0.25s ease;
}

.service-card:hover .service-card__icon,
.service-card:hover .service-card__arrow {
    color: var(--card-accent);
}

.service-card:hover .service-card__arrow {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}

/* ─────────────────────────────────────────
   CTA BAND
───────────────────────────────────────── */

.cta-band {
    padding: 100px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.cta-band__inner {
    max-width: 680px;
    margin: 0 auto;
}

.cta-band__title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin: 0 0 18px;
    color: #ffffff;
}

.cta-band__sub {
    font-size: 16px;
    color: #999999;
    line-height: 1.7;
    margin-bottom: 40px;
}

/* ─────────────────────────────────────────
   ULTIMI LAVORI
───────────────────────────────────────── */

.works {
    padding: 80px 24px 100px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.works__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.works__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 32px;
}

.works__header .section-tag {
    margin-bottom: 0;
}

.works__see-all {
    font-size: 13px;
    font-weight: 500;
    color: #555555;
    text-decoration: none;
    transition: color 0.2s ease;
}

.works__see-all:hover {
    color: #ffffff;
    text-decoration: none;
}

.works__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.work-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
}

.work-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #0d0d0d;
}

.work-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.work-card:hover .work-card__img {
    transform: scale(1.05);
}

.work-card__img-placeholder {
    width: 100%;
    height: 100%;
    background: #111111;
}

.work-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.work-card:hover .work-card__overlay {
    opacity: 1;
}

.work-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 5px;
    transform: translateY(8px);
    transition: transform 0.35s ease;
}

.work-card__cat {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #EA0909;
    transform: translateY(8px);
    transition: transform 0.35s ease 0.04s;
}

.work-card:hover .work-card__title,
.work-card:hover .work-card__cat,
.work-card:hover .lavori-card__badge {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .works__grid {
        grid-template-columns: 1fr;
    }
}

/* ─────────────────────────────────────────
   CLIENTI — LOGO MARQUEE
───────────────────────────────────────── */

.clients {
    padding: 60px 0 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.clients__inner {
    max-width: 1100px;
    margin: 0 auto 40px;
    padding: 0 24px;
}

.clients__inner .section-tag {
    margin-bottom: 0;
}

.logo-marquee {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 8%,
        black 92%,
        transparent 100%
    );
}

.logo-marquee__track {
    display: flex;
    align-items: center;
    gap: 0;               /* spaziatura gestita dal padding di ogni img */
    width: max-content;
    padding: 16px 0;      /* solo verticale — nessun padding orizzontale */
    animation: marquee 32s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Loghi reali: <img>
   Il padding orizzontale su ogni img crea uno spazio identico
   su entrambi i lati di ciascun logo — inclusa la giuntura del loop. */
.logo-marquee__track img {
    height: 56px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
    padding: 0 48px;      /* 48px + 48px = 96px tra un logo e l'altro, identico alla giuntura */
    filter: grayscale(1) brightness(0.45);
    transition: filter 0.3s ease;
}

.logo-marquee__track img:hover {
    filter: grayscale(0) brightness(1);
}

/* Placeholder temporanei (da sostituire con <img>) */
.logo-placeholder {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #2a2a2a;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0 48px;
    cursor: default;
    transition: color 0.25s ease;
    user-select: none;
}

.logo-placeholder:hover {
    color: #444444;
}

/* ─── STATEMENT (sezione opzionale) ─── */

.statement {
    padding: clamp(60px, 8vw, 100px) 0;
    text-align: center;
}

.statement__inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

.statement__text {
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    font-weight: 700;
    line-height: 1.3;
    color: #ffffff;
}

/* ─── TITOLO STILIZZATO ─── */

.ark-title-styled {
    padding: clamp(48px, 7vw, 96px) 24px;
    position: relative;
    overflow: hidden; /* clipping echo su sezione full-width */
}

.ark-title-styled--center { text-align: center; }

.ark-title-styled__inner {
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Echo: rimuove overflow dall'inner, il clipping è sull'outer */
.ark-title-styled--echo .ark-title-styled__inner { overflow: visible; }

.ark-title-styled__text {
    position: relative;
    z-index: 1;
    margin: 0;
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: #ffffff;
}

.ark-title-styled--h1 .ark-title-styled__text { font-size: clamp(2.5rem, 6vw, 5rem);   font-weight: 800; }
.ark-title-styled--h2 .ark-title-styled__text { font-size: clamp(2rem, 4.5vw, 3.8rem); font-weight: 800; }
.ark-title-styled--h3 .ark-title-styled__text { font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; }

/* Variante Echo — ghost text drammatico, posizionato sull'outer full-width */
.ark-title-styled__echo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(6rem, 20vw, 18rem);
    font-weight: 900;
    color: #ffffff;
    opacity: 0.05;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    line-height: 1;
    letter-spacing: -0.04em;
    z-index: 0;
}

/* Variante Split — bordo accent a sinistra */
.ark-title-styled--split:not(.ark-title-styled--center) .ark-title-styled__inner {
    border-left: 4px solid #EA0909;
    padding-left: 24px;
}

/* Variante Underline */
.ark-title-underline {
    position: relative;
    display: inline-block;
    padding-bottom: 20px;
}

.ark-title-styled--center .ark-title-underline { display: block; }

.ark-title-underline__line {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #EA0909 0%, rgba(69, 0, 0, 0) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.ark-title-styled--center .ark-title-underline__line {
    transform-origin: center;
    background: linear-gradient(90deg, rgba(204,51,51,0) 0%, #EA0909 50%, rgba(204,51,51,0) 100%);
}

.ark-title-underline.is-visible .ark-title-underline__line { transform: scaleX(1); }

/* ─── TABELLA CONTATTI ─── */

.ark-contacts {
    padding: clamp(40px, 5vw, 64px) 24px;
}

.ark-contacts__inner {
    max-width: 960px;
    margin: 0 auto;
}

.ark-contacts__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.ark-contacts__row {
    /* solo wrapper della li */
}

/* Card glass */
.ark-contacts__card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 28px;
    padding: 36px 32px 30px;
    position: relative;
    border-radius: 20px;
    isolation: isolate;
    text-decoration: none;
    min-height: 220px;
    background: var(--glass-bg,
        radial-gradient(ellipse 80% 55% at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 70%),
        linear-gradient(180deg, rgba(16,14,20,0.85) 0%, rgba(8,7,12,0.95) 100%));
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 20px 56px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

/* Hairline accento */
.ark-contacts__card::before {
    content: '';
    position: absolute;
    left: 15%; right: 15%; top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--ark-contact-accent, #EA0909), transparent);
    opacity: 0.75;
    pointer-events: none;
}

a.ark-contacts__card:hover {
    border-color: rgba(255,255,255,0.13);
    box-shadow: 0 28px 72px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.07);
    transform: translateY(-2px);
}

/* Sezione label + desc */
.ark-contacts__meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ark-contacts__label-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ark-contacts__label-icon {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
    color: var(--ark-contact-accent, #EA0909);
    opacity: 0.75;
}

.ark-contacts__label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #ffffff;
    line-height: 1.3;
}

.ark-contacts__desc {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

/* Riga email — larghezza piena, nessun icona inline */
.ark-contacts__email-wrap {
    padding-top: 4px;
    border-top: 1px solid rgba(255,255,255,0.06);
}

.ark-contacts__email {
    display: block;
    font-size: clamp(14px, 1.6vw, 17px);
    font-weight: 600;
    color: var(--ark-contact-accent, #EA0909);
    line-height: 1.35;
    overflow-wrap: anywhere;
    transition: color 0.2s ease;
    letter-spacing: 0.01em;
}

a.ark-contacts__card:hover .ark-contacts__email {
    color: #ffffff;
}

a.ark-contacts__card:hover .ark-contacts__label-icon {
    opacity: 1;
}

@media (max-width: 600px) {
    .ark-contacts__list {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .ark-contacts__card {
        padding: 24px 22px 20px;
        min-height: 0;
        gap: 20px;
        border-radius: 16px;
    }

    .ark-contacts__desc {
        font-size: 14px;
    }
}

/* ─── WIKI INTERNA ─── */

.wiki {
    background: #080808;
    padding: 0 24px clamp(100px, 12vw, 140px);
}

.wiki__inner {
    max-width: 860px;
    margin: 0 auto;
}

/* Search */
.wiki-search-wrap {
    max-width: 520px;
    margin: 32px auto 0;
}

.wiki-search {
    width: 100%;
    padding: 14px 18px 14px 46px;
    background: rgba(255, 255, 255, 0.05)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.5' y1='16.5' x2='22' y2='22'/%3E%3C/svg%3E")
        no-repeat 16px center / 18px 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease;
    -webkit-appearance: none;
}

.wiki-search::placeholder { color: #555; }

/* Nasconde le decorazioni native del browser (lente e ✕ di Safari/Chrome) */
.wiki-search::-webkit-search-decoration,
.wiki-search::-webkit-search-cancel-button,
.wiki-search::-webkit-search-results-button,
.wiki-search::-webkit-search-results-decoration {
    -webkit-appearance: none;
    display: none;
}

.wiki-search:focus {
    border-color: rgba(69, 0, 0, 0.6);
    background: rgba(255, 255, 255, 0.07)
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='1.5' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.5' y1='16.5' x2='22' y2='22'/%3E%3C/svg%3E")
        no-repeat 16px center / 18px 18px;
    box-shadow: 0 0 0 3px rgba(69, 0, 0, 0.15);
}

/* Categorie */
.wiki__category {
    margin-top: 48px;
}

.wiki__category.is-hidden { display: none; }

.wiki__category-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #EA0909;
    margin: 0 0 16px;
}

/* Lista */
.wiki__list {
    list-style: none;
    margin: 0;
    padding: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wiki__item.is-hidden { display: none; }

.wiki__item-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 4px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.18s ease;
    border-radius: 0;
}

.wiki__item-btn:hover {
    background: rgba(255, 255, 255, 0.03);
    padding-left: 10px;
    padding-right: 10px;
    margin: 0 -6px;
    width: calc(100% + 12px);
    border-radius: 8px;
    border-bottom-color: transparent;
}

.wiki__item-title {
    font-size: 15px;
    color: #e0e0e0;
    font-weight: 500;
    line-height: 1.4;
    transition: color 0.18s ease;
}

.wiki__item-btn:hover .wiki__item-title { color: #ffffff; }

.wiki__item-arrow {
    font-size: 14px;
    color: #444;
    flex-shrink: 0;
    margin-left: 16px;
    transition: color 0.18s ease, transform 0.18s ease;
}

.wiki__item-btn:hover .wiki__item-arrow {
    color: #EA0909;
    transform: translateX(4px);
}

/* Messaggio vuoto */
.wiki__empty {
    display: none;
    text-align: center;
    color: #555;
    padding: 60px 0;
    font-size: 15px;
}

.wiki__empty.is-visible { display: block; }

/* Modale */
.wiki-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}

.wiki-modal.is-open { display: flex; }

body.wiki-modal-open { overflow: hidden; }

.wiki-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    cursor: pointer;
}

.wiki-modal__panel {
    position: relative;
    z-index: 1;
    background: #111111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    width: min(760px, calc(100vw - 32px));
    max-height: calc(100svh - 48px);
    overflow-y: auto;
    padding: clamp(28px, 5vw, 48px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7);
    animation: wiki-panel-in 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes wiki-panel-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.wiki-modal__bar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 20px;
}

.wiki-modal__pdf-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 20px;
    background: rgba(69, 0, 0, 0.85);
    border: 1px solid rgba(69, 0, 0, 0.5);
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-decoration: none;
    transition: background 0.18s ease;
}
.wiki-modal__pdf-btn:hover {
    background: rgba(69, 0, 0, 1);
    color: #ffffff;
    text-decoration: none;
}

.wiki-modal__close {
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #aaa;
    transition: background 0.18s ease, color 0.18s ease;
    padding: 0;
    flex-shrink: 0;
}

.wiki-modal__close:hover { background: rgba(255,255,255,0.1); color: #fff; }
.wiki-modal__close svg { width: 16px; height: 16px; }

.wiki-modal__title {
    font-size: clamp(1.3rem, 3vw, 1.8rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0 48px 24px 0;
    line-height: 1.2;
}

/* Stili testo corpo procedura */
.wiki-modal__body { color: #cccccc; font-size: 15px; line-height: 1.75; }
.wiki-modal__body h2 { font-size: 1.1rem; font-weight: 700; color: #fff; margin: 28px 0 10px; }
.wiki-modal__body h3 { font-size: 0.95rem; font-weight: 700; color: #ddd; margin: 22px 0 8px; }
.wiki-modal__body p  { margin: 0 0 14px; }
.wiki-modal__body ul,
.wiki-modal__body ol { padding-left: 22px; margin: 0 0 14px; }
.wiki-modal__body li { margin-bottom: 6px; }
.wiki-modal__body strong { color: #ffffff; }
.wiki-modal__body a  { color: #c06060; text-decoration: underline; }
.wiki-modal__body a:hover { color: #ffffff; }
.wiki-modal__body hr { border: none; border-top: 1px solid rgba(255,255,255,0.08); margin: 24px 0; }
.wiki-modal__body code {
    background: rgba(255,255,255,0.07);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 13px;
    font-family: ui-monospace, monospace;
}
.wiki-modal__body pre {
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 16px;
    overflow-x: auto;
    margin: 0 0 14px;
}

/* ─────────────────────────────────────────
   MOBILE TWEAKS
───────────────────────────────────────── */

@media (max-width: 600px) {
    .hero__sub br {
        display: none;
    }

    .services {
        padding: 60px 20px 80px;
    }

    .works {
        padding: 60px 20px 80px;
    }

    .cta-band {
        padding: 70px 20px;
    }
}

/* ─── PAGE HERO ─── */

.page-hero {
    padding: clamp(120px, 15vw, 180px) 24px clamp(48px, 6vw, 80px);
    text-align: center;
}

.page-hero__inner {
    max-width: 760px;
    margin: 0 auto;
}

.page-hero__title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.05;
    margin: 0 0 24px;
    letter-spacing: -0.02em;
}

.page-hero__intro {
    font-size: 16px;
    color: #999999;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
}

/* ─── LAVORI FILTER ─── */

.lavori {
    padding: 0 24px clamp(80px, 10vw, 120px);
}

.lavori__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.lavori__filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.lavori__filter-btn {
    padding: 9px 22px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #999999;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    font-family: inherit;
}

.lavori__filter-btn:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: #cccccc;
}

.lavori__subfilters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: -24px;
    margin-bottom: 32px;
    padding-left: 20px;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.lavori__subfilters[hidden] {
    display: none;
}

.lavori__filter-btn--child {
    font-size: 12px;
    padding: 6px 16px;
}

/* ─── LAVORI GRID ─── */

.lavori__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
}

.lavori-card.is-hidden {
    display: none;
}

.lavori__empty {
    display: none;
    text-align: center;
    color: #999999;
    padding: 60px 0;
    font-size: 15px;
}

.lavori__empty.is-visible {
    display: block;
}

/* ─── LAVORI CARD ─── */

.lavori-card__link {
    display: block;
    text-decoration: none;
}

.lavori-card__media {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #111111;
}

.lavori-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.38s ease;
}

.lavori-card:hover .lavori-card__img {
    transform: scale(1.05);
}

.lavori-card__placeholder {
    width: 100%;
    height: 100%;
    background: #1a1a1a;
}

.lavori-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 18px;
    opacity: 0;
    transition: opacity 0.35s ease;
}

.lavori-card:hover .lavori-card__overlay {
    opacity: 1;
}

.lavori-card__title {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px;
    line-height: 1.3;
    transform: translateY(12px);
    transition: transform 0.35s ease;
}

.lavori-card:hover .lavori-card__title {
    transform: translateY(0);
}

.lavori-card__badge {
    display: inline-block;
    align-self: flex-start;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #ffffff;
    transform: translateY(12px);
    transition: transform 0.35s ease 0.05s;
}

.lavori-card:hover .lavori-card__badge {
    transform: translateY(0);
}

.lavori-card__role-below {
    display: block;
    font-size: 12px;
    color: #aaaaaa;
    letter-spacing: 0.04em;
    line-height: 1.3;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .lavori__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .lavori {
        padding: 0 16px 80px;
    }

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

    .lavori__filters {
        gap: 8px;
    }

    .lavori__filter-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* ─── FOOTER ─── */

.arkadia-footer {
    background: #000000;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 28px 24px clamp(90px, 12vw, 110px);
}

.arkadia-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.arkadia-footer__logo a {
    display: block;
    text-decoration: none;
}

.arkadia-footer__logo img {
    height: 28px;
    width: auto;
    display: block;
    opacity: 0.65;
    transition: opacity 0.2s ease;
}

.arkadia-footer__logo a:hover img {
    opacity: 1;
}

.arkadia-footer__logo-text {
    font-size: 13px;
    font-weight: 600;
    color: #666666;
    transition: color 0.2s ease;
}

.arkadia-footer__logo a:hover .arkadia-footer__logo-text {
    color: #ffffff;
}

.arkadia-footer__info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: #999999;
    text-align: center;
    line-height: 1.5;
}

.arkadia-footer__links {
    display: flex;
    gap: 20px;
}

.arkadia-footer__links a {
    font-size: 12px;
    color: #666666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.arkadia-footer__links a:hover {
    color: #ffffff;
}

.arkadia-footer__copyright {
    max-width: 1100px;
    margin: 16px auto 0;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 11px;
    color: #444444;
    text-align: center;
    letter-spacing: 0.04em;
}

@media (max-width: 600px) {
    .arkadia-footer__inner {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .arkadia-footer__info {
        order: 2;
    }

    .arkadia-footer__links {
        order: 3;
        gap: 16px;
    }
}

/* ─── SINGLE LAVORO ─── */

.single-lavoro {
    padding: clamp(100px, 12vw, 160px) 24px 0;
}

.single-lavoro__info .lavori-card__badge {
    display: inline-block;
    transform: none;
    margin-top: 14px;
    margin-bottom: 24px;
}

.single-lavoro__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    padding-bottom: clamp(32px, 4vw, 48px);
}

.single-lavoro__layout--no-video {
    grid-template-columns: 1fr;
    max-width: 700px;
}

.single-lavoro__meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.single-lavoro__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #999999;
    text-decoration: none;
    transition: color 0.22s ease, gap 0.22s ease;
}

.single-lavoro__back svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: transform 0.22s ease;
}

.single-lavoro__back:hover {
    color: #ffffff;
    gap: 9px;
}

.single-lavoro__back:hover svg {
    transform: translateX(-3px);
}

.single-lavoro__title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
}

.single-lavoro__desc {
    font-size: 16px;
    color: #cccccc;
    line-height: 1.8;
}

.single-lavoro__desc > * + * {
    margin-top: 16px;
}

.single-lavoro__desc p {
    color: #cccccc;
}

.single-lavoro__desc a {
    color: #ffffff;
    text-decoration: underline;
}

.single-lavoro__desc ul,
.single-lavoro__desc ol {
    padding-left: 22px;
}

.single-lavoro__desc li {
    margin-bottom: 6px;
}

.single-lavoro__crew-full {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px clamp(48px, 6vw, 72px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.single-lavoro__crew-heading {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #cccccc;
    margin: 0 0 14px;
}

.single-lavoro__crew-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    max-width: 560px;
}

.single-lavoro__crew-list li {
    display: contents;
}

.single-lavoro__crew-list strong {
    color: #ffffff;
    font-weight: 600;
    font-size: 13px;
    line-height: 1.3;
}

.single-lavoro__crew-role {
    color: #888888;
    font-size: 11px;
    line-height: 1.3;
}

.single-lavoro__crew-card {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 7px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background 0.22s ease, border-color 0.22s ease;
}

.single-lavoro__crew-card:hover {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.20);
}

/* ─── ARCHIVIO LAVORI — VISTA CREW ─── */

.lavori__crew-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lavori__crew-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999999;
    text-decoration: none;
    transition: color 0.22s ease;
}

.lavori__crew-back:hover {
    color: #ffffff;
}

.lavori__crew-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.15;
}

.lavori__crew-title em {
    color: #EA0909;
    font-style: normal;
}

.lavori__empty--visible {
    display: block !important;
}

@media (max-width: 520px) {
    .single-lavoro__crew-list {
        grid-template-columns: 1fr;
    }
}

/* ─── SINGLE LAVORO — LINKS ─── */
.single-lavoro__links {
    margin-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 28px;
}

.single-lavoro__links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.single-lavoro__link-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: #cccccc;
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-lavoro__link-item:hover {
    color: #ffffff;
}

.single-lavoro__link-item svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.single-lavoro__link-item:hover svg {
    opacity: 1;
}

.single-lavoro__video-wrap {
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    overflow: hidden;
    background: #111111;
}

.single-lavoro__video-wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.single-lavoro__video-wrap--instagram {
    aspect-ratio: unset;
    min-height: 540px;
}

@media (max-width: 768px) {
    .single-lavoro__layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .single-lavoro__video-col {
        order: -1;
    }
}

/* ─── LAVORO GALLERY ─── */

.lavoro-gallery {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px clamp(60px, 8vw, 100px);
}

.lavoro-gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.lavoro-gallery__item {
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: block;
    width: 100%;
}

.lavoro-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.38s ease;
}

.lavoro-gallery__item:hover .lavoro-gallery__img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .lavoro-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .lavoro-gallery {
        padding: 0 16px 80px;
    }

    .lavoro-gallery__grid {
        grid-template-columns: 1fr;
    }
}

/* ─── LIGHTBOX ─── */

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

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

.lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}

.lightbox__box {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox__img {
    display: block;
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox__close,
.lightbox__prev,
.lightbox__next {
    position: fixed;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease;
    z-index: 10000;
    padding: 0;
}

.lightbox__close:hover,
.lightbox__prev:hover,
.lightbox__next:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
}

.lightbox__close {
    top: 20px;
    right: 24px;
}

.lightbox__prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox__close svg,
.lightbox__prev svg,
.lightbox__next svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ─── CTA BAND — VARIANTE ACCENT (blocco Gutenberg) ─── */

.cta-band--accent {
    background: #EA0909;
    border-top: none;
    /* Full-width breakout — esce da qualsiasi contenitore Gutenberg */
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.cta-band--accent .btn--cta-accent {
    background: #ffffff;
    color: #EA0909;
    font-weight: 700;
}

.cta-band--accent .btn--cta-accent:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* ─── BLOCCO TESTO ─── */

.ark-text {
    padding: clamp(48px, 6vw, 80px) 16px;
}

.ark-text__inner {
    position: relative;
    max-width: 800px;
    margin: 0 auto 0 0;
    padding: clamp(36px, 5vw, 52px) clamp(28px, 5vw, 48px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: var(--glass-bg,
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 60% 90% at 50% 110%, rgb(var(--ark-glass-c-rgb, 156 4 4) / 0.08) 0%, transparent 60%),
        linear-gradient(180deg, rgba(16, 14, 20, 0.80) 0%, rgba(8, 7, 12, 0.90) 100%));
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    isolation: isolate;
}

.ark-text--center .ark-text__inner {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.ark-text__title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    color: #ffffff;
}

.ark-text__body {
    font-size: 16px;
    color: #cccccc;
    line-height: 1.8;
    max-width: 680px;
}

.ark-text--center .ark-text__body {
    margin: 0 auto;
}

/* Allineamento testo indipendente dalla posizione del blocco/box */
.ark-text--text-left .ark-text__inner {
    text-align: left;
}

.ark-text--text-left .ark-text__body {
    margin-left: 0;
    margin-right: 0;
}

.ark-text--text-center .ark-text__inner {
    text-align: center;
}

.ark-text--text-center .ark-text__body {
    margin-left: auto;
    margin-right: auto;
}

.ark-text__sections {
    margin-top: 4px;
}

.ark-text__section {
    margin-top: clamp(20px, 3vw, 28px);
    padding-top: clamp(20px, 3vw, 28px);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ark-text__section:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.ark-text__subtitle {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #cccccc;
    margin: 0 0 10px;
    line-height: 1.3;
}

/* Se c'è un titolo H2 prima delle sezioni, aggiungi spazio */
.ark-text__title + .ark-text__sections {
    margin-top: clamp(24px, 3vw, 32px);
}

/* ─── BLOCCO VIDEO EMBED ─── */

.ark-video {
    padding: clamp(32px, 4vw, 60px) 24px;
    margin: 0;
}

.ark-video__wrap {
    max-width: var(--ark-video-max-width, 900px);
    margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    background: var(--glass-bg, #111111);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 20px 56px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.04);
}

.ark-video__wrap iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.ark-video__wrap--instagram {
    max-width: 480px;
    aspect-ratio: 4 / 5;
}

.ark-video__caption {
    max-width: var(--ark-video-max-width, 900px);
    margin: 12px auto 0;
    font-size: 13px;
    color: #666666;
    text-align: center;
}

/* ─── BLOCCO IMMAGINE AVANZATA ─── */

.ark-img {
    padding: clamp(32px, 4vw, 60px) 24px;
    margin: 0;
}

.ark-img__wrap {
    overflow: hidden;
}

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

/* Proporzioni */
.ark-img--16-9 .ark-img__wrap { aspect-ratio: 16 / 9; }
.ark-img--4-5  .ark-img__wrap { aspect-ratio: 4 / 5;  }
.ark-img--1-1  .ark-img__wrap { aspect-ratio: 1 / 1;  }
.ark-img--free .ark-img__wrap { aspect-ratio: unset;   }
.ark-img--free .ark-img__wrap img { height: auto; }

/* Posizione */
.ark-img--full   .ark-img__wrap { max-width: 100%; }
.ark-img--center .ark-img__wrap { max-width: 900px; margin: 0 auto; }
.ark-img--left   .ark-img__wrap { max-width: 480px; margin: 0 auto 0 0; }
.ark-img--right  .ark-img__wrap { max-width: 480px; margin: 0 0 0 auto; }

/* Border-radius */
.ark-img--rounded .ark-img__wrap { border-radius: 12px; }

/* Didascalia */
.ark-img__caption {
    font-size: 13px;
    color: #666666;
    margin-top: 10px;
    text-align: center;
}

/* ─── PRODUZIONE ─── */

.prod-service {
    padding: clamp(60px, 8vw, 100px) 24px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.prod-service__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.prod-service__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(40px, 6vw, 80px);
    align-items: center;
}

.prod-service--reverse .prod-service__img-col { order: 2; }
.prod-service--reverse .prod-service__content  { order: 1; }

.prod-service__img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 16px;
    display: block;
    box-shadow: 0 0 80px rgba(69,0,0,0.14);
}

.prod-service__img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 16px;
    background: rgba(69,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.06);
}

.prod-service__title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin: 12px 0 20px;
    color: #ffffff;
}

.prod-service__desc {
    font-size: 16px;
    color: #999999;
    line-height: 1.8;
    margin-bottom: 32px;
}

@media (max-width: 768px) {
    .prod-service__grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .prod-service__img-col { order: -1 !important; }
    .prod-service__content  { order: 0 !important; }
}

/* ─── BLOCCO PULSANTI — contenitore ─── */

.ark-btns {
    padding: clamp(24px, 3vw, 48px) 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.ark-btns--left   { justify-content: flex-start; }
.ark-btns--center { justify-content: center; }
.ark-btns--right  { justify-content: flex-end; }

/* ─── Pulsanti glass — effetto vetro direttamente sul bottone ─── */
.ark-btns a.btn--primary {
    background: rgb(var(--ark-glass-c-rgb, 156 4 4) / 0.22) !important;
    border: 1px solid rgb(var(--ark-glass-c-rgb, 156 4 4) / 0.45) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: 0 4px 20px rgb(var(--ark-glass-c-rgb, 156 4 4) / 0.18),
                inset 0 1px 0 rgba(255, 255, 255, 0.10) !important;
    color: #ffffff !important;
}

.ark-btns a.btn--primary:hover {
    background: rgb(var(--ark-glass-c-rgb, 156 4 4) / 0.38) !important;
    border-color: rgb(var(--ark-glass-c-rgb, 156 4 4) / 0.65) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 28px rgb(var(--ark-glass-c-rgb, 156 4 4) / 0.28),
                inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}

.ark-btns a.btn--ghost {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07) !important;
    color: #ffffff !important;
}

.ark-btns a.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.10) !important;
    border-color: rgba(255, 255, 255, 0.30) !important;
    transform: translateY(-2px) !important;
}

@media (max-width: 600px) {
    .ark-btns { flex-direction: column; }
    .ark-btns--left   { align-items: flex-start; }
    .ark-btns--center { align-items: center; }
    .ark-btns--right  { align-items: flex-end; }
}

/* Stile testo semplice (btn--text) */
.btn--text {
    background: transparent;
    border: none;
    color: #ffffff;
    padding-left: 4px;
    padding-right: 4px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.btn--text:hover {
    color: #cccccc;
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* ─── CTA BAND — pulsanti bianchi ─── */

.cta-band .ark-btns {
    padding: 0;
    margin-top: 32px;
}

.btn--cta-white {
    background: #ffffff;
    color: #EA0909;
    font-weight: 700;
}

.btn--cta-white:hover {
    background: rgba(255,255,255,0.9);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

.btn--cta-ghost-white {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: #ffffff;
}

.btn--cta-ghost-white:hover {
    border-color: #ffffff;
    background: rgba(255,255,255,0.08);
}

.btn--cta-text-white {
    background: transparent;
    border: none;
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
    padding-left: 4px;
    padding-right: 4px;
}

.btn--cta-text-white:hover {
    color: rgba(255,255,255,0.75);
    background: transparent;
    transform: none;
    box-shadow: none;
}

/* ─── BUTTONS — override specificità GP su tag <a> ─── */
/* GP applica regole a { color } con specificità alta; qui le battiamo */

a.btn {
    display: inline-flex !important;
    text-decoration: none !important;
    cursor: pointer !important;
    line-height: 1 !important;
}

a.btn--primary {
    background-color: #EA0909 !important;
    color: #ffffff !important;
    border: none !important;
}

a.btn--primary:hover {
    background-color: #5a0000 !important;
    color: #ffffff !important;
}

a.btn--ghost {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
}

a.btn--ghost:hover {
    background-color: rgba(255,255,255,0.06) !important;
    color: #ffffff !important;
    border-color: rgba(255,255,255,0.35) !important;
}

a.btn--text {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
}

a.btn--cta-white {
    background-color: #ffffff !important;
    color: #EA0909 !important;
    font-weight: 700 !important;
    border: none !important;
}

a.btn--cta-ghost-white {
    background-color: transparent !important;
    color: #ffffff !important;
    border: 1px solid rgba(255,255,255,0.5) !important;
}

a.btn--cta-text-white {
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    text-decoration: underline !important;
}

/* ─── HTML PERSONALIZZATO ─── */
.arkadia-custom-html {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
    background: transparent;
}

/* ═══════════════════════════════════════════
   NOLEGGIO
═══════════════════════════════════════════ */

/* ─── Hero ─── */

.noleggio__hero {
    padding: clamp(100px, 12vw, 160px) 24px clamp(40px, 5vw, 64px);
    text-align: center;
}

.noleggio__hero-inner {
    max-width: 760px;
    margin: 0 auto;
}

.noleggio__title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 16px 0 24px;
    color: #ffffff;
}

.noleggio__intro {
    font-size: 16px;
    color: #999999;
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 18px;
}

.noleggio__star-note {
    font-size: 13px;
    color: #666666;
    margin: 0;
}

.noleggio__star {
    color: #EA0909;
}

/* ─── Tab nav ─── */

.noleggio__tabs {
    max-width: 1100px;
    margin: 48px auto 0;
    padding: 0 24px 4px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 20px;
}

.noleggio__tab {
    padding: 9px 22px;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: #999999;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    font-family: inherit;
    white-space: nowrap;
}

.noleggio__tab:hover {
    border-color: rgba(69, 0, 0, 0.5);
    color: #cccccc;
}

.noleggio__tab.is-active {
    border-color: #EA0909;
    color: #ffffff;
    background: rgba(69, 0, 0, 0.12);
}

/* ─── Panels ─── */

.noleggio__panels {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px 80px;
    background: var(--glass-bg,
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 70%),
        linear-gradient(180deg, rgba(16,14,20,0.80) 0%, rgba(8,7,12,0.92) 100%));
    border: 1px solid rgba(255,255,255,0.07);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.40), inset 0 1px 0 rgba(255,255,255,0.04);
    border-radius: 16px;
}

.noleggio__panel {
    display: none;
}

.noleggio__panel.is-active {
    display: block;
}

/* ─── Gruppi & righe ─── */

.noleggio__group {
    margin-bottom: 48px;
}

.noleggio__group:last-child {
    margin-bottom: 0;
}

.noleggio__group-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #EA0909;
    margin: 0 0 0;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.noleggio__list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.noleggio__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 24px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    transition: background 0.15s ease;
}

.noleggio__row:hover {
    background: rgba(255, 255, 255, 0.02);
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 6px;
}

.noleggio__name {
    font-size: 15px;
    color: #cccccc !important;
    line-height: 1.4;
}

.noleggio__qty {
    font-size: 12px;
    color: #555555;
    margin-right: 6px;
    font-weight: 600;
}

.noleggio__price {
    font-size: 14px;
    color: #666666;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ─── T&C ─── */

.noleggio__tc {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: clamp(48px, 6vw, 80px) 24px;
}

.noleggio__tc-inner {
    max-width: 760px;
    margin: 0 auto;
    font-size: 15px;
    color: #cccccc;
    line-height: 1.8;
}

.noleggio__tc-inner h2 {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #EA0909;
    margin: 0 0 24px;
}

.noleggio__tc-inner ol {
    padding-left: 20px;
    counter-reset: tc-counter;
}

.noleggio__tc-inner li {
    margin-bottom: 14px;
    color: #999999;
}

/* ─── Fallback ─── */

.noleggio__empty-state {
    text-align: center;
    padding: 80px 24px;
    color: #666666;
    font-size: 15px;
}

/* ─── Responsive ─── */

@media (max-width: 600px) {
    .noleggio__tabs {
        gap: 8px;
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 16px;
        margin-bottom: 4px;
    }

    .noleggio__tabs::-webkit-scrollbar { display: none; }

    .noleggio__tab {
        font-size: 11px;
        padding: 8px 16px;
        flex-shrink: 0;
    }

    .noleggio__name {
        font-size: 14px;
    }

    .noleggio__price {
        font-size: 13px;
    }

    .noleggio__panels {
        padding: 32px 16px 60px;
    }
}

/* ─── BLOCCO INSTAGRAM CTA ─── */

.instagram-cta {
    width: min(380px, 90vw);
    aspect-ratio: 4 / 3;
    margin: clamp(40px, 6vw, 72px) auto;
    padding: 0;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    isolation: isolate;
    cursor: pointer;
    text-decoration: none;
    --glass-bg:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255,255,255,0.04) 0%, transparent 70%),
        linear-gradient(180deg, rgba(16,14,20,0.82) 0%, rgba(8,7,12,0.92) 100%);
    background: var(--glass-bg);
    border: 1px solid rgba(255,255,255,0.07);
    box-shadow: 0 32px 72px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.instagram-cta:hover {
    border-color: color-mix(in srgb, var(--social-accent, #e1306c) 35%, transparent);
    box-shadow: 0 32px 72px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.05);
}

/* Hairline colore social in cima */
.instagram-cta::before {
    content: '';
    position: absolute;
    left: 20%; right: 20%; top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--social-accent, #e1306c), transparent);
    opacity: 0.8;
    pointer-events: none;
}

.instagram-cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 28px;
    text-align: center;
}

.instagram-cta__icon svg {
    width: 44px;
    height: 44px;
    color: #ffffff;
}

.instagram-cta__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #999999;
    margin: 0;
    white-space: nowrap;
}

.instagram-cta__handle {
    font-size: clamp(1.4rem, 3.5vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s ease;
    line-height: 1.1;
}

.instagram-cta:hover .instagram-cta__handle {
    opacity: 0.75;
}

/* ── Social CTA — variante multi-icona orizzontale ── */

.instagram-cta--multi {
    width: min(640px, 92vw);
    aspect-ratio: unset;
    padding: 0;
    cursor: default;
    align-items: stretch;
}

.instagram-cta__items {
    display: flex;
    align-items: stretch;
    justify-content: center;
    width: 100%;
}

.instagram-cta__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 32px 20px;
    flex: 1;
    text-decoration: none;
    color: inherit;
    border-left: 1px solid rgba(255,255,255,0.07);
    transition: background 0.2s ease, opacity 0.2s ease;
}

.instagram-cta__item:first-child {
    border-left: none;
}

a.instagram-cta__item {
    cursor: pointer; /* override cursor:default ereditato dal container */
}

a.instagram-cta__item:hover {
    background: rgba(255,255,255,0.03);
    text-decoration: none;
    color: inherit;
}

/* Ogni icona usa il colore della propria piattaforma */
.instagram-cta__item .instagram-cta__icon svg {
    color: var(--item-accent, #ffffff);
}

.instagram-cta--multi .instagram-cta__handle {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
}

/* Su mobile, con 3 social la riga orizzontale è troppo stretta: stack verticale */
@media (max-width: 600px) {
    .instagram-cta--multi {
        width: min(420px, 92vw);
    }

    .instagram-cta__items {
        flex-direction: column;
    }

    .instagram-cta__item {
        border-left: none;
        border-top: 1px solid rgba(255,255,255,0.07);
        padding: 20px;
    }

    .instagram-cta__item:first-child {
        border-top: none;
    }
}

/* ─── FIX MOBILE BLOCCHI GUTENBERG ─── */

@media (max-width: 600px) {
    .page-hero {
        padding-top: clamp(72px, 11vw, 96px);
    }

    .prod-service {
        padding-top: clamp(40px, 7vw, 56px);
        padding-bottom: clamp(40px, 7vw, 56px);
    }
}

/* ─── BLOCCO GALLERIA ─── */

.ark-gallery {
    padding: clamp(32px, 4vw, 60px) 24px;
}

.ark-gallery--full {
    padding-left: 0;
    padding-right: 0;
}

.ark-gallery__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.ark-gallery--full .ark-gallery__inner {
    max-width: 100%;
}

.ark-gallery__grid {
    display: grid;
}

.ark-gallery--cols-2 .ark-gallery__grid { grid-template-columns: repeat(2, 1fr); }
.ark-gallery--cols-3 .ark-gallery__grid { grid-template-columns: repeat(3, 1fr); }
.ark-gallery--cols-4 .ark-gallery__grid { grid-template-columns: repeat(4, 1fr); }

.ark-gallery--gap-none   .ark-gallery__grid { gap: 0; }
.ark-gallery--gap-small  .ark-gallery__grid { gap: 4px; }
.ark-gallery--gap-normal .ark-gallery__grid { gap: 8px; }
.ark-gallery--gap-large  .ark-gallery__grid { gap: 16px; }

.ark-gallery__item {
    overflow: hidden;
    border-radius: 10px;
    background: #111111;
}

.ark-gallery--gap-none .ark-gallery__item {
    border-radius: 0;
}

.ark-gallery--ratio-1-1  .ark-gallery__item { aspect-ratio: 1; }
.ark-gallery--ratio-4-3  .ark-gallery__item { aspect-ratio: 4 / 3; }
.ark-gallery--ratio-3-2  .ark-gallery__item { aspect-ratio: 3 / 2; }
.ark-gallery--ratio-16-9 .ark-gallery__item { aspect-ratio: 16 / 9; }
.ark-gallery--ratio-4-5  .ark-gallery__item { aspect-ratio: 4 / 5; }
.ark-gallery--ratio-free .ark-gallery__item { aspect-ratio: auto; }

.ark-gallery__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.38s ease;
}

.ark-gallery__item:hover .ark-gallery__img {
    transform: scale(1.04);
}

@media (max-width: 768px) {
    .ark-gallery--cols-3 .ark-gallery__grid,
    .ark-gallery--cols-4 .ark-gallery__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ark-gallery {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ark-gallery--full {
        padding-left: 0;
        padding-right: 0;
    }

    .ark-gallery--cols-2 .ark-gallery__grid,
    .ark-gallery--cols-3 .ark-gallery__grid,
    .ark-gallery--cols-4 .ark-gallery__grid {
        grid-template-columns: 1fr;
    }
}

/* ─── FIX MOBILE BLOCCHI AGGIUNTIVI ─── */

@media (max-width: 600px) {
    /* Titolo Stilizzato — Echo: riduce ghost text per evitare overflow visivo */
    .ark-title-styled--echo .ark-title-styled__echo {
        font-size: clamp(2.5rem, 10vw, 5rem);
    }

    /* Titolo Stilizzato — padding ridotto su mobile */
    .ark-title-styled {
        padding-left: 20px;
        padding-right: 20px;
    }

    /* Wiki modal — pannello edge-to-edge con margini minimi */
    .wiki-modal__panel {
        border-radius: 12px;
        padding: 24px 20px;
    }

/* Wiki search — padding ridotto */
    .wiki-search-wrap {
        max-width: 100%;
    }

    /* Servizi 2 colonne su smartphone medio (≥480px) */
}

/* ─── BLOCCO TITOLO SEZIONE ─── */

.ark-section-title {
    padding: clamp(32px, 5vw, 64px) 0;
}

.ark-section-title__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
}

.ark-section-title--center .ark-section-title__inner {
    text-align: center;
}

.ark-section-title__text {
    font-weight: 900;
    text-transform: uppercase;
    color: #ffffff;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin: 0;
}

.ark-section-title--s  .ark-section-title__text { font-size: clamp(1.2rem, 2.5vw, 1.8rem); letter-spacing: 0.04em; }
.ark-section-title--m  .ark-section-title__text { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.ark-section-title--l  .ark-section-title__text { font-size: clamp(2.5rem, 5vw, 4rem); }
.ark-section-title--xl .ark-section-title__text { font-size: clamp(3rem, 7vw, 6rem); }

/* ─── BLOCCO FAQ ─── */

.ark-faq {
    padding: clamp(32px, 5vw, 64px) 0;
}

.ark-faq__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
}

.ark-faq__title {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #ffffff;
    margin: 0 0 clamp(20px, 3vw, 32px);
}

.ark-faq__list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ark-faq__item {
    padding: clamp(20px, 3vw, 28px) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.ark-faq__item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.ark-faq__question {
    font-weight: 700;
    font-size: clamp(13px, 1.5vw, 16px);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #ffffff;
    margin: 0 0 12px;
    line-height: 1.3;
}

.ark-faq__answer {
    font-size: clamp(14px, 1.5vw, 16px);
    color: #999999;
    line-height: 1.75;
    margin: 0;
    max-width: 720px;
}

.ark-faq__answer a {
    color: #cccccc;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ark-faq__answer a:hover {
    color: #ffffff;
}

/* ─── LINEA DIVISORIA ─── */
.ark-divider {
    display: block;
}

.ark-divider__line {
    display: block;
    width: 100%;
}

/* ─── Single Lavoro — Cliente ─── */
.single-lavoro__cliente {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    margin-bottom: 4px;
}
.single-lavoro__cliente-logo {
    max-height: 26px;
    width: auto;
    opacity: 0.50;
    filter: brightness(0) invert(1);
}
.single-lavoro__cliente-name {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #777777;
}

/* ─── Single Lavoro — Risultati ─── */
.single-lavoro__risultati {
    margin-top: 32px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 28px;
}
.single-lavoro__risultati p {
    font-size: 14px;
    line-height: 1.75;
    color: #cccccc;
    margin-top: 10px;
}

/* ─── Single Lavoro — Correlati ─── */
.single-lavoro__correlati {
    max-width: 1100px;
    margin: 0 auto;
    padding: clamp(48px, 8vw, 80px) 24px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.single-lavoro__correlati-heading {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #cccccc;
    margin-bottom: 32px;
}
@media (max-width: 480px) {
    .single-lavoro__correlati { padding-left: 16px; padding-right: 16px; }
}

/* ─── PDF DOWNLOAD BUTTON ─── */
.arkadia-pdf-btn {
    position: fixed;
    bottom: clamp(120px, 18vw, 140px);
    right: 20px;
    z-index: 990;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: rgba(223, 125, 45, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #ffffff;
    text-decoration: none;
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.05em;
    white-space: nowrap;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.22s ease, transform 0.22s ease, opacity 0.22s ease;
}

.arkadia-pdf-btn:hover {
    background: rgba(223, 125, 45, 1);
    transform: translateY(-2px);
    color: #ffffff;
    text-decoration: none;
}

.arkadia-pdf-btn svg {
    flex-shrink: 0;
    opacity: 0.85;
}

@media (max-width: 480px) {
    .arkadia-pdf-btn span {
        display: none;
    }
    .arkadia-pdf-btn {
        padding: 10px 11px;
    }
    .arkadia-pdf-btn svg {
        opacity: 1;
    }
}

/* ─────────────────────────────────────────
   GLASS EFFECT — Blocchi Gutenberg
   Ispirato all'estetica di /ecosystem-2/
───────────────────────────────────────── */

/* ─── Hero Servizio — glass sul box testo ─── */
.page-hero__inner {
    position: relative;
    padding: clamp(40px, 6vw, 64px) clamp(32px, 6vw, 56px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: var(--glass-bg,
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 60% 90% at 50% 110%, rgb(var(--ark-glass-c-rgb, 156 4 4) / 0.10) 0%, transparent 60%),
        linear-gradient(180deg, rgba(16, 14, 20, 0.82) 0%, rgba(8, 7, 12, 0.92) 100%));
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    isolation: isolate;
}

.page-hero__inner::before {
    content: "";
    position: absolute;
    left: 20%; right: 20%; top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(var(--ark-glass-c-rgb, 156 4 4)), transparent);
    opacity: 0.65;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}

/* ─── Servizio Alternato — glass sul contenuto testuale ─── */
.prod-service__content {
    position: relative;
    padding: clamp(32px, 4vw, 48px) clamp(28px, 4vw, 44px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: var(--glass-bg,
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 70%),
        radial-gradient(ellipse 60% 90% at 50% 110%, rgb(var(--ark-glass-c-rgb, 156 4 4) / 0.09) 0%, transparent 60%),
        linear-gradient(180deg, rgba(16, 14, 20, 0.80) 0%, rgba(8, 7, 12, 0.90) 100%));
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    isolation: isolate;
}

.prod-service__content::before {
    content: "";
    position: absolute;
    left: 18%; right: 18%; top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(var(--ark-glass-c-rgb, 156 4 4)), transparent);
    opacity: 0.60;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}

/* ─── CTA Band — glass scuro con accento colore ─── */
.cta-band--accent {
    background: var(--glass-bg,
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 70%),
        radial-gradient(ellipse 60% 90% at 50% 110%, rgb(var(--ark-glass-c-rgb, 156 4 4) / 0.16) 0%, transparent 60%),
        linear-gradient(180deg, rgba(16, 14, 20, 0.90) 0%, rgba(8, 7, 12, 0.97) 100%));
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    position: relative;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    isolation: isolate;
}

.cta-band--accent::before {
    content: "";
    position: absolute;
    left: 15%; right: 15%; top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(var(--ark-glass-c-rgb, 156 4 4)), transparent);
    opacity: 0.80;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}

.cta-band--accent::after {
    content: "";
    position: absolute;
    left: 15%; right: 15%; bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(var(--ark-glass-c-rgb, 156 4 4)), transparent);
    opacity: 0.80;
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.42s;
}

/* ─── FAQ — glass card per ogni voce ─── */
.ark-faq__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ark-faq__item {
    padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px);
    border-bottom: none;
    border-top: none;
    position: relative;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: var(--glass-bg,
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.03) 0%, transparent 70%),
        linear-gradient(180deg, rgba(16, 14, 20, 0.76) 0%, rgba(8, 7, 12, 0.86) 100%));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    isolation: isolate;
}

.ark-faq__item::before {
    content: "";
    position: absolute;
    left: 20%; right: 20%; top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(var(--ark-glass-c-rgb, 156 4 4) / 0.55), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.30s;
}

.ark-faq__item:first-child {
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ─── Blocco Testo — hairline glass ─── */
.ark-text__inner::before {
    content: "";
    position: absolute;
    left: 20%; right: 20%; top: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgb(var(--ark-glass-c-rgb, 156 4 4) / 0.45), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.35s;
}

/* ─────────────────────────────────────────
   SCROLL ANIMATIONS — fade-up on enter
───────────────────────────────────────── */

[data-ark-anim] {
    opacity: 0;
    transform: translateY(28px);
    transition:
        opacity  0.65s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

[data-ark-anim="1"] { transition-delay: 80ms; }
[data-ark-anim="2"] { transition-delay: 160ms; }
[data-ark-anim="3"] { transition-delay: 240ms; }

[data-ark-anim].ark-anim--visible {
    opacity: 1;
    transform: none;
}

/* Hairline animata — si estende quando il blocco diventa visibile */
.page-hero[data-ark-anim].ark-anim--visible .page-hero__inner::before,
.prod-service[data-ark-anim].ark-anim--visible .prod-service__content::before,
.cta-band--accent[data-ark-anim].ark-anim--visible::before,
.cta-band--accent[data-ark-anim].ark-anim--visible::after,
.ark-faq__item[data-ark-anim].ark-anim--visible::before,
.ark-text[data-ark-anim].ark-anim--visible .ark-text__inner::before {
    transform: scaleX(1);
}

/* ── Illuminate — glow-burst al reveal del blocco ─────────────────── */

@keyframes ark-glow-burst {
    0%   { opacity: 0; }
    18%  { opacity: 1; }
    100% { opacity: 0; }
}

@keyframes ark-ctaband-glow {
    0% {
        box-shadow:
            0 0 60px 20px rgb(var(--ark-glass-c-rgb, 156 4 4) / 0.28),
            inset 0 0 80px 20px rgb(var(--ark-glass-c-rgb, 156 4 4) / 0.10);
    }
    100% { box-shadow: none; }
}

/* Pseudo-elemento glow — invisibile a riposo */
.page-hero__inner::after,
.prod-service__content::after,
.ark-faq__item::after,
.ark-text__inner::after,
.ark-conditions__wrapper::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
    box-shadow:
        0 0 0 1px rgb(var(--ark-glass-c-rgb, 156 4 4) / 0.85),
        0 0 40px 10px rgb(var(--ark-glass-c-rgb, 156 4 4) / 0.30),
        0 0 80px 24px rgb(var(--ark-glass-c-rgb, 156 4 4) / 0.12);
    z-index: 1;
}

/* Glow sui bottoni — ::after come anello di luce */
.ark-btns a.btn--primary,
.ark-btns a.btn--ghost {
    position: relative;
}
.ark-btns a.btn--primary::after,
.ark-btns a.btn--ghost::after {
    content: "";
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    pointer-events: none;
    opacity: 0;
}
.ark-btns a.btn--primary::after {
    box-shadow:
        0 0 0 1px rgb(var(--ark-glass-c-rgb, 156 4 4) / 0.90),
        0 0 30px 8px rgb(var(--ark-glass-c-rgb, 156 4 4) / 0.45),
        0 0 60px 16px rgb(var(--ark-glass-c-rgb, 156 4 4) / 0.18);
}
.ark-btns a.btn--ghost::after {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.55),
        0 0 24px 6px rgba(255, 255, 255, 0.22),
        0 0 48px 12px rgba(255, 255, 255, 0.08);
}

/* Trigger: glow-burst al reveal */
.page-hero[data-ark-anim].ark-anim--visible .page-hero__inner::after,
.prod-service[data-ark-anim].ark-anim--visible .prod-service__content::after,
.ark-text[data-ark-anim].ark-anim--visible .ark-text__inner::after,
.ark-conditions[data-ark-anim].ark-anim--visible .ark-conditions__wrapper::after {
    animation: ark-glow-burst 1.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ark-faq__item[data-ark-anim].ark-anim--visible::after {
    animation: ark-glow-burst 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ark-faq__item[data-ark-anim="1"].ark-anim--visible::after { animation-delay: 80ms; }
.ark-faq__item[data-ark-anim="2"].ark-anim--visible::after { animation-delay: 160ms; }
.ark-faq__item[data-ark-anim="3"].ark-anim--visible::after { animation-delay: 240ms; }

.cta-band--accent[data-ark-anim].ark-anim--visible {
    animation: ark-ctaband-glow 2.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.ark-btns[data-ark-anim].ark-anim--visible a.btn--primary::after,
.ark-btns[data-ark-anim].ark-anim--visible a.btn--ghost::after {
    animation: ark-glow-burst 1.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Toggle off globale */
body.ark-no-anim [data-ark-anim] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
}
body.ark-no-anim .page-hero__inner::after,
body.ark-no-anim .prod-service__content::after,
body.ark-no-anim .ark-faq__item::after,
body.ark-no-anim .ark-text__inner::after,
body.ark-no-anim .ark-conditions__wrapper::after,
body.ark-no-anim .ark-btns a.btn--primary::after,
body.ark-no-anim .ark-btns a.btn--ghost::after {
    animation: none !important;
}

/* ══════════════════════════════════════════
   MOBILE — COMPACT APP-LIKE SIZING
   Principio: compatto e preciso come una app nativa.
   Nessuno spazio morto, tutto raggiungibile col pollice.
   ══════════════════════════════════════════ */

@media (max-width: 768px) {

    /* ── Homepage: sezioni principali ── */
    .hero     { padding: 56px 20px 64px; }
    .services { padding: 40px 16px 48px; }
    .works    { padding: 40px 16px 48px; }
    .clients  { padding: 32px 0 40px; }
    .cta-band { padding: 52px 20px; }

    /* ── Hero: tipografia compatta ── */
    .hero__eyebrow  { font-size: 10px; letter-spacing: 0.14em; margin-bottom: 16px; }
    .hero__title    { font-size: clamp(2.4rem, 9vw, 5rem); margin-bottom: 16px; gap: 2px; }
    .hero__sub      { font-size: 14px; margin-bottom: 28px; }
    .hero__logo-img { max-height: clamp(70px, 18vw, 140px); max-width: 90%; }
    .hero__cta-group { gap: 10px; }
    .hero__scroll-hint { display: none; }

    /* ── Service cards: 2×3 griglia app-like ── */
    .service-card {
        padding: 18px 15px 16px;
        border-radius: 14px;
    }
    .service-card__icon {
        width: 28px;
        height: 28px;
        margin-bottom: 10px;
    }
    .service-card__icon svg,
    .service-card__icon-img { width: 28px; height: 28px; }
    .service-card__title    { font-size: 14px; margin-bottom: 5px; letter-spacing: 0; }
    .service-card__desc {
        font-size: 12px;
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .service-card__arrow { margin-top: 12px; font-size: 13px; }

    /* ── Works: header compatto ── */
    .works__header { margin-bottom: 20px; }

    /* ── Page hero (Gutenberg — pagine servizi) ── */
    .page-hero        { padding: 56px 20px 32px; }
    .page-hero__inner { padding: 28px 24px; border-radius: 18px; }
    .page-hero__title { font-size: clamp(1.8rem, 7vw, 3.5rem); margin-bottom: 12px; }
    .page-hero__intro { font-size: 14px; line-height: 1.6; }

    /* ── Lavori — archivio ── */
    .lavori          { padding: 0 16px 48px; }
    .lavori__filters { margin-bottom: 22px; gap: 8px; }
    .lavori__filter-btn { padding: 8px 16px; font-size: 12px; }

    /* ── Lavori — griglia archivio ── */
    /* già 2 col a ≤768px; resta così */

    /* ── Single lavoro ── */
    .single-lavoro        { padding: 52px 20px 0; }
    .single-lavoro__title { font-size: clamp(1.6rem, 7vw, 3rem); margin-bottom: 16px; }
    .single-lavoro__desc  { font-size: 15px; }
    .single-lavoro__layout { gap: 28px; }
    .lavoro-gallery        { padding: 0 16px 48px; }

    /* ── Correlati single lavoro ── */
    .single-lavoro__correlati { padding: 40px 16px; }

    /* ── Blocco servizio alternato ── */
    .prod-service         { padding: 40px 16px; }
    .prod-service__title  { font-size: clamp(1.4rem, 6vw, 2.5rem); }
    .prod-service__desc   { font-size: 14px; }

    /* ── Blocco CTA band ── */
    .cta-band--accent  { padding: 52px 20px; }
    .cta-band__title   { font-size: clamp(1.6rem, 6vw, 2.8rem); }
    .cta-band__sub     { font-size: 14px; margin-bottom: 28px; }

    /* ── Blocco testo ── */
    .ark-text        { padding: 32px 12px; }
    .ark-text__inner { padding: 28px 20px; }
    .ark-text__title { font-size: clamp(1.4rem, 5vw, 2rem); }
    .ark-text__body  { font-size: 15px; line-height: 1.7; }

    /* ── Blocco FAQ ── */
    .ark-faq        { padding: 28px 0; }
    .ark-faq__inner { padding: 0 16px; }
    .ark-faq__title { font-size: clamp(1.3rem, 5vw, 1.8rem); }
    .ark-faq__question { font-size: 13px; }
    .ark-faq__answer   { font-size: 14px; }

    /* ── Blocco titolo stilizzato ── */
    .ark-title-styled { padding: 28px 16px; }
    .ark-title-styled--h1 .ark-title-styled__text { font-size: clamp(2rem, 8vw, 4rem); }
    .ark-title-styled--h2 .ark-title-styled__text { font-size: clamp(1.6rem, 6vw, 3rem); }
    .ark-title-styled--h3 .ark-title-styled__text { font-size: clamp(1.2rem, 5vw, 2rem); }

    /* ── Blocco pulsanti ── */
    .ark-btns { padding: 20px 12px; gap: 10px; }

    /* ── Statement (homepage) ── */
    .statement      { padding: 32px 0; }
    .statement__text { font-size: clamp(1.2rem, 5vw, 1.8rem); }

    /* ── Footer ── */
    .arkadia-footer { padding-top: 20px; padding-bottom: clamp(72px, 10vw, 84px); }

    /* ── Glass boxes: padding interno ridotto ── */
    .prod-service__content { padding: 24px 22px; }
}

@media (max-width: 480px) {

    /* ── Ultra-compact su phone piccoli (≤480px) ── */
    .services__grid { gap: 8px; }
    .service-card   { padding: 14px 12px 12px; }
    .service-card__title { font-size: 13px; }

    .hero__title { font-size: clamp(2.2rem, 11vw, 3.5rem); }

    /* ── Works: 1 colonna su schermi < 480px ── */
    .works__grid { grid-template-columns: 1fr; }

    /* ── Lavori archive: 1 col su schermi minuscoli ── */
    .lavori__grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────
   EASTER EGG — ARKADIA INVADERS
───────────────────────────────────────── */

#ark-game-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    animation: ark-game-in 0.25s ease;
}

@keyframes ark-game-in {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}

#ark-game-close {
    position: absolute;
    top: 14px;
    right: 18px;
    background: none;
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 22px;
    line-height: 1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s;
    z-index: 2;
}
#ark-game-close:hover { border-color: #EA0909; color: #EA0909; }

#ark-game-canvas {
    display: block;
    image-rendering: pixelated;
    max-width: 92vw;
    max-height: 80vh;
}

/* Mobile touch controls */
#ark-game-touch {
    display: none;
    gap: 16px;
    margin-top: 16px;
}
@media (pointer: coarse) {
    #ark-game-touch { display: flex; }
}
#ark-game-touch button {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-size: 22px;
    width: 64px;
    height: 64px;
    border-radius: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    -webkit-user-select: none;
    transition: background 0.1s;
}
#ark-game-touch button:active,
#ark-game-touch button.pressed { background: rgba(234,9,9,0.25); border-color: #EA0909; }
#arkt-f { border-color: rgba(234,9,9,0.4); }

/* Footer logo — hint visuale sottile */
.arkadia-footer__logo a {
    cursor: pointer;
    transition: opacity 0.2s;
}
.arkadia-footer__logo a:hover { opacity: 0.75; }

/* ─────────────────────────────────────────
   CONDIZIONI DI NOLEGGIO — Accordion
───────────────────────────────────────── */

.ark-conditions {
    padding: clamp(32px, 5vw, 56px) 0;
}

.ark-conditions__inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 48px);
}

/* ── Wrapper esterno — la singola riga visibile ── */
.ark-conditions__wrapper {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: var(--glass-bg,
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255,255,255,0.03) 0%, transparent 70%),
        linear-gradient(180deg, rgba(16,14,20,0.80) 0%, rgba(8,7,12,0.92) 100%));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ark-conditions__wrapper:hover,
.ark-cond-wrap--open.ark-conditions__wrapper {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
}

.ark-cond-wrap--open.ark-conditions__wrapper {
    border-left: 3px solid var(--ark-cond-accent, #df7d2d);
}

/* ── Header principale — unico trigger visibile ── */
.ark-conditions__main-hdr {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 18px 22px;
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
    text-align: left;
    transition: background 0.2s ease;
}

.ark-conditions__main-hdr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.ark-cond-wrap--open .ark-conditions__main-hdr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.ark-conditions__main-icon {
    color: var(--ark-cond-accent, #df7d2d);
    flex-shrink: 0;
    opacity: 0.85;
}

.ark-conditions__main-title {
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    flex: 1;
    line-height: 1.3;
}

.ark-conditions__main-count {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* chevron condiviso — si applica sia al main-hdr che agli item */
.ark-conditions__chevron {
    color: rgba(255, 255, 255, 0.35);
    flex-shrink: 0;
    transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), color 0.2s ease;
}

.ark-cond-wrap--open > .ark-conditions__main-hdr .ark-conditions__chevron {
    transform: rotate(180deg);
    color: var(--ark-cond-accent, #df7d2d);
}

/* ── Container espandibile (outer) ── */
.ark-conditions__container {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.ark-cond-wrap--open .ark-conditions__container {
    grid-template-rows: 1fr;
}

.ark-conditions__container-inner {
    overflow: hidden;
}

/* ── Lista interna degli articoli ── */
.ark-conditions__list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px 16px 16px;
}

/* ── Singolo articolo ── */
.ark-conditions__item {
    border-radius: 8px;
    overflow: hidden;
    transition: background 0.2s ease;
}

.ark-conditions__item + .ark-conditions__item {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.ark-conditions__item.ark-cond--open {
    background: rgba(255, 255, 255, 0.02);
}

/* ── Header singolo articolo ── */
.ark-conditions__hdr {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 13px 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: #ffffff;
    text-align: left;
    transition: background 0.15s ease;
}

.ark-conditions__hdr:hover {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 6px;
}

.ark-cond--open > .ark-conditions__hdr .ark-conditions__chevron {
    transform: rotate(180deg);
    color: var(--ark-cond-accent, #df7d2d);
}

.ark-conditions__num {
    font-size: 10px;
    font-weight: 700;
    font-family: "Courier New", monospace;
    letter-spacing: 0.06em;
    color: var(--ark-cond-accent, #df7d2d);
    opacity: 0.75;
    min-width: 24px;
    flex-shrink: 0;
}

.ark-conditions__title {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    flex: 1;
    line-height: 1.4;
}

.ark-cond--open .ark-conditions__title {
    color: #ffffff;
    font-weight: 600;
}

/* ── Body singolo articolo ── */
.ark-conditions__body {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ark-cond--open .ark-conditions__body {
    grid-template-rows: 1fr;
}

.ark-conditions__body-inner {
    overflow: hidden;
    padding: 0 12px 0 48px;
    transition: padding-bottom 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.ark-cond--open .ark-conditions__body-inner {
    padding-bottom: 16px;
}

.ark-conditions__body-inner p {
    font-size: 13.5px;
    line-height: 1.75;
    color: #999999;
    margin: 0 0 8px;
}

.ark-conditions__body-inner p:last-child { margin-bottom: 0; }

.ark-conditions__body-inner strong {
    color: #d0d0d0;
    font-weight: 600;
}

.ark-conditions__body-inner ul {
    margin: 6px 0 8px;
    padding-left: 16px;
}

.ark-conditions__body-inner li {
    font-size: 13.5px;
    line-height: 1.7;
    color: #999999;
    margin-bottom: 3px;
}

.ark-conditions__body-inner li strong { color: #d0d0d0; }

/* ── Mobile ── */
@media (max-width: 600px) {
    .ark-conditions__main-hdr { padding: 16px 16px; }
    .ark-conditions__list     { padding: 8px 8px 12px; }
    .ark-conditions__body-inner { padding-left: 36px; }
    .ark-conditions__main-count { display: none; }
}

/* ─────────────────────────────────────────
   404 — Pagina non trovata
───────────────────────────────────────── */

.ark-404 {
    position: relative;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 40px 24px clamp(100px, 14vw, 130px);
}

.ark-404__ghost {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: clamp(22rem, 50vw, 42rem);
    font-weight: 400;
    color: #EA0909;
    opacity: 0.04;
    letter-spacing: -0.02em;
    line-height: 1;
    pointer-events: none;
    user-select: none;
}

.ark-404__inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    text-align: center;
}

.ark-404__eyebrow {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #EA0909;
    margin: 0 0 20px;
}

.ark-404__title {
    font-family: "Bebas Neue", Impact, sans-serif;
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: 0.01em;
    color: #ffffff;
    margin: 0 0 28px;
}

.ark-404__sub {
    font-size: clamp(15px, 2vw, 17px);
    color: #999999;
    line-height: 1.65;
    margin: 0 0 40px;
}

.ark-404__cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.ark-404__btn {
    display: inline-flex;
    align-items: center;
    padding: 13px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
}

.ark-404__btn--primary {
    background: #EA0909;
    color: #ffffff;
    border: 1px solid #EA0909;
}
.ark-404__btn--primary:hover {
    background: #c40808;
    border-color: #c40808;
    color: #ffffff;
    transform: translateY(-2px);
}

.ark-404__btn--ghost {
    background: transparent;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.25);
}
.ark-404__btn--ghost:hover {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    transform: translateY(-2px);
}

@media (max-width: 480px) {
    .ark-404__cta {
        flex-direction: column;
        align-items: center;
    }
    .ark-404__btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
}

/* ─────────────────────────────────────────
   BLOCCO BEFORE/AFTER — slider drag confronto immagini
───────────────────────────────────────── */

.arkadia-before-after {
    padding: clamp(40px, 6vw, 64px) clamp(24px, 5vw, 48px);
}

.aba-wrapper {
    max-width: var(--aba-max-width, 1100px);
    margin: 0 auto;
}

.aba-container {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    user-select: none;
    cursor: ew-resize;
}

.aba-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.aba-before-clip {
    position: absolute;
    inset: 0;
    clip-path: inset(0 50% 0 0);
    -webkit-clip-path: inset(0 50% 0 0);
}

.aba-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 40px;
    cursor: ew-resize;
    touch-action: none;
}

.aba-handle-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 0 12px rgba(var(--aba-accent-rgb, 234 9 9) / 0.6);
}

.aba-handle-circle {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #ffffff;
    background: rgba(16, 14, 20, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.25);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.aba-handle.is-dragging .aba-handle-circle,
.aba-handle:hover .aba-handle-circle {
    transform: scale(1.08);
    border-color: rgb(var(--aba-accent-rgb, 234 9 9) / 0.6);
}

.aba-label {
    position: absolute;
    top: 16px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #ffffff;
    background: rgba(16, 14, 20, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.aba-label-before { left: 16px; }
.aba-label-after  { right: 16px; }

.aba-caption {
    margin: 16px 0 0;
    font-size: 13px;
    color: #999999;
    text-align: center;
}

/* ─── Glass effect — coerente col sistema degli altri blocchi ─── */
.arkadia-before-after.has-glass .aba-container {
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.arkadia-before-after.has-glass .aba-handle-circle {
    background: var(--glass-bg,
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(255, 255, 255, 0.06) 0%, transparent 70%),
        linear-gradient(180deg, rgba(16, 14, 20, 0.85) 0%, rgba(8, 7, 12, 0.95) 100%));
    border-color: rgb(var(--aba-glass-rgb, 156 4 4) / 0.35);
}

.arkadia-before-after.has-glass .aba-label {
    background: rgb(var(--aba-glass-rgb, 156 4 4) / 0.14);
    border-color: rgb(var(--aba-glass-rgb, 156 4 4) / 0.30);
}

@media (max-width: 600px) {
    .arkadia-before-after {
        padding: 32px 16px;
    }
    .aba-label {
        font-size: 10px;
        padding: 5px 10px;
        top: 12px;
    }
    .aba-label-before { left: 12px; }
    .aba-label-after  { right: 12px; }
}
