:root {
    --rosso-siegi: #D90416;
    --blu-siegi: #0511F2;
    --blu-scuro-siegi: #035AA6;
    --giallo-siegi: #F2CB05;
    --nero-siegi: #0D0D0D;

    /* Variabili derivate */
    --bg: #ffffff;
    --bg-soft: #f6f8fc;
    --bg-dark: #0D0D0D;
    --text: #15192b;
    --text-muted: #5b6178;
    --text-white: #f6f8fc;
    --border: #e6e9f2;
    --primary: var(--blu-scuro-siegi);
    --primary-dark: #02467a;
    --accent: var(--rosso-siegi);
    --accent-soft: rgba(217, 4, 22, 0.08);
    --yellow: var(--giallo-siegi);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 2px 8px rgba(13, 13, 13, 0.06);
    --shadow: 0 12px 32px rgba(13, 13, 13, 0.08);
    --shadow-lg: 0 24px 60px rgba(3, 90, 166, 0.16);

    --container: 1200px;
    --font-head: "Pliant", sans-serif;
    --font-body: "Pliant",  sans-serif;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ============ BOTTONI ============ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 50px;
    transition: var(--transition);
    white-space: nowrap;
    cursor: pointer;
}
.btn--primary {
    background: linear-gradient(135deg, var(--primary), var(--blu-siegi));
    color: #fff;
    box-shadow: 0 8px 20px rgba(3, 90, 166, 0.3);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(3, 90, 166, 0.45);
}
.btn--ghost {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}
.btn--ghost:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: rgba(3, 90, 166, 0.04);
}
.btn--lg { padding: 15px 32px; font-size: 1rem; }
.btn--block { width: 100%; }

.text-gradient {
    background: linear-gradient(120deg, var(--rosso-siegi), var(--giallo-siegi));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ============ NAVBAR ============ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.navbar--scrolled {
    background: rgba(255, 255, 255, 0.95);
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100px;
}
.nav-logo { display: flex; align-items: center; flex-direction: column; gap: 2px; }
.nav-logo__img {
    height: 90px;
    width: auto;
    object-fit: contain;
    animation: logo-pulse 2.4s ease-in-out infinite;
}
@keyframes logo-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.08); }
}
@media (prefers-reduced-motion: reduce) {
    .nav-logo__img { animation: none; }
}
.nav-logo-text {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--giallo-siegi);
    line-height: 1;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-link {
    font-family: var(--font-head);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text);
    padding: 8px 14px;
    border-radius: 8px;
    transition: var(--transition);
    position: relative;
}
.nav-link:hover { color: var(--primary); background: rgba(3, 90, 166, 0.06); }
.nav-link.active { color: var(--primary); font-weight: bold; }
.nav-link.active::after {
    content: '';
    position: absolute;
    left: 14px; right: 14px; bottom: 2px;
    height: 2px;
    background: var(--accent);
    border-radius: 2px;
}

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: #fff;
    min-width: 280px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}
.nav-dropdown:hover .nav-dropdown__menu {
    opacity: 1; visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown__menu a {
    display: block;
    padding: 10px 14px;
    font-size: 0.9rem;
    border-radius: 8px;
    color: var(--text-muted);
    transition: var(--transition);
}
.nav-dropdown__menu a:hover { background: var(--bg-soft); color: var(--primary); }

.nav-cta { margin-left: 12px; }

/* Hamburger */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}
.nav-toggle span {
    width: 24px; height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}
.nav-toggle--active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle--active span:nth-child(2) { opacity: 0; }
.nav-toggle--active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ HERO ============ */
.hero {
    position: relative;
    height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 80px 0;
}
.hero__carousel,
.hero__scrim {
    position: absolute;
    top: 80px;
    inset: 0;
    z-index: 0;
}
.hero__slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s ease-in-out;
}
.hero__slide.is-active { opacity: 1; }
.hero__scrim {
    z-index: 1;
    background: linear-gradient(105deg, rgba(255,255,255,0.82) 0%, rgba(255,255,255,0.4) 42%, rgba(13,13,13,0.18) 100%);
}
.hero__inner {
    position: relative;
    z-index: 2;
    width: 100%;
}
.hero__box {
    border-radius: var(--radius-lg);
    padding: 48px;
    max-width: 580px;
    box-shadow: var(--shadow-lg);

    /* From https://css.glass */
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.badge__dot {
    width: 8px; height: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(217, 4, 22, 0.15);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(217, 4, 22, 0.15); }
    50% { box-shadow: 0 0 0 8px rgba(217, 4, 22, 0.05); }
}

.hero__title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}
.hero__text {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 540px;
}
.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 8px;
}
@media (max-width: 760px) {
    .hero { min-height: auto; padding: 120px 0 60px; }
    .hero__box { padding: 36px 28px; }
}
@media (max-width: 560px) {
    .hero__box { padding: 28px 20px; max-width: 100%; }
}

.hero__stats {
    display: flex;
    gap: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}
.stat__num {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 2rem;
    color: var(--primary);
    line-height: 1;
}
.stat__label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Hero media */
.hero__media {
    position: relative;
}
.hero__card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 6px solid #fff;
    aspect-ratio: 4/5;
}
.hero__card img { width: 100%; height: 100%; object-fit: cover; }

.hero__floating {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    padding: 14px 18px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    animation: float 4s ease-in-out infinite;
}
.hero__floating--top { top: 30px; left: -30px; }
.hero__floating--bottom { bottom: 40px; right: -20px; animation-delay: 1.5s; }
.hero__floating-icon {
    display: grid;
    place-items: center;
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1.1rem;
}
.hero__floating strong {
    display: block;
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: var(--text);
}
.hero__floating small { color: var(--text-muted); font-size: 0.8rem; }
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ============ TRUST STRIP ============ */
.trust {
    padding: 48px 0;
    background: linear-gradient(135deg, var(--blu-scuro-siegi), #071a3f);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.trust::before {
    content: '';
    position: absolute;
    top: -60%; right: -5%;
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(242, 203, 5, 0.12), transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}
.trust__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
}
.trust p { color: rgba(255,255,255,0.6); font-size: 0.9rem; }
.trust__logos {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}
.trust__logos span {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.85);
    letter-spacing: 0.05em;
}

/* ============ SECTION GENERIC ============ */
.section { padding: 100px 0; }
.section__head {
    max-width: 680px;
    margin: 0 auto 60px;
    text-align: center;
}
.section__eyebrow {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
}
.section__eyebrow--light { color: var(--yellow); }
.section__title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.section__subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
}

/* ============ SERVIZI ============ */
.services {
    background: #fff;
}
.services__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.services__more {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
}
@media (max-width: 560px) {
    .services__more { flex-direction: column; }
    .services__more .btn { width: 100%; }
}
.service-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 26px;
    transition: var(--transition);
    overflow: hidden;
}
.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-card--featured {
    background: linear-gradient(160deg, var(--blu-scuro-siegi), var(--blu-siegi));
    color: #fff;
    border-color: transparent;
}
.service-card--featured::before { background: var(--yellow); transform: scaleX(1); }
.service-card--featured .service-card__title,
.service-card--featured p { color: #fff; }
.service-card--featured p { opacity: 0.85; }
.service-card--featured .service-card__link { color: var(--yellow); }

.service-card__tag {
    position: absolute;
    top: 16px; right: 16px;
    background: var(--yellow);
    color: var(--nero-siegi);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.service-card__icon {
    display: grid;
    place-items: center;
    width: 56px; height: 56px;
    border-radius: 14px;
    font-size: 1.6rem;
    margin-bottom: 20px;
}
.service-card__icon--blue { background: rgba(3, 90, 166, 0.1); color: var(--primary); }
.service-card__icon--red { background: var(--accent-soft); color: var(--accent); }
.service-card__icon--yellow { background: rgba(242, 203, 5, 0.2); color: var(--yellow); }
.service-card__icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}
.service-card__icons {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}
.service-card--featured .service-card__icon img {
    filter: brightness(0) invert(1);
}

.service-card__title {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.15rem;
    line-height: 1.3;
    margin-bottom: 12px;
}
.service-card p {
    font-size: 0.92rem;
    margin-bottom: 18px;
}
.service-card__link {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--primary);
    transition: var(--transition);
}
.service-card__link:hover { gap: 8px; }

/* ============ CHI SIAMO ============ */
.about__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
.about__media {
    position: relative;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4/3;
}
.about__media img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-lg);}
.about__experience {
    position: absolute;
    bottom: -30px; left: -30px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 20px 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.about__experience span {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--accent);
    line-height: 1;
}
.about__experience small { color: var(--text-muted); font-size: 0.85rem; }

.about__content .section__eyebrow,
.about__content .section__title { text-align: left; }
.about__content > p { color: var(--text-muted); margin-bottom: 24px; }
.about__list {
    display: grid;
    gap: 12px;
    margin-bottom: 32px;
}
.about__list li {
    position: relative;
    padding-left: 32px;
    font-weight: 500;
}
.about__list li::before {
    content: '✓';
    position: absolute;
    left: 0; top: 0;
    display: grid;
    place-items: center;
    width: 22px; height: 22px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ============ CTA / CONTATTI ============ */
.cta__box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    background: linear-gradient(135deg, var(--nero-siegi), #1a1a2e 40%, var(--blu-scuro-siegi));
    border-radius: var(--radius-lg);
    padding: 64px;
    position: relative;
    overflow: hidden;
}
.cta__box::before {
    content: '';
    position: absolute;
    top: -50%; right: -20%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(242, 203, 5, 0.12), transparent 60%);
    border-radius: 50%;
}
.cta__box--centered {
    grid-template-columns: 1fr;
    text-align: center;
    max-width: 760px;
    margin: 0 auto;
    padding: 72px 48px;
}
.cta__content { position: relative; z-index: 1; color: #fff; }
.cta__box--centered .cta__content { display: flex; flex-direction: column; align-items: center; }
.cta__box--centered .cta__content > p { max-width: 520px; margin-left: auto; margin-right: auto; }
.cta__title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.2;
    margin: 12px 0 16px;
}
.cta__content > p { color: rgba(255,255,255,0.75); margin-bottom: 28px; }

.cta__panel {
    position: relative;
    z-index: 1;
    background: #fff;
    border-radius: var(--radius);
    padding: 36px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}
.cta__panel h3 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.35rem;
    margin-bottom: 4px;
}
.cta__panel > p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 8px;
}
.cta__contact {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: var(--radius-sm);
    background: var(--bg-soft);
    transition: var(--transition);
}
.cta__contact:hover { background: rgba(3, 90, 166, 0.06); }
.cta__contact-icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--blu-siegi));
    color: #fff;
    font-size: 1.1rem;
}
.cta__contact span small {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 2px;
}
.cta__contact span strong {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.98rem;
    color: var(--text);
}
a.cta__contact:hover span strong { color: var(--primary); }

/* ============ FOOTER ============ */
.footer {
    background: linear-gradient(135deg, var(--blu-scuro-siegi), #071a3f);
    color: rgba(255,255,255,0.7);
    padding-top: 72px;
}
.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer__col h4 {
    font-family: var(--font-head);
    color: #fff;
    font-size: 1rem;
    margin-bottom: 18px;
    letter-spacing: 0.02em;
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col a {
    font-size: 0.92rem;
}
.footer__logo {
    height: 60px;
    width: auto;
    margin-bottom: 18px;
    object-fit: contain;
}
.footer__col--brand p { font-size: 0.92rem; max-width: 320px; margin-bottom: 22px; }
.footer__social { display: flex; gap: 10px; }
.footer__social a {
    display: grid;
    place-items: center;
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(255,255,255,0.08);
    transition: var(--transition);
}
.footer__social a img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: var(--transition);
}
.footer__social a:hover {
    transform: translateY(-3px);
}
.footer__social a:hover img {
    filter: brightness(0) invert(1);
}
.footer__social .social--instagram:hover {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}
.footer__bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 22px 0;
}
.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
    .hero__inner { grid-template-columns: 1fr; gap: 60px; }
    .hero__media { max-width: 420px; }
    .about__inner { grid-template-columns: 1fr; gap: 48px; }
    .cta__box { grid-template-columns: 1fr; gap: 40px; padding: 40px; }
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 760px) {
    .nav-menu {
        position: fixed;
        top: 76px; left: 0; right: 0;
        flex-direction: column;
        align-items: stretch;
        background: #fff;
        padding: 20px;
        gap: 4px;
        box-shadow: var(--shadow);
        border-top: 1px solid var(--border);
        transform: translateY(calc(-100% - 80px));
        visibility: hidden;
        transition: transform 0.3s ease, visibility 0s linear 0.3s;
    }
    .nav-menu--open {
        transform: translateY(0);
        visibility: visible;
        transition: transform 0.3s ease, visibility 0s linear 0s;
    }
    .nav-cta { display: none; }
    .nav-toggle { display: flex; }
    .nav-dropdown__menu {
        position: static;
        transform: none;
        opacity: 1; visibility: visible;
        box-shadow: none;
        border: none;
        padding-left: 16px;
        transition: none;
    }
    .nav-dropdown:hover .nav-dropdown__menu {
        transform: none;
        opacity: 1;
        visibility: visible;
    }
    .nav-link.active::after { display: none; }

    .section { padding: 70px 0; }
    .hero { padding: 120px 0 60px; }
    .hero__stats { gap: 24px; flex-wrap: wrap; }
    .hero__floating--top { left: -15px; top: 15px }
    .hero__floating--bottom { right: -15px; bottom: 15px }

    /* Hero centrato */
    .hero__content { text-align: center; }
    .hero__text { margin-left: auto; margin-right: auto; }
    .hero__actions { justify-content: center; }
    .hero__stats { justify-content: center; }
    .hero__media { margin-left: auto; margin-right: auto; }

    /* Banner certificazioni centrato */
    .trust__inner { flex-direction: column; text-align: center; gap: 16px; }
    .trust__logos { justify-content: center; gap: 14px 22px; }

    /* About: pulsante centrato + badge ridotto */
    .about__content .btn { display: flex; width: fit-content; margin-left: auto; margin-right: auto; }
    .about__experience {
        bottom: -22px;
        left: 50%;
        transform: translateX(-50%);
        padding: 14px 22px;
        text-align: center;
        white-space: nowrap;
    }
    .about__experience span { font-size: 1.5rem; }

    .cta__box { padding: 28px; }
    .cta__panel { padding: 24px; }
}

@media (max-width: 560px) {
    .services__grid { grid-template-columns: 1fr; }
    .footer__inner { grid-template-columns: 1fr; }
    .footer__bottom-inner { flex-direction: column; text-align: center; }
    .hero__stats { gap: 20px; }
    .stat__num { font-size: 1.6rem; }
    .nav-container { height: 66px; }
    .nav-menu { top: 66px; }
    .nav-logo__img { height: 54px; }
}

/* ============ SUBPAGE HERO ============ */
.page-hero {
    position: relative;
    padding: 150px 0 70px;
    text-align: center;
    overflow: hidden;
}
.page-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 20% 20%, rgba(3, 90, 166, 0.10), transparent 45%),
        radial-gradient(circle at 80% 30%, rgba(217, 4, 22, 0.06), transparent 45%),
        radial-gradient(circle at 50% 100%, rgba(242, 203, 5, 0.07), transparent 50%);
}
.page-hero .section__eyebrow { margin-bottom: 12px; }
.page-hero__title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}
.page-hero__subtitle {
    color: var(--text-muted);
    font-size: 1.08rem;
    max-width: 640px;
    margin: 0 auto;
}

.breadcrumb {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 18px;
    font-weight: bolder;
}
.breadcrumb a { color: var(--primary); transition: var(--transition); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { margin: 0 6px; }

/* Section con sfondo soft (per il faded bg globale si veda .services) */
.section--soft { background: var(--bg-soft); }

/* ============ STORY (testo + immagine) ============ */
.story-section { padding-top: 60px; }
.story {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 80px;
}
.story:last-child { margin-bottom: 0; }
.story__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 1/1;
}
.story__media img { width: 100%; height: 100%; object-fit: cover; }
.story--reverse .story__media { order: 2; }
.story__content .section__eyebrow,
.story__content .section__title { text-align: left; }
.story__content > p {
    color: var(--text-muted);
    margin-bottom: 16px;
}
.story__content strong { color: var(--text); }

/* ============ STORY FEATURE (chi siamo) ============ */
.story-feature {
    margin-bottom: 80px;
}
.story-feature__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 16/9;
    margin-bottom: 36px;
}
.story-feature__media img { width: 100%; height: 100%; object-fit: cover; scale: 1.2;}
.story-feature__content { max-width: 780px; }
.story-feature__content .section__eyebrow,
.story-feature__content .section__title { text-align: left; }
.story-feature__content > p { color: var(--text-muted); margin-bottom: 16px; font-size: 1rem; }
.story-feature__content strong { color: var(--text); }

/* ============ TEAM (chi siamo) ============ */
.team {
    margin-bottom: 16px;
}
.team__head { margin-bottom: 32px; }
.team__head .section__eyebrow,
.team__head .section__title { text-align: left; }
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.team-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.team-card__media {
    aspect-ratio: 1/1;
    overflow: hidden;
    background: var(--bg-soft);
}
.team-card__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--transition);
}
.team-card:hover .team-card__media img { transform: scale(1.06); }
.team-card--brand .team-card__media {
    display: grid;
    place-items: center;
}
.team-card--brand .team-card__media img {
    width: auto;
    height: 56%;
    object-fit: contain;
    transform: none;
}
.team-card__body { padding: 22px 22px 24px; }
.team-card__name {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 2px;
}
.team-card__role {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}
.team-card__phone {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    margin-bottom: 12px;
    transition: var(--transition);
}
a.team-card__phone:hover { color: var(--accent); }
.team-card__body p { color: var(--text-muted); font-size: 0.9rem; }

@media (max-width: 900px) {
    .team-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
    .story-feature__media { aspect-ratio: 4/3; }
}

/* ============ VALORI ============ */
.values__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.value-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 26px;
    transition: var(--transition);
}
.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.value-card__icon {
    display: grid;
    place-items: center;
    width: 54px; height: 54px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(3,90,166,0.1), rgba(217,4,22,0.08));
    font-size: 1.5rem;
    margin-bottom: 18px;
}
.value-card__icon img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}
.value-card h3 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 10px;
}
.value-card p { color: var(--text-muted); font-size: 0.92rem; }

/* ============ GALLERY ============ */
.gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 16px;
}
.gallery__item {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    margin: 0;
    cursor: zoom-in;
}
.gallery__item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--transition);
}
.gallery__item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(13,13,13,0.35));
    opacity: 0;
    transition: var(--transition);
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item--lg {
    grid-column: span 2;
    grid-row: span 2;
}

/* Gallery compatta (pagine servizi) */
.works-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.works-gallery .gallery__item { aspect-ratio: 1; }

/* ============ NUMERI ============ */
.numbers {
    background: linear-gradient(135deg, var(--blu-scuro-siegi), #071a3f);
    color: #fff;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}
.numbers::before {
    content: '';
    position: absolute;
    top: -40%; left: -5%;
    width: 450px; height: 450px;
    background: radial-gradient(circle, rgba(217, 4, 22, 0.10), transparent 60%);
    border-radius: 50%;
    pointer-events: none;
}
.numbers__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
}
.numbers .stat__num { color: var(--yellow); }
.numbers .stat__label { color: rgba(255,255,255,0.7); }

/* ============ CTA BAND ============ */
.cta-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    background: linear-gradient(135deg, var(--blu-scuro-siegi), var(--blu-siegi));
    border-radius: var(--radius-lg);
    padding: 48px;
    color: #fff;
}
.cta-band .section__title { text-align: left; margin-bottom: 8px; }
.cta-band p { color: rgba(255,255,255,0.8); }
.cta-band__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn--ghost {
    color: #fff;
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.06);
}
.cta-band .btn--ghost:hover { background: rgba(255,255,255,0.16); color: #fff; }

/* ============ CONTATTI ============ */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 48px;
    align-items: stretch;
}
.contact-info {
    display: grid;
    gap: 16px;
    align-content: start;
}
.contact-card {
    display: flex;
    gap: 18px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}
.contact-card:hover {
    box-shadow: var(--shadow);
    border-color: transparent;
    transform: translateX(4px);
}
.contact-card__icon {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 50px; height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary), var(--blu-siegi));
    color: #fff;
    font-size: 1.2rem;
}
.contact-card__label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.contact-card__value {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 2px;
    overflow-wrap: anywhere;
    transition: var(--transition);
}
a.contact-card__value:hover { color: var(--primary); }
.contact-card__link {
    display: inline-block;
    margin-top: 6px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--primary);
}
.contact-card__link:hover { gap: 6px; }
.contact-card__note {
    display: block;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 2px;
}

/* Responsabili d'area */
.contact-card__people {
    display: grid;
    gap: 14px;
    margin-top: 6px;
}
.contact-person {
    display: grid;
    gap: 1px;
}
.contact-person__name {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
}
.contact-person__role {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.contact-person__phone {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--primary);
    margin-top: 3px;
    transition: var(--transition);
}
a.contact-person__phone:hover { color: var(--accent); }

/* ============ MAPPA ============ */
.map {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    min-height: 420px;
    background: var(--bg-soft);
}
.map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    filter: grayscale(0.2);
}
.map img {
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0.45;
    filter: grayscale(0.3);
}
.map__pin {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -100%);
    font-size: 2.6rem;
    filter: drop-shadow(0 8px 12px rgba(0,0,0,0.3));
    animation: bounce 2.5s ease-in-out infinite;
}
@keyframes bounce {
    0%, 100% { transform: translate(-50%, -100%); }
    50% { transform: translate(-50%, -115%); }
}
.map__label {
    position: absolute;
    left: 50%; bottom: 24px;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 50px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text);
    box-shadow: var(--shadow);
    white-space: nowrap;
}

/* ============ REPARTI / DEPT ============ */
.dept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.dept-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
}
.dept-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.dept-card__icon {
    display: grid;
    place-items: center;
    width: 50px; height: 50px;
    border-radius: 12px;
    background: var(--accent-soft);
    font-size: 1.3rem;
    margin-bottom: 16px;
}
.dept-card h3 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.dept-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 14px;
}
.dept-card__mail {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--primary);
    overflow-wrap: anywhere;
}

/* ============ RESPONSIVE NUOVI COMPONENTI ============ */
@media (max-width: 980px) {
    .story { grid-template-columns: 1fr; gap: 32px; margin-bottom: 56px; }
    .story--reverse .story__media { order: 0; }
    .values__grid { grid-template-columns: repeat(2, 1fr); }
    .dept-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .numbers__inner { grid-template-columns: repeat(2, 1fr); gap: 28px; }
    .gallery { grid-auto-rows: 180px; }
    .cta-band { flex-direction: column; padding: 36px; }
}

@media (max-width: 760px) {
    .page-hero { padding: 120px 0 50px; }
    .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
    .gallery__item--lg { grid-column: span 2; grid-row: span 1; }
    .works-gallery { grid-template-columns: repeat(2, 1fr); }

    /* Contatti: card centrate + mappa che non sborda */
    .contact-card { flex-direction: column; align-items: center; text-align: center; gap: 14px; }
    .contact-card__value { overflow-wrap: anywhere; }
    .map { min-height: 320px; }
    .map__label { white-space: normal; max-width: 88%; font-size: 0.8rem; }
}

@media (max-width: 560px) {
    .values__grid { grid-template-columns: 1fr; }
    .dept-grid { grid-template-columns: 1fr; }
    .numbers__inner { grid-template-columns: 1fr; }
    .gallery { grid-template-columns: 1fr; }
    .gallery__item--lg { grid-column: span 1; }
    .cta-band { padding: 28px; }
    .cta-band__actions { width: 100%; }
    .cta-band__actions .btn { flex: 1; }
    .map { min-height: 320px; }
}

/* ============ PAGINE LEGALI ============ */
.page-hero--sm { padding: 130px 0 40px; }
.page-hero--sm .page-hero__title { font-size: clamp(1.8rem, 4vw, 2.6rem); }

.legal-meta {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 14px;
}

.legal-section { padding-top: 56px; }
.legal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 56px;
    align-items: start;
    max-width: 1040px;
    margin: 0 auto;
}

/* TOC sticky */
.legal-toc {
    position: sticky;
    top: 100px;
    padding: 20px;
    background: var(--bg-soft);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.legal-toc h4 {
    font-family: var(--font-head);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 14px;
}
.legal-toc ul { display: grid; gap: 8px; }
.legal-toc a {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.4;
    transition: var(--transition);
}
.legal-toc a:hover { color: var(--primary); padding-left: 4px; }

/* Contenuto */
.legal-content { max-width: 720px; }
.legal-lead {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--primary);
    margin-bottom: 18px;
}
.legal-note {
    background: rgba(242, 203, 5, 0.12);
    border-left: 3px solid var(--yellow);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.92rem;
    margin-bottom: 36px;
}
.legal-note strong { color: var(--text); }

.legal-content h2 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.4rem;
    margin: 44px 0 14px;
    scroll-margin-top: 100px;
}
.legal-content h2:first-of-type { margin-top: 0; }
.legal-content h3 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.1rem;
    margin: 24px 0 10px;
}
.legal-content p {
    color: #3a3f52;
    margin-bottom: 16px;
}
.legal-content p strong { color: var(--text); }
.legal-content a {
    color: var(--primary);
    text-decoration: underline;
    text-underline-offset: 2px;
}
.legal-content a:hover { color: var(--accent); }
.legal-content ul {
    margin: 0 0 18px;
    padding-left: 4px;
    display: grid;
    gap: 8px;
    list-style: none;
}
.legal-content ul li {
    position: relative;
    padding-left: 22px;
    color: #3a3f52;
}
.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0; top: 9px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--primary);
}
.legal-content ul li strong { color: var(--text); }

.legal-back { margin-top: 36px; }

@media (max-width: 900px) {
    .legal-layout { grid-template-columns: 1fr; gap: 32px; }
    .legal-toc { position: static; }
    .legal-toc ul {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 560px) {
    .legal-toc ul { grid-template-columns: 1fr; }
    .legal-section { padding-top: 40px; }
}

/* ============ PAGINE SERVIZI ============ */
.page-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    margin-top: 28px;
}

/* Process / Come lavoriamo */
.process {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}
.process::before {
    content: '';
    position: absolute;
    top: 26px;
    left: 12%;
    right: 12%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    opacity: 0.18;
    z-index: 0;
}
.process__step {
    position: relative;
    z-index: 1;
    text-align: center;
}
.process__num {
    display: grid;
    place-items: center;
    width: 54px; height: 54px;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2rem;
    box-shadow: 0 6px 16px rgba(3, 90, 166, 0.15);
    transition: var(--transition);
}
.process__step:hover .process__num {
    background: linear-gradient(135deg, var(--primary), var(--blu-siegi));
    color: #fff;
    transform: translateY(-4px);
}
.process__step h3 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 8px;
}
.process__step p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Servizi correlati */
.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.related-card {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: var(--transition);
    height: 100%;
}
.related-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow);
    border-color: transparent;
}
.related-card__icon {
    display: grid;
    place-items: center;
    width: 52px; height: 52px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(3,90,166,0.1), rgba(217,4,22,0.08));
    font-size: 1.4rem;
    margin-bottom: 16px;
}
.related-card h3 {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 8px;
}
.related-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 14px;
}
.related-card__link {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--primary);
    transition: var(--transition);
}
.related-card:hover .related-card__link { color: var(--accent); }

/* Variante icona gialla per il servizio in evidenza */
.related-card__icon--yellow { background: rgba(242, 203, 5, 0.18); }
.related-card__icon--red { background: var(--accent-soft); }

@media (max-width: 900px) {
    .process { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .process::before { display: none; }
    .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .process { grid-template-columns: 1fr; }
}

/* ============ LIGHTBOX ============ */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(13, 13, 13, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.lightbox--open {
    display: flex;
    animation: lightbox-fade 0.25s ease;
}
@keyframes lightbox-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}
.lightbox__img {
    max-width: 90vw;
    max-height: 85vh;
    border-radius: 0;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    object-fit: contain;
    animation: lightbox-zoom 0.3s ease;
}
@media (min-width: 981px) {
    .lightbox__img {
        max-width: 96vw;
        max-height: 94vh;
    }
}
@keyframes lightbox-zoom {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.lightbox__close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    cursor: pointer;
    border: none;
    transition: var(--transition);
}
.lightbox__close::before,
.lightbox__close::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2.5px;
    background: #fff;
    border-radius: 2px;
    transition: var(--transition);
}
.lightbox__close::before { transform: translate(-50%, -50%) rotate(45deg); }
.lightbox__close::after { transform: translate(-50%, -50%) rotate(-45deg); }
.lightbox__close:hover {
    background: var(--rosso-siegi);
    transform: rotate(90deg);
}
@media (max-width: 560px) {
    .lightbox__close { top: 12px; right: 12px; width: 42px; height: 42px; }
    .lightbox__close::before, .lightbox__close::after { width: 16px; }
    .lightbox { padding: 16px; }
}

/* ============ PAGINA LAVORI ============ */
.works-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 150px;
    grid-auto-flow: dense;
    gap: 14px;
}
.works-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin: 0;
    cursor: zoom-in;
    background: var(--bg-soft);
}
.works-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s var(--transition);
}
.works-item:hover img { transform: scale(1.06); }
/* Dimensione × orientamento (alta = ritratto, larga = panorama) */
.item--piccola.item--alta { grid-column: span 1; grid-row: span 2; }
.item--piccola.item--larga { grid-column: span 2; grid-row: span 1; }
.item--media.item--alta   { grid-column: span 2; grid-row: span 3; }
.item--media.item--larga  { grid-column: span 3; grid-row: span 2; }
.item--grande.item--alta  { grid-column: span 2; grid-row: span 4; }
.item--grande.item--larga { grid-column: span 4; grid-row: span 3; }

.works-item__tooltip {
    position: absolute;
    left: 16px; bottom: 16px;
    background: rgba(13, 13, 13, 0.9);
    color: #fff;
    padding: 8px 16px;
    border-radius: 50px;
    font-family: var(--font-head);
    font-size: 0.85rem;
    font-weight: 500;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 2;
    box-shadow: var(--shadow);
}
.works-item:hover .works-item__tooltip {
    opacity: 1;
}
.works-empty {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--text-muted);
    padding: 48px 20px;
}

/* Lightbox: frame + caption */
.lightbox__frame {
    position: relative;
    width: fit-content;
    max-width: 96vw;
    margin: auto;
}
.lightbox__img { display: block; }
.lightbox__caption {
    display: none;
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 56px 28px 22px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.88));
    color: #fff;
    line-height: 1.4;
    text-align: left;
    border-radius: 0;
}
.lightbox--caption .lightbox__caption { display: block; }
.lightbox__caption-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
.lightbox__title {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.3rem;
    margin: 0;
}
.lightbox__date {
    font-size: 0.85rem;
    opacity: 0.75;
    white-space: nowrap;
}
.lightbox__text {
    margin: 8px 0 0;
    font-size: 0.95rem;
    opacity: 0.85;
    max-width: 62ch;
}

@media (max-width: 900px) {
    .works-grid { grid-template-columns: repeat(2, 1fr); }
    .works-item.item--alta { grid-column: span 1; grid-row: span 2; }
    .works-item.item--larga { grid-column: span 2; grid-row: span 1; }
}
@media (max-width: 560px) {
    .works-grid { grid-auto-rows: 120px; gap: 10px; }
    .works-item__tooltip { font-size: 0.78rem; padding: 6px 12px; }
    .lightbox__caption { padding: 40px 16px 14px; }
    .lightbox__title { font-size: 1.05rem; }
    .lightbox__text { font-size: 0.85rem; }
}
