/* ===== Nextep Service — sito pubblico (design editoriale con foto) ===== */
:root {
    --ink: #111a24;
    --navy: #16324f;
    --navy-2: #1f4a73;
    --azure: #4a8fcf;
    --azure-2: #2a69a6;
    --warm: #e8884a;
    --warm-2: #cf6a2c;
    --bg: #f5f1ea;
    --card: #ffffff;
    --line: #e7e1d7;
    --muted: #667180;
    --radius: 20px;
    --shadow: 0 12px 32px rgba(17, 26, 36, .08);
    --shadow-lg: 0 26px 60px rgba(17, 26, 36, .18);
    --font-head: 'Fraunces', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--ink); background: #fff; -webkit-font-smoothing: antialiased; padding-top: 0; overflow-x: hidden; }
body:not(.home) { padding-top: 76px; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); letter-spacing: -.01em; color: var(--ink); font-weight: 600; }
a { color: var(--azure-2); }
img { max-width: 100%; }
.skip { position: absolute; left: 8px; top: 8px; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: 8px; }
.display { font-size: clamp(1.9rem, 3.8vw, 2.9rem); line-height: 1.12; font-weight: 600; }

/* ----- header ----- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 1030; transition: background .35s, box-shadow .35s, backdrop-filter .35s; }
.site-header .navbar { padding: 1rem 0; transition: padding .3s; }
.home .site-header:not(.scrolled) { background: transparent; }
.home .site-header:not(.scrolled) .nav-link, .home .site-header:not(.scrolled) .brand-text { color: #fff; }
.home .site-header:not(.scrolled) .site-logo { filter: brightness(0) invert(1); }
.home .site-header:not(.scrolled) .burger i { background: #fff; }
body:not(.home) .site-header, .site-header.scrolled { background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 1px 0 var(--line); }
.site-header.scrolled .navbar { padding: .55rem 0; }
.navbar-brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-weight: 700; color: var(--navy); }
.site-logo { height: 40px; width: auto; transition: filter .3s; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; background: linear-gradient(135deg, var(--azure), var(--navy-2)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.brand-text { font-size: 1.15rem; letter-spacing: -.02em; }
.brand-text b { font-weight: 600; color: var(--azure); margin-left: .15rem; }
.navbar .nav-link { font-weight: 500; font-size: .96rem; color: var(--ink); padding: .5rem .85rem !important; position: relative; }
.navbar .nav-link::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px; background: var(--warm); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.navbar .nav-link:hover::after, .navbar .nav-link.active::after { transform: scaleX(1); }
.dropdown-menu { border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: .5rem; }
.dropdown-item { border-radius: 9px; padding: .55rem .8rem; }
.dropdown-item i { color: var(--azure); margin-right: .35rem; }
.dropdown-item:hover { background: var(--bg); }
.navbar-toggler { border: 0; padding: .4rem; box-shadow: none !important; }
.burger { display: grid; gap: 5px; width: 26px; }
.burger i { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .3s, opacity .3s; }
.navbar-toggler[aria-expanded="true"] .burger i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar-toggler[aria-expanded="true"] .burger i:nth-child(2) { opacity: 0; }
.navbar-toggler[aria-expanded="true"] .burger i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1199px) {
    .navbar-collapse { padding: 1rem 1.2rem; margin-top: .6rem; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); }
    .home .site-header:not(.scrolled) .navbar-collapse .nav-link { color: var(--ink); }
    .navbar .nav-link::after { display: none; }
}

/* ----- bottoni ----- */
.btn { border-radius: 999px; font-weight: 600; padding: .65rem 1.35rem; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.btn-lg { padding: .9rem 1.8rem; }
.btn-cta { background: var(--warm); color: #fff; border: 0; box-shadow: 0 10px 26px rgba(207,106,44,.35); }
.btn-cta:hover { background: var(--warm-2); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(207,106,44,.42); }
.btn-ghost { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.55); backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; color: var(--navy); }
.btn-dark { background: var(--ink); border-color: var(--ink); }
.btn-dark:hover { background: var(--azure-2); border-color: var(--azure-2); transform: translateY(-2px); }
.btn-outline-dark:hover { transform: translateY(-2px); }

/* ----- hero con foto ----- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; overflow: hidden; background: #0b1622; }
.hero-slides, .hero-shade { position: absolute; inset: 0; }
.slide { position: absolute; inset: -4%; background-size: cover; background-position: center; opacity: 0; transform: scale(1.02); transition: opacity 1.6s ease; }
.slide.on { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02) translate3d(0, 0, 0); } to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); } }
.hero-shade { background: linear-gradient(90deg, rgba(10,22,36,.86) 0%, rgba(10,22,36,.55) 48%, rgba(10,22,36,.15) 100%), linear-gradient(0deg, rgba(10,22,36,.7) 0%, transparent 38%); }
.hero-inner { position: relative; z-index: 2; padding-top: 9rem; padding-bottom: 6.5rem; max-width: 1140px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.7rem); line-height: 1.04; color: #fff; font-weight: 600; margin: .8rem 0 1.4rem; max-width: 16ch; }
.hero .lead { color: rgba(255,255,255,.88); max-width: 52ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); margin-bottom: 2rem; }
.kicker { text-transform: uppercase; letter-spacing: .16em; font-size: .76rem; font-weight: 700; color: var(--warm-2); }
.hero .kicker, .page-hero .kicker { color: #ffc399; }
.hero-bar { position: relative; z-index: 2; border-top: 1px solid rgba(255,255,255,.22); background: rgba(10,22,36,.4); backdrop-filter: blur(10px); padding: 1.1rem 0; }
.hstat { display: flex; align-items: center; gap: .8rem; }
.hstat strong { font-family: var(--font-head); font-size: 2.3rem; line-height: 1; }
.hstat span { font-size: .8rem; line-height: 1.25; color: rgba(255,255,255,.75); }
.scroll-cue { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.5); color: #fff; align-items: center; justify-content: center; text-decoration: none; animation: nudge 2s ease-in-out infinite; }
.scroll-cue:hover { background: #fff; color: var(--navy); }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ----- page hero con foto ----- */
.page-hero { position: relative; overflow: hidden; color: #fff; padding: 5.5rem 0 4.2rem; background: linear-gradient(135deg, var(--navy), #0d2136); }
.page-hero.has-img { padding: 7rem 0 5rem; }
.ph-img { position: absolute; inset: -8% 0; background-size: cover; background-position: center; will-change: transform; }
.page-hero.has-img::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10,22,36,.88), rgba(10,22,36,.5) 70%, rgba(10,22,36,.3)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1.1; margin: .5rem 0 .7rem; max-width: 22ch; }
.page-hero .lead { color: rgba(255,255,255,.86); max-width: 60ch; font-size: 1.15rem; }
.hero-blobs i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .45; animation: float 14s ease-in-out infinite; }
.hero-blobs i:nth-child(1) { width: 340px; height: 340px; background: var(--azure); left: -80px; top: -60px; }
.hero-blobs i:nth-child(2) { width: 280px; height: 280px; background: var(--warm); right: 6%; bottom: -120px; opacity: .3; animation-delay: -5s; }
@keyframes float { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(30px, 24px) scale(1.08); } }

/* ----- marquee marchi ----- */
.brands-strip { border-bottom: 1px solid var(--line); background: #fff; padding: 1.6rem 0; }
.marquee { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 4.5rem; align-items: center; animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; height: 56px; opacity: .6; filter: grayscale(1); transition: opacity .3s, filter .3s, transform .3s; text-decoration: none; }
.marquee-item:hover { opacity: 1; filter: none; transform: scale(1.08); }
.marquee-item img { max-height: 48px; width: auto; }
.brand-wordmark { font-family: var(--font-head); font-weight: 700; font-size: 1.6rem; color: var(--navy); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ----- sezioni ----- */
.section { padding: 6rem 0; }
.section-alt { background: var(--bg); }
.section-head { margin-bottom: 2.6rem; }
.section-head h2 { margin: .4rem 0 0; }
.lead-text { font-size: 1.15rem; line-height: 1.7; color: #3a4755; margin: 1.2rem 0 1.6rem; }
.rich { font-size: 1.08rem; line-height: 1.75; color: #2c3946; }
.rich p { margin-bottom: 1.1rem; }
.rich h2, .rich h3 { margin: 1.8rem 0 .8rem; }

/* collage */
.collage { position: relative; padding: 0 0 4rem; }
.collage .c-main { width: 82%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; box-shadow: var(--shadow-lg); display: block; }
.collage .c-small { position: absolute; right: 0; bottom: 0; width: 52%; aspect-ratio: 1; object-fit: cover; border-radius: 24px; border: 8px solid #fff; box-shadow: var(--shadow-lg); }
.collage .c-badge { position: absolute; left: -1rem; top: 2rem; background: var(--navy); color: #fff; padding: 1rem 1.2rem; border-radius: 16px; max-width: 190px; box-shadow: var(--shadow-lg); animation: bob 7s ease-in-out infinite; }
.collage .c-badge strong { display: block; font-family: var(--font-head); font-size: 1.35rem; }
.collage .c-badge span { font-size: .8rem; opacity: .8; line-height: 1.3; display: block; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.feature-list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.1rem; }
.feature-list li { display: flex; gap: 1rem; }
.feature-list i { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--bg); color: var(--azure-2); display: grid; place-items: center; font-size: 1.25rem; }
.feature-list strong { display: block; font-weight: 600; }
.feature-list span { color: var(--muted); font-size: .95rem; }

/* card con foto (ambiti, target) */
.photo-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 300px; color: #fff; text-decoration: none; isolation: isolate; box-shadow: var(--shadow); transition: transform .45s, box-shadow .45s; }
.photo-card.tall { min-height: 440px; }
.photo-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); color: #fff; }
.pc-img { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .9s cubic-bezier(.2, .7, .2, 1); z-index: -2; }
.photo-card:hover .pc-img { transform: scale(1.1); }
.pc-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10,22,36,.88) 0%, rgba(10,22,36,.35) 55%, rgba(10,22,36,.08) 100%); transition: background .4s; }
.photo-card:hover .pc-shade { background: linear-gradient(0deg, rgba(14,40,66,.92) 0%, rgba(14,40,66,.5) 65%, rgba(14,40,66,.2) 100%); }
.pc-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6rem; display: block; }
.photo-card .ico { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: .9rem; border-radius: 14px; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); font-size: 1.4rem; transition: background .3s, transform .4s; }
.photo-card:hover .ico { background: var(--warm); transform: rotate(-8deg); }
.photo-card h3 { color: #fff; font-size: 1.45rem; margin: 0 0 .35rem; }
.photo-card p { color: rgba(255,255,255,.85); font-size: .92rem; margin: 0 0 .8rem; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .5s, opacity .4s; }
.photo-card:hover p, .photo-card:focus-visible p { max-height: 6em; opacity: 1; }
.photo-card .more { font-weight: 600; font-size: .92rem; color: #ffc399; }
.photo-card .more i { display: inline-block; transition: transform .3s; }
.photo-card:hover .more i { transform: translateX(6px); }
@media (hover: none) { .photo-card p { max-height: 6em; opacity: 1; } }

/* ----- cataloghi ----- */
.cat-card { display: flex; align-items: center; gap: 1.1rem; padding: 1.15rem 1.3rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s, border-color .3s; height: 100%; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d6cfc2; }
.cat-ico { flex: none; width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; font-size: 1.5rem; color: var(--azure-2); background: #e9f1fa; }
.cat-body { flex: 1; min-width: 0; }
.cat-type { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); display: flex; align-items: center; gap: .5rem; }
.cat-card h3 { font-size: 1.02rem; font-weight: 600; margin: .15rem 0; line-height: 1.3; font-family: var(--font-body); }
.cat-meta { font-size: .85rem; color: var(--muted); }
.cat-card p { margin: .35rem 0 0; font-size: .9rem; color: var(--muted); }
.btn-download { flex: none; display: inline-flex; align-items: center; gap: .45rem; background: var(--ink); color: #fff; padding: .6rem 1.1rem; border-radius: 999px; font-size: .92rem; }
.btn-download:hover { background: var(--warm); color: #fff; transform: translateY(-2px); }
.chip { display: inline-block; font-size: .72rem; font-weight: 600; padding: .22rem .6rem; border-radius: 99px; background: #e9f1fa; color: var(--azure-2); }
.chip-ext { background: #fdeee2; color: var(--warm-2); }
.chip-link { text-decoration: none; margin: 0 .25rem .35rem 0; padding: .4rem .8rem; font-size: .82rem; transition: background .2s, color .2s; }
.chip-link:hover { background: var(--azure); color: #fff; }
@media (max-width: 575px) { .cat-card { flex-wrap: wrap; } .btn-download { width: 100%; justify-content: center; } }

.filter-bar { display: grid; gap: .9rem; padding: 1.1rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.filter-bar .search { position: relative; }
.filter-bar .search i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filter-bar .search input { width: 100%; padding: .8rem 1rem .8rem 2.6rem; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 1rem; }
.filter-bar .search input:focus { outline: 2px solid var(--azure); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-btn { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: .42rem .95rem; border-radius: 99px; font-size: .88rem; font-weight: 500; cursor: pointer; transition: all .2s; }
.chip-btn:hover { border-color: var(--azure); color: var(--azure-2); }
.chip-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.cat-col.hide { display: none; }

/* ----- marchi ----- */
.brand-card { height: 100%; padding: 2rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s, box-shadow .3s; }
.brand-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.brand-logo { height: 56px; display: flex; align-items: center; margin-bottom: 1.2rem; }
.brand-logo img { max-height: 56px; width: auto; }
.brand-card p { color: #4a5663; }
.brand-mini { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; min-height: 120px; padding: 1.2rem; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; background: #fff; color: var(--ink); transition: transform .3s, box-shadow .3s; }
.brand-mini:hover { transform: translateY(-4px); box-shadow: var(--shadow); color: var(--ink); }
.brand-mini img { max-height: 40px; width: auto; align-self: flex-start; }
.brand-mini span { font-size: .88rem; font-weight: 600; color: var(--azure-2); }

.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .7rem; align-items: flex-start; padding: .85rem 1rem; border-radius: 14px; background: var(--bg); transition: transform .25s, background .25s; }
.check-list li:hover { transform: translateX(6px); background: #e9f1fa; }
.check-list i { color: var(--azure-2); font-size: 1.15rem; }

.target-card { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.4rem 1.5rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 600; transition: all .3s; height: 100%; }
.target-card i { color: var(--azure); font-size: 1.2rem; transition: transform .3s; }
.target-card:hover { background: var(--ink); color: #fff; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.target-card:hover i { color: var(--warm); transform: translate(4px, -4px); }

/* ----- bande con foto ----- */
.stats-band, .cta-band { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.stats-band { padding: 5rem 0; }
.cta-band { text-align: center; padding: 7rem 0; }
.sb-img { position: absolute; inset: -12% 0; background-size: cover; background-position: center; z-index: -2; will-change: transform; }
.stats-band::before, .cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(14,36,60,.9), rgba(10,22,36,.82)); }
.stats-band strong { display: block; font-family: var(--font-head); font-size: clamp(2.6rem, 6vw, 4.2rem); font-weight: 600; line-height: 1; }
.stats-band span { color: rgba(255,255,255,.75); }
.cta-band h2 { color: #fff; max-width: 22ch; margin: 0 auto; }
.cta-band p { color: rgba(255,255,255,.85); margin: 1rem 0 2rem; font-size: 1.15rem; }

/* ----- news ----- */
.news-card { display: block; height: 100%; text-decoration: none; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s, box-shadow .35s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); color: var(--ink); }
.news-img { position: relative; height: 210px; background: linear-gradient(135deg, var(--navy-2), var(--azure)) center / cover; overflow: hidden; }
.news-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,22,36,.35), transparent 50%); }
.news-img .chip { position: absolute; z-index: 1; left: 1rem; top: 1rem; background: #fff; }
.news-body { padding: 1.3rem 1.4rem 1.5rem; }
.news-body time { font-size: .8rem; color: var(--muted); }
.news-body h3 { font-size: 1.25rem; margin: .3rem 0 .4rem; }
.news-body p { color: var(--muted); margin: 0; font-size: .95rem; }

/* ----- staff / assistenza / contatti ----- */
.person-card { text-align: center; padding: 2rem 1.5rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .3s, box-shadow .3s; height: 100%; }
.person-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center; font-family: var(--font-head); font-weight: 600; font-size: 1.9rem; color: #fff; background: linear-gradient(135deg, var(--azure), var(--navy-2)) center / cover; box-shadow: 0 10px 24px rgba(42,105,166,.3); }
.person-card h3 { font-size: 1.2rem; margin-bottom: .1rem; }
.person-card .role { color: var(--warm-2); font-weight: 600; font-size: .9rem; margin-bottom: .8rem; }
.person-card a, .svc-card a { display: block; color: var(--ink); text-decoration: none; font-size: .95rem; padding: .15rem 0; word-break: break-word; }
.person-card a:hover, .svc-card a:hover { color: var(--azure-2); }
.person-card i, .svc-card i { color: var(--azure); margin-right: .35rem; }
.svc-card { height: 100%; padding: 1.4rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); font-size: .95rem; transition: transform .3s, box-shadow .3s; }
.svc-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.svc-card .zone { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--azure-2); font-weight: 700; margin-bottom: .4rem; }
.svc-card h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: .5rem; font-family: var(--font-body); }
.contact-card, .form-card { padding: 2rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-list li { display: flex; gap: .8rem; padding: .55rem 0; align-items: flex-start; }
.contact-list i { color: var(--azure); font-size: 1.2rem; margin-top: .1rem; }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.form-control, .form-select { border-radius: 12px; padding: .7rem .95rem; border-color: var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--azure); box-shadow: 0 0 0 .22rem rgba(74,143,207,.2); }
.form-label { font-weight: 600; font-size: .9rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.form-done { text-align: center; padding: 2rem 1rem; }
.form-done i { font-size: 3.5rem; color: #22b573; animation: pop .6s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.stepper { display: flex; gap: .5rem; margin-bottom: 1.5rem; }
.stepper span { flex: 1; text-align: center; padding: .55rem .4rem; font-size: .85rem; font-weight: 600; border-radius: 999px; background: var(--bg); color: var(--muted); transition: all .3s; }
.stepper span.on { background: var(--ink); color: #fff; }
.stepper span.done { background: #e9f1fa; color: var(--azure-2); }
fieldset.step { display: none; border: 0; padding: 0; margin: 0; }
fieldset.step.active { display: block; animation: slideIn .4s ease; }
fieldset.step legend { margin-bottom: 1rem; }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }

/* ----- footer ----- */
.site-footer { background: #0b1622; color: rgba(255,255,255,.78); padding: 4.5rem 0 1.5rem; }
.site-footer h6 { color: #fff; text-transform: uppercase; letter-spacing: .12em; font-family: var(--font-body); font-size: .76rem; margin-bottom: 1rem; }
.site-footer a { color: rgba(255,255,255,.72); text-decoration: none; }
.site-footer a:hover { color: var(--warm); }
.site-footer li { padding: .22rem 0; }
.foot-logo { filter: brightness(0) invert(1); }
.foot-brand .brand-text { color: #fff; }
.social { display: flex; gap: .6rem; margin-top: 1rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background .2s, transform .2s; }
.social a:hover { background: var(--warm); color: #fff; transform: translateY(-3px); }
.foot-bottom { margin-top: 3rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .88rem; }

/* ----- animazioni al scroll ----- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .2s; } .reveal.d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
    .marquee-track { flex-wrap: wrap; width: auto; justify-content: center; }
}
@media (max-width: 767px) {
    .section { padding: 3.8rem 0; }
    .hero-inner { padding-top: 7rem; padding-bottom: 4rem; }
    .collage .c-badge { left: 0; }
    .photo-card.tall { min-height: 360px; }
}

/* ===== Mobile: nessuno scorrimento orizzontale ===== */
html, body { overflow-x: hidden; max-width: 100%; }
img, video, iframe, svg { max-width: 100%; }
.rich, .rich a, .person-card a, .svc-card a, .contact-list a, .site-footer a { overflow-wrap: anywhere; }
.rich a { word-break: break-word; }
.target-card { min-width: 0; }
.target-card span { min-width: 0; overflow-wrap: anywhere; }
.target-card i { flex: none; }
@media (max-width: 991px) {
    /* il gutter g-5 (3rem) sborda dal container: sulle viste strette lo riduco */
    .row.g-5 { --bs-gutter-x: 1.5rem; }
}
@media (max-width: 575px) {
    .container { --bs-gutter-x: 2.2rem; }
    .target-card { padding: 1rem; font-size: .95rem; }
    .hero h1 { font-size: clamp(2.1rem, 9vw, 2.6rem); }
    .hero-bar .container { gap: 1rem !important; }
    .hstat strong { font-size: 1.9rem; }
    .collage .c-badge { left: .5rem; max-width: 160px; }
    .cat-card { padding: 1rem; }
}
/* la striscia loghi scorre in un contenitore che taglia tutto ciò che esce */
.brands-strip { overflow: hidden; contain: paint; }
.marquee { max-width: 100%; }
.contact-list li > span, .contact-list li > a { min-width: 0; overflow-wrap: anywhere; }

/* ===== v2: barra loghi a colori dentro l'hero, freccia centrata ===== */
.hero-bar { background: #fff; border-top: 0; backdrop-filter: none; padding: .85rem 0; }
.hero-bar .marquee-track { gap: 4rem; }
.marquee-item { opacity: 1; filter: none; }
.marquee-item:hover { transform: scale(1.08); }
.hero-inner { padding-bottom: 8.5rem; }
.scroll-cue { position: absolute; left: 50%; bottom: 6rem; z-index: 3; display: inline-flex; width: 46px; height: 46px; margin-left: -23px; border-radius: 50%; border: 1px solid rgba(255,255,255,.6); background: rgba(10,22,36,.25); backdrop-filter: blur(6px); color: #fff; align-items: center; justify-content: center; text-decoration: none; animation: nudge 2s ease-in-out infinite; }
.scroll-cue:hover { background: #fff; color: var(--navy); }
@media (max-width: 767px) { .scroll-cue { display: none; } .hero-inner { padding-bottom: 6.5rem; } }

/* ----- novità: pagina singola ----- */
.news-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .8rem; }
.news-gallery a { display: block; aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: var(--bg); }
.news-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.news-gallery a:hover img { transform: scale(1.08); }
.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.video-wrap iframe, .video-wrap video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lightbox { position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center; background: rgba(8,14,22,.92); padding: 2rem; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox button { position: absolute; top: 1rem; right: 1.2rem; background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }
.lightbox .lb-nav { top: 50%; right: auto; left: 1rem; font-size: 3rem; transform: translateY(-50%); }
.lightbox .lb-nav.next { left: auto; right: 1rem; }

/* ----- banner staff (in fondo a Contatti) ----- */
.staff-banner { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 5rem 0; text-align: center; }
.staff-banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(135deg, rgba(14,36,60,.88), rgba(10,22,36,.8)); }
.staff-banner .sb-img { z-index: -2; }
.staff-banner h2 { color: #fff; max-width: 24ch; margin: 0 auto; }
.staff-banner p { color: rgba(255,255,255,.85); margin: .8rem auto 1.8rem; max-width: 52ch; font-size: 1.1rem; }

.navbar .btn-cta { white-space: nowrap; padding: .6rem 1.15rem; }
@media (max-width: 1199px) { .navbar .btn-cta { display: inline-block; } .home .site-header:not(.scrolled) .navbar-collapse .btn-cta { color: #fff; } }

/* loghi hero: scorrimento continuo senza vuoti (8 copie, periodo esatto = metà traccia) */
.hero-bar .marquee-track { gap: 0; animation-duration: 100s; }
.hero-bar .marquee-item { margin-right: 4rem; flex: none; }

/* box documenti: logo del marchio al posto dell'icona del tipo */
.cat-logo { flex: none; width: 92px; height: 58px; border-radius: 14px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; padding: 8px 10px; overflow: hidden; }
.cat-logo img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.cat-logo .brand-wordmark { font-size: .85rem; text-align: center; line-height: 1.1; white-space: normal; }
@media (max-width: 575px) { .cat-logo { width: 76px; height: 50px; } }

/* ----- cookie banner e contenuti con consenso ----- */
.cookie-banner { position: fixed; z-index: 2500; left: 1rem; right: 1rem; bottom: 1rem; max-width: 980px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; padding: 1.2rem 1.4rem; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); animation: cbIn .5s cubic-bezier(.2,.7,.2,1); }
.cookie-banner[hidden] { display: none; }
.cb-text { flex: 1 1 420px; font-size: .92rem; }
.cb-text strong { font-family: var(--font-head); font-size: 1.05rem; }
.cb-text p { margin: .3rem 0 0; color: #4a5663; line-height: 1.5; }
.cb-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-left: auto; }
@keyframes cbIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.foot-links { display: inline-flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.embed-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 1.2rem; text-align: center; background: linear-gradient(135deg, #16324f, #0d2136); color: rgba(255,255,255,.88); }
.embed-ph i { font-size: 2rem; color: #ffc399; }
.embed-ph p { margin: 0; max-width: 46ch; font-size: .92rem; }
.embed-ph a { color: #ffc399; font-size: .85rem; }
.map-wrap.embed-consent { position: relative; }
@media (max-width: 575px) { .cookie-banner { left: .6rem; right: .6rem; bottom: .6rem; padding: 1rem; } .cb-actions { width: 100%; } .cb-actions .btn { flex: 1; } }

/* centri assistenza: box cliccabile verso un link esterno (tel/email restano cliccabili) */
.svc-card { position: relative; }
.svc-card.has-link { cursor: pointer; }
.svc-card.has-link:hover { border-color: var(--azure); }
.svc-cover { position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.svc-cover:focus-visible { outline: 3px solid var(--azure); outline-offset: 2px; }
.svc-card a:not(.svc-cover) { position: relative; z-index: 2; }
.svc-ext { position: absolute; top: 1.1rem; right: 1.1rem; color: var(--azure); opacity: .55; transition: opacity .25s, transform .25s; }
.svc-card.has-link:hover .svc-ext { opacity: 1; transform: translate(2px, -2px); }

/* footer: link legali più distanziati, con separatore */
.foot-links { gap: .6rem 2.6rem; }
.foot-links a { position: relative; }
.foot-links a + a::before { content: ""; position: absolute; left: -1.3rem; top: 15%; height: 70%; width: 1px; background: rgba(255,255,255,.22); }
.foot-bottom { gap: .8rem 2rem; }
@media (max-width: 575px) { .foot-links { gap: .6rem 2rem; } .foot-links a + a::before { left: -1rem; } }
.cookie-banner [data-cookie].is-current { box-shadow: 0 0 0 3px rgba(74,143,207,.45); }
.cb-current { display: block; margin-top: .4rem; font-size: .82rem; color: var(--azure-2); }
