:root {
    --navy: #14304d;
    --navy-dark: #0e2338;
    --orange: #E8672E;
    /* arancione unico su tutto il sito */
    --orange-text: #E8672E;
    --gray-bg: #eef2f3;
    --border: #d8dee2;
    --text-muted: #4d6072;
    --white: #faf8f5;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
    /* disattiva il ridimensionamento automatico del testo di Safari/iOS
       dopo un reflow (es. apertura del dropdown SOLUZIONI) */
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    /* clip (non hidden): evita lo scroll orizzontale senza rompere position: sticky
       né il calcolo del viewport nelle media query su Safari/iOS */
    overflow-x: clip;
}

body {
    font-family: 'Lato', 'Segoe UI', Arial, Helvetica, sans-serif;
    color: var(--navy);
    line-height: 1.65;
    background: var(--white);
}

/* dimensione uniforme per i paragrafi di testo normale;
   etichette (kicker, eyebrow, breadcrumb), testo legale e card soluzioni
   restano ai loro font-size specifici, che hanno priorità su questo */
p {
    font-size: 18px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* niente riquadro blu di default al click/tap; resta visibile solo
   con la navigazione da tastiera (accessibilità) */
a,
button,
label,
input {
    outline: none;
}

a:focus-visible,
button:focus-visible,
label:focus-visible,
input:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

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

.eyebrow {
    color: var(--orange);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

h2 {
    font-size: clamp(27px, 4.4vw, 44px);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.015em;
    max-width: none;
}

h2 em {
    font-weight: 900;
    font-style: italic;
    /* h2 su sfondo bianco/grigio chiaro nella maggior parte delle sezioni:
       arancione scurito per il contrasto (vedi override sotto per il navy) */
    color: var(--orange-text);
}

/* su sfondo navy il contrasto con l'arancione pieno è già ottimo */
.come-lavoriamo h2 em,
.footer h2 em {
    color: var(--orange);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 24px;
    font-weight: 600;
    font-size: 15px;
    border-radius: 4px;
    border: 1px solid transparent;
    transition: opacity 0.2s ease;
}

.btn:hover {
    opacity: 0.85;
}

.btn--primary {
    /* arancione con testo navy scuro: contrasto AA (~4,9:1) */
    background: var(--orange);
    color: var(--navy-dark);
}

/* hero e "Contattaci": testo più marcato */
.hero .btn--primary,
.lavora .btn--primary {
    font-size: 15px;
    font-weight: 700;
}

.btn--outline {
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--white);
}

/* ---------- Navbar ---------- */
.navbar {
    background: var(--navy);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.navbar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 24px;
    padding-bottom: 24px;
}

.logo {
    color: var(--white);
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 18px;
}

.logo span {
    color: var(--orange);
    font-size: 1.15em;
}

.menu {
    display: flex;
    gap: 36px;
}

.menu a {
    color: var(--orange);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.menu a:hover {
    text-decoration: underline;
}

/* voce SOLUZIONI con sottomenu verticale */
.menu__item--has-sub {
    position: relative;
}

.menu__sub-toggle {
    -webkit-appearance: none;
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--orange);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 0.5px;
    cursor: pointer;
}

.menu__sub-toggle:hover .menu__sub-toggle-text {
    text-decoration: underline;
}

.menu__caret {
    font-size: 10px;
    transition: transform 0.2s ease;
}

.menu__item--has-sub.is-open .menu__caret {
    transform: rotate(180deg);
}

.menu__submenu {
    display: none;
    position: absolute;
    top: calc(100% + 14px);
    left: 0;
    min-width: 230px;
    padding: 8px 0;
    background: var(--navy-dark);
    border-radius: 6px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
    z-index: 20;
}

.menu__submenu-heading {
    padding: 12px 20px 6px;
    margin-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.menu__item--has-sub.is-open .menu__submenu {
    display: block;
}

.menu__submenu li {
    width: 100%;
}

.menu__submenu a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
    text-decoration: none;
    text-underline-offset: 4px;
}

.menu__submenu a span {
    color: var(--orange);
}

.feature-list a {
    font-weight: 600;
    text-decoration: underline;
}

.feature-list a span {
    color: var(--orange);
}

.detail-main p span {
    color: var(--orange);
    font-weight: 600;
}

.menu__submenu a:hover {
    text-decoration: underline;
    text-decoration-color: var(--orange);
    text-decoration-thickness: 2px;
}

.hamburger {
    display: none;
    font-size: 28px;
    color: var(--white);
    cursor: pointer;
}

#menu-toggle {
    display: none;
}

/* ---------- Hero ---------- */
.hero {
    background: var(--navy);
    color: var(--white);
    padding: 60px 0 40px;
}

.hero__lead {
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.015em;
    text-wrap: balance;
    max-width: 820px;
    margin: 0 auto 24px;
}

.hero h1 em {
    font-weight: 900;
    font-style: italic;
    color: var(--orange);
}

.hero p {
    line-height: 1.6;
    max-width: 640px;
    color: var(--white);
    margin: 0 auto 32px;
}

.hero__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ---------- Hero photo carousel (barrel mask, auto-scroll) ---------- */
.hero__gallery {
    position: relative;
    overflow: hidden;
    height: 220px;
    width: calc(100% - 64px);
    max-width: calc(var(--max-width) - 64px);
    margin: 40px auto 0;
}

.hero__gallery::before,
.hero__gallery::after {
    content: "";
    position: absolute;
    z-index: 2;
    left: 50%;
    width: 400%;
    height: 500%;
    background: var(--navy);
    border-radius: 50%;
    transform: translateX(-50%);
}

.hero__gallery::before {
    top: -480%;
}

.hero__gallery::after {
    bottom: -480%;
}

.hero__gallery-viewport {
    display: flex;
    align-items: center;
    gap: 15px;
    width: max-content;
    height: 100%;
    animation: hero-gallery-scroll 70s linear infinite;
}

.hero__gallery:hover .hero__gallery-viewport {
    animation-play-state: paused;
}

.hero__gallery-track {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-shrink: 0;
}

.hero__gallery-card {
    position: relative;
    flex-shrink: 0;
    width: 330px;
    height: 220px;
    overflow: hidden;
}

.hero__gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* leggero zoom: nasconde il bordo bianco presente in alcune foto */
    transform: scale(1.06);
}

@keyframes hero-gallery-scroll {
    from {
        transform: translateX(0);
    }

    to {
        /* -50% = metà viewport = una traccia + metà gap; sottraggo metà gap
           per allineare esattamente la 2ª traccia alla 1ª (loop senza scatti) */
        transform: translateX(calc(-50% - 7.5px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero__gallery-viewport {
        animation: none;
    }
}

@media screen and (max-width: 600px) {
    .hero__gallery {
        height: 160px;
    }

    .hero__gallery-card {
        width: 240px;
        height: 160px;
    }
}

/* ---------- Generic two-column sections ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding: 90px 32px;
    align-items: center;
}

.body-text {
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.68;
    max-width: 520px;
    text-wrap: pretty;
}

.body-text p+p {
    margin-top: 20px;
}

/* Sezioni testo (solo desktop): testo allineato a destra della colonna */
@media screen and (min-width: 901px) {
    .come-lavoriamo .body-text {
        margin-left: auto;
    }
}

/* ---------- Come lavoriamo ---------- */
.come-lavoriamo {
    background: var(--navy);
    color: var(--white);
}

.come-lavoriamo h2 {
    color: var(--white);
}

.come-lavoriamo .body-text {
    color: var(--white);
}

/* ---------- Chi siamo ---------- */
.chi-siamo {
    background: var(--white);
    padding: 96px 0 100px;
    font-family: 'Lato', sans-serif;
}

.chi-siamo__top {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 88px;
    align-items: center;
}

.chi-siamo__head h2 {
    margin: 0;
    max-width: none;
}

.chi-siamo .body-text {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-top: 8px;
    max-width: none;
    margin: 0;
}

.chi-siamo .body-text p {
    margin: 0;
    font: 400 18px/1.68 'Lato', sans-serif;
    text-wrap: pretty;
    color: var(--navy);
}

.kicker {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    font: 700 14px/1 'Lato', sans-serif;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.kicker::before {
    content: "";
    flex: none;
    width: 34px;
    height: 3px;
    background: var(--orange-text);
}

/* su fondo scuro */
.come-lavoriamo .kicker {
    color: rgba(255, 255, 255, 0.6);
}

.come-lavoriamo .kicker::before {
    background: var(--orange);
}

/* ---------- Stats ---------- */
.stats-section {
    background: var(--white);
    padding: 90px 0;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 220px));
    justify-content: center;
    /* spazio uguale in orizzontale e verticale */
    gap: 56px;
}

.stats__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stats__value {
    position: relative;
    font: 900 34px/1 'Lato', sans-serif;
    color: var(--navy);
    font-variant-numeric: tabular-nums;
}

/* la "+" non sposta il centro: il numero resta centrato e la label sotto pure */
.stats__plus {
    position: absolute;
    left: 100%;
    top: 0;
    color: var(--orange-text);
}

.stats__label {
    margin-top: 8px;
    font: 400 13px/1.4 'Lato', sans-serif;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-wrap: balance;
}

@media screen and (max-width: 900px) {
    .chi-siamo {
        padding: 64px 0 68px;
    }

    .stats-section {
        padding: 64px 0 68px;
    }

    .chi-siamo__top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .chi-siamo .body-text {
        padding-top: 0;
    }

    .chi-siamo .body-text p {
        font-size: 18px;
        line-height: 1.62;
    }

    .stats {
        grid-template-columns: repeat(2, minmax(0, 200px));
        gap: 44px;
    }

    .stats__value {
        font-size: 29px;
    }
}

/* ---------- Clients marquee ---------- */
.clients {
    background: var(--white);
    padding: 90px 0;
    overflow: hidden;
}

.clients .container {
    text-align: center;
}

.clients h2 {
    margin-bottom: 56px;
    margin-left: auto;
    margin-right: auto;
}

.clients__text {
    color: var(--text-muted);
    font-size: 17px;
    max-width: 560px;
    margin: 0 auto 36px;
}

.clients__viewport {
    width: calc(100% - 64px);
    max-width: calc(var(--max-width) - 64px);
    margin: 0 auto;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.clients__marquee {
    display: flex;
    gap: 28px;
    width: max-content;
    animation: clients-scroll 60s linear infinite;
}

.clients__marquee:hover {
    animation-play-state: paused;
}

.clients__track {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 28px;
}

.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 190px;
    height: 84px;
    padding: 16px 24px;
    flex-shrink: 0;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(20, 48, 77, 0.08);
}

.client-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.client-logo__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 12px 20px;
    background: var(--navy-dark);
    border-radius: 10px;
}

@keyframes clients-scroll {
    from {
        transform: translateX(0);
    }

    to {
        /* shift by exactly one track width + the connecting gap, so the
           duplicated track lines up perfectly and the loop has no jump */
        transform: translateX(calc(-50% - 14px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .clients__marquee {
        animation: none;
    }
}

/* ---------- Soluzioni ---------- */
.soluzioni {
    background: var(--gray-bg);
    padding: 90px 0;
}

.soluzioni h2 {
    margin-bottom: 0;
}

.soluzioni__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
}

.carousel-nav {
    display: none;
    gap: 12px;
    flex-shrink: 0;
}

.carousel-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--navy);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.carousel-arrow:hover:not(:disabled) {
    background: var(--navy);
    color: var(--white);
}

.carousel-arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.carousel {
    position: relative;
}

.carousel__track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
}

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

.carousel-card {
    flex: 0 0 calc((100% - 48px) / 3);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    color: var(--navy);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(20, 48, 77, 0.10);
}

/* padding solo sul contenuto testuale, la foto è a filo */
.carousel-card > :not(.carousel-card__photo) {
    padding-left: 24px;
    padding-right: 24px;
}

.carousel-card__photo {
    display: block;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--gray-bg);
}

.carousel-card__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* leggero zoom: nasconde il bordo bianco presente in alcune foto */
    transform: scale(1.06);
    transition: transform 0.35s ease;
}

.carousel-card:hover .carousel-card__photo img {
    transform: scale(1.11);
}

/* variante con logo al posto della foto */
.carousel-card__photo--logo {
    background: var(--white);
    border-bottom: 1px solid var(--border);
}

.carousel-card__photo--logo img,
.carousel-card:hover .carousel-card__photo--logo img {
    object-fit: contain;
    padding: 32px;
    transform: none;
}

.carousel-card__tag {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin: 22px 0 8px;
}

.carousel-card h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 12px;
}

.carousel-card h3 a {
    color: inherit;
}

.carousel-card h3 a:hover {
    text-decoration: underline;
    text-decoration-color: var(--orange);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.carousel-card h3 span {
    color: var(--orange-text);
}

/* freccia obliqua accanto al nome: segnala che la card è cliccabile */
.carousel-card h3::after {
    content: "↗";
    flex: none;
    color: var(--orange-text);
    font-size: 0.9em;
    transition: transform 0.2s ease;
}

.carousel-card:hover h3::after {
    transform: translate(3px, -3px);
}

.carousel-card__text {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
    padding-bottom: 24px;
    margin: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-top: 12px;
}

/* area cliccabile 24x24 (accessibilità) con pallino visivo piccolo */
.carousel-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: none;
    padding: 0;
    background: transparent;
    display: grid;
    place-items: center;
    cursor: pointer;
}

.carousel-dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--border);
    transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.is-active::before {
    background: var(--orange);
    transform: scale(1.3);
}

/* Su desktop le soluzioni diventano una griglia a 3 colonne (niente carosello).
   Tablet e mobile (<= 900px) mantengono lo scorrimento orizzontale. */
@media screen and (min-width: 901px) {
    .carousel__track {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 40px 32px;
        overflow: visible;
    }

    .carousel-nav {
        display: none;
    }

    .carousel-dots {
        display: none;
    }
}

/* ---------- Detail pages ---------- */
.detail-hero {
    background: var(--navy);
    color: var(--white);
    padding: 48px 0;
}

.detail-video {
    padding: 40px 0 0;
}

.detail-video video {
    width: 100%;
    max-height: 520px;
    display: block;
    background: #000;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(20, 48, 77, 0.18);
}

/* ---------- Detail page screenshot gallery (placeholder mockups) ---------- */
.detail-gallery {
    padding: 56px 0 64px;
}

.detail-gallery h2 {
    max-width: none;
    margin-bottom: 28px;
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.screenshot-mock {
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 8px 20px rgba(20, 48, 77, 0.08);
}

.screenshot-mock__bar {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    background: var(--gray-bg);
    border-bottom: 1px solid var(--border);
}

.screenshot-mock__bar span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border);
}

.screenshot-mock__body {
    display: flex;
    height: 190px;
}

.screenshot-mock__sidebar {
    width: 28%;
    background: var(--navy);
}

.screenshot-mock__content {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.screenshot-mock__stats {
    display: flex;
    gap: 8px;
}

.screenshot-mock__stat {
    flex: 1;
    height: 30px;
    border-radius: 6px;
    background: var(--gray-bg);
}

.screenshot-mock__chart {
    flex: 1;
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding-top: 8px;
}

.screenshot-mock__chart span {
    flex: 1;
    border-radius: 4px 4px 0 0;
    background: var(--orange);
    opacity: 0.75;
}

.screenshot-mock__chart span:nth-child(even) {
    background: var(--navy);
    opacity: 0.7;
}

.screenshot-mock__row {
    height: 22px;
    border-radius: 6px;
    background: var(--gray-bg);
}

.screenshot-mock__block {
    border-radius: 6px;
    background: var(--gray-bg);
    height: 22px;
}

.screenshot-mock__block--wide {
    height: 70px;
    background: var(--orange);
    opacity: 0.15;
}

.screenshot-mock__block--short {
    width: 60%;
}

.screenshot-mock figcaption {
    padding: 12px 14px;
    font-size: 13px;
    font-weight: 700;
    color: var(--navy);
    border-top: 1px solid var(--border);
}

@media screen and (max-width: 900px) {
    .screenshot-grid {
        grid-template-columns: 1fr;
    }
}

.breadcrumb {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
}

.breadcrumb a {
    color: var(--orange);
    font-weight: 600;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.detail-hero h1 {
    font-size: clamp(30px, 5.2vw, 50px);
    font-weight: 700;
    line-height: 1.14;
    letter-spacing: -0.015em;
    text-wrap: balance;
    max-width: 12em;
    margin-bottom: 16px;
    color: var(--white);
}

.detail-hero h1 span {
    color: var(--orange);
}

.detail-hero p {
    color: rgba(255, 255, 255, 0.85);
    max-width: 820px;
}

.detail-content {
    padding: 80px 0;
}

.detail-content .container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: start;
}

.detail-main h2 {
    font-size: 22px;
    max-width: none;
    margin-bottom: 16px;
}

.detail-main h2:not(:first-child) {
    margin-top: 40px;
}

.detail-main p {
    color: var(--text-muted);
}

.detail-main p+p {
    margin-top: 16px;
}

.detail-main ul:not(.feature-list) {
    list-style: disc;
    padding-left: 22px;
    margin-top: 8px;
}

.detail-main ul:not(.feature-list) li {
    color: var(--text-muted);
}

.detail-main ul:not(.feature-list) li+li {
    margin-top: 6px;
}

.feature-list {
    margin-top: 16px;
}

.feature-list li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    color: var(--text-muted);
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--orange-text);
    font-weight: 700;
}

.detail-sidebar {
    background: var(--gray-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 28px;
    position: sticky;
    top: 110px;
}

.detail-sidebar h3 {
    font-size: 17px;
    margin-bottom: 12px;
}

.detail-sidebar p {
    color: var(--text-muted);
}

.detail-sidebar .btn {
    display: block;
    text-align: center;
    margin-top: 20px;
}

.detail-sidebar .btn--outline {
    color: var(--navy);
    border-color: var(--border);
}

@media screen and (max-width: 900px) {
    .detail-content .container {
        grid-template-columns: 1fr;
    }

    .detail-sidebar {
        position: static;
    }
}

/* ---------- Lavora con noi ---------- */
.lavora {
    background: var(--gray-bg);
    border-top: 1px solid var(--border);
    padding: 84px 0;
}

.lavora__card {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    align-items: stretch;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
}

.lavora__media {
    position: relative;
    min-height: 320px;
}

.lavora__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.lavora__body {
    padding: 52px 52px;
    align-self: center;
}

.lavora__body h2 {
    font-size: clamp(26px, 3.4vw, 34px);
    line-height: 1.2;
    max-width: none;
    margin-bottom: 16px;
}

.lavora__body p {
    color: var(--text-muted);
    max-width: 460px;
    margin-bottom: 26px;
}


@media screen and (max-width: 900px) {
    .lavora__card {
        grid-template-columns: 1fr;
    }

    .lavora__media {
        min-height: 200px;
    }

    .lavora__body {
        padding: 36px 28px;
    }
}

/* ---------- Legal / privacy page ---------- */
.legal {
    padding: 64px 0 80px;
}

.legal .container {
    max-width: 820px;
}

.legal h2 {
    font-size: 21px;
    max-width: none;
    margin: 40px 0 12px;
}

.legal h2:first-of-type {
    margin-top: 24px;
}

.legal p,
.legal li {
    color: var(--text-muted);
}

.legal p+p {
    margin-top: 12px;
}

.legal ul {
    list-style: disc;
    padding-left: 22px;
    margin: 12px 0;
}

.legal li+li {
    margin-top: 6px;
}

.legal a {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
}

.legal a:hover {
    text-decoration: underline;
}

.legal__updated {
    font-size: 14px;
    margin-bottom: 8px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--navy);
    color: var(--white);
}

/* "CONTATTI" nel footer: stesso stile dei kicker di sezione (CHI SIAMO ecc.) */
.footer .eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(255, 255, 255, 0.6);
}

.footer .eyebrow::before {
    content: "";
    flex: none;
    width: 34px;
    height: 3px;
    background: var(--orange);
}

/* i label della colonna contatti restano invariati (senza trattino) */
.footer__info .eyebrow {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    letter-spacing: 0.18em;
    color: var(--orange);
}

.footer__info .eyebrow::before {
    display: none;
}

.footer h2 {
    color: var(--white);
    max-width: 8em;
    margin-bottom: 16px;
}

.footer__text {
    color: var(--white);
    max-width: 360px;
}

.footer__info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

@media screen and (min-width: 901px) {

    /* il gruppo info si restringe alla riga più lunga e va a destra;
       i 3 blocchi partono tutti dallo stesso bordo sinistro */
    .footer__info {
        width: fit-content;
        margin-left: auto;
        text-align: left;
    }
}

.footer__info a:hover {
    text-decoration: underline;
}

.footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 24px 32px;
    color: rgba(255, 255, 255, 0.75);
}

.footer__bottom-inner p {
    font-size: 16px;
}

.footer__bottom-inner a:hover {
    text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media screen and (max-width: 900px) {
    .two-col {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .carousel-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }
}

@media screen and (max-width: 600px) {
    h2 br {
        display: none;
    }

    .hero h1 {
        font-size: 32px;
    }

    .carousel-card {
        flex: 0 0 85%;
    }

    .soluzioni__header {
        align-items: flex-start;
    }

    .hamburger {
        display: block;
    }

    .navbar__inner {
        padding-top: 10px;
        padding-bottom: 10px;
    }

    .logo {
        font-size: 16px;
    }

    .hamburger {
        font-size: 24px;
    }

    .navbar__inner nav {
        display: contents;
    }

    nav .menu {
        display: none;
        flex-direction: column;
        gap: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--navy-dark);
        padding: 8px 0;
        z-index: 10;
    }

    nav .menu li {
        width: 100%;
    }

    nav .menu a {
        display: block;
        padding: 12px 32px;
    }

    #menu-toggle:checked~nav .menu {
        display: flex;
    }

    /* sottomenu SOLUZIONI: inline nel menu verticale */
    nav .menu__sub-toggle {
        display: block;
        width: 100%;
        padding: 12px 32px;
        text-align: left;
    }

    nav .menu__submenu {
        position: static;
        transform: none;
        min-width: 0;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
        background: rgba(0, 0, 0, 0.22);
    }

    nav .menu__submenu a {
        padding: 11px 32px 11px 48px;
    }

    nav .menu__submenu-heading {
        padding: 12px 32px 6px 48px;
        margin-top: 4px;
    }
}