/* ── Font self-hosted (variabili, subset latin) — 21/11/2026 ── */
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-display:swap;font-weight:200 800;src:url(../fonts/plus-jakarta-sans-latin-wght-normal.woff2) format('woff2-variations');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'DM Sans';font-style:normal;font-display:swap;font-weight:100 1000;src:url(../fonts/dm-sans-latin-wght-normal.woff2) format('woff2-variations');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:'DM Sans';font-style:italic;font-display:swap;font-weight:100 1000;src:url(../fonts/dm-sans-latin-wght-italic.woff2) format('woff2-variations');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

/* ═══════════════════════════════════════════════════
   INVESTIGATIVA FIRENZE — Design System v3
   Typography: Plus Jakarta Sans + DM Sans
   Palette: BLACK / WHITE / GREY / RED (accent)
   Direction: Sophisticated, discreet, contemporary
   ═══════════════════════════════════════════════════ */

/* ── Tokens ── */
:root {
    /* Colors — B/W/Grey + Red accent */
    --black:        #0A0A0A;
    --dark:         #111111;
    --dark-mid:     #1A1A1A;
    --dark-soft:    #222222;
    --charcoal:     #2C2C2C;
    --gray-700:     #3D3D3D;
    --gray-600:     #5A5A5A;
    --gray-500:     #696969;
    --gray-400:     #8A8A8A;
    --gray-300:     #ABABAB;
    --gray-200:     #D1D1D1;
    --gray-100:     #E8E8E8;
    --off-white:    #F5F5F5;
    --white:        #FFFFFF;

    /* Red accent — controlled, never dominant */
    --accent:       #bb1d23;
    --accent-light: #d64045;
    --accent-dark:  #961720;

    /* Utility */
    --wa-green:     #25D366;
    --wa-green-dk:  #1DA851;
    --red-alert:    #E74C3C;

    /* Typography */
    --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-body:    'DM Sans', system-ui, -apple-system, sans-serif;

    /* Spacing */
    --space-xs:  0.5rem;
    --space-sm:  1rem;
    --space-md:  1.5rem;
    --space-lg:  2.5rem;
    --space-xl:  4rem;
    --space-2xl: 6rem;
    --space-3xl: 8rem;

    /* Sizes */
    --container:    1200px;
    --header-h:     72px;
    --topbar-h:     40px;
    --radius:       8px;
    --radius-md:    12px;
    --radius-lg:    16px;
    --radius-xl:    24px;

    /* Transitions */
    --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration: 0.35s;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.7;
    color: var(--charcoal);
    background: var(--white);
    overflow-x: hidden;
    padding-top: calc(var(--topbar-h) + var(--header-h));
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Container ── */
.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}


/* ═══════════════════════════════════════
   TOP BAR — Sticky CTA
   ═══════════════════════════════════════ */
.cta-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    background: var(--black);
    z-index: 1010;
    display: flex;
    align-items: center;
}
.cta-topbar__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
}
.cta-topbar__badge {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    color: var(--accent);
    background: rgba(187, 29, 35, 0.1);
    border: 1px solid rgba(187, 29, 35, 0.25);
    padding: 0.15rem 0.65rem;
    border-radius: 100px;
}
.cta-topbar__badge span { color: var(--accent-light); }
.cta-topbar__link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--white);
    transition: color var(--duration) var(--ease);
}
.cta-topbar__link:hover { color: var(--accent); }
.cta-topbar__link--wa svg { fill: var(--wa-green); }
.cta-topbar__link--wa:hover { color: var(--wa-green); }


/* ═══════════════════════════════════════
   HEADER — Clean white, contemporary
   ═══════════════════════════════════════ */
.site-header {
    position: fixed;
    top: var(--topbar-h);
    left: 0;
    right: 0;
    height: var(--header-h);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    z-index: 1000;
    transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.site-header--scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}
.site-header__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2.5rem);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    position: relative;
    z-index: 1010;
}
@media (min-width: 1360px) {
    .site-header__inner {
        justify-content: center;
    }
}

/* Logo */
.site-header__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}
.logo-mark {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--white);
    letter-spacing: -0.02em;
}
@media (min-width: 768px) {
    .logo-mark {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-text__primary {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--black);
    letter-spacing: -0.01em;
}
@media (min-width: 768px) {
    .logo-text__primary { font-size: 1.05rem; }
}
.logo-text__secondary {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Logo Image */
.logo-img {
    height: 36px;
    width: auto;
    display: block;
}
@media (min-width: 768px) {
    .logo-img {
        height: 48px;
    }
}
.site-footer__logo .logo-img {
    height: 32px;
    margin-bottom: var(--space-md);
}

/* Desktop Nav */
.site-nav { display: none; }
@media (min-width: 1360px) {
    .site-nav { display: block; }
}
.site-nav__list {
    display: flex;
    align-items: center;
    gap: 0;
}
.site-nav__item { position: relative; }
.site-nav__link {
    display: block;
    padding: 0.5rem 0.85rem;
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--gray-600);
    letter-spacing: 0.01em;
    transition: color var(--duration) var(--ease);
    white-space: nowrap;
}
.site-nav__link:hover,
.site-nav__link--active { color: var(--black); }
.site-nav__link--active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0.85rem;
    right: 0.85rem;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* Nav highlight — underline animata */
.site-nav__link--highlight {
    position: relative;
    color: var(--black);
}
.site-nav__link--highlight::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0.85rem;
    right: 0.85rem;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
    transform: scaleX(0);
    transform-origin: left;
    animation: nav-underline-loop 2.5s var(--ease) infinite;
}
@keyframes nav-underline-loop {
    0%   { transform: scaleX(0); transform-origin: left; }
    40%  { transform: scaleX(1); transform-origin: left; }
    60%  { transform: scaleX(1); transform-origin: right; }
    100% { transform: scaleX(0); transform-origin: right; }
}

/* Dropdown */
.site-nav__dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 260px;
    padding: 0.5rem;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all var(--duration) var(--ease);
}
.site-nav__item--has-sub:hover .site-nav__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.site-nav__sublink {
    display: block;
    padding: 0.55rem 0.85rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--gray-600);
    border-radius: var(--radius);
    transition: all var(--duration) var(--ease);
}
.site-nav__sublink:hover {
    color: var(--black);
    background: rgba(0, 0, 0, 0.04);
}

/* Header CTA */
.site-header__cta {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 100px;
    transition: all var(--duration) var(--ease);
    flex-shrink: 0;
}
@media (min-width: 1700px) {
    .site-header__cta { display: inline-flex; }
}
.site-header__cta:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(187, 29, 35, 0.3);
}

/* Burger */
.site-header__burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 28px;
    height: 28px;
    padding: 0;
}
@media (min-width: 1360px) {
    .site-header__burger { display: none; }
}
.site-header__burger span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: all var(--duration) var(--ease);
    transform-origin: center;
}
.site-header__burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); background: var(--white); }
.site-header__burger.is-active span:nth-child(2) { opacity: 0; }
.site-header__burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); background: var(--white); }

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    height: 100vh;
    height: 100dvh;
    background: var(--black);
    z-index: 999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: calc(var(--topbar-h) + var(--header-h) + var(--space-md)) var(--space-md) var(--space-lg);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.5s var(--ease-out);
}
.mobile-menu.is-open { transform: translateX(0); }
.mobile-menu__nav {
    flex: 1;
}
.mobile-menu__link {
    display: block;
    padding: 0.85rem 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-menu__link--active { color: var(--accent); }
.mobile-menu__link--parent {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    padding: 0.85rem 0;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-menu__link--parent::after {
    content: '+';
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--accent);
    transition: transform var(--duration) var(--ease);
}
.mobile-menu__link--parent[aria-expanded="true"]::after { transform: rotate(45deg); }
.mobile-menu__sub {
    display: none;
    padding: 0.25rem 0 0.5rem 1rem;
}
.mobile-menu__sub.is-open { display: block; }
.mobile-menu__sub a {
    display: block;
    padding: 0.55rem 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--duration) var(--ease);
}
.mobile-menu__sub a:hover { color: var(--accent); }
.mobile-menu__group { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.mobile-menu__footer {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
    padding-top: var(--space-md);
}
.mobile-menu__cta {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    border-radius: var(--radius);
}
.mobile-menu__cta--wa {
    background: var(--wa-green);
    color: var(--white);
}


/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    transition: all var(--duration) var(--ease);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}
.btn--lg { padding: 0.9rem 2rem; font-size: 0.95rem; }
.btn--sm { padding: 0.55rem 1.25rem; font-size: 0.82rem; }

.btn--primary {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.btn--primary:hover {
    background: var(--accent-light);
    border-color: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(187, 29, 35, 0.3);
}

.btn--outline {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
}
.btn--outline:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

.btn--outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
}
.btn--outline-light:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.1);
}

.btn--outline-dark {
    background: transparent;
    color: var(--black);
    border-color: rgba(0, 0, 0, 0.2);
}
.btn--outline-dark:hover {
    border-color: var(--black);
    background: rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
}

.btn--gold {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
}
.btn--gold:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(187, 29, 35, 0.25);
}

.btn--wa {
    background: var(--wa-green);
    color: var(--white);
    border-color: var(--wa-green);
}
.btn--wa:hover {
    background: var(--wa-green-dk);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.25);
}

.link-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent-dark);
    transition: gap var(--duration) var(--ease);
    margin-top: var(--space-md);
}
.link-arrow:hover { gap: 0.7rem; }


/* ═══════════════════════════════════════
   SECTION UTILITIES
   ═══════════════════════════════════════ */
.section-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}
.section-eyebrow--center { display: block; text-align: center; }
.section-eyebrow--light { color: var(--accent-light); }
.section-eyebrow--gold { color: var(--accent); }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--black);
    margin-bottom: var(--space-md);
}
.section-title--center { text-align: center; }
.section-title--light { color: var(--white); }

.section-subtitle {
    max-width: 640px;
    margin: 0 auto var(--space-xl);
    text-align: center;
    font-size: 1.05rem;
    color: var(--gray-500);
    line-height: 1.7;
}
.section-subtitle--light { color: rgba(255, 255, 255, 0.6); }


/* ═══════════════════════════════════════
   HERO — Video Background Concept
   Video BG right, text left
   ═══════════════════════════════════════ */
.hero {
    position: relative;
    overflow: hidden;
    margin-top: calc(-1 * (var(--topbar-h) + var(--header-h)));
    padding-top: calc(var(--topbar-h) + var(--header-h));
    background: linear-gradient(180deg, rgb(246,246,247) 0%, rgb(245,244,244) 100%);
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

/* Inner wrapper — 1200px centrato, come l'header.
   L'immagine è BK di tutto il wrapper, il testo si sovrappone a SX. */
.hero__inner {
    position: relative;
    z-index: 1;
}
@media (min-width: 768px) {
    .hero__inner {
        max-width: var(--container);
        margin: 0 auto;
        overflow: hidden;
        min-height: 520px;
    }
}

/* Subtle gradient background — soft warm-grey top to bottom */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(180deg,
        rgb(246, 246, 247) 0%,
        rgb(245, 244, 244) 100%
    );
}

/* Text column — sovrapposta a SX sull'immagine di BK */
.hero__text {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--space-xl) clamp(1.25rem, 4vw, 2.5rem);
}
@media (min-width: 768px) {
    .hero__text {
        text-align: left;
        width: 50%;
        padding: var(--space-2xl) 0 var(--space-2xl) clamp(1.25rem, 4vw, 2.5rem);
    }
}

.hero__identifier {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: var(--space-md);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--black);
    margin-bottom: var(--space-md);
}

.hero__desc {
    font-size: clamp(0.95rem, 1.8vw, 1.05rem);
    line-height: 1.7;
    color: var(--gray-600);
    max-width: 480px;
    margin-bottom: var(--space-lg);
}
@media (max-width: 767px) {
    .hero__desc { margin-left: auto; margin-right: auto; }
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}
@media (max-width: 767px) {
    .hero__ctas { justify-content: center; }
}

/* Trust indicators */
.hero__trust {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}
@media (max-width: 767px) {
    .hero__trust { justify-content: center; }
}
.hero__trust-item {
    text-align: center;
}
@media (min-width: 768px) {
    .hero__trust-item { text-align: left; }
}
.hero__trust-item strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--black);
    letter-spacing: 0.02em;
}
.hero__trust-item span {
    font-size: 0.78rem;
    color: var(--gray-500);
    letter-spacing: 0.02em;
}
.hero__trust-divider {
    width: 1px;
    height: 32px;
    background: var(--gray-200);
}


/* ═══════════════════════════════════════
   HERO VIDEO / LENS — Right side
   Video as background, camera lens as CSS fallback
   ═══════════════════════════════════════ */
.hero__lens {
    position: relative;
    width: 100%;
    height: 380px;
    overflow: hidden;
}
@media (min-width: 768px) {
    .hero__lens {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

/* Gradient overlay — sfuma l'immagine a SX per leggibilità testo (desktop) */
.hero__lens::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}
@media (min-width: 768px) {
    .hero__lens::after {
        background: linear-gradient(to right,
            rgb(246,246,247) 0%,
            rgba(246,246,247,0.85) 15%,
            rgba(245,244,244,0.35) 40%,
            transparent 55%,
            transparent 75%,
            rgba(245,244,244,0.4) 88%,
            rgb(245,244,244) 100%
        );
    }
}
@media (max-width: 767px) {
    .hero__lens::after {
        background: linear-gradient(to bottom,
            transparent 60%,
            rgb(245,244,244) 100%
        );
    }
}

/* ── Hero Ken Burns image — INATTIVO ──
   Queste regole (.hero__kb-image + .hero__logo-reveal) appartengono alla
   variante "immagine statica" della hero. Al momento NON hanno effetto:
   index.php non contiene quegli elementi, usa ancora il <video>.
   Le lascio pronte: per attivarle sostituisci il <video class="hero-video">
   dentro .hero__lens con
     <div class="hero__kb-image"></div>
     <div class="hero__logo-reveal"><img src="..." alt="ISI"></div>
   e commenta il blocco "Hero video — ATTIVO" più sotto. */
.hero__kb-image {
    position: absolute;
    inset: 0;
    background-image: url('../images/investigativa-firenze-hero.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    will-change: transform;
    animation: hero-kenburns 8s var(--ease) forwards;
}

@keyframes hero-kenburns {
    0%   { transform: scale(1.12) translate(1%, -1%); }
    100% { transform: scale(1.0)  translate(0, 0); }
}

/* Mobile: immagine dedicata crop portrait, lente centrata */
@media (max-width: 767px) {
    .hero__kb-image {
        background-image: url('../images/investigativa-firenze-hero-mobile.jpg');
        background-position: center 38%;
        animation: hero-kenburns-mobile 8s var(--ease) forwards;
    }
}
@keyframes hero-kenburns-mobile {
    0%   { transform: scale(1.12) translate(0, -1%); }
    100% { transform: scale(1.0)  translate(0, 0); }
}

/* Rispetta prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .hero__kb-image {
        animation: none;
        transform: scale(1);
    }
    .hero__logo-reveal {
        animation: none !important;
        opacity: 1;
    }
}

/* ── Logo ISI reveal — appare al centro dell'obiettivo ── */
.hero__logo-reveal {
    position: absolute;
    top: 57.4%;
    left: 53.6%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: clamp(100px, 18vw, 90px);
    height: auto;
    opacity: 0;
    pointer-events: none;
    animation: hero-logo-reveal 1.8s var(--ease-out) 3.5s forwards;
}
.hero__logo-reveal img {
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 4px 24px rgba(0,0,0,0.25));
}
@media (max-width: 767px) {
    .hero__logo-reveal {
        /* Mobile: posizionato sulla lente nell'immagine croppata
           — tarare top/left con inspector sul crop reale */
        top: 70%;
        left: 25%;
        width: clamp(70px, 20vw, 110px);
    }
}

@keyframes hero-logo-reveal {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.7); filter: blur(6px); }
    50%  { opacity: 0.8; filter: blur(0); }
    100% { opacity: 1;   transform: translate(-50%, -50%) scale(1);  filter: blur(0); }
}

/* ── Hero video — ATTIVO ──
   È questo il visual effettivamente renderizzato: index.php contiene
   <video class="hero-video"> dentro .hero__lens.
   Senza queste regole il <video> prende le sue dimensioni intrinseche
   (1920x1080, object-fit:contain, position:static) e .hero__lens, che ha
   overflow:hidden, ne mostra solo l'angolo in alto a SX — su desktop si
   salva per caso, su mobile (390x380) si vede solo il bianco.
   La correzione è volutamente limitata a max-width:767px: su desktop il
   ritaglio naturale attuale è quello già approvato e resta intatto. */
@media (max-width: 767px) {

    /* Ordine mobile: il visual è il PRIMO contenuto della hero,
       claim + descrizione + CTA scorrono sotto.
       Nel DOM .hero__lens viene dopo .hero__content, quindi si inverte
       con flex + order invece di toccare index.php. */
    .hero {
        display: flex;
        flex-direction: column;
    }
    .hero__content { order: 0; }
    .hero__lens {
        order: -1;
        /* NON rimuovere: applicando "order" cambia anche l'ordine di
           pittura, e .hero__bg (absolute, z-index:0) finirebbe a coprire
           la lente lasciando un rettangolo grigio vuoto. */
        z-index: 1;
    }

    .hero__lens .hero-video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        /* cover + centratura: nel box 390x380 il ritaglio cade
           esattamente sull'obiettivo, con occhio e corpo macchina a DX. */
        object-fit: cover;
        object-position: center center;
        display: block;
        z-index: 0;
        pointer-events: none;
        background-color: rgb(245, 244, 244);
    }
}

/* Schermi oltre 1920px: il video (1920x1080, mostrato 1:1) resta centrato
   e sfumato ai lati invece di finire con un bordo netto a 1920px. */
@media (min-width: 1921px) {
    .hero__lens {
        left: calc(50% - 960px);
        right: auto;
        width: 1920px;
    }
}

/* Fallback CSS dell'obiettivo (.lens-container.lens-fallback in index.php):
   va nascosto finché il video è presente, altrimenti si sovrappone in alto
   a SX della lente. Per tornare al fallback: rimuovi il <video> dall'HTML
   e commenta questa regola. */
.hero__lens .lens-fallback {
    display: none;
}

.lens-container {
    position: relative;
    width: clamp(220px, 35vw, 380px);
    height: clamp(220px, 35vw, 380px);
}

/* Outer lens ring */
.lens-body {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(circle at 35% 35%, rgba(80,80,80,0.4), transparent 60%),
        linear-gradient(145deg, #2a2a2a 0%, #111 40%, #1a1a1a 60%, #222 100%);
    box-shadow:
        0 0 0 3px rgba(60,60,60,0.3),
        0 0 0 6px rgba(40,40,40,0.2),
        0 20px 60px rgba(0,0,0,0.5),
        inset 0 2px 4px rgba(255,255,255,0.05);
}

/* Inner lens glass */
.lens-glass {
    position: absolute;
    top: 12%;
    left: 12%;
    right: 12%;
    bottom: 12%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 40% 40%, rgba(50,50,60,0.8), rgba(15,15,20,0.95) 70%);
    box-shadow:
        inset 0 0 30px rgba(0,0,0,0.6),
        inset 0 2px 8px rgba(255,255,255,0.03),
        0 0 0 2px rgba(80,80,80,0.2);
    overflow: hidden;
}

/* Light reflection on glass */
.lens-glass::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 15%;
    width: 35%;
    height: 20%;
    background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent);
    border-radius: 50%;
    transform: rotate(-20deg);
}

/* Aperture blades container */
.lens-aperture {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* SVG aperture — animated */
.aperture-svg {
    width: 100%;
    height: 100%;
}
.aperture-blade {
    fill: #0d0d0d;
    stroke: rgba(60,60,60,0.3);
    stroke-width: 0.3;
    transform-origin: center;
    animation: aperture-open 3s var(--ease-out) forwards;
}
/* Stagger blades */
.aperture-blade:nth-child(1) { animation-delay: 0.6s; }
.aperture-blade:nth-child(2) { animation-delay: 0.65s; }
.aperture-blade:nth-child(3) { animation-delay: 0.7s; }
.aperture-blade:nth-child(4) { animation-delay: 0.75s; }
.aperture-blade:nth-child(5) { animation-delay: 0.8s; }
.aperture-blade:nth-child(6) { animation-delay: 0.85s; }

@keyframes aperture-open {
    0%   { opacity: 1; }
    60%  { opacity: 1; }
    100% { opacity: 0; }
}

/* ISI Logo reveal — appears as aperture opens */
.lens-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40%;
    height: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: logo-reveal 2s var(--ease-out) 1.2s forwards;
}
.lens-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12%;
}

@keyframes logo-reveal {
    0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.8); filter: blur(4px); }
    60%  { opacity: 1; filter: blur(0); }
    100% { opacity: 1; transform: translate(-50%, -50%) scale(1); filter: blur(0); }
}

/* Subtle lens flare — appears after logo */
.lens-flare {
    position: absolute;
    top: 30%;
    left: 25%;
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg,
        transparent,
        rgba(255, 255, 255, 0.15),
        rgba(187, 29, 35, 0.08),
        transparent
    );
    border-radius: 50%;
    opacity: 0;
    animation: flare-sweep 1.5s var(--ease) 2s forwards;
    pointer-events: none;
}
@keyframes flare-sweep {
    0%   { opacity: 0; transform: translateX(-30%); }
    30%  { opacity: 1; }
    100% { opacity: 0; transform: translateX(80%); }
}

/* Scroll indicator */
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
}
.hero__scroll span {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gray-400);
}
.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), var(--gray-200));
    animation: scroll-line 2s ease-in-out infinite;
}
@keyframes scroll-line {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* Mobile: "Scopri" subito sotto il video (invita a scorrere verso il testo)
   e video più compatto in basso, dove c'era solo tessuto bianco sfumato. */
@media (max-width: 767px) {
    .hero {
        padding-bottom: var(--space-lg);
    }
    .hero__lens {
        height: 336px;
    }
    .hero__lens .hero-video {
        inset: auto;
        top: 0;
        left: 0;
        width: 100%;
        height: 380px;
    }
    .hero__lens::after {
        background: linear-gradient(to bottom, transparent 72%, rgb(245, 244, 244) 100%);
    }
    .hero__content { order: 1; }
    .hero__scroll {
        position: static;
        transform: none;
        order: 0;
        margin: 2px auto 0;
        gap: 0.35rem;
    }
    .hero__scroll-line { height: 28px; }
    .hero__text { padding-top: var(--space-sm); }
}


/* ═══════════════════════════════════════
   INTRO
   ═══════════════════════════════════════ */
.intro {
    padding: var(--space-3xl) 0;
}
.intro__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}
@media (min-width: 768px) {
    .intro__grid { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
}
.intro__media {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.intro__media img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-xl);
}
.intro__media-accent {
    position: absolute;
    bottom: -12px;
    right: -12px;
    width: 50%;
    height: 50%;
    border: 2px solid var(--accent);
    border-radius: var(--radius-xl);
    z-index: -1;
}
.intro__lead {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--charcoal);
    margin-bottom: var(--space-sm);
}
.intro__text p:not(.intro__lead) {
    color: var(--gray-600);
    margin-bottom: var(--space-sm);
}


/* ═══════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════ */
.services {
    padding: var(--space-3xl) 0;
    background: var(--off-white);
}
.services--dark {
    background: var(--dark);
    padding: var(--space-3xl) 0;
}
.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-md);
    margin-top: var(--space-lg);
}
/* 5-item layout: 3 top + 2 bottom spanning full width */
@media (min-width: 900px) {
    .services__grid--5 {
        grid-template-columns: repeat(6, 1fr);
    }
    .services__grid--5 .service-card:nth-child(-n+3) {
        grid-column: span 2;
    }
    .services__grid--5 .service-card:nth-child(4) {
        grid-column: 1 / 4;
    }
    .services__grid--5 .service-card:nth-child(5) {
        grid-column: 4 / 7;
    }
}
.services__grid--3 {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* Service Card — Light */
.service-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.06);
    transition: all var(--duration) var(--ease);
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.1);
    border-color: rgba(187, 29, 35, 0.2);
}
.service-card__icon {
    position: relative;
    height: 180px;
    overflow: hidden;
}
.service-card__icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s var(--ease);
}
.service-card:hover .service-card__icon img {
    transform: scale(1.05);
}
.service-card__title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--black);
    padding: var(--space-md) var(--space-md) 0;
}
.service-card__desc {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    padding: var(--space-xs) var(--space-md);
    flex: 1;
}
.service-card__link {
    display: block;
    padding: var(--space-sm) var(--space-md) var(--space-md);
    font-family: var(--font-display);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent-dark);
    transition: color var(--duration) var(--ease);
}
.service-card:hover .service-card__link { color: var(--accent); }

/* Service Card — Glass (dark bg) */
.service-card--glass {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(10px);
}
.service-card--glass:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(187, 29, 35, 0.2);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}
.service-card__header {
    padding: var(--space-md) var(--space-md) 0;
}
.service-card__header svg { stroke: var(--accent); }
.service-card__title--light { color: var(--white); padding-top: var(--space-sm); }
.service-card__desc--light { color: rgba(255, 255, 255, 0.55); }
.service-card__link--gold { color: var(--accent); }


/* ═══════════════════════════════════════
   METHOD
   ═══════════════════════════════════════ */
.method {
    background: var(--black);
    padding: var(--space-3xl) 0;
    overflow: hidden;
}
.method__steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-xl);
}
@media (min-width: 768px) {
    .method__steps {
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
    }
}
.method__step {
    flex: 1;
    text-align: center;
    padding: var(--space-md);
}
.method__number {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--accent);
    opacity: 0.3;
    line-height: 1;
    margin-bottom: var(--space-sm);
}
.method__step-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-xs);
}
.method__step p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.65;
}
.method__connector {
    display: none;
}
@media (min-width: 768px) {
    .method__connector {
        display: flex;
        align-items: center;
        padding-top: 2.5rem;
    }
    .method__connector::before {
        content: '';
        width: 32px;
        height: 1px;
        background: linear-gradient(90deg, transparent, rgba(187, 29, 35, 0.3), transparent);
    }
}


/* ═══════════════════════════════════════
   FEATURE
   ═══════════════════════════════════════ */
.feature {
    padding: var(--space-3xl) 0;
}
.feature__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}
@media (min-width: 768px) {
    .feature__grid { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
}
.feature__lead {
    font-size: 1.1rem;
    line-height: 1.75;
    color: var(--charcoal);
    margin-bottom: var(--space-md);
}
.feature__list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-top: var(--space-md);
}
.feature__list li {
    padding-left: 1.25rem;
    position: relative;
}
.feature__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}
.feature__list li strong {
    display: block;
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.15rem;
}
.feature__list li span {
    font-size: 0.88rem;
    color: var(--gray-600);
    line-height: 1.6;
}
.feature__media {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.feature__media img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-xl);
}
.feature__media-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(187, 29, 35, 0.08), transparent 70%);
    pointer-events: none;
}


/* ═══════════════════════════════════════
   VIP BANNER
   ═══════════════════════════════════════ */
.vip-banner {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.vip-banner__bg {
    position: absolute;
    inset: 0;
}
.vip-banner__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.25) contrast(1.1);
}
.vip-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 10, 10, 0.88), rgba(10, 10, 10, 0.6));
}
.vip-banner__content {
    position: relative;
    z-index: 1;
    max-width: 600px;
    padding: var(--space-xl) 0;
}
.vip-banner__text {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}


/* ═══════════════════════════════════════
   LEGAL TRUST
   ═══════════════════════════════════════ */
.legal-trust {
    padding: var(--space-3xl) 0;
    background: var(--white);
}
.legal-trust__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}
@media (min-width: 768px) {
    .legal-trust__grid { grid-template-columns: 1fr 1fr; align-items: start; gap: var(--space-2xl); }
}
.legal-trust__text p {
    color: var(--gray-600);
    line-height: 1.75;
}
.legal-trust__cards {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.trust-card {
    display: flex;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--off-white);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
}
.trust-card__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(187, 29, 35, 0.08);
    border-radius: var(--radius);
    color: var(--accent);
}
.trust-card h3 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 0.25rem;
}
.trust-card p {
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.55;
}


/* ═══════════════════════════════════════
   FAQ
   ═══════════════════════════════════════ */
.faq {
    padding: var(--space-3xl) 0;
    background: var(--off-white);
}
.faq__list {
    max-width: 760px;
    margin: var(--space-xl) auto 0;
}
.faq__item {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.faq__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md) 0;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: var(--black);
    cursor: pointer;
    list-style: none;
}
.faq__question::-webkit-details-marker { display: none; }
.faq__chevron {
    flex-shrink: 0;
    color: var(--accent);
    transition: transform var(--duration) var(--ease);
}
.faq__item[open] .faq__chevron { transform: rotate(180deg); }
.faq__answer {
    padding: 0 0 var(--space-md);
}
.faq__answer p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
}


/* ═══════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════ */
.cta-section {
    padding: var(--space-3xl) 0;
    background: var(--dark);
}
.cta-section__inner {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}
.cta-section__title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.025em;
    margin-bottom: var(--space-sm);
}
.cta-section__text {
    color: rgba(255, 255, 255, 0.55);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}
.cta-section__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}


/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.site-footer__top {
    background: var(--black);
    padding: var(--space-3xl) 0 var(--space-xl);
    border-top: 1px solid rgba(187, 29, 35, 0.15);
}
.site-footer__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}
@media (min-width: 768px) {
    .site-footer__grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: var(--space-lg);
    }
}
.site-footer__logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: var(--space-md);
}
.site-footer__desc {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.65;
    margin-bottom: var(--space-md);
}
.site-footer__contact-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.site-footer__contact-list a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.55);
    transition: color var(--duration) var(--ease);
}
.site-footer__contact-list a:hover { color: var(--accent); }

.site-footer__heading {
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-md);
}
.site-footer__links li {
    margin-bottom: 0.5rem;
}
.site-footer__links a {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color var(--duration) var(--ease);
}
.site-footer__links a:hover { color: var(--white); }

.site-footer__hours-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: var(--space-xs);
}
.pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wa-green);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}
.site-footer__hours p {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    margin-bottom: var(--space-md);
}
.site-footer__cta-btn { width: 100%; }

.site-footer__bottom {
    background: var(--black);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: var(--space-md) 0;
}
.site-footer__bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-sm);
}
.site-footer__bottom p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
}
.site-footer__legal {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
}
.site-footer__legal a,
.site-footer__legal span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    transition: color var(--duration) var(--ease);
}
.site-footer__legal a:hover { color: var(--white); }


/* ═══════════════════════════════════════
   WHATSAPP FLOATING
   ═══════════════════════════════════════ */
.wa-float {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.85rem 1.25rem;
    background: var(--wa-green);
    color: var(--white);
    border-radius: 100px;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.4);
    z-index: 900;
    transition: all var(--duration) var(--ease);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.85rem;
}
.wa-float:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 10px 36px rgba(37, 211, 102, 0.5);
}
.wa-float__label { display: none; }
@media (min-width: 768px) {
    .wa-float__label { display: inline; }
}


/* ═══════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════ */
.contact-section {
    padding: var(--space-3xl) 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
}
@media (min-width: 900px) {
    .contact-grid { grid-template-columns: 1.4fr 1fr; gap: var(--space-2xl); align-items: start; }
}
.contact-form-intro {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: var(--space-lg);
}
.contact-form-intro strong { color: var(--black); }
.form-row { margin-bottom: var(--space-md); }
.form-row--2col { display: grid; grid-template-columns: 1fr; gap: var(--space-md); }
@media (min-width: 600px) { .form-row--2col { grid-template-columns: 1fr 1fr; } }
.form-label {
    display: block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 0.4rem;
}
.required { color: var(--accent); }
.form-input {
    width: 100%;
    padding: 0.85rem 1rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--charcoal);
    background: var(--white);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius);
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
    -webkit-appearance: none;
}
.form-input:focus {
    outline: none;
    border-color: var(--charcoal);
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.06);
}
.form-input::placeholder { color: var(--gray-400); }
.form-select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238A8A8A' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
.form-textarea { resize: vertical; min-height: 120px; }
.form-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--gray-600);
    line-height: 1.5;
}
.form-checkbox input { display: none; }
.form-checkbox__mark {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-top: 1px;
    border: 1.5px solid var(--gray-200);
    border-radius: 4px;
    transition: all var(--duration) var(--ease);
    display: flex;
    align-items: center;
    justify-content: center;
}
.form-checkbox input:checked + .form-checkbox__mark {
    background: var(--accent);
    border-color: var(--accent);
}
.form-checkbox input:checked + .form-checkbox__mark::after {
    content: '';
    width: 10px;
    height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23FFFFFF' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}
.form-checkbox__text a { color: var(--accent-dark); text-decoration: underline; }
.form-submit-btn { width: 100%; }
@media (min-width: 600px) { .form-submit-btn { width: auto; } }
.form-disclaimer { font-size: 0.78rem; color: var(--gray-400); margin-top: var(--space-sm); }
#form-messages:empty { display: none; }
#form-messages {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    margin-bottom: var(--space-md);
    font-size: 0.9rem;
    line-height: 1.5;
}
#form-messages.success { background: rgba(37, 211, 102, 0.08); border: 1px solid rgba(37, 211, 102, 0.3); color: #1a7a3a; }
#form-messages.error { background: rgba(231, 76, 60, 0.08); border: 1px solid rgba(231, 76, 60, 0.3); color: #c0392b; }
.contact-card {
    padding: var(--space-md);
    background: var(--off-white);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-md);
}
.contact-card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(187, 29, 35, 0.08);
    border-radius: var(--radius);
    color: var(--accent);
    margin-bottom: var(--space-sm);
}
.contact-card__icon--wa { color: var(--wa-green); background: rgba(37, 211, 102, 0.08); }
.contact-card h3 { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--black); margin-bottom: 0.3rem; }
.contact-card__value {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent-dark);
    margin-bottom: 0.3rem;
    transition: color var(--duration) var(--ease);
}
a.contact-card__value:hover { color: var(--accent); }
.contact-card p { font-size: 0.85rem; color: var(--gray-400); line-height: 1.5; }
.contact-trust {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--dark);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.contact-trust__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(255,255,255,0.7);
}


/* ═══════════════════════════════════════
   PAGE HERO (Internal pages)
   ═══════════════════════════════════════ */
.page-hero {
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-top: calc(-1 * (var(--topbar-h) + var(--header-h)));
    padding-top: calc(var(--topbar-h) + var(--header-h));
}
@media (min-width: 768px) {
    .page-hero { min-height: 440px; }
}
.page-hero__bg {
    position: absolute;
    inset: 0;
}
.page-hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.62) contrast(1.05);
}
.page-hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 10, 10, 0.78) 0%, rgba(10, 10, 10, 0.5) 45%, rgba(10, 10, 10, 0.15) 100%),
        linear-gradient(180deg, rgba(10, 10, 10, 0) 55%, rgba(10, 10, 10, 0.55) 100%);
}
.page-hero__content {
    position: relative;
    z-index: 1;
    padding: var(--space-xl) 0 var(--space-lg);
    max-width: var(--container);
    margin: 0 auto;
    width: 100%;
    padding-left: clamp(1.25rem, 4vw, 2.5rem);
    padding-right: clamp(1.25rem, 4vw, 2.5rem);
}
.page-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.85rem;
    background: rgba(187, 29, 35, 0.12);
    border: 1px solid rgba(187, 29, 35, 0.25);
    border-radius: 100px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-md);
}
.page-hero__title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--white);
    margin-bottom: var(--space-sm);
}
.page-hero__desc {
    font-size: clamp(0.95rem, 2vw, 1.1rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    max-width: 600px;
}

/* Breadcrumb */
.breadcrumb {
    padding: var(--space-md) 0;
    background: var(--off-white);
    border-bottom: 1px solid rgba(0,0,0,0.05);
}
.breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-display);
    font-size: 0.78rem;
    color: var(--gray-400);
}
.breadcrumb__list a {
    color: var(--gray-600);
    transition: color var(--duration) var(--ease);
}
.breadcrumb__list a:hover { color: var(--accent); }
.breadcrumb__sep { color: var(--gray-200); }
.breadcrumb__current { color: var(--black); font-weight: 600; }


/* ═══════════════════════════════════════
   SERVICE DETAIL SECTIONS
   ═══════════════════════════════════════ */
.svc-detail {
    padding: var(--space-3xl) 0;
}
.svc-detail:nth-child(even) {
    background: var(--off-white);
}
.svc-detail__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    align-items: center;
}
@media (min-width: 768px) {
    .svc-detail__grid { grid-template-columns: 1fr 1fr; gap: var(--space-2xl); }
    .svc-detail__grid--reverse .svc-detail__media { order: 2; }
    .svc-detail__grid--reverse .svc-detail__text { order: 1; }
}
.svc-detail__media {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
}
.svc-detail__media img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: var(--radius-xl);
}
.svc-detail__number {
    position: absolute;
    top: var(--space-md);
    left: var(--space-md);
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(187, 29, 35, 0.85);
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
}
.svc-detail__text h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: var(--space-sm);
}
.svc-detail__text h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent-dark);
    margin-top: var(--space-md);
    margin-bottom: var(--space-xs);
}
.svc-detail__text p {
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.75;
    margin-bottom: var(--space-sm);
}
.svc-detail__checklist {
    margin-top: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.svc-detail__checklist li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.55;
}
.svc-detail__checklist li::before {
    content: '';
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    background: rgba(187, 29, 35, 0.12);
    border: 1.5px solid var(--accent);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23bb1d23' stroke-width='3'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 10px;
}

/* Page intro block */
.page-intro {
    padding: var(--space-2xl) 0 var(--space-xl);
}
.page-intro__inner {
    max-width: 780px;
}
.page-intro__lead {
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--charcoal);
}
.page-intro__lead strong { color: var(--black); }

/* Stat banner */
.stat-banner {
    background: var(--dark);
    padding: var(--space-xl) 0;
}
.stat-banner__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    text-align: center;
}
@media (min-width: 768px) {
    .stat-banner__grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-banner__item strong {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--accent);
    line-height: 1.2;
}
.stat-banner__item span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.03em;
}


/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
[data-animate] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
[data-animate="fade-down"] { transform: translateY(-30px); }
[data-animate="fade-left"] { transform: translateX(30px); }
[data-animate="fade-right"] { transform: translateX(-30px); }
[data-animate].is-visible {
    opacity: 1;
    transform: translate(0);
}

/* ═══════════════════════════════════════
   BLOG — Listing + Article
   ═══════════════════════════════════════ */

/* Narrow container for article readability */
.container--narrow {
    max-width: 780px;
}

/* ── Blog listing grid ── */
.blog-listing {
    padding: var(--space-3xl) 0;
}
.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}
@media (min-width: 600px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 960px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ── Blog card ── */
.blog-card {
    background: var(--white);
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
}
.blog-card:hover {
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    border-color: var(--gray-200);
}
.blog-card__cat {
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: var(--space-sm);
}
.blog-card__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--black);
    margin-bottom: var(--space-sm);
}
.blog-card__title a {
    color: inherit;
    text-decoration: none;
}
.blog-card__title a:hover {
    color: var(--accent);
}
.blog-card__excerpt {
    font-size: 0.9rem;
    line-height: 1.65;
    color: var(--gray-600);
    flex: 1;
    margin-bottom: var(--space-md);
}
.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    transition: gap 0.2s var(--ease);
}
.blog-card__link:hover {
    gap: 10px;
}

/* ── Blog article ── */
.blog-article {
    padding: var(--space-2xl) 0 var(--space-3xl);
}

/* Summary box */
.blog-article__summary {
    background: var(--off-white);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: var(--space-lg) var(--space-xl);
    margin-bottom: var(--space-2xl);
}
.blog-article__summary h2 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: var(--space-sm);
}
.blog-article__summary ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.blog-article__summary li {
    position: relative;
    padding-left: 1.4em;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray-700);
    margin-bottom: var(--space-xs);
}
.blog-article__summary li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* Article sections */
.blog-article__section {
    margin-bottom: var(--space-xl);
}
.blog-article__section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    font-weight: 700;
    color: var(--black);
    margin-bottom: var(--space-md);
    line-height: 1.3;
}
.blog-article__section p {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: var(--space-md);
}
.blog-article__section ul,
.blog-article__section ol {
    padding-left: 1.5em;
    margin-bottom: var(--space-md);
}
.blog-article__section li {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray-700);
    margin-bottom: var(--space-xs);
}

/* FAQ in article */
.blog-article__faq {
    margin: var(--space-2xl) 0;
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-100);
}
.blog-article__faq h2 {
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2.5vw, 1.4rem);
    font-weight: 700;
    color: var(--black);
    margin-bottom: var(--space-lg);
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.faq-item {
    border: 1px solid var(--gray-100);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.2s var(--ease);
}
.faq-item[open] {
    border-color: var(--gray-200);
}
.faq-item__q {
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--black);
    padding: var(--space-md) var(--space-lg);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after {
    content: '+';
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--gray-400);
    transition: transform 0.2s var(--ease);
    flex-shrink: 0;
}
.faq-item[open] .faq-item__q::after {
    content: '\2212';
}
.faq-item__a {
    padding: 0 var(--space-lg) var(--space-md);
}
.faq-item__a p {
    font-size: 0.95rem;
    line-height: 1.75;
    color: var(--gray-600);
}

/* Disclaimer */
.blog-article__disclaimer {
    background: var(--off-white);
    border-radius: var(--radius-md);
    padding: var(--space-md) var(--space-lg);
    margin: var(--space-xl) 0;
}
.blog-article__disclaimer p {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--gray-500);
    font-style: italic;
    margin: 0;
}

/* Article CTA */
.blog-article__cta {
    text-align: center;
    background: var(--dark);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) var(--space-xl);
    margin: var(--space-2xl) 0;
}
.blog-article__cta h2 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--space-sm);
}
.blog-article__cta p {
    font-size: 0.95rem;
    color: var(--gray-300);
    margin-bottom: var(--space-lg);
}

/* Related articles */
.blog-article__related {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-100);
}
.blog-article__related h3 {
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gray-500);
    margin-bottom: var(--space-md);
}
.blog-article__related ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}
.blog-article__related a {
    font-size: 0.95rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s var(--ease);
}
.blog-article__related a:hover {
    color: var(--accent-dark);
}


/* ── CTA Band ── */
.cta-band {
    margin-bottom: var(--space-2xl);
}
.cta-band__inner {
    background: var(--black);
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--space-2xl) clamp(1.5rem, 5vw, 3rem);
    text-align: center;
}
.cta-band__title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}
.cta-band__desc {
    max-width: 560px;
    margin: 0 auto var(--space-lg);
    opacity: 0.85;
    line-height: 1.6;
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    [data-animate] {
        opacity: 1;
        transform: none;
    }
    .hero__scroll-line { animation: none; }
    .aperture-blade { animation: none; opacity: 0; }
    .lens-logo { animation: none; opacity: 1; }
    .lens-flare { animation: none; }
}

/* ═══════════════════════════════════════════════════
   COOKIE BANNER + PREFERENZE (Consent Mode v2)
   ═══════════════════════════════════════════════════ */
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 2000;
    max-width: 460px;
    background: var(--black);
    color: var(--gray-200);
    border: 1px solid var(--charcoal);
    border-radius: var(--radius-lg);
    padding: var(--space-md) var(--space-md) var(--space-md);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease-out);
}
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner[hidden] { display: none; }
.cookie-banner__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    color: var(--gray-300);
    border-radius: 50%;
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.cookie-banner__close:hover { background: var(--dark-soft); color: var(--white); }
.cookie-banner__title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 36px var(--space-xs) 0;
    padding-left: 14px;
    border-left: 3px solid var(--accent);
    line-height: 1.3;
}
.cookie-banner__desc {
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: var(--space-md);
}
.cookie-banner__desc a,
.cookie-modal a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions,
.cookie-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cookie-btn {
    flex: 1 1 auto;
    min-height: 42px;
    padding: 0.55rem 1rem;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: background var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.cookie-btn--primary { background: var(--accent); color: var(--white); border: 1px solid var(--accent); }
.cookie-btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.cookie-btn--outline { background: transparent; color: var(--white); border: 1px solid var(--gray-600); }
.cookie-btn--outline:hover { border-color: var(--white); }
.cookie-btn--ghost { background: transparent; color: var(--gray-300); border: 1px solid transparent; text-decoration: underline; text-underline-offset: 3px; }
.cookie-btn--ghost:hover { color: var(--white); }
.cookie-btn:focus-visible,
.cookie-banner__close:focus-visible,
.cookie-modal__x:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }

@media (min-width: 600px) {
    .cookie-banner { left: 24px; right: auto; bottom: 24px; padding: var(--space-lg) var(--space-lg) var(--space-md); }
}

/* Modale preferenze */
.cookie-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.cookie-modal[hidden] { display: none; }
.cookie-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.6);
    opacity: 0;
    transition: opacity 0.25s var(--ease);
}
.cookie-modal__panel {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 92vh;
    max-height: 92dvh;
    display: flex;
    flex-direction: column;
    background: var(--white);
    color: var(--charcoal);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.25);
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.3s var(--ease-out), opacity 0.25s var(--ease);
}
.cookie-modal.is-open .cookie-modal__backdrop { opacity: 1; }
.cookie-modal.is-open .cookie-modal__panel { transform: none; opacity: 1; }
.cookie-modal-open,
.cookie-modal-open body { overflow: hidden; }
@media (min-width: 600px) {
    .cookie-modal { align-items: center; padding: 24px; }
    .cookie-modal__panel { border-radius: var(--radius-lg); }
}
.cookie-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-lg);
    border-bottom: 1px solid var(--gray-100);
}
.cookie-modal__title {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--black);
}
.cookie-modal__x {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--gray-600);
}
.cookie-modal__x:hover { background: var(--off-white); color: var(--black); }
.cookie-modal__body {
    padding: var(--space-md) var(--space-lg);
    overflow-y: auto;
}
.cookie-modal__intro { font-size: 0.88rem; color: var(--gray-600); margin-bottom: var(--space-md); line-height: 1.6; }
.cookie-modal a { color: var(--accent-dark); }
.cookie-cat {
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--gray-100);
}
.cookie-cat__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    cursor: pointer;
}
.cookie-cat__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--black);
}
.cookie-cat__always {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-500);
}
.cookie-cat__desc { font-size: 0.82rem; color: var(--gray-600); line-height: 1.6; margin-top: 4px; }
.cookie-switch { position: relative; flex-shrink: 0; width: 44px; height: 24px; }
.cookie-switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}
.cookie-switch__track {
    position: absolute;
    inset: 0;
    background: var(--gray-200);
    border-radius: 24px;
    transition: background var(--duration) var(--ease);
}
.cookie-switch__track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--white);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    transition: transform var(--duration) var(--ease-out);
}
.cookie-switch input:checked + .cookie-switch__track { background: var(--accent); }
.cookie-switch input:checked + .cookie-switch__track::after { transform: translateX(20px); }
.cookie-switch input:focus-visible + .cookie-switch__track { outline: 2px solid var(--accent-light); outline-offset: 2px; }
.cookie-modal__actions {
    padding: var(--space-md) var(--space-lg);
    border-top: 1px solid var(--gray-100);
    background: var(--off-white);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.cookie-modal .cookie-btn--outline { color: var(--black); border-color: var(--gray-300); background: var(--white); }
.cookie-modal .cookie-btn--outline:hover { border-color: var(--black); }

/* ── Form contatti: campo con errore ── */
.form-input--error,
.form-input--error:focus {
    border-color: var(--red-alert);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.12);
}
.form-submit-btn[disabled] { opacity: 0.6; cursor: wait; }

/* ═══════════════════════════════════════════════════
   PAGINE LEGALI (Privacy / Cookie Policy)
   ═══════════════════════════════════════════════════ */
.legal-page .blog-article__section h3 {
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--black);
    margin: var(--space-md) 0 var(--space-xs);
}
.legal-page .blog-article__section ul { list-style: disc; }
.legal-page .blog-article__section ol { list-style: decimal; }
.legal-page .blog-article__section a { color: var(--accent-dark); text-decoration: underline; text-underline-offset: 2px; }
.legal-meta {
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: var(--space-xl);
}
.legal-table-wrap { overflow-x: auto; margin-bottom: var(--space-md); -webkit-overflow-scrolling: touch; }
.legal-table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 0.85rem;
    line-height: 1.5;
}
.legal-table th,
.legal-table td {
    text-align: left;
    vertical-align: top;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--gray-100);
}
.legal-table th {
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--gray-500);
    background: var(--off-white);
}
.legal-table td:first-child { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; color: var(--black); white-space: nowrap; }
.legal-page .btn { margin-top: var(--space-xs); }
/* Banner: Rifiuta e Accetta con pari evidenza (Linee guida Garante) */
.cookie-banner__actions .cookie-btn--outline,
.cookie-banner__actions .cookie-btn--primary { flex: 1 1 0; }
.cookie-banner__actions .cookie-btn--ghost { order: 3; flex: 0 0 100%; min-height: 32px; padding-top: 0.35rem; padding-bottom: 0; }
.svc-detail__checklist + p { margin-top: var(--space-md); }

/* ── Header desktop: 9 voci di menu + logo senza sforare (fix overflow 1080–1700px) ── */
@media (min-width: 1360px) {
    .site-header__inner { max-width: none; gap: var(--space-md); }
    .site-header .logo-img { height: 40px; }
    .site-nav__link { padding: 0.5rem 0.6rem; font-size: 0.84rem; }
}
@media (min-width: 1700px) {
    .site-header__inner { gap: var(--space-lg); }
    .site-header .logo-img { height: 48px; }
    .site-nav__link { padding: 0.5rem 0.75rem; font-size: 0.88rem; }
}

/* ── Immagini ottimizzate (picture WebP + fallback JPG) ── */
.svc-detail__media picture,
.feature__media picture { display: block; }
.page-hero__bg picture,
.service-card__icon picture { display: block; width: 100%; height: 100%; }
.svc-detail__media img,
.feature__media img { height: auto; }

/* ── Pulsante fisso preferenze cookie (basso a sinistra) ── */
.cookie-ribbon {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 1900;
    display: inline-flex;
    align-items: center;
    gap: 0;
    height: 44px;
    min-width: 44px;
    padding: 0 13px;
    background: var(--black);
    color: var(--white);
    border: 1px solid var(--charcoal);
    border-radius: 100px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.88;
    transition: opacity var(--duration) var(--ease), gap var(--duration) var(--ease), border-color var(--duration) var(--ease);
}
.cookie-ribbon[hidden] { display: none; }
.cookie-ribbon svg { flex-shrink: 0; color: var(--white); }
.cookie-ribbon__label {
    max-width: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.35s var(--ease-out);
}
.cookie-ribbon:hover,
.cookie-ribbon:focus-visible { opacity: 1; gap: 8px; border-color: var(--accent); }
.cookie-ribbon:hover .cookie-ribbon__label,
.cookie-ribbon:focus-visible .cookie-ribbon__label { max-width: 160px; }
.cookie-ribbon:focus-visible { outline: 2px solid var(--accent-light); outline-offset: 2px; }
@media (min-width: 600px) {
    .cookie-ribbon { left: 24px; bottom: 24px; }
}
@media print { .cookie-ribbon, .cookie-banner { display: none !important; } }

/* Griglia a 2 card centrate (es. Sicurezza per l'Impresa in Tutela Aziendale) */
.services__grid--2 {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}

/* ═══════════════════════════════════════════════════
   REVISIONE MOBILE — 16/11/2026
   ═══════════════════════════════════════════════════ */

/* Badge delle testate: leggibile anche sulle foto (prima rosso su rosso scuro) */
.page-hero__badge {
    background: rgba(10, 10, 10, 0.55);
    border-color: rgba(214, 64, 69, 0.55);
    color: #f2b8ba;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}

/* Elenchi negli articoli: punti elenco visibili */
.blog-article__section ul { list-style: disc; }
.blog-article__section ol { list-style: decimal; }
.blog-article__section li::marker { color: var(--accent); }

@media (max-width: 767px) {
    /* Animazioni laterali (fade-left/right) su mobile entrano dal basso:
       prima partivano spostate di 30px e allargavano la pagina */
    [data-animate="fade-left"],
    [data-animate="fade-right"] { transform: translateY(24px); }
    [data-animate].is-visible { transform: none; }

    /* Pulsanti lunghi: vanno a capo invece di uscire dallo schermo */
    .btn { white-space: normal; max-width: 100%; text-align: center; }

    /* Spaziature verticali più compatte su mobile (sezioni da 128px a 72px) */
    :root { --space-3xl: 4.5rem; --space-2xl: 3.5rem; }

    /* Box "In sintesi": meno padding, testo a tutta larghezza */
    .blog-article__summary { padding: var(--space-md) var(--space-md) var(--space-sm); margin-bottom: var(--space-xl); }
    .blog-article { padding-top: var(--space-xl); }

    /* Tabelle cookie: su mobile ogni riga diventa una scheda leggibile */
    .legal-table { min-width: 0; }
    .legal-table thead { display: none; }
    .legal-table, .legal-table tbody, .legal-table tr, .legal-table td { display: block; width: 100%; }
    .legal-table tr { border: 1px solid var(--gray-100); border-radius: var(--radius); padding: 0.6rem 0.8rem; margin-bottom: 0.6rem; background: var(--white); }
    .legal-table td { border: 0; padding: 0.2rem 0; white-space: normal; }
    .legal-table td:first-child { font-size: 0.85rem; font-weight: 600; white-space: normal; }
    .legal-table td + td::before { font-family: var(--font-display); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-500); display: block; }
    .legal-table td:nth-child(2)::before { content: 'Fornitore'; }
    .legal-table td:nth-child(3)::before { content: 'Finalità'; }
    .legal-table td:nth-child(4)::before { content: 'Durata'; }

    /* Pulsante preferenze cookie: a destra e più piccolo, non copre testi e pulsanti allineati a sinistra */
    .cookie-ribbon { left: auto; right: 12px; bottom: 12px; height: 40px; min-width: 40px; padding: 0 11px; opacity: 0.8; }
}

/* Menu mobile aperto: la riga del logo ha sfondo pieno, le voci non le scorrono sotto */
.menu-open .site-header__inner { background: var(--black); }
/* Il pulsante cookie resta sotto header e menu mobile */
.cookie-ribbon { z-index: 998; }
/* Griglie a colonna singola: le colonne non si allargano oltre lo schermo */
.legal-trust__grid, .intro__grid, .svc-detail__grid, .feature__grid, .contact-grid { min-width: 0; }
.legal-trust__grid > *, .intro__grid > *, .svc-detail__grid > *, .feature__grid > * { min-width: 0; }
@media (max-width: 767px) {
    .legal-trust__grid { grid-template-columns: minmax(0, 1fr); }
    .trust-card > div:last-child { min-width: 0; }
    h1, h2, h3 { overflow-wrap: break-word; }
}
/* Aree di tocco più comode (minimo ~40px) per i link testuali su mobile */
@media (max-width: 767px) {
    .cta-topbar__link { padding-top: 9px; padding-bottom: 9px; }
    .breadcrumb__list a { display: inline-block; padding: 10px 0; }
    .link-arrow, .blog-card__link, .service-card__link { padding-top: 10px; padding-bottom: 10px; }
    .site-footer__links a, .site-footer__legal a, .site-footer__contact-list a { display: inline-block; padding-top: 6px; padding-bottom: 6px; }
}
@media (max-width: 767px) {
    /* Box CTA negli articoli e nel blog: più spazio per il pulsante */
    .blog-article__cta, .cta-band__inner { padding-left: var(--space-md); padding-right: var(--space-md); }
    .blog-article__cta .btn, .cta-band__inner .btn { width: 100%; }
}
/* Card "garanzie" (home): icona a sinistra, titolo e descrizione impilati a destra */
.trust-card { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: var(--space-md); row-gap: 0.25rem; align-items: start; }
.trust-card__icon { grid-row: span 2; }
.trust-card h3, .trust-card p { margin: 0; min-width: 0; }
@media (max-width: 767px) {
    .blog-article__related a { display: inline-block; padding: 6px 0; }
    .legal-page .blog-article__section li > a:only-child { display: inline-block; padding: 6px 0; }
}
/* Link WhatsApp nel footer (Reperibilità) */
.site-footer__hours p a { color: var(--wa-green); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.site-footer__hours p a:hover { color: #4be283; }
@media (max-width: 767px) { .site-footer__hours p a { display: inline-block; padding: 6px 0; } }
/* Footer: ragione sociale, P.IVA e autorizzazione prefettizia */
.site-footer__company p { margin: 0; }
.site-footer__company p + p { margin-top: 0.25rem; color: rgba(255, 255, 255, 0.45); }
.site-footer__nowrap { white-space: nowrap; }
@media (max-width: 767px) {
    .site-footer__sep { display: none; }
    .site-footer__company .site-footer__nowrap { display: block; }
    /* spazio in fondo perché il pulsante cookie non copra i link legali */
    .site-footer__bottom { padding-bottom: 72px; }
}


/* ═══════════════════════════════════════════════
   ACCESSIBILITÀ — contrasti WCAG AA (21/11/2026)
   ═══════════════════════════════════════════════ */
:root { --accent-on-dark: #e35156; }
.section-eyebrow--light,
.section-eyebrow--gold,
.site-footer__heading { color: var(--accent-on-dark); }
.section--light .section-eyebrow--gold { color: var(--accent); }
.site-footer__heading { line-height: 1.4; margin-top: 0; }
.site-footer__desc,
.site-footer__hours p,
.site-footer__bottom p,
.site-footer__legal a,
.site-footer__legal span { color: rgba(255, 255, 255, 0.6); }
.form-disclaimer { color: var(--gray-600); }
.intro__media picture { display: block; }
.site-footer__company p + p { color: rgba(255, 255, 255, 0.6); }

/* Contrasti pagina contatti e breadcrumb (21/11/2026) */
.contact-card p { color: var(--gray-600); }
.breadcrumb__list { color: var(--gray-500); }

/* ── Storia agenzia + trust hero (22/11/2026) ── */
a.hero__trust-item { text-decoration: none; color: inherit; }
a.hero__trust-item:hover strong { color: var(--accent); }
.history { padding: var(--space-3xl) 0; background: #f5f5f5; }
.history .section-header { max-width: 760px; margin: 0 auto var(--space-2xl); text-align: center; }
.history__timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-lg); position: relative; }
.history__timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 1.3rem; height: 1px; background: var(--gray-200); }
.history__item { position: relative; padding-top: 3.2rem; }
.history__item::before { content: ''; position: absolute; top: 0.95rem; left: 0; width: 0.75rem; height: 0.75rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px #fff; }
.history__year { position: absolute; top: 0; left: 1.4rem; font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; line-height: 1; color: var(--black); transform: translateY(-0.1rem); background: #f5f5f5; padding-right: 0.5rem; }
.history__item h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: 0.4rem; }
.history__item p { font-size: 0.92rem; color: var(--gray-600); line-height: 1.6; margin: 0; }
@media (max-width: 1023px) {
    .history__timeline { grid-template-columns: 1fr; gap: var(--space-md); padding-left: 1.6rem; }
    .history__timeline::before { left: 0.37rem; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
    .history__item { padding-top: 0; }
    .history__item::before { left: -1.6rem; top: 0.35rem; }
    .history__year { position: static; display: block; margin-bottom: 0.3rem; padding: 0; background: none; }
}
@media (max-width: 767px) {
    .hero__trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; width: 100%; }
    .hero__trust-divider { display: none; }
    .hero__trust-item strong { font-size: 0.95rem; letter-spacing: 0; }
    .hero__trust-item span { font-size: 0.72rem; display: block; line-height: 1.3; }
}
