/* ===================== HOME 2026 ===================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --red: #BE1818;
    --dark: #111111;
    --mid: #555555;
    --gray: #999999;
    --border: #e8e8e8;
    --light: #f6f6f6;
    --white: #ffffff;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Barlow', sans-serif;
    background: var(--white);
    color: var(--dark);
    overflow-x: hidden;
}

/* =====================
   NAV
===================== */
#nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 500;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 60px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
}

#nav.scrolled {
    border-bottom-color: transparent;
}

#nav.menu-open {
    z-index: 480;
}

/* Hamburger */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.hamburger span {
    display: block;
    height: 1.5px;
    background: var(--dark);
    transition: all 0.3s ease;
    transform-origin: center;
}

.hamburger span:first-child {
    width: 100%;
}

.hamburger span:nth-child(2) {
    width: 70%;
}

.hamburger span:last-child {
    width: 100%;
}

.hamburger:hover span {
    background: var(--red);
}

.hamburger:hover span:nth-child(2) {
    width: 100%;
}

/* =====================
   NAV OVERLAY — menu fullscreen
   ===================== */
.nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 490;
    background: #ffffff;
    pointer-events: none;
    visibility: hidden;
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.65s cubic-bezier(0.76, 0, 0.24, 1),
    visibility 0s linear 0.65s;
}

.nav-overlay.open {
    pointer-events: all;
    visibility: visible;
    clip-path: inset(0 0 0% 0);
    transition: clip-path 0.65s cubic-bezier(0.76, 0, 0.24, 1),
    visibility 0s linear 0s;
}

#menuCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.nav-menu-content {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 100px 80px 60px;
    gap: 0;
}

.nav-menu-links {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 0;
}

.nav-menu-item {
    display: flex;
    align-items: baseline;
    gap: 20px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
}

.nav-menu-item:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-item-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
    transform: translateX(-20px);
    opacity: 0;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.5s, color 0.25s;
}

.nav-item-label {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(25px, 3.15vw, 45px);
    font-weight: 800;
    color: rgba(0, 0, 0, 0.72);
    line-height: 1;
    transform: translateX(-30px);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.55s, color 0.25s;
}

.nav-menu-item:hover .nav-item-label {
    color: var(--red);
}

.nav-menu-item:hover .nav-item-num {
    color: var(--red);
}

/* Stagger voci */
.nav-menu-item:nth-child(1) .nav-item-num,
.nav-menu-item:nth-child(1) .nav-item-label {
    transition-delay: 0.18s;
}

.nav-menu-item:nth-child(2) .nav-item-num,
.nav-menu-item:nth-child(2) .nav-item-label {
    transition-delay: 0.24s;
}

.nav-menu-item:nth-child(3) .nav-item-num,
.nav-menu-item:nth-child(3) .nav-item-label {
    transition-delay: 0.30s;
}

.nav-menu-item:nth-child(4) .nav-item-num,
.nav-menu-item:nth-child(4) .nav-item-label {
    transition-delay: 0.36s;
}

.nav-menu-item:nth-child(5) .nav-item-num,
.nav-menu-item:nth-child(5) .nav-item-label {
    transition-delay: 0.42s;
}

.nav-overlay.open .nav-item-num,
.nav-overlay.open .nav-item-label {
    transform: translateX(0);
    opacity: 1;
}

/* Blocco info aziendali */
.nav-menu-info {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    padding-top: 32px;
    padding-bottom: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease 0.52s, transform 0.5s ease 0.52s;
}

.nav-overlay.open .nav-menu-info {
    opacity: 1;
    transform: translateY(0);
}

.nav-info-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: rgba(0, 0, 0, 0.3);
    margin-bottom: 6px;
}

.nav-info-name {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.35);
    margin-bottom: 8px;
}

.nav-info-address {
    font-size: 14px;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.45);
    margin-bottom: 0;
}

.nav-info-vat {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: rgba(0, 0, 0, 0.28);
    margin-bottom: 0;
}

/* Social icons */
.nav-social {
    display: flex;
    gap: 10px;
    margin-left: auto;
}

.nav-social-btn {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(0, 0, 0, 0.4);
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.nav-social-btn:hover {
    border-color: var(--red);
    color: var(--red);
    background: rgba(190, 24, 24, 0.06);
}

/* Close button */
.nav-overlay-close {
    position: absolute;
    top: 12px;
    right: 54px;
    z-index: 5;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: none;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 50%;
    color: rgba(0, 0, 0, 0.4);
    transition: opacity 0.4s ease 0.55s, transform 0.4s ease 0.55s, color 0.2s, border-color 0.2s;
    opacity: 0;
    transform: rotate(-90deg);
}

.nav-overlay.open .nav-overlay-close {
    opacity: 1;
    transform: rotate(0deg);
}

.nav-overlay-close:hover {
    color: var(--red);
    border-color: var(--red);
}

.nav-overlay-close svg {
    width: 14px;
    height: 14px;
}

/* Hamburger — diventa X quando aperto */
.hamburger span {
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.hamburger.active span:first-child {
    transform: translateY(6.5px) rotate(45deg);
    width: 100%;
}

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

.hamburger.active span:last-child {
    transform: translateY(-6.5px) rotate(-45deg);
    width: 100%;
}


/* =====================
   HERO — fullscreen locked
===================== */
.hero {
    position: relative;
    width: 100%;
     overflow: hidden;
    margin-top: 68px;
}

#neural { 
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.hero-left {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 30px 60px 30px;
    max-width: 660px;
    height: 100%;
    background: linear-gradient(
            to right,
            rgba(255, 255, 255, 0.97) 0%,
            rgba(255, 255, 255, 0.94) 55%,
            rgba(255, 255, 255, 0.0) 100%
    );
}

/* Claim: Archivo */
.hero h1 {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(35px, 4.6vw, 64px);
    font-weight: 700;
    line-height: 1.05;
    color: var(--dark);
    margin-bottom: 18px;
    opacity: 0;
    animation: fadeUp 0.9s cubic-bezier(.16, 1, .3, 1) forwards 0.2s;
}

.hero h1 em {
    font-style: normal;
    color: var(--red);
}

/* Payoff: Share Tech */
.hero-sub {
    font-family: 'Share Tech', monospace;
    font-size: clamp(17.6px, 1.65vw, 22px);
    font-weight: 400;
    color: #aaaaaa;
    margin-bottom: 22px;
    opacity: 0;
    animation: fadeUp 0.9s cubic-bezier(.16, 1, .3, 1) forwards 0.38s;
}

.hero-desc {
    font-size: 20px;
    line-height: 1.78;
    color: #666;
    max-width: 440px;
    margin-bottom: 52px;
    opacity: 0;
    animation: fadeUp 0.9s cubic-bezier(.16, 1, .3, 1) forwards 0.52s;
}

.hero-actions {
    display: flex;
    align-items: center;
    opacity: 0;
    animation: fadeUp 0.9s cubic-bezier(.16, 1, .3, 1) forwards 0.66s;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--red);
    color: white;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 14px 32px;
    text-decoration: none;
    transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.btn-primary:hover {
    opacity: 0.92;
    color: white;
    text-decoration: none;
    box-shadow: 0 10px 26px rgba(190, 24, 24, 0.18);
}

.btn-primary:focus,
.btn-primary:focus-visible {
    color: white;
    text-decoration: none;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: var(--dark);
    border: 2px solid rgba(15, 15, 15, 0.22);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 14px 32px;
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.btn-secondary:hover {
    background: rgba(15, 15, 15, 0.06);
    border-color: rgba(15, 15, 15, 0.35);
    color: var(--dark);
}

/* Trust strip */
.trust-strip {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    padding: 10px 60px 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: white;
    border-top: 1px solid var(--border);
    opacity: 0;
    animation: fadeUp 0.7s ease forwards 1.05s;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 28px 10px;
    border-right: 1px solid var(--border);
}

.trust-item:last-child {
    border-right: none;
}

/* Outer edges: evita padding doppio quando anche .trust-strip ha padding */
.trust-item:first-child {
    padding-left: 0;
}

.trust-item:last-child {
    padding-right: 0;
}

.trust-icon {
    width: 47px;
    height: 47px;
    background: var(--light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.trust-icon svg {
    width: 22px;
    height: 22px;
}

.trust-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dark);
    line-height: 1;
}

.trust-sub {
    font-size: 15px;
    color: #333333;
    margin-top: 2px;
}

.trust-sub a,
a.trust-sub {
    font-size: 15px;
    color: #333333;
}

/* Scroll indicator */
.scroll-cue {
    position: absolute;
    right: 52px;
    bottom: 90px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: fadeUp 0.6s ease forwards 1.2s;
}

.scroll-line {
    width: 1px;
    height: 52px;
    background: linear-gradient(to bottom, var(--gray), transparent);
    animation: pulse 2s ease-in-out infinite;
}

.scroll-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gray);
    writing-mode: vertical-rl;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.4
    }
    50% {
        opacity: 1
    }
}

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

.sy-container {
    position: relative;
    padding: 120px 60px;
    background: var(--white);
    overflow: hidden;
}

/* =====================
   SERVIZI
===================== */
.services {
    position: relative;
    padding: 120px 60px;
    background: var(--white);
    overflow: hidden;
}

/* Riduce lo stacco tra Trust strip (in HERO) e prima sezione */
.hero + .services {
    padding-top: 96px;
}

/* Pagine interne (es. Agenzia): prima sezione dopo HERO */
.hero + .sy-container {
    padding-top: 96px;
}

/* Agenzia: riduci padding verticale tra sezioni (match Home) */
section#intro.sy-container,
section#approccio.sy-container,
section#distingue.sy-container,
section#target.sy-container,
section#storia.sy-container,
section#team.sy-container {
    padding-top: 96px;
    padding-bottom: 96px;
}

/* Servizi: riduci padding verticale tra sezioni (match Home) */
.intro-manifesto.sy-container,
section#servizi.sy-container,
section#casi-di-successo.sy-container,
section#perche.sy-container,
section#metodo.sy-container {
    padding-top: 96px;
    padding-bottom: 96px;
}

.section-header {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 20px;
}

.sec-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.sec-eye-line {
    width: 22px;
    height: 1.5px;
    background: var(--red);
    flex-shrink: 0;
}

.sec-eye-text {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--red);
}

.sec-title {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(28px, 3.2vw, 46px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
}

.sec-title em {
    font-style: normal;
    color: var(--red);
}

.sec-count {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray);
}

.srv-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--border);
}

.srv-card {
    position: relative;
    background: var(--white);
    padding: 52px 48px 44px;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    cursor: pointer;
}

/* red fill from bottom */
.srv-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--red);
    transform: translateY(101%);
    transition: transform 0.55s cubic-bezier(.16, 1, .3, 1);
    z-index: 0;
}

.srv-card.is-touch-hover::after,
.srv-card:active::after {
    transition-duration: 0.18s;
}

.srv-card:hover::after,
.srv-card.is-touch-hover::after,
.srv-card:active::after {
    transform: translateY(0);
}

.srv-card > * {
    position: relative;
    z-index: 1;
}

.srv-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--red);
    transition: color 0.25s;
}

.srv-card:hover .srv-num,
.srv-card.is-touch-hover .srv-num,
.srv-card:active .srv-num {
    color: rgba(255, 255, 255, 0.5);
}

.srv-name {
    font-family: 'Barlow', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
    transition: color 0.25s;
}

.srv-card:hover .srv-name,
.srv-card.is-touch-hover .srv-name,
.srv-card:active .srv-name {
    color: white;
}

.srv-desc {
    font-size: 16px;
    line-height: 1.72;
    color: var(--mid);
    transition: color 0.25s;
}

.srv-card:hover .srv-desc,
.srv-card.is-touch-hover .srv-desc,
.srv-card:active .srv-desc {
    color: rgba(255, 255, 255, 0.82);
}

.srv-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    text-decoration: none;
    margin-top: auto;
    transition: color 0.25s, gap 0.2s;
}

.srv-card:hover .srv-more,
.srv-card.is-touch-hover .srv-more,
.srv-card:active .srv-more {
    color: white;
    gap: 14px;
}

.srv-ghost-n {
    position: absolute;
    bottom: -16px;
    right: 16px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 140px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.05em;
    color: #f0f0f0;
    pointer-events: none;
    transition: color 0.25s;
    z-index: 0;
}

.srv-card:hover .srv-ghost-n,
.srv-card.is-touch-hover .srv-ghost-n,
.srv-card:active .srv-ghost-n {
    color: rgba(255, 255, 255, 0.07);
}

/* =====================
   PERCHÉ SYNTHETIC LAB
===================== */
.why {
    position: relative;
    padding: 120px 60px;
    background: var(--white);
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.why-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 24px;
}

.why-header-left p {
    font-size: 16px;
    line-height: 1.76;
    color: var(--mid);
    max-width: 380px;
    margin-top: 16px;
}

.why-header-right .sec-title {
    text-align: left;
    /*color: var(--red);*/
}

.why-cards {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border);
}

.why-card {
    padding: 36px 32px 32px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    transition: background 0.25s;
    cursor: default;
}

.why-card:nth-child(3n) {
    border-right: none;
}

.why-card:nth-last-child(-n+3) {
    border-bottom: none;
}

.why-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.36s ease;
}

.why-card:hover {
    background: #fafafa;
}

.why-card:hover::after {
    transform: scaleX(1);
}

.why-card-body {
    margin-bottom: 24px;
}

.why-card-title {
    font-family: 'Barlow', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.2;
}

.why-card-title span {
    color: var(--red);
}

.why-card-desc {
    font-size: 15px;
    line-height: 1.68;
    color: var(--mid);
}

.why-card-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--border);
    color: var(--red);
    font-size: 13px;
    transition: background 0.2s, color 0.2s;
    text-decoration: none;
}

.why-card:hover .why-card-arrow {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

/* =====================
   METODO — sticky right
===================== */
.method {
    position: relative;
    padding: 120px 60px;
    background: #f9f9f9;
    border-top: 1px solid var(--border);
    /* Necessario perché `main.css` imposta `section { overflow: hidden; }`
       e questo può impedire a `position: sticky` di funzionare correttamente. */
    overflow: visible;
    overflow-x: clip;
}

/* =====================================================
   STICKY SECTIONS (pages: Agenzia / Servizi)
   Alcune sezioni usano `section.sy-container` senza classi dedicate.
   `main.css` imposta `section { overflow: hidden; }` e può rompere lo sticky:
   qui abilitiamo overflow visible solo sulle sezioni interessate.
   ===================================================== */

section#approccio,
section#storia,
section#metodo {
    overflow: visible;
    overflow-x: clip;
}

.approach-layout,
.storia-layout {
    overflow: visible;
}

.method-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 80px;
    align-items: start;
    overflow: visible;
}

.method-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.method-left .sec-eyebrow {
    margin-bottom: 48px;
}

.m-step {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 24px;
    padding: 48px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}

.m-step:first-of-type {
    border-top: 1px solid var(--border);
}

.m-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 72px;
    font-weight: 700;
    color: #dedede;
    line-height: 1;
    letter-spacing: -0.04em;
}

.m-title {
    font-family: 'Barlow', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 10px;
    margin-top: 10px;
}

.m-desc {
    font-size: 16px;
    line-height: 1.76;
    color: var(--mid);
}

/* Left: sticky card */
.method-sticky {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 48px 40px;
}

.ms-tag {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 24px;
}

.ms-title {
    font-family: 'Barlow', sans-serif;
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 16px;
}

.ms-title em {
    font-style: normal;
    color: var(--red);
}

.ms-desc {
    font-size: 15px;
    line-height: 1.76;
    color: var(--mid);
    padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 24px;
}

.ms-list {
    display: flex;
    flex-direction: column;
}

.ms-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: padding-left 0.2s;
}

.ms-row:last-child {
    border-bottom: none;
}

.ms-row:hover {
    padding-left: 5px;
}

.ms-n {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--gray);
    width: 20px;
    flex-shrink: 0;
}

.ms-t {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mid);
    flex: 1;
    transition: color 0.2s;
}

.ms-row:hover .ms-t {
    color: var(--red);
}

.ms-arr {
    font-size: 12px;
    color: var(--border);
    transition: color 0.2s, transform 0.2s;
}

.ms-row:hover .ms-arr {
    color: var(--red);
    transform: translateX(4px);
}

/* =====================
   PROGETTI
===================== */
.projects {
    position: relative;
    padding: 120px 60px;
    background: var(--white);
    border-top: 1px solid var(--border);
    overflow: hidden;
    isolation: isolate;
}

.proj-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border);
    margin-top: 0;
}

.proj-card {
    background: var(--white);
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    overflow: hidden;
    min-height: 320px;
    cursor: pointer;
    transition: background 0.2s;
}

.proj-card:hover {
    background: #fefefe;
}

.proj-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.38s ease;
}

.proj-card:hover::before {
    transform: scaleX(1);
}

.proj-tag {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(190, 24, 24, 0.07);
    padding: 5px 10px;
    width: fit-content;
}

.proj-name {
    font-family: 'Barlow', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
}

.proj-media {
    width: 100%;
    margin: 2px 0 0;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid var(--border);
}

.proj-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.proj-desc {
    font-size: 15px;
    line-height: 1.7;
    color: var(--mid);
}

.proj-result {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.proj-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 38px;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
    flex-shrink: 0;
}

.proj-result-label {
    font-size: 15px;
    line-height: 1.5;
    color: #666666;
    padding-top: 4px;
}

.proj-cta-wrap {
    margin-top: 52px;
    text-align: center;
}

.proj-dots {
    display: none;
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 2px solid var(--dark);
    color: var(--dark);
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 13px 36px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: var(--dark);
    color: white;
}

/* =====================
   STACK
===================== */
.stack {
    position: relative;
    padding: 120px 60px;
    background: var(--light);
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.stack-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2px;
    background: var(--border);
    margin-top: 60px;
}

.stack-item {
    background: var(--white);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    min-height: 96px;
    transition: background 0.2s;
}

.stack-item:hover {
    background: var(--light);
}

.stack-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
    transition: color 0.2s;
}

.stack-item:hover .stack-name {
    color: var(--dark);
}

.stack-icon {
    font-size: 22px;
    line-height: 1;
    color: #ccc;
    transition: color 0.2s;
}

.stack-item:hover .stack-icon {
    color: var(--red);
}

/* =====================
   FOOTER ROSSO + DARK
===================== */
.footer-red {
    background: #b71515;
    padding: 72px 60px 80px;
}

.footer-red-inner {
    display: grid;
    grid-template-columns: 1fr 1.8fr 0.55fr;
    gap: 60px;
    align-items: start;
}

.fr-title {
    font-family: 'Barlow', sans-serif;
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.08;
    color: white;
    margin-bottom: 20px;
}

.fr-desc {
    font-size: 15px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.80);
    margin-bottom: 32px;
}

.fr-contacts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fr-contact {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: color 0.2s;
    line-height: 1.6;
}

.fr-contact:hover {
    color: white;
    text-decoration: underline;
}

.fr-form-col {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    min-width: 0;
}

#footerContactForm {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#frFormWrap {
    width: 100%;
    min-width: 0;
}

.form-field {
    margin-bottom: 16px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.75) !important;
    color: white;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: white !important;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: rgba(255, 255, 255, 0.65);
    font-size: 10px;
    letter-spacing: 0.18em;
}

.form-field textarea {
    resize: none;
    height: 110px;
}

/* Ultimo campo prima del blocco consenso+invio: meno vuoto sotto la textarea */
#footerContactForm .form-field:last-of-type {
    margin-bottom: 10px;
}

/* Blocco unico: privacy → errore → pulsante → nota reCAPTCHA (stessa larghezza dei campi) */
.fr-form-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

.fr-form-error {
    display: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px 16px 10px 13px;
    box-sizing: border-box;
    font-family: 'Barlow', sans-serif;
    font-size: 0.875rem;
    line-height: 1.45;
    text-align: left;
    color: #fff;
    background: rgba(0, 0, 0, 0.28);
    border-left: 3px solid rgba(255, 255, 255, 0.95);
    border-radius: 0 3px 3px 0;
}

/* Privacy checkbox — footer rosso (specificità .nf-privacy-check.fr-privacy-check vince sulle regole generiche più sotto) */
.nf-privacy-check.fr-privacy-check {
    margin: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    align-items: flex-start;
}

.nf-privacy-check.fr-privacy-check .nf-check-box {
    flex-shrink: 0;
    margin-top: 2px;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.9);
    background: rgba(0, 0, 0, 0.15);
}

.nf-privacy-check.fr-privacy-check .nf-check-text {
    flex: 1;
    min-width: 0;
    color: rgba(255, 255, 255, 0.88);
}

.nf-privacy-check.fr-privacy-check .nf-check-text a {
    color: rgba(255, 255, 255, 0.95);
}

.nf-privacy-check.fr-privacy-check .nf-check-text a:hover {
    color: white;
}

.nf-privacy-check.fr-privacy-check .nf-req {
    color: rgba(255, 255, 255, 0.95);
}

.nf-privacy-check.fr-privacy-check input:checked ~ .nf-check-box {
    border-color: #ffffff;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(26, 26, 26, 0.45), 0 2px 8px rgba(0, 0, 0, 0.25);
}

.nf-privacy-check.fr-privacy-check input:checked ~ .nf-check-box::after {
    border-color: #0d0d0d;
}

/* Spunta centrata nel box (footer) */
.nf-privacy-check.fr-privacy-check .nf-check-box::after {
    left: 50%;
    top: 50%;
    transform: translate(-50%, -62%) rotate(45deg) scaleY(0);
    transform-origin: center center;
}

.nf-privacy-check.fr-privacy-check input:checked ~ .nf-check-box::after {
    transform: translate(-50%, -62%) rotate(45deg) scaleY(1);
}

.fr-form-footer .btn-send {
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    justify-content: center;
    box-sizing: border-box;
}

.btn-send {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: transparent;
    color: white;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    padding: 14px 28px;
    border: 1px solid white;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    width: fit-content;
    margin-top: 4px;
}

.btn-send:hover {
    background: white;
    color: #b71515;
}

/* Footer form — stato successo */
#frFormSuccess {
    color: white;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fr-success-icon {
    width: 44px;
    height: 44px;
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.fr-success-icon svg {
    width: 18px;
    height: 18px;
    stroke: white;
}

.fr-success-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: white;
}

.fr-success-text {
    font-size: 0.88rem;
    line-height: 1.65;
    color: rgba(255,255,255,0.75);
    margin: 0;
}

/* Footer form — reCaptcha */
.fr-recaptcha-wrap {
    margin-bottom: 16px;
    transform-origin: left top;
}

/* reCAPTCHA notice (policy-friendly) */
.sy-recaptcha-notice {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.75);
}

.sy-recaptcha-notice a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}

.sy-recaptcha-notice a:hover {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}

/* Variante su sfondi chiari (es. form contatti 2026) */
.sy-recaptcha-notice--light {
    color: rgba(20, 20, 20, 0.7);
}

.sy-recaptcha-notice--light a {
    color: rgba(20, 20, 20, 0.92);
}

.sy-recaptcha-notice--light a:hover {
    color: rgba(20, 20, 20, 0.92);
    text-decoration: none;
    opacity: 0.85;
}

/* reCAPTCHA v3: badge spostato in .sy-grecaptcha-badge-host (new-js-2026) — visibile nel flusso del form */
.sy-grecaptcha-badge-host {
    margin-top: 12px;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
    min-height: 0;
}

.sy-grecaptcha-badge-host .grecaptcha-badge,
.footer-red .grecaptcha-badge {
    position: relative !important;
    right: auto !important;
    bottom: auto !important;
    top: auto !important;
    left: auto !important;
    box-shadow: none !important;
}

.contact-form-col .sy-grecaptcha-badge-host .grecaptcha-badge {
    transform: scale(0.92);
    transform-origin: left top;
}

/* reCAPTCHA v3: badge nascosto a vista (sr-only) su footer default e pagina Contatti — testo legale in .sy-recaptcha-notice; no display:none per AT */
.nf-footer {
    position: relative;
}

.footer-red .sy-grecaptcha-badge-host--sr-only,
.contact-form-col .sy-grecaptcha-badge-host--sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.footer-red .sy-grecaptcha-badge-host--sr-only .grecaptcha-badge,
.contact-form-col .sy-grecaptcha-badge-host--sr-only .grecaptcha-badge {
    position: absolute !important;
    inset: 0 auto auto 0 !important;
    transform: none !important;
    box-shadow: none !important;
}

.fr-social-col {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.fr-social-label {
    font-family: 'Barlow', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.fr-social-icons {
    display: flex;
    gap: 12px;
}

.fr-social-btn {
    width: 42px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    transition: all 0.2s;
}

.fr-social-btn:hover {
    border-color: white;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.footer-dark {
    background: #222222;
    padding: 24px 60px;
}

.footer-dark-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
}

.footer-dark-row {
    display: flex;
    align-items: center;
    width: 100%;
}

.footer-dark-row--top {
    position: relative;
    justify-content: space-between;
    flex-wrap: nowrap;
}

.footer-dark-row--bottom {
    justify-content: center;
}

.footer-logo-dark {
    flex: 0 0 auto;
    width: 120px; /* stabilizza la larghezza del logo per centratura nav */
    height: 18px;
}

.footer-dark-row--top .footer-nav {
    /* Centra perfettamente al centro della riga, indipendentemente dalla larghezza dei due lati */
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    max-width: calc(100% - 240px);
    width: auto;
    flex: 0 0 auto;
}

.footer-nav {
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    justify-content: center;
    flex: 1 1 auto;
    min-width: 0;
}

.footer-nav a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    padding: 4px 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
    transition: color 0.2s;
}

.footer-nav a:first-child {
    padding-left: 0;
}

.footer-nav a:last-child {
    border-right: none;
}

.footer-nav a:hover {
    color: white;
}

.footer-copy {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.35);
    white-space: nowrap;
}

.footer-legal {
    display: flex;
    gap: 0;
    flex: 0 0 auto;
}

.footer-legal a {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    padding: 4px 14px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s;
}

.footer-legal a:last-child {
    border-right: none;
    padding-right: 0;
}

.footer-legal a:hover {
    color: white;
}

/* =====================================================
   MOBILE — 768px
   ===================================================== */
@media (max-width: 768px) {

    #nav {
        padding: 0 20px;
        height: 56px;
    }

    .hero {
        height: auto;
        min-height: auto;
        display: flex;
        flex-direction: column;
    }

    .hero-left {
        padding: 24px;
        max-width: 100%;
        flex: 0 0 auto;
        height: auto;
        min-height: 0;
        background: linear-gradient(
                to bottom,
                rgba(255, 255, 255, 0.97) 0%,
                rgba(255, 255, 255, 0.94) 70%,
                rgba(255, 255, 255, 0.0) 100%
        );
    }

    .trust-strip {
        position: static;
        grid-template-columns: repeat(2, 1fr);
        padding: 10px 24px 10px;
        border-top: 1px solid var(--border);
        animation: none;
        opacity: 1;
    }

    .hero h1 {
        font-size: clamp(32px, 9vw, 46px);
        margin-bottom: 14px;
    }

    .hero-sub {
        font-size: 20px !important;
        margin-bottom: 16px;
    }

    .hero-desc {
        font-size: 17px;
        margin-bottom: 36px;
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        gap: 12px;
    }

    .btn-primary, .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 14px 24px;
    }

    .trust-item {
        padding: 10px 16px 10px;
        border-right: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
    }

    /* Outer edges */
    .trust-item:first-child {
        padding-left: 0;
    }

    .trust-item:last-child {
        padding-right: 0;
    }

    /* 2 colonne: azzera i padding sui bordi di riga (1°/3° a sinistra, 2°/4° a destra) */
    .trust-item:nth-child(odd) {
        padding-left: 0;
    }

    .trust-item:nth-child(even) {
        padding-right: 0;
    }

    .trust-item:nth-child(2n) {
        border-right: none;
    }

    .trust-item:nth-child(3),
    .trust-item:nth-child(4) {
        border-bottom: none;
    }

    .scroll-cue {
        display: none;
    }

    .services,
    .why,
    .method,
    .projects,
    .stack,
    .sy-container {
        padding: 72px 24px;
    }

    .hero + .services {
        padding-top: 56px;
    }

    .hero + .sy-container {
        padding-top: 56px;
    }

    section#intro.sy-container,
    section#approccio.sy-container,
    section#distingue.sy-container,
    section#target.sy-container,
    section#storia.sy-container,
    section#team.sy-container {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .intro-manifesto.sy-container,
    section#servizi.sy-container,
    section#casi-di-successo.sy-container,
    section#perche.sy-container,
    section#metodo.sy-container {
        padding-top: 56px;
        padding-bottom: 56px;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 40px;
    }

    .sec-title {
        font-size: clamp(26px, 7vw, 38px);
    }

    .sec-link {
        align-self: flex-start;
    }

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

    .srv-card {
        padding: 36px 28px 32px;
    }

    .srv-num {
        font-size: 12px;
    }

    .why-header-right {
        order: 0;
    }

    .why-header-left {
        order: 1;
    }

    .why-carousel-wrap {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .why-cards {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: visible;
        gap: 0;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin: 0 -24px;
        padding: 0;
    }

    .why-cards::-webkit-scrollbar {
        display: none;
    }

    .why-card {
        flex: 0 0 100%;
        max-width: none;
        min-width: 0;
        scroll-snap-align: start;
        border-right: 1px solid var(--border) !important;
        border-bottom: none !important;
        margin-right: 0;
    }

    .why-card:last-child {
        border-right: none !important;
    }

    .why-card:nth-child(3n) {
        border-right: 1px solid var(--border) !important;
    }

    .why-card:nth-last-child(-n+3) {
        border-bottom: none !important;
    }

    .why-card:last-child {
        border-right: none !important;
    }

    .why-dots {
        display: flex;
        justify-content: center;
        gap: 12px;
        padding: 4px 0;
    }

    .why-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--border);
        transition: background 0.25s, transform 0.25s;
        flex-shrink: 0;
    }

    .why-dot.active {
        background: var(--red);
        transform: scale(1.2);
    }

    .method-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .method-sticky {
        display: none;
    }

    .method-left {
        display: flex;
        flex-direction: column;
    }

    .method-left .sec-eyebrow {
        margin-bottom: 28px;
    }

    .m-step {
        grid-template-columns: 52px 1fr;
        gap: 16px;
        padding: 28px 0;
    }

    .m-num {
        font-size: 48px;
        line-height: 1;
    }

    .m-title {
        font-size: 16px;
        margin-top: 6px;
        margin-bottom: 8px;
    }

    .m-desc {
        font-size: 14px;
        line-height: 1.68;
    }

    .proj-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
        background: transparent;
        margin-top: 0;
        border-top: 1px solid var(--border);
    }

    .proj-card {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 40px 0 20px;
        min-height: unset;
        border-bottom: 1px solid var(--border);
        background: transparent !important;
    }

    .proj-card::before {
        display: none;
    }

    .proj-tag {
        width: 100%;
        font-size: 9px;
    }

    .proj-name {
        width: 100%;
        font-size: 19px;
        font-weight: 800;
        line-height: 1.15;
    }

    .proj-desc {
        display: block;
        width: 100%;
        margin: 0;
    }

    .proj-result {
        width: 100%;
        width: 100%;
        margin-top: 8px;
        padding-top: 16px;
        border-top: 1px solid var(--border);
        min-height: unset;
        align-items: flex-start;
        justify-content: flex-start;
        text-align: left;
    }

    .proj-num {
        font-size: 28px;
        line-height: 1;
    }

    .proj-result-label {
        font-size: 15px;
        line-height: 1.4;
        text-align: left;
    }

    .proj-cta-wrap {
        margin-top: 32px;
    }

    /* Dopo il metodo: evita sovrapposizioni percepita con la griglia progetti (home / servizi) */
    .method + .projects,
    section.method + section.sy-container.projects {
        position: relative;
        z-index: 1;
        padding-top: 80px;
    }

    .projects .section-header {
        position: relative;
        z-index: 2;
    }

    .stack-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-red {
        padding: 56px 24px 64px;
    }

    .footer-red .btn-send {
        width: 100%;
        max-width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }

    .footer-red--reviews .fr-title {
        font-size: clamp(22px, 6.2vw, 32px);
        overflow-wrap: anywhere;
    }

    .footer-red-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fr-social-col {
        flex-direction: row;
        align-items: center;
        gap: 20px;
    }

    .footer-dark {
        padding: 20px 24px;
    }

    .footer-dark-inner {
        gap: 16px;
        text-align: center;
    }

    .footer-dark-row--top {
        position: static;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .footer-dark-row--top .footer-nav {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin: 0;
        justify-content: center;
        flex-wrap: wrap;
        align-content: center;
        align-items: center;
        gap: 0;
        row-gap: 6px;
        overflow-x: visible;
        mask-image: none;
        min-width: 0;
    }

    .footer-nav {
        justify-content: center;
    }

    .footer-logo-dark {
        margin: 0 auto;
    }

    .footer-legal {
        margin: 0;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-legals {
        margin: 0;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-dark-row--bottom {
        width: 100%;
        justify-content: center;
    }

    .footer-copy {
        text-align: center;
    }

    .footer-nav a {
        padding: 6px 10px;
        flex: 0 1 auto;
        white-space: nowrap;
        max-width: 100%;
        box-sizing: border-box;
    }

    .nav-menu-content {
        padding: 80px 28px 40px;
        flex-direction: column;
        justify-content: space-between;
        gap: 0;
    }

    .nav-menu-info {
        width: 100%;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding-top: 24px;
        padding-bottom: 0;
    }

    .nav-social {
        margin-left: 0;
        margin-top: 16px;
    }

    .nav-item-label {
        font-size: clamp(20px, 6.3vw, 29px);
    }

    .nav-menu-item {
        padding: 14px 0;
    }

    .nav-overlay-close {
        top: 6px;
        right: 14px;
    }
}

/* Extra small: 390px */
@media (max-width: 390px) {
    .hero h1 {
        font-size: 30px;
    }

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

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

/* =====================================================
   TABLET / SMALL LAPTOP — 769px – 1024px
   ===================================================== */
@media (min-width: 769px) and (max-width: 1024px) {

    #nav {
        padding: 0 36px;
    }

    .nav-overlay-close {
        top: 12px;
        right: 30px;
    }

    #nav a svg {
        height: 30px;
        width: auto;
    }

    .trust-item {
        gap: 18px;
        padding: 10px 36px 10px;
    }

    /* Outer edges */
    .trust-item:first-child {
        padding-left: 0;
    }

    .trust-item:last-child {
        padding-right: 0;
    }

    .trust-icon {
        width: 62px;
        height: 62px;
    }

    .trust-icon svg {
        width: 29px;
        height: 29px;
    }

    .trust-label {
        font-size: 17px;
    }

    .trust-sub {
        font-size: 15px;
    }

    .services, .why, .method, .projects, .stack, .sy-container {
        padding: 80px 36px;
    }

    .hero + .services {
        padding-top: 64px;
    }

    .hero + .sy-container {
        padding-top: 64px;
    }

    section#intro.sy-container,
    section#approccio.sy-container,
    section#distingue.sy-container,
    section#target.sy-container,
    section#storia.sy-container,
    section#team.sy-container {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .intro-manifesto.sy-container,
    section#servizi.sy-container,
    section#casi-di-successo.sy-container,
    section#perche.sy-container,
    section#metodo.sy-container {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .footer-red-inner {
        padding: 64px 36px;
    }

    .footer-dark-inner {
        padding: 20px 36px;
    }

    .hero-left {
        padding: 30px 36px 30px;
    }

    .trust-strip {
        padding: 10px 36px 10px;
    }

    .hero h1 {
        font-size: clamp(36px, 6vw, 52px);
    }

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

    .why-header {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 40px;
    }

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

    .why-card:nth-child(3n) {
        border-right: 1px solid var(--border);
    }

    .why-card:nth-last-child(-n+3) {
        border-bottom: 1px solid var(--border);
    }

    .why-card:nth-child(2n) {
        border-right: none;
    }

    .why-card:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .method-layout {
        grid-template-columns: 280px 1fr;
        gap: 48px;
    }

    .method-sticky {
        padding: 32px 28px;
    }

    .ms-title {
        font-size: 24px;
    }

    .stack-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-red-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .fr-social-col {
        display: none;
    }

    .footer-dark-inner {
        gap: 16px;
    }
}

/* =====================================================
   TABLET — 769px – 1023px (riduzione trust strip)
   ===================================================== */
@media (min-width: 769px) and (max-width: 1023px) {
    .trust-item {
        align-items: flex-start;
        gap: 14px;
        padding: 10px 24px 10px;
    }

    .trust-icon {
        width: 54px;
        height: 54px;
    }

    .trust-icon svg {
        width: 25px;
        height: 25px;
    }

    .trust-label {
        font-size: 15px;
    }

    .trust-sub {
        font-size: 15px;
    }

    .trust-strip {
        padding: 10px 24px 10px;
    }

    /* Footer dark (mobile layout fino a 1023px): 4 righe centrate */
    .footer-dark-row--top {
        position: static;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .footer-dark-row--top .footer-nav {
        position: static;
        transform: none;
        width: 100%;
        max-width: 100%;
        margin: 0;
        justify-content: center;
        flex-wrap: wrap;
        align-content: center;
        align-items: center;
        gap: 0;
        row-gap: 6px;
        overflow-x: visible;
        mask-image: none;
        min-width: 0;
    }

    .footer-nav {
        justify-content: center;
    }

    .footer-logo-dark {
        margin: 0 auto;
    }

    .footer-legal {
        margin: 0;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-legals {
        margin: 0;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .footer-dark-row--bottom {
        width: 100%;
        justify-content: center;
    }

    .footer-copy {
        text-align: center;
    }

    .footer-nav a {
        flex: 0 1 auto;
        white-space: nowrap;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* =====================================================
   PROGETTI CAROUSEL — 769px–1280px
   ===================================================== */
@media (min-width: 769px) and (max-width: 1280px) {
    .proj-carousel-wrap {
        position: relative;
        overflow: hidden;
        margin-top: 0;
    }

    .proj-grid {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 2px;
        background: transparent;
        margin-top: 0;
    }

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

    .proj-card {
        flex: 0 0 calc(50% - 24px);
        min-width: calc(50% - 24px);
        scroll-snap-align: start;
        border: 1px solid var(--border);
    }

    .proj-dots {
        display: flex;
        justify-content: center;
        gap: 12px;
        padding: 20px 0 4px;
    }

    .proj-dot {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: var(--border);
        transition: background 0.25s, transform 0.25s;
        flex-shrink: 0;
        cursor: pointer;
    }

    .proj-dot.active {
        background: var(--red);
        transform: scale(1.2);
    }
}

/* =====================================================
   LARGE / HI-DPI — 1920px+
   ===================================================== */
@media (min-width: 1920px) {

    #nav {
        padding: 0 max(60px, calc((100vw - 1600px) / 2));
    }

    .nav-overlay-close {
        top: 12px;
        right: calc(max(60px, calc((100vw - 1600px) / 2)) - 6px);
    }

    .services, .why, .method, .projects, .stack, .sy-container {
        padding: 140px max(60px, calc((100vw - 1600px) / 2));
    }

    .hero-left {
        padding-left: max(60px, calc((100vw - 1600px) / 2));
        padding-right: 60px;
        padding-top: 30px;
        padding-bottom: 30px;
        max-width: 51vw;
    }

    .trust-strip {
        padding-left: max(60px, calc((100vw - 1600px) / 2));
        padding-right: 60px;
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .footer-red-inner {
        padding-left: max(60px, calc((100vw - 1600px) / 2));
        padding-right: max(60px, calc((100vw - 1600px) / 2));
    }

    .footer-dark-inner {
        padding-left: max(60px, calc((100vw - 1600px) / 2));
        padding-right: max(60px, calc((100vw - 1600px) / 2));
    }

    .hero h1 {
        font-size: clamp(52px, 4.2vw, 70px);
    }

    .sec-title {
        font-size: clamp(38px, 3vw, 56px);
    }

    .hero-desc {
        font-size: 18px;
        max-width: 680px;
    }

    #nav a svg {
        height: 34px !important;
        width: auto;
    }

    .trust-item {
        padding: 10px 42px 10px;
        gap: 21px;
    }

    /* Outer edges */
    .trust-item:first-child {
        padding-left: 0;
    }

    .trust-item:last-child {
        padding-right: 0;
    }

    .trust-icon {
        width: 71px;
        height: 71px;
    }

    .trust-icon svg {
        width: 33px;
        height: 33px;
    }

    .trust-label {
        font-size: 19px;
    }

    .trust-sub {
        font-size: 16px;
    }

    .srv-grid {
        gap: 0;
    }

    .srv-card {
        padding: 52px 44px;
    }

    .srv-name {
        font-size: 28px;
    }

    .srv-desc {
        font-size: 18px;
    }

    .why-card-desc {
        font-size: 18px;
    }

    .why-header-left p {
        font-size: 18px;
    }

    .why-card-title {
        font-size: 21px;
    }

    .why-header-right .sec-title {
        color: var(--dark);
        font-size: clamp(28px, 3.2vw, 46px);
    }

    .why-header-right .sec-title em {
        color: var(--red);
    }

    .ms-desc {
        font-size: 18px;
    }

    .ms-t {
        font-size: 16px;
    }

    .m-title {
        font-size: 21px;
    }

    .m-desc {
        font-size: 18px;
    }

    .fr-desc {
        font-size: 18px;
    }

    .footer-nav a {
        font-size: 13px;
    }

    .scroll-cue {
        bottom: 140px;
    }

    .nav-menu-content {
        padding: 100px max(80px, calc((100vw - 1600px) / 2)) 80px;
    }

    .nav-menu-info {
        gap: 60px;
    }

    .proj-name {
        font-size: 21px;
    }

    .proj-desc {
        font-size: 17px;
    }

    .proj-result-label {
        font-size: 15px;
        padding-top: 0;
    }

    .proj-result {
        align-items: center;
    }

    .method-layout {
        grid-template-columns: 440px 1fr;
        gap: 100px;
    }

    .stack-item {
        padding: 36px 28px;
    }
}

/* =====================================================
   AGENZIA / CHI SIAMO 2026
   ===================================================== */

/* ── HERO INTERNA ── */
.hero-inner {
    position: relative;
    width: 100%;
    height: 65vh;
    min-height: 420px;
    overflow: hidden;
}

.hero-inner-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 68px 60px 60px;
    width: 100%;
    height: 100%;
    max-width: 760px;
    background: linear-gradient(to right, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.90) 55%, rgba(255, 255, 255, 0.0) 100%);
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    opacity: 0;
    animation: fadeUp 0.7s cubic-bezier(.16, 1, .3, 1) forwards 0.2s;
}

.hero-inner h1 {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(32px, 4.0vw, 56px);
    font-weight: 700;
    line-height: 1.05;
    color: var(--dark);
    margin-bottom: 14px;
    opacity: 0;
    animation: fadeUp 0.9s cubic-bezier(.16, 1, .3, 1) forwards 0.3s;
}

.hero-inner h1 em {
    font-style: normal;
    color: var(--red);
}

.hero-sub {
    font-family: 'Share Tech', monospace;
    font-size: clamp(15px, 1.4vw, 25px);
    color: #aaaaaa;
    opacity: 0;
    animation: fadeUp 0.9s cubic-bezier(.16, 1, .3, 1) forwards 0.45s;
}

/* ── INTRO ── */
.intro {
    position: relative;
    padding: 80px 60px 0;
    background: var(--white);
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.intro-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    padding: 60px 0 100px;
    border-top: 1px solid var(--border);
    margin-top: 52px;
}

/* Agenzia: `#intro` usa `section.sy-container`, quindi evitiamo doppio spacing interno */
section#intro.sy-container .intro-layout {
    padding: 0;
    border-top: 0;
    margin-top: 0;
}

.intro-text p {
    font-size: 16px;
    line-height: 1.78;
    color: var(--mid);
    margin-bottom: 8px;
}

.intro-text p:last-child {
    margin-bottom: 0;
}

.intro-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--border);
}

.stat-item {
    background: var(--white);
    padding: 36px 32px;
    position: relative;
    overflow: hidden;
}

.stat-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.36s ease;
}

.stat-item:hover::after {
    transform: scaleX(1);
}

.stat-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 52px;
    font-weight: 700;
    color: var(--red);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-num sup {
    font-size: 24px;
}

.stat-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray);
    margin-top: 6px;
}

/* ── APPROCCIO ── */
.approach {
    position: relative;
    padding: 100px 60px;
    background: #f9f9f9;
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.approach-layout {
    display: grid;
    grid-template-columns: 360px 1fr;
    gap: 80px;
    align-items: start;
}

.approach-sticky {
    position: sticky;
    top: 100px;
    background: var(--white);
    border: 1px solid var(--border);
    padding: 48px 40px;
}

.as-tag {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 24px;
}

.as-title {
    font-family: 'Barlow', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.1;
    margin-bottom: 14px;
}

.as-title em {
    font-style: normal;
    color: var(--red);
}

.as-desc {
    font-size: 15px;
    line-height: 1.76;
    color: var(--mid);
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.as-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.as-tag-pill {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--red);
    background: rgba(190, 24, 24, 0.07);
    padding: 5px 10px;
}

.approach-right {
    display: flex;
    flex-direction: column;
}

.a-step {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 24px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
}

.a-step:first-of-type {
    border-top: 1px solid var(--border);
}

.a-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 72px;
    font-weight: 700;
    color: #dedede;
    line-height: 1;
    letter-spacing: -0.04em;
}

.a-title {
    font-family: 'Barlow', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--red);
    margin-bottom: 10px;
    margin-top: 10px;
}

.a-desc {
    font-size: 16px;
    line-height: 1.76;
    color: var(--mid);
}

/* ── COSA CI DISTINGUE ── */
.distingue {
    position: relative;
    padding: 100px 60px;
    background: var(--white);
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.distingue-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    flex-wrap: wrap;
    gap: 24px;
}

.distingue-header-right .sec-title {
    text-align: right;
    color: var(--dark);
}

.dist-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border);
}

.dist-card {
    padding: 36px 32px 32px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
    transition: background 0.25s;
    cursor: default;
}

.dist-card:nth-child(3n) {
    border-right: none;
}

.dist-card:nth-last-child(-n+3) {
    border-bottom: none;
}

.dist-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.36s ease;
}

.dist-card:hover {
    background: #fafafa;
}

.dist-card:hover::after {
    transform: scaleX(1);
}

.dist-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--red);
    margin-bottom: 14px;
}

.dist-card-title {
    font-family: 'Barlow', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.2;
}

.dist-card-title span {
    color: var(--red);
}

.dist-card-desc {
    font-size: 15px;
    line-height: 1.68;
    color: #333;
}

/* ── A CHI CI RIVOLGIAMO ── */
.target {
    position: relative;
    padding: 100px 60px;
    background: var(--light);
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.target-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.target-list {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.target-item {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}

.target-item:first-child {
    border-top: 1px solid var(--border);
}

.ti-icon {
    width: 32px;
    height: 32px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}

.ti-icon svg {
    width: 14px;
    height: 14px;
    color: var(--red);
}

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

.target-position {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 40px 36px;
    position: relative;
}

.target-position::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--red);
}

.tp-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 16px;
}

.tp-title {
    font-family: 'Barlow', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 14px;
}

.tp-title em {
    font-style: normal;
    color: var(--red);
}

.tp-text {
    font-size: 15px;
    line-height: 1.76;
    color: var(--mid);
}

/* ── STORIA ── */
.storia {
    position: relative;
    padding: 100px 60px;
    background: var(--white);
    border-top: 1px solid var(--border);
    overflow: hidden;
}

.storia-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.storia-text {
    position: sticky;
    top: 100px;
    align-self: start;
}

.storia-text p {
    font-size: 16px;
    line-height: 1.78;
    color: var(--mid);
    margin-bottom: 18px;
}

.storia-text p:last-child {
    margin-bottom: 0;
}

.storia-timeline {
    display: flex;
    flex-direction: column;
}

.st-item {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 20px;
    align-items: start;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.st-item:first-child {
    border-top: 1px solid var(--border);
}

.st-year {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--red);
    padding-top: 2px;
}

.st-event {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 4px;
}

.st-detail {
    font-size: 13px;
    line-height: 1.6;
    color: var(--gray);
}

/* ── IL TEAM ── */
.team-section {
    background: var(--white);
    padding: 100px 60px;
}

.team-inner {
    width: 100%;
}

.team-header {
    margin-bottom: 60px;
    text-align: left;
}

.sec-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 12px;
}

.team-intro {
    font-size: 16px;
    line-height: 1.75;
    color: var(--mid);
    margin-top: 20px;
}

.team-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 32px 20px;
}

@media (min-width: 480px) {
    .team-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 36px 24px;
    }
}

@media (min-width: 1024px) {
    .team-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 40px 28px;
    }
}

.team-card {
    display: flex;
    flex-direction: column;
}

.team-info {
    width: 100%;
    max-width: 100%;
}

.team-photo-wrap {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #f0f0f0;
    margin-bottom: 20px;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
    transition: transform 0.5s ease;
}

.team-card:hover .team-photo {
    transform: scale(1.03);
}

.team-name {
    font-family: 'Barlow', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 4px;
}

.team-role {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 12px;
}

.team-bio {
    font-size: 14px;
    line-height: 1.7;
    color: var(--mid);
}

/* ── RESPONSIVO AGENZIA ── */
@media (min-width: 769px) and (max-width: 1024px) {
    .intro, .approach, .distingue, .target, .storia {
        padding: 80px 36px;
    }

    .team-section {
        padding: 80px 36px;
    }

    .approach {
        overflow: visible;
    }

    .approach-layout {
        grid-template-columns: 280px 1fr;
        gap: 48px;
        align-items: start;
    }

    .approach-sticky {
        position: sticky;
        top: 100px;
        padding: 36px 28px;
    }

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

    .dist-card:nth-child(2n) {
        border-right: none;
    }

    .dist-card:nth-child(3n) {
        border-right: 1px solid var(--border);
    }

    .dist-card:nth-last-child(-n+2) {
        border-bottom: none;
    }

    .dist-card:nth-last-child(-n+3) {
        border-bottom: 1px solid var(--border);
    }
}

@media (max-width: 390px) {
    .hero-inner-content {
        padding: 80px 18px 36px;
    }
}

@media (max-width: 768px) {
    .hero-inner {
        height: auto;
        min-height: 60vmax;
    }

    .hero-inner-content {
        padding: 90px 24px 40px;
        max-width: 100%;
    }

    .intro, .approach, .distingue, .target, .storia {
        padding: 60px 24px;
    }

    .intro-layout, .target-layout, .storia-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .storia-text {
        position: static;
        top: auto;
        align-self: auto;
    }

    .approach-layout {
        grid-template-columns: 1fr;
    }

    .approach-sticky {
        display: none;
    }

    .dist-cards {
        grid-template-columns: 1fr;
    }

    .dist-card {
        border-right: none;
    }

    .dist-card:nth-child(3n) {
        border-right: none;
    }

    .dist-card:nth-last-child(-n+3) {
        border-bottom: 1px solid var(--border);
    }

    .dist-card:last-child {
        border-bottom: none;
    }

    /* Agenzia: allinea lo spacing dei header alle sezioni della Home */
    .distingue-header {
        margin-bottom: 40px;
        flex-direction: column;
        align-items: flex-start;
    }

    .distingue-header-right {
        width: 100%;
    }

    .distingue-header-right .sec-title {
        text-align: left;
    }

    .dist-card,
    .dist-card-title,
    .dist-card-desc {
        text-align: left;
    }

    .team-section {
        padding: 60px 24px;
    }

    .team-header {
        margin-bottom: 40px;
    }

    .team-card {
        align-items: flex-start;
    }

    .a-num {
        font-size: 48px;
    }

    .a-step {
        grid-template-columns: 52px 1fr;
        gap: 16px;
        padding: 26px 0;
    }
}

@media (min-width: 1920px) {
    .as-desc {
        font-size: 17px;
    }

    .dist-card-desc {
        font-size: 17px;
    }

    .ti-text {
        font-size: 17px;
    }

    .tp-text {
        font-size: 17px;
    }

    .storia-text p {
        font-size: 17px;
    }

    .intro-text p {
        font-size: 17px;
    }

    .a-desc {
        font-size: 17px;
    }

    .dist-card-title {
        font-size: 21px;
    }

    .team-name {
        font-size: 17px;
    }

    .team-bio {
        font-size: 15px;
    }

    .team-intro {
        font-size: 17px;
    }
}

/* ── AGENZIA: SCROLL ANIMATIONS ── */
.anim-fade-up,
.anim-fade-right,
.anim-fade-left {
    opacity: 0;
    transition: opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1), transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-fade-up {
    transform: translateY(32px);
}

.anim-fade-right {
    transform: translateX(-32px);
}

.anim-fade-left {
    transform: translateX(32px);
}

.anim-fade-up.is-visible,
.anim-fade-right.is-visible,
.anim-fade-left.is-visible {
    opacity: 1;
    transform: none;
}

.anim-d1 {
    transition-delay: 0.08s;
}

.anim-d2 {
    transition-delay: 0.16s;
}

.anim-d3 {
    transition-delay: 0.24s;
}

.anim-d4 {
    transition-delay: 0.32s;
}

.anim-d5 {
    transition-delay: 0.40s;
}

/* ── AGENZIA: LINK TEAM CARD ── */
.team-card a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.team-card a:hover {
    text-decoration: none;
}

/* =====================================================
   SERVIZI 2026 — stili specifici pagina servizi
   ===================================================== */

.mob-br {
    display: none;
}

/* === INTRO MANIFESTO === */
.intro-manifesto {
    padding: 100px 60px;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.intro-manifesto .intro-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    /* Evita di sommare spaziature generiche di `.intro-layout` (padding/margini) */
    padding: 0;
    margin-top: 0;
    border-top: 0;
}

.intro-big {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(26px, 2.8vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 24px;
}

.intro-big em {
    font-style: normal;
    color: var(--red);
}

.intro-body {
    font-size: 16px;
    line-height: 1.78;
    color: var(--mid);
}

.intro-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--border);
}

.intro-metric {
    background: var(--white);
    padding: 36px 32px;
}

.intro-metric-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(36px, 3.5vw, 52px);
    font-weight: 900;
    color: var(--red);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.intro-metric-label {
    font-size: 13px;
    line-height: 1.5;
    color: var(--gray);
}

/* === SERVIZI CARDS 2×2 === */
.srv-sec {
    padding: 100px 60px;
    background: var(--white);
}

.srv-c-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
}

.srv-c-title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(32px, 3.6vw, 52px);
    font-weight: 800;
    line-height: 1.05;
    color: var(--dark);
}

.srv-c-title em {
    font-style: normal;
    color: var(--red);
}

.srv-c-sub {
    font-size: 16px;
    line-height: 1.6;
    color: var(--mid);
    margin-top: 14px;
}

.srv-c-count {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gray);
}

.srv-c-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--border);
}

.srv-c {
    padding: 52px 48px 48px;
    display: flex;
    flex-direction: column;
    min-height: 420px;
    position: relative;
    overflow: hidden;
    background: var(--white);
}

.srv-c::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--red);
    transform: translateY(101%);
    transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
}

.srv-c:hover::after {
    transform: translateY(0);
}

.srv-c > * {
    position: relative;
    z-index: 1;
}

.srv-c-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.srv-c-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--red);
    transition: color 0.35s;
}

.srv-c:hover .srv-c-num {
    color: rgba(255, 255, 255, 0.55);
}

.srv-c-badge {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray);
    border: 1px solid var(--border);
    padding: 5px 12px;
    transition: color 0.35s, border-color 0.35s;
}

.srv-c:hover .srv-c-badge {
    color: rgba(255, 255, 255, 0.45);
    border-color: rgba(255, 255, 255, 0.2);
}

.srv-c-name {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 18px;
    transition: color 0.35s;
}

.srv-c:hover .srv-c-name {
    color: white;
}

.srv-c-desc {
    font-size: 15px;
    line-height: 1.74;
    color: var(--mid);
    margin-bottom: 32px;
    flex: 1;
    transition: color 0.35s;
}

.srv-c:hover .srv-c-desc {
    color: rgba(255, 255, 255, 0.78);
}

.srv-c-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
    margin-bottom: 32px;
    transition: border-color 0.35s;
}

.srv-c:hover .srv-c-list {
    border-top-color: rgba(255, 255, 255, 0.18);
}

.srv-c-list li {
    font-size: 14px;
    color: var(--mid);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.35s, border-color 0.35s;
}

.srv-c:hover .srv-c-list li {
    color: rgba(255, 255, 255, 0.65);
    border-color: rgba(255, 255, 255, 0.12);
}

.srv-c-list li::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--red);
    border-radius: 50%;
    flex-shrink: 0;
    transition: background 0.35s;
}

.srv-c:hover .srv-c-list li::before {
    background: rgba(255, 255, 255, 0.6);
}

.srv-c-cta {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--red);
    text-decoration: none;
    transition: color 0.35s, letter-spacing 0.2s;
}

.srv-c:hover .srv-c-cta {
    color: white;
    letter-spacing: 0.22em;
}

/* === PARALLAX BIANCA === */
.intro-manifesto-b {
    position: relative;
    padding: 0;
}

.intro-b-parallax {
    overflow: hidden;
    min-height: 72vh;
    display: flex;
    align-items: center;
    background-color: #f5f5f3;
}

.intro-b-parallax-canvas {
    position: absolute;
    left: 0;
    right: 0;
    top: -18%;
    width: 100%;
    height: 136%;
    z-index: 1;
    pointer-events: none;
    will-change: transform;
}

.intro-b-inner {
    position: relative;
    z-index: 2;
    padding: 100px 60px;
    width: 100%;
    box-sizing: border-box;
}

.intro-b-single {
    max-width: none;
}

.intro-b-parallax-content {
    position: relative;
    z-index: 2;
}

.intro-b-headline {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(28px, 3.2vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 36px;
}

.intro-b-headline-dark {
    color: var(--dark);
}

.intro-b-headline em {
    font-style: normal;
    color: var(--red);
}

.intro-b-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.intro-b-pill {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    padding: 8px 18px;
    border: 1px solid var(--border);
    color: var(--mid);
}

/* === SERVIZI: RESPONSIVE === */
@media (min-width: 769px) and (max-width: 1024px) {
    .intro-manifesto, .srv-sec {
        padding: 80px 36px;
    }

    .intro-manifesto .intro-layout {
        gap: 48px;
    }

    .intro-big {
        font-size: clamp(24px, 2.4vw, 34px);
    }

    .srv-c-title {
        font-size: clamp(28px, 3vw, 40px);
    }

    .srv-c {
        padding: 40px 36px 36px;
        min-height: 360px;
    }

    .intro-b-inner {
        padding: 80px 36px;
    }
}

@media (max-width: 768px) {
    .mob-br {
        display: block;
    }

    .intro-manifesto, .srv-sec {
        padding: 72px 24px;
    }

    .intro-manifesto .intro-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .srv-c-grid {
        grid-template-columns: 1fr;
    }

    .srv-c-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .srv-c {
        padding: 36px 28px 32px;
    }

    .intro-b-inner {
        padding: 64px 24px;
    }

    .intro-b-headline {
        font-size: 32px;
    }
}

@media (max-width: 390px) {
    .intro-metric-num {
        font-size: 32px;
    }
}

@media (min-width: 1920px) {
    .intro-manifesto, .srv-sec {
        padding-left: max(60px, calc((100vw - 1600px) / 2));
        padding-right: max(60px, calc((100vw - 1600px) / 2));
    }

    .intro-b-inner {
        padding-left: max(60px, calc((100vw - 1600px) / 2));
        padding-right: max(60px, calc((100vw - 1600px) / 2));
    }

    .intro-b-headline {
        font-size: clamp(48px, 3.2vw, 60px);
    }
}

/* =====================================================
   PORTFOLIO / CASE HISTORY 2026
   ===================================================== */

/* ── INTRO ── */
.case-intro {
    /*padding: 100px 60px;*/
    /*background: var(--white);*/
    border-top: 1px solid var(--border);
}

.case-intro-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.case-intro-big {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(26px, 2.8vw, 40px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 24px;
}

.case-intro-big em {
    font-style: normal;
    color: var(--red);
}

.case-intro-media {
    margin: 0 0 28px;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--light);
}

.case-intro-media img {
    display: block;
    width: 100%;
    height: auto;
    vertical-align: middle;
}

.case-intro-body {
    font-size: 16px;
    line-height: 1.78;
    color: var(--mid);
}

.case-intro-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    background: var(--border);
}

.case-metric {
    background: var(--white);
    padding: 36px 32px;
}

.case-metric-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(36px, 3.5vw, 52px);
    font-weight: 900;
    color: var(--red);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -.02em;
}

.case-metric-label {
    font-size: 13px;
    line-height: 1.5;
    color: var(--gray);
}

/* ── CASE STUDIES GRIGLIA ── */
.cases-section {
    padding: 100px 60px;
    background: var(--white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--border);
}

.case-card {
    background: var(--white);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.case-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--red);
    transform: translateY(101%);
    transition: transform 0.58s cubic-bezier(.16, 1, .3, 1);
    z-index: 0;
}

.case-card:hover::after {
    transform: translateY(0);
}

.case-card-inner {
    position: relative;
    z-index: 1;
}

.case-card-inner {
    /* Allinea densità alle card della Home (evita “spazio” percepito in eccesso) */
    padding: 40px 36px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.case-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 22px;
}

.case-sector-tag {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gray);
    border: 1px solid var(--border);
    padding: 5px 12px;
    transition: border-color 0.35s, color 0.35s;
}

.case-card:hover .case-sector-tag {
    border-color: rgba(255, 255, 255, 0.35);
    color: rgba(255, 255, 255, 0.7);
}

.case-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 52px;
    font-weight: 900;
    color: #efefef;
    line-height: 1;
    letter-spacing: -0.04em;
    transition: color 0.35s;
    user-select: none;
}

.case-card:hover .case-num {
    color: rgba(255, 255, 255, 0.08);
}

.case-title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(21px, 1.8vw, 26px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 24px;
    transition: color 0.35s;
}

.case-card:hover .case-title {
    color: white;
}

.case-steps {
    display: flex;
    flex-direction: column;
    flex: 1;
    margin-bottom: 28px;
}

.case-step {
    padding: 14px 0;
    border-top: 1px solid var(--border);
    transition: border-color 0.35s;
}

.case-card:hover .case-step {
    border-color: rgba(255, 255, 255, 0.15);
}

.case-step-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 6px;
    transition: color 0.35s;
}

.case-card:hover .case-step-label {
    color: rgba(255, 255, 255, 0.5);
}

.case-step-content {
    font-size: 15px;
    line-height: 1.72;
    color: var(--mid);
    transition: color 0.35s;
}

.case-card:hover .case-step-content {
    color: rgba(255, 255, 255, 0.78);
}

.case-step-content strong {
    font-weight: 700;
    color: var(--dark);
    transition: color 0.35s;
}

.case-card:hover .case-step-content strong {
    color: white;
}

.case-results-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin-bottom: 24px;
    transition: background 0.35s;
}

.case-card:not(:hover) .case-results-row {
    background: var(--border);
}

.case-result-item {
    background: var(--light);
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: background 0.35s;
}

.case-card:hover .case-result-item {
    background: rgba(255, 255, 255, 0.12);
}

.case-result-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(32px, 3.2vw, 52px);
    font-weight: 700;
    color: var(--red);
    line-height: 1;
    letter-spacing: -0.02em;
    transition: color 0.35s;
}

.case-card:hover .case-result-num {
    color: white;
}

.case-result-label {
    font-size: 12px;
    line-height: 1.4;
    color: var(--gray);
    transition: color 0.35s;
}

.case-card:hover .case-result-label {
    color: rgba(255, 255, 255, 0.55);
}

.case-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    transition: border-color 0.35s;
}

.case-card:hover .case-card-footer {
    border-top-color: rgba(255, 255, 255, 0.18);
}

.case-cta-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--red);
    text-decoration: none;
    white-space: nowrap;
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    transition: gap 0.2s, border-color 0.2s, color 0.35s;
}

.case-card:hover .case-cta-link {
    color: white;
    border-bottom-color: rgba(255, 255, 255, 0.4);
}

.case-cta-link:hover {
    gap: 14px;
}

/* ── BANNER PARALLAX ── */
.banner-parallax {
    position: relative;
    overflow: hidden;
    min-height: 55vh;
}

.banner-parallax-bg {
    /*position: absolute;*/
    /*inset: -40% 0;*/
    /*z-index: 0;*/
    /*will-change: transform;*/
    background: #f5f5f3;
}

.banner-parallax-inner {
    position: relative;
    z-index: 2;
    padding: 100px 60px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 80px;
}

/* Quando il banner è inserito dentro una `section.sy-container`, evita doppio padding */
section.sy-container > .banner-parallax-inner {
    padding: 0;
}

.banner-parallax-title {
    font-family: 'Archivo', sans-serif;
    font-size: clamp(28px, 3.2vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--dark);
    margin-bottom: 20px;
}

.banner-parallax-title em {
    font-style: normal;
    color: var(--red);
}

.banner-parallax-body {
    font-size: 16px;
    line-height: 1.76;
    color: var(--mid);
    max-width: 480px;
}

.btn-primary-dark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--dark);
    color: white;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 16px 36px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-primary-dark:hover {
    background: var(--red);
}

/* ── PORTFOLIO GRID ── */
.portfolio-section {
    padding: 100px 60px;
    background: var(--light);
}

.portfolio-header {
    margin-bottom: 48px;
}

.portfolio-header .sec-eye {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

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

.portfolio-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.p-card--portfolio-hidden {
    display: none !important;
}

.p-card {
    background: var(--white);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.p-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--red);
    transform: translateY(101%);
    transition: transform 0.55s cubic-bezier(.16, 1, .3, 1);
    z-index: 0;
}

.p-card:hover::after {
    transform: translateY(0);
}

.p-card-img, .p-card-body {
    position: relative;
    z-index: 1;
}

.p-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    background: #e8e8ec;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p-card-img-inner {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e4e4ea 0%, #d2d2da 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s cubic-bezier(.16, 1, .3, 1);
}

.p-card-img-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.p-card:hover .p-card-img-inner {
    transform: scale(1.06);
}

.p-card-img-placeholder {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #c0c0c8;
}

.p-card-overlay {
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.p-card:hover .p-card-overlay {
    background: rgba(17, 17, 17, 0.52);
}

.p-card-overlay-cta {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.55);
    padding: 8px 18px;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.25s, transform 0.25s;
}

.p-card:hover .p-card-overlay-cta {
    opacity: 1;
    transform: translateY(0);
}

.p-card-body {
    padding: 18px 20px 20px;
    border-top: 1px solid var(--border);
    transition: border-color 0.35s;
}

.p-card:hover .p-card-body {
    border-top-color: rgba(255, 255, 255, 0.15);
}

.p-card-sector {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 5px;
    transition: color 0.35s;
}

.p-card:hover .p-card-sector {
    color: rgba(255, 255, 255, 0.55);
}

.p-card-title {
    font-family: 'Archivo', sans-serif;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 6px;
    transition: color 0.35s;
}

.p-card:hover .p-card-title {
    color: white;
}

.p-card-url {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: var(--gray);
    transition: color 0.35s;
}

.p-card:hover .p-card-url {
    color: rgba(255, 255, 255, 0.55);
}

/* ── COME LAVORIAMO ── */
.process-section {
    padding: 100px 60px;
    background: var(--white);
    border-top: 1px solid var(--border);
}

.process-intro {
    max-width: 600px;
    margin-bottom: 64px;
}

.process-intro p {
    font-size: 16px;
    line-height: 1.78;
    color: var(--mid);
    margin-top: 16px;
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--border);
}

.process-step {
    background: var(--white);
    padding: 40px 32px;
    position: relative;
}

.process-step::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.process-step:hover::after {
    transform: scaleX(1);
}

.process-step-num {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 64px;
    font-weight: 900;
    color: #f0f0f0;
    line-height: 1;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    transition: color 0.3s;
}

.process-step:hover .process-step-num {
    color: rgba(190, 24, 24, 0.12);
}

.process-step-title {
    font-family: 'Barlow', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 10px;
    line-height: 1.2;
}

.process-step-desc {
    font-size: 14px;
    line-height: 1.68;
    color: var(--mid);
}

/* ── TESTIMONIANZE ── */
.testimonials-section {
    padding: 100px 60px;
    background: var(--light);
    border-top: 1px solid var(--border);
}

.testimonials-header {
    margin-bottom: 60px;
}

.testimonials-track {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    cursor: grab;
    background: var(--border);
    scroll-snap-type: x mandatory;
}

.testimonials-track::-webkit-scrollbar {
    display: none;
}

.testimonials-track:active {
    cursor: grabbing;
}

.testimonials-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 20px 0 4px;
}

.testimonial-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.25s, transform 0.25s;
    flex-shrink: 0;
    cursor: pointer;
}

.testimonial-dot.active {
    background: var(--red);
    transform: scale(1.2);
}

.testimonial-card {
    background: var(--white);
    padding: 44px 40px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transition: background 0.25s;
    flex-shrink: 0;
    width: calc(33.333% - 2px);
    min-width: 320px;
    scroll-snap-align: start;
}

.testimonial-card:hover {
    background: #f9f9f9;
}

.testimonial-quote-mark {
    font-family: 'Barlow', sans-serif;
    font-size: 64px;
    line-height: 0.8;
    color: var(--red);
    font-weight: 900;
    margin-bottom: -10px;
}

.testimonial-text {
    font-size: 16px;
    line-height: 1.72;
    color: var(--mid);
    font-style: italic;
    flex: 1;
}

.testimonial-divider {
    height: 1px;
    background: var(--border);
}

.testimonial-author-name {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 4px;
}

.testimonial-author-role {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gray);
}

/* ── PORTFOLIO/CASE HISTORY: RESPONSIVE ── */
@media (min-width: 769px) and (max-width: 1024px) {
    .case-intro, .cases-section, .process-section, .testimonials-section {
        padding: 80px 36px;
    }

    .case-card-inner {
        padding: 36px 32px;
    }

    .case-intro-layout {
        gap: 48px;
    }

    /* Stesso valore sopra/sotto il “giunto” con il banner CTA */
    .cases-section:has(+ section.sy-container > .banner-parallax-bg) {
        padding-bottom: 24px;
    }

    section.sy-container:has(> .banner-parallax-bg) {
        padding-top: 24px;
    }

    .banner-parallax-inner {
        padding: 80px 36px;
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 40px;
        text-align: center;
    }

    .banner-parallax-left {
        max-width: 40rem;
    }

    .banner-parallax-body {
        margin-inline: auto;
    }

    section.sy-container > .banner-parallax-inner {
        padding: 0;
    }

    .btn-primary-dark {
        max-width: 280px;
        justify-content: center;
    }

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

    .testimonial-card {
        width: calc(33.333% - 2px);
        min-width: 0;
    }

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

    .portfolio-section {
        padding: 80px 36px;
    }
}

@media (max-width: 768px) {
    .case-intro, .cases-section, .process-section, .testimonials-section {
        padding: 72px 24px;
    }

    .case-intro-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .cases-section:has(+ section.sy-container > .banner-parallax-bg) {
        padding-bottom: 20px;
    }

    section.sy-container:has(> .banner-parallax-bg) {
        padding-top: 20px;
    }

    .banner-parallax-inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        min-height: clamp(280px, 44vh, 520px);
        box-sizing: border-box;
        padding: 48px 12px;
        gap: 40px;
    }

    .banner-parallax-left {
        width: 100%;
        max-width: 26rem;
        margin-inline: auto;
    }

    .banner-parallax-body {
        margin-inline: auto;
    }

    section.sy-container > .banner-parallax-inner {
        padding-block: 48px;
        padding-inline: 0;
    }

    .btn-primary-dark {
        max-width: min(100%, 320px);
        justify-content: center;
    }

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

    .case-card-inner {
        padding: 36px 24px 40px;
    }

    .case-results-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .case-result-item {
        min-width: 0;
    }

    .case-result-num {
        font-size: clamp(28px, 5.2vw, 44px);
    }

    .process-steps {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        width: 100%;
        min-width: 0;
    }

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

    .portfolio-section {
        padding: 64px 24px;
    }
}

@media (max-width: 480px) {
    .case-results-row {
        grid-template-columns: 1fr;
    }

    .case-result-item {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 16px 20px;
        padding: 18px 20px;
    }

    .case-result-num {
        font-size: clamp(36px, 8vw, 52px);
    }

    .case-result-label {
        text-align: right;
        flex: 1;
        min-width: 0;
    }
}

@media (max-width: 390px) {
    .case-intro-metrics {
        grid-template-columns: 1fr;
    }

    .case-metric-num {
        font-size: clamp(38px, 10.5vw, 52px);
    }

    .btn-primary-dark {
        width: 100%;
        max-width: 380px;
        justify-content: center;
        white-space: normal;
        line-height: 1.35;
        text-align: center;
    }
}

@media (max-width: 450px) {
    .portfolio-grid .p-card {
        grid-column: 1 / -1;
    }
}

@media (min-width: 1920px) {
    .case-intro, .cases-section, .process-section, .testimonials-section,
    .banner-parallax-inner, .portfolio-section {
        padding-left: max(60px, calc((100vw - 1600px) / 2));
        padding-right: max(60px, calc((100vw - 1600px) / 2));
    }
}

/* =====================================================
   CONTATTI 2026
   ===================================================== */

/* ── MAIN CONTACT SECTION ── */
.contact-main {
    padding: 100px 60px;
    background: var(--white);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 100px;
    align-items: start;
}

/* ── Left col — info ── */
.contact-intro {
    font-size: 15px;
    line-height: 1.8;
    color: var(--mid);
    margin-top: 20px;
    margin-bottom: 40px;
}

.contact-channels {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-bottom: 40px;
}

.contact-channel {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s;
}

.contact-channel:first-child {
    border-top: 1px solid var(--border);
}

.cc-icon {
    width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-channel:hover .cc-icon svg {
    color: var(--red);
}

.cc-icon svg {
    width: 16px;
    height: 16px;
    color: var(--gray);
    stroke-width: 1.25;
    transition: color 0.2s;
}

.cc-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 2px;
}

.cc-value {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
    line-height: 1.3;
    transition: color 0.2s;
}

.contact-channel:hover .cc-value {
    color: var(--red);
}

.cc-note {
    font-size: 12.5px;
    color: var(--gray);
    margin-top: 1px;
}

.cc-arrow {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}

.cc-arrow svg {
    width: 12px;
    height: 12px;
    color: var(--gray);
    transition: color 0.2s, transform 0.2s;
}

.contact-channel:hover .cc-arrow {
    border-color: var(--red);
    background: var(--red);
}

.contact-channel:hover .cc-arrow svg {
    color: #fff;
    transform: translateX(2px);
}

/* ── Orari ── */
.hours-card {
    background: var(--light);
    padding: 24px 22px;
    border-left: 2px solid var(--red);
    margin-bottom: 32px;
}

.hours-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 14px;
}

.hours-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 20px;
}

.hours-day {
    font-size: 15px;
    color: var(--mid);
}

.hours-time {
    font-size: 15px;
    font-weight: 700;
    color: var(--dark);
    text-align: right;
}

.hours-note {
    font-size: 13px;
    color: var(--gray);
    margin-top: 14px;
    line-height: 1.6;
}

/* ── Social links ── */
.social-row {
    display: flex;
    gap: 8px;
}

.social-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border: 1px solid var(--border);
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.social-btn svg {
    width: 13px;
    height: 13px;
    color: var(--gray);
    transition: color 0.2s;
}

.social-btn-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gray);
    transition: color 0.2s;
}

.social-btn:hover {
    border-color: var(--red);
    background: rgba(190, 24, 24, 0.04);
}

.social-btn:hover svg, .social-btn:hover .social-btn-label {
    color: var(--red);
}

/* ── Right col — form ── */
.contact-form-col {
    border: 1px solid var(--border);
    padding: 40px 40px 36px;
}

.form-header-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 28px;
}

.form-title-2026 {
    font-family: 'Barlow', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1.2;
    margin-bottom: 4px;
}

.form-title-2026 em {
    font-style: normal;
    color: var(--red);
}

.form-subtitle-2026 {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
}

/* ── Nice Form ── */
.nice-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nf-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.nf-row-full {
    grid-template-columns: 1fr;
}

.nf-field {
    position: relative;
    border: 1px solid var(--border);
    margin: 0;
}

.nf-field input, .nf-field textarea {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-family: "Barlow", sans-serif;
    font-size: 13px;
    color: var(--dark);
    padding: 24px 18px 8px;
    transition: background 0.2s;
}

.nf-field textarea {
    resize: none;
    height: 130px;
    padding-top: 26px;
}

.nf-field label {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-family: "Barlow Condensed", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--gray);
    pointer-events: none;
    transition: top 0.18s ease, font-size 0.18s ease, color 0.18s ease;
}

.nf-field textarea ~ label {
    top: 22px;
    transform: none;
}

.nf-field input:not(:placeholder-shown) ~ label,
.nf-field input:focus ~ label {
    top: 12px;
    transform: none;
    font-size: 9px;
    color: var(--red);
}

.nf-field textarea:not(:placeholder-shown) ~ label,
.nf-field textarea:focus ~ label {
    top: 10px;
    font-size: 9px;
    color: var(--red);
}

/* Campo con errore */
.nf-field--error {
    border-color: var(--red) !important;
    background: #fff8f8 !important;
    z-index: 2;
}

.nf-field--error .nf-line {
    transform: scaleX(1);
}

.nf-field--error label {
    color: var(--red) !important;
}

.nf-field label span {
    color: var(--red);
}

.nf-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.22s ease;
    pointer-events: none;
}

.nf-field:focus-within .nf-line {
    transform: scaleX(1);
}

.nf-field:focus-within {
    background: #fafafa;
    z-index: 1;
}

.nf-footer {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px 0 0;
    border-top: 1px solid var(--border);
    margin-top: 1px;
}

/* Checkbox privacy — prima riga: box allineata al testo, non “volante” in alto */
.nf-privacy-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.nf-privacy-check input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.nf-check-box {
    width: 14px;
    height: 14px;
    border: 1px solid var(--border);
    flex-shrink: 0;
    position: relative;
    margin-top: 0.28em;
    transition: border-color 0.2s, background 0.2s;
}

.nf-privacy-check input:checked ~ .nf-check-box {
    border-color: var(--red);
    background: var(--red);
}

.nf-check-box::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 9px;
    border: 1.5px solid white;
    border-top: none;
    border-left: none;
    transform: translate(-50%, -60%) rotate(45deg) scaleY(0);
    transform-origin: center center;
    transition: transform 0.15s ease;
}

.nf-privacy-check input:checked ~ .nf-check-box::after {
    transform: translate(-50%, -60%) rotate(45deg) scaleY(1);
}

.nf-check-text {
    flex: 1;
    min-width: 0;
    font-family: "Barlow", sans-serif;
    font-size: 11px;
    color: var(--gray);
    line-height: 1.6;
}

.nf-check-text a {
    color: var(--gray);
    text-decoration: underline;
}

.nf-check-text a:hover {
    color: var(--red);
}

.nf-req {
    color: var(--red);
}

.nf-privacy-check--error .nf-check-box {
    border-color: var(--red);
    box-shadow: 0 0 0 2px rgba(190, 24, 24, 0.18);
}

.nf-submit-row {
    display: flex;
}

/* Btn submit */
.btn-submit-2026 {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    background: var(--red);
    color: white;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.20em;
    text-transform: uppercase;
    padding: 16px 32px;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.btn-submit-2026:hover {
    background: #a01212;
}

.btn-submit-2026:active {
    transform: scale(0.99);
}

.btn-submit-2026 svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Form messages */
.nf-alert {
    padding: 12px 16px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
}

.nf-alert-error {
    background: #fff3f3;
    border-left: 3px solid var(--red);
    color: #a01212;
}

.nf-alert-success {
    background: #f0fdf4;
    border-left: 3px solid #16a34a;
    color: #15803d;
}

/* Loading state */
.nf-loading {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 24px 0;
    color: var(--gray);
    font-size: 14px;
}

.nf-loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid var(--border);
    border-top-color: var(--red);
    border-radius: 50%;
    animation: nfSpin 0.7s linear infinite;
    flex-shrink: 0;
}

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

/* Success state */
.form-success-2026 {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 40px;
    border: 1px solid var(--border);
    background: #fafafa;
}

.form-success-2026.visible {
    display: flex;
}

.fs-icon {
    width: 56px;
    height: 56px;
    background: rgba(190, 24, 24, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.fs-icon svg {
    width: 24px;
    height: 24px;
    color: var(--red);
}

.fs-title {
    font-family: 'Barlow', sans-serif;
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 10px;
}

.fs-text {
    font-size: 15px;
    line-height: 1.7;
    color: var(--mid);
}

/* ── MAPPA ── */
.map-section {
    background: var(--light);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.map-header {
    padding: 72px 60px 48px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 24px;
}

.map-intro {
    font-size: 15px;
    line-height: 1.76;
    color: var(--mid);
    max-width: 380px;
}

.map-container {
    position: relative;
    width: 100%;
    background: #e8e8e8;
}

#leafletMap {
    width: 100%;
    height: 480px;
}

#leafletMap .leaflet-tile-pane {
    filter: grayscale(1) contrast(0.88) brightness(1.05);
}

.leaflet-container {
    background: #e0e0e0;
}

.map-address-bar {
    background: var(--dark);
    padding: 24px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.mab-info {
    display: flex;
    align-items: center;
    gap: 14px;
}

.mab-icon {
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mab-icon svg {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.5);
    stroke-width: 1.25;
}

.mab-text {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.mab-text strong {
    color: white;
}

.btn-directions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: white;
    padding: 12px 26px;
    background: var(--red);
    border: none;
    text-decoration: none;
    transition: background 0.2s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-directions:hover {
    background: #a01212;
}

.btn-directions svg {
    width: 14px;
    height: 14px;
}

/* ── FAQ ── */
.faq-section {
    padding: 100px 60px;
    background: var(--white);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 2;
}

.faq-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 80px;
    align-items: start;
}

.faq-left {
    position: sticky;
    top: 100px;
}

.faq-left .sec-title {
    margin-top: 16px;
}

.faq-left-note {
    font-size: 15px;
    line-height: 1.76;
    color: var(--mid);
    margin-top: 20px;
}

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

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    cursor: pointer;
    font-family: 'Barlow', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    transition: color 0.2s;
    user-select: none;
}

.faq-question:hover {
    color: var(--red);
}

.faq-q-icon {
    width: 28px;
    height: 28px;
    background: var(--light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s ease;
}

/* SVG: prima linea = asta verticale del “+”; nascosta quando aperto = “−” */
.faq-q-icon svg line:first-child {
    transition: opacity 0.2s ease;
}

.faq-q-icon svg {
    width: 12px;
    height: 12px;
    color: var(--dark);
    transition: color 0.2s, transform 0.2s ease;
}

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

.faq-item.open .faq-q-icon svg line:first-child {
    opacity: 0;
}

/* Contro-rotazione: il quadrato ruota come prima, il “−” resta orizzontale */
.faq-item.open .faq-q-icon svg {
    color: var(--red);
    transform: rotate(-45deg);
}

.faq-item.open .faq-question {
    color: var(--red);
}

.faq-answer {
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
    font-size: 15px;
    line-height: 1.76;
    color: var(--mid);
    padding: 0;
}

.faq-item.open .faq-answer {
    max-height: 400px;
    padding: 0 0 22px;
}

/* ── CONTATTI RESPONSIVE ── */
@media (max-width: 768px) {
    .contact-main {
        padding: 60px 24px;
    }

    .contact-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .contact-form-col {
        border: none;
        padding: 0;
    }

    .nf-row {
        grid-template-columns: 1fr;
    }

    .nf-row .nf-field {
        margin-left: 0;
    }

    .nf-row + .nf-row .nf-field {
        border-top: 1px solid var(--border);
    }

    .nf-footer {
        border-top: none;
        padding-top: 16px;
        margin-top: 0;
    }

    .map-header {
        padding: 52px 24px 36px;
    }

    #leafletMap {
        height: 300px;
    }

    .map-address-bar {
        padding: 20px 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .faq-section {
        padding: 60px 24px;
    }

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .faq-left {
        position: static;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .contact-main {
        padding: 80px 36px;
    }

    .contact-layout {
        gap: 48px;
    }

    .map-header {
        padding: 60px 36px 40px;
    }

    .map-address-bar {
        padding: 20px 36px;
    }

    .faq-section {
        padding: 80px 36px;
    }

    .faq-layout {
        grid-template-columns: 260px 1fr;
        gap: 48px;
    }
}

@media (min-width: 1920px) {
    .contact-main,
    .map-header,
    .map-address-bar,
    .faq-section {
        padding-left: max(60px, calc((100vw - 1600px) / 2));
        padding-right: max(60px, calc((100vw - 1600px) / 2));
    }
}

/* =====================================================
   FOOTER ROSSO — VARIANTE REVIEWS (pagina Contatti)
   ===================================================== */

/* Override griglia: 2 colonne invece di 3 */
.footer-red--reviews .footer-red-inner {
    grid-template-columns: 1fr 1.6fr;
}

/* Contacts + social block */
.fr-contacts-social {
    margin-top: 20px;
}

.fr-social-icons-inline {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Wrapper colonna reviews — gestisce l'overflow del carousel */
.fr-reviews-col {
    min-width: 0; /* evita overflow in grid */
}

/* Reviews grid — desktop */
.fr-reviews {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: stretch;
}

.fr-review-card {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 24px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
}

.fr-stars {
    color: #ffcc44;
    font-size: 13px;
    letter-spacing: 2px;
}

.fr-review-text {
    font-family: 'Barlow', sans-serif;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    font-style: italic;
}

.fr-review-author {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-top: auto;
}

/* Dots (mobile) */
.fr-review-dots {
    display: none;
    justify-content: center;
    gap: 7px;
    padding: 16px 0 6px;
    min-height: 14px;
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.fr-review-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.30);
    transition: background 0.25s, transform 0.25s;
    flex-shrink: 0;
    cursor: pointer;
}

.fr-review-dot.active {
    background: #fff;
    transform: scale(1.2);
}

/* ── RESPONSIVE footer reviews ── */
@media (max-width: 768px) {
    .footer-red--reviews .footer-red-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    /* Wrapper: taglia il carousel senza overflow negativo */
    .fr-reviews-col {
        overflow-x: hidden;
        overflow-y: visible;
    }

    /* Carousel orizzontale — nessun negative margin, overflow gestito dal wrapper */
    .fr-reviews {
        display: flex;
        flex-direction: row;
        overflow-x: scroll;
        overflow-y: hidden;
        gap: 12px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px; /* spazio per box-shadow */
    }

    .fr-reviews::-webkit-scrollbar {
        display: none;
    }

    .fr-review-card {
        flex: 0 0 100%;
        max-width: 100%;
        scroll-snap-align: start;
    }

    .fr-review-dots {
        display: flex;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .footer-red--reviews .footer-red-inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fr-reviews-col {
        overflow-x: hidden;
        overflow-y: visible;
    }

    .fr-reviews {
        display: flex;
        flex-direction: row;
        overflow-x: scroll;
        overflow-y: hidden;
        gap: 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 4px;
    }

    .fr-reviews::-webkit-scrollbar {
        display: none;
    }

    .fr-review-card {
        flex: 0 0 100%;
        max-width: 100%;
        scroll-snap-align: start;
    }

    .fr-review-dots {
        display: flex;
    }
}

/* ===== PAGINE LEGALI (Cookie / Privacy) ===== */

.legal-section.sy-container {
    /* Evita taglio glifi H1 (sy-container usa overflow:hidden) */
    overflow: visible;
}

.legal-doc {
    width: 100%;
    max-width: none;
}

/* Titolo pagina in hero; qui solo contenuto lungo */
.legal-section .legal-doc > .sec-title {
    line-height: 1.2;
    letter-spacing: -0.015em;
    padding-top: 0.06em;
}

.legal-body {
    margin-top: 0;
    font-family: 'Barlow', sans-serif;
    font-size: 17px;
    line-height: 1.75;
    color: var(--dark);
    text-align: justify;
    hyphens: auto;
    -webkit-hyphens: auto;
    overflow-wrap: break-word;
}

.legal-cookiebot-wrap {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 1px solid rgba(20, 20, 24, 0.08);
}

.legal-body h2.legal-cookiebot-heading {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: clamp(20px, 2.2vw, 28px);
    line-height: 1.2;
    margin: 0 0 24px;
    color: var(--dark);
}

/* Cookiebot: tabella dichiarazione dentro il flusso tipografico */
.legal-body #CookieDeclaration,
.legal-body #CookieDeclaration table {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    line-height: 1.6;
}

.legal-body #CookieDeclaration {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.legal-body #CookieDeclaration table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.legal-body #CookieDeclaration th,
.legal-body #CookieDeclaration td {
    border: 1px solid rgba(20, 20, 24, 0.12);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}

.legal-body #CookieDeclaration th {
    background: rgba(190, 24, 24, 0.06);
    font-weight: 700;
    color: var(--dark);
}

.legal-body h2,
.legal-body h3,
.legal-body h4 {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 40px;
    margin-bottom: 12px;
    color: var(--dark);
    text-align: left;
}

.legal-body h2 { font-size: clamp(20px, 2.2vw, 28px); }
.legal-body h3 { font-size: clamp(17px, 1.8vw, 22px); }
.legal-body h4 { font-size: 16px; }

.legal-body p {
    margin-bottom: 16px;
}

.legal-body a {
    color: var(--red);
    text-decoration: underline;
}

.legal-body a:hover {
    opacity: 0.75;
}

.legal-body ul,
.legal-body ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.legal-body li {
    margin-bottom: 6px;
}

@media (max-width: 768px) {
    .legal-section.sy-container {
        /* Più aria sotto la nav fissa + margini lettura tipo landing 2026 */
        padding: 88px 28px 72px;
    }

    .legal-body {
        font-size: 15px;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .legal-section.sy-container {
        padding-top: 104px;
        padding-bottom: 96px;
    }
}

@media (min-width: 1920px) {
    .footer-red--reviews .footer-red-inner {
        grid-template-columns: 1fr 1.6fr;
    }
}
