/* =====================================================================
   MyTown — Design system
   Palette allineata al LOGO ufficiale (prima slide): blu su bianco.
   Navy profondo #001E54 / #0A3A86  ·  Blu #0868C9 / #0060E4
   ===================================================================== */

:root {
    /* Brand — dal logo */
    --navy-900: #001E54;
    --navy-800: #0A2A66;
    --navy-700: #0A3A86;   /* navy del titolo (slide 1) */
    --blue-700: #0048C0;
    --blue-600: #0868C9;   /* blu del titolo (slide 1) */
    --blue-500: #0060E4;   /* blu acceso del logo */
    --blue-400: #2E7DF0;

    /* Neutri */
    --ink:      #0A2A66;
    --slate:    #5B6675;
    --line:     #E1E9F4;
    --bg:       #FFFFFF;
    --bg-tint:  #F3F8FE;
    --bg-tint2: #EAF2FD;

    /* Effetti */
    --radius:    18px;
    --radius-sm: 12px;
    --shadow-sm: 0 1px 2px rgba(10,42,102,.05), 0 4px 14px rgba(10,42,102,.06);
    --shadow-md: 0 12px 32px rgba(10,42,102,.12);
    --shadow-lg: 0 24px 60px rgba(0,30,84,.20);

    --grad-brand: linear-gradient(120deg, #0A3A86, #0060E4);
    --grad-dark:  linear-gradient(155deg, #051A40 0%, #0A2A66 55%, #0A3A86 100%);

    --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;

    --maxw: 1160px;
    --nav-h: 76px;
}

/* --------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.skip-link {
    position: absolute; left: -999px; top: 0; z-index: 200;
    background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ------------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.section { padding: 72px 0; }
.section--tint { background: var(--bg-tint); }
.section--dark { background: var(--grad-dark); color: #fff; }
.section--dark .section__lead { color: rgba(255,255,255,.80); }

.section__head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.section__title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; color: var(--navy-700); }
.section--dark .section__title { color: #fff; }
.section__lead { margin-top: 16px; font-size: 1.075rem; color: var(--slate); }

.eyebrow {
    font-family: var(--font-display); font-weight: 700; font-size: .8rem;
    letter-spacing: .14em; text-transform: uppercase; color: var(--blue-600);
    margin: 0 0 12px;
}
.eyebrow--light { color: var(--blue-400); }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

/* ------------------------------------------------------------ Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font-display); font-weight: 700; font-size: .95rem;
    padding: 12px 22px; border-radius: 999px; border: 1.5px solid transparent;
    cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
    white-space: nowrap;
}
.btn--lg { padding: 15px 28px; font-size: 1rem; }
.btn__icon { width: 18px; height: 18px; }
.btn--accent { background: var(--grad-brand); color: #fff; box-shadow: 0 8px 22px rgba(8,104,201,.30); }
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(8,104,201,.40); }
/* Outline su sfondo chiaro */
.btn--outline { background: #fff; color: var(--navy-700); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--outline:hover { transform: translateY(-2px); border-color: var(--blue-400); color: var(--blue-600); }
/* Ghost su sfondo scuro */
.btn--ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--ghost:hover { background: rgba(255,255,255,.16); transform: translateY(-2px); }

/* --------------------------------------------------------------- Chips */
.chip {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .85rem; font-weight: 600; padding: 8px 14px; border-radius: 999px;
    background: var(--bg-tint2); color: var(--navy-700);
    border: 1px solid var(--line);
}
.chip__icon { width: 15px; height: 15px; color: var(--blue-500); flex: none; }
/* Chip su sfondo scuro */
.chip--dark { background: rgba(255,255,255,.10); color: rgba(255,255,255,.92); border-color: rgba(255,255,255,.18); }
.chip--dark .chip__icon { color: var(--blue-400); }

/* ============================================================== NAV */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
    display: flex; align-items: center;
    background: rgba(255,255,255,.82); backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: background .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.nav.is-scrolled { background: rgba(255,255,255,.96); box-shadow: 0 6px 24px rgba(10,42,102,.10); border-bottom-color: var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__brand { display: inline-flex; }

.logo { display: block; width: auto; }
.logo--compact { height: 44px; }
.logo--full    { height: 84px; }

.nav__menu { display: none; align-items: center; gap: 4px; }
.nav__link {
    font-family: var(--font-display); font-weight: 600; font-size: .94rem;
    color: var(--navy-700); padding: 9px 13px; border-radius: 9px; transition: color .15s, background .15s;
}
.nav__link:hover { color: var(--blue-600); background: var(--bg-tint2); }
.nav__cta { margin-left: 8px; }

.nav__toggle {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 44px; height: 44px; padding: 0 10px; background: transparent; border: 0; cursor: pointer;
}
.nav__toggle span { display: block; height: 2px; background: var(--navy-700); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menu mobile aperto */
.nav__menu.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #fff; padding: 14px 22px 22px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.nav__menu.is-open .nav__link { padding: 13px 14px; font-size: 1rem; }
.nav__menu.is-open .nav__cta { margin: 8px 0 0; }

/* ============================================================= HERO */
.hero {
    position: relative; overflow: hidden; background: #fff; color: var(--ink);
    padding: calc(var(--nav-h) + 64px) 0 88px;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__circle { position: absolute; border-radius: 50%; }
.hero__circle--1 { width: 620px; height: 620px; background: var(--bg-tint2); top: -200px; right: -180px; }
.hero__circle--2 { width: 360px; height: 360px; background: var(--bg-tint);  bottom: -150px; left: -120px; }
.hero__circle--3 { width: 220px; height: 220px; background: var(--bg-tint2); bottom: 40px; right: 8%; opacity: .7; }
.hero__inner { position: relative; max-width: 880px; margin: 0 auto; text-align: center; }
.hero__logo { height: 132px; width: auto; margin: 0 auto 30px; }
.hero__eyebrow {
    font-family: var(--font-display); font-weight: 600; font-size: .82rem;
    letter-spacing: .04em; color: var(--slate);
    margin: 0 0 18px; padding: 7px 16px; border: 1px solid var(--line);
    border-radius: 999px; display: inline-block; background: #fff; box-shadow: var(--shadow-sm);
}
.hero__title { font-size: clamp(2.1rem, 6vw, 3.5rem); font-weight: 800; letter-spacing: -.03em; color: var(--navy-700); }
.hero__title .accent { color: var(--blue-600); }
.hero__rule { width: 132px; height: 4px; border-radius: 4px; background: var(--grad-brand); margin: 26px auto 0; }
.hero__subtitle { margin: 24px auto 0; max-width: 640px; font-size: clamp(1.05rem, 2.2vw, 1.22rem); color: var(--slate); }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.hero__badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }

/* ============================================================= CARDS */
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 28px; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #C9DCF6; }
.card__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
    background: var(--grad-brand); color: #fff;
}
.card__icon svg { width: 26px; height: 26px; }
.card__icon--soft { background: var(--bg-tint2); color: var(--blue-600); }
.card__num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 11px; margin-bottom: 16px;
    background: var(--grad-brand); color: #fff; font-family: var(--font-display); font-weight: 800;
}
.card__title { font-size: 1.18rem; font-weight: 700; margin-bottom: 9px; color: var(--navy-700); }
.card__text { color: var(--slate); font-size: .97rem; }

.card--feature { padding: 32px; }
.card--feature .card__icon { width: 58px; height: 58px; }
.card--compact { padding: 24px; }
.card--sector { position: relative; overflow: hidden; }
.card--sector::after {
    content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0;
    background: var(--grad-brand); transition: width .3s ease;
}
.card--sector:hover::after { width: 100%; }

/* ----------------------------------------------------------- Visione */
.visione__intro { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.pillars { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.pillar {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-display); font-weight: 700; font-size: .95rem;
    padding: 9px 18px; border-radius: 999px; background: #fff; color: var(--navy-700);
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
}
.pillar__icon { width: 16px; height: 16px; color: var(--blue-500); }
.card--actor { text-align: left; }

/* ----------------------------------------------------------- Servizi */
.servizi__group { margin-top: 40px; }
.servizi__group:first-of-type { margin-top: 8px; }
.servizi__group-title {
    font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 18px;
    padding-left: 14px; border-left: 3px solid var(--blue-400);
}
.tile {
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius-sm); padding: 22px;
    transition: background .2s ease, transform .2s ease, border-color .2s ease;
}
.tile:hover { background: rgba(255,255,255,.10); transform: translateY(-3px); border-color: rgba(46,125,240,.55); }
.tile__icon {
    display: inline-flex; width: 44px; height: 44px; border-radius: 12px; margin-bottom: 14px;
    align-items: center; justify-content: center;
    background: rgba(46,125,240,.18); color: var(--blue-400);
}
.tile__icon svg { width: 23px; height: 23px; }
.tile__title { font-size: 1.02rem; font-weight: 700; color: #fff; margin-bottom: 6px; }
.tile__text { font-size: .9rem; color: rgba(255,255,255,.74); }

/* --------------------------------------------------------- Tecnologia */
.tech-item {
    display: flex; gap: 16px; align-items: flex-start;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 22px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .25s;
}
.tech-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.tech-item__icon {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 13px; background: var(--bg-tint2); color: var(--blue-600);
}
.tech-item__icon svg { width: 24px; height: 24px; }
.tech-item__title { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; color: var(--navy-700); }
.tech-item__text { font-size: .92rem; color: var(--slate); }

/* ------------------------------------------------------- Open source */
.banner {
    position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: space-between; gap: 30px;
    background: var(--grad-dark); color: #fff; border-radius: 26px;
    padding: 48px clamp(28px, 5vw, 64px); box-shadow: var(--shadow-lg);
}
.banner::before {
    content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
    background: radial-gradient(circle, rgba(46,125,240,.55), transparent 70%);
    top: -120px; right: -80px; pointer-events: none;
}
.banner__content { position: relative; max-width: 720px; }
.banner__title { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; margin-bottom: 14px; color: #fff; }
.banner__text { color: rgba(255,255,255,.84); font-size: 1.02rem; }
.banner__mark { position: relative; flex: none; color: rgba(255,255,255,.92); }
.banner__icon { width: 96px; height: 96px; }

/* ------------------------------------------------------------ Partner */
.partner-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 40px; margin-top: 8px; }
.partner-logos img { height: 56px; width: auto; opacity: .9; }

/* ----------------------------------------------------- Contributo (home) */
.contributo { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
.contributo__text .btn { margin-top: 24px; }
.contributo__targa {
    position: relative; display: block; border-radius: var(--radius); overflow: hidden;
    border: 1px solid var(--line); box-shadow: var(--shadow-md); background: #fff;
    transition: transform .2s ease, box-shadow .25s ease;
}
.contributo__targa:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.contributo__targa img { width: 100%; height: auto; }
.contributo__zoom {
    position: absolute; right: 14px; bottom: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; background: var(--grad-brand); color: #fff;
    box-shadow: var(--shadow-md);
}
.contributo__zoom-icon { width: 18px; height: 18px; transform: rotate(-45deg); }

/* ------------------------------------------------- Pagina contributo */
.page-hero {
    position: relative; overflow: hidden; background: var(--bg-tint);
    padding: calc(var(--nav-h) + 56px) 0 56px; border-bottom: 1px solid var(--line);
}
.page-hero__bg { position: absolute; inset: 0; pointer-events: none; }
.page-hero__inner { position: relative; max-width: 820px; }
.page-hero__back {
    display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px;
    font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--blue-600);
}
.page-hero__back:hover { color: var(--navy-700); }
.page-hero__back-icon { width: 18px; height: 18px; transform: rotate(180deg); }
.page-hero__title { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; color: var(--navy-700); }
.page-hero__lead { margin-top: 16px; font-size: 1.1rem; color: var(--slate); max-width: 640px; }

.contributo-page { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: start; }
.contributo-page__targa {
    border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-md); background: #fff;
}
.contributo-page__targa img { width: 100%; height: auto; }
.contributo-page__heading { font-size: 1.3rem; font-weight: 800; color: var(--navy-700); margin-bottom: 22px; line-height: 1.3; }
.deflist { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.deflist__row { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 16px 20px; }
.deflist__row:nth-child(odd) { background: var(--bg-tint); }
.deflist dt { font-family: var(--font-display); font-weight: 700; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--blue-600); }
.deflist dd { margin: 0; color: var(--ink); font-size: .98rem; }
.contributo-page__note { margin-top: 22px; font-size: .88rem; color: var(--slate); line-height: 1.6; }
.region-strip {
    margin-top: 48px; padding: 30px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--bg-tint); display: flex; justify-content: center;
}
.region-strip img { max-height: 64px; width: auto; max-width: 100%; }

/* ------------------------------------------------- Card settore cliccabile */
.card--link { display: flex; flex-direction: column; color: inherit; }
.card--link .card__text { flex: 1; }
.card__more {
    display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
    font-family: var(--font-display); font-weight: 700; font-size: .9rem; color: var(--blue-600);
}
.card__more-icon { width: 16px; height: 16px; transition: transform .2s ease; }
.card--link:hover .card__more-icon { transform: translateX(4px); }

/* -------------------------------------------------- Screenshot (figure) */
.shot { margin: 0; }
.shot img {
    width: 100%; height: auto; display: block; border-radius: 12px;
    border: 1px solid var(--line); box-shadow: var(--shadow-md); background: #fff;
}
.shot figcaption { margin-top: 10px; font-size: .85rem; color: var(--slate); text-align: center; }

/* -------------------------------------------- Page hero a due colonne */
.page-hero__inner--wide { max-width: var(--maxw); display: grid; gap: 36px; grid-template-columns: 1fr; align-items: center; }
.page-hero__text .btn { margin-top: 24px; }
.shot--hero img { box-shadow: var(--shadow-lg); }

/* ----------------------------------------------------- Feature blocks */
.feature { display: grid; gap: 30px; grid-template-columns: 1fr; align-items: center; padding: 30px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 54px; height: 54px; border-radius: 14px; margin-bottom: 18px;
    background: var(--grad-brand); color: #fff;
}
.feature__icon svg { width: 27px; height: 27px; }
.feature__title { font-size: clamp(1.3rem, 2.6vw, 1.7rem); font-weight: 800; color: var(--navy-700); margin-bottom: 12px; }
.feature__desc { color: var(--slate); font-size: 1.02rem; }
.feature__list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.feature__list li { display: flex; gap: 10px; align-items: flex-start; font-size: .96rem; color: var(--ink); }
.feature__check { width: 19px; height: 19px; color: var(--blue-500); flex: none; margin-top: 2px; }
.feature__media { display: grid; gap: 18px; }
.feature__media--stack { grid-template-columns: 1fr; }

/* ------------------------------------------------ Shot centrato (figura) */
.shot--center { max-width: 760px; margin-left: auto; margin-right: auto; margin-top: 40px; }

/* ----------------------------------------------------- Flusso (step) */
.flow { display: grid; gap: 22px; grid-template-columns: 1fr; }
.flow-step {
    display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .25s ease;
}
.flow-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.flow-step .shot { margin: 0; }
.flow-step .shot img {
    border: 0; border-radius: 0; box-shadow: none; border-bottom: 1px solid var(--line);
    width: 100%; height: 210px; object-fit: cover; object-position: top center; background: var(--bg-tint);
}
.flow-step__body { padding: 20px 22px 24px; position: relative; }
.flow-step__n {
    position: absolute; top: -22px; right: 18px;
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%; background: var(--grad-brand); color: #fff;
    font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; box-shadow: var(--shadow-md);
}
.flow-step__title { font-size: 1.15rem; font-weight: 700; color: var(--navy-700); margin: 8px 0 6px; }
.flow-step__text { font-size: .94rem; color: var(--slate); }

/* -------------------------------------------------------------- Stati */
.stati { margin-top: 44px; text-align: center; }
.stati__title { font-size: 1.3rem; font-weight: 800; color: var(--navy-700); }
.stati__text { margin: 10px auto 22px; max-width: 560px; color: var(--slate); }
.stati__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* ----------------------------------------------------------- Profili */
.role-badge {
    display: inline-block; margin-bottom: 12px; padding: 5px 13px; border-radius: 999px;
    font-family: var(--font-display); font-weight: 700; font-size: .76rem; letter-spacing: .06em; text-transform: uppercase;
    background: var(--bg-tint2); color: var(--blue-600);
}
.profili__media { margin-top: 26px; }

/* ----------------------------------------------------- App / telefoni */
.phones { display: grid; gap: 28px; grid-template-columns: repeat(2, 1fr); }
.phone { margin: 0; text-align: center; }
.phone__frame {
    display: inline-block; padding: 8px; border-radius: 30px;
    background: linear-gradient(160deg, #143063, #0a1f44);
    box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12);
}
.phone__frame img { display: block; width: 100%; max-width: 230px; height: auto; border-radius: 22px; }
.phone figcaption { margin-top: 14px; font-size: .86rem; color: rgba(255,255,255,.74); }

/* -------------------------------------------------------------- Steps */
.steps { display: grid; gap: 22px; grid-template-columns: 1fr; }
.step {
    position: relative; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--radius); padding: 28px;
}
.step__n {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border-radius: 50%; margin-bottom: 16px;
    background: var(--grad-brand); color: #fff; font-family: var(--font-display);
    font-weight: 800; font-size: 1.2rem;
}
.step__title { font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step__text { color: rgba(255,255,255,.76); font-size: .96rem; }

/* ---------------------------------------------------------------- CTA */
.cta {
    position: relative; overflow: hidden; text-align: center;
    background: var(--grad-brand); color: #fff; padding: 84px 0;
}
.cta::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,.20), transparent 55%);
    pointer-events: none;
}
.cta__inner { position: relative; max-width: 700px; margin: 0 auto; }
.cta__title { font-size: clamp(1.8rem, 4.5vw, 2.6rem); font-weight: 800; color: #fff; }
.cta__text { margin: 16px auto 30px; max-width: 540px; font-size: 1.08rem; color: rgba(255,255,255,.92); }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.cta .btn--accent { background: #fff; color: var(--navy-700); box-shadow: 0 10px 28px rgba(0,30,84,.28); }
.cta .btn--accent:hover { background: #fff; }

/* ------------------------------------------------------------- Footer */
.footer { background: var(--bg-tint); color: var(--slate); padding: 60px 0 28px; border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: 38px; grid-template-columns: 1fr; }
.footer__brand .logo { margin-bottom: 18px; }
.footer__desc { font-size: .94rem; color: var(--slate); max-width: 420px; }
.footer__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.footer__title { font-family: var(--font-display); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-700); margin-bottom: 14px; }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: .95rem; color: var(--slate); transition: color .15s; }
.footer__col a:hover { color: var(--blue-600); }
.footer__muted { font-size: .85rem; color: #92a0b5; }
.footer__cna { height: 38px; width: auto; max-width: 100%; align-self: flex-start; margin-top: 6px; }
.footer__region { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--line); text-align: center; }
.footer__region-bar { display: inline-block; }
.footer__region-bar img { height: 52px; width: auto; max-width: 100%; transition: opacity .2s ease; }
.footer__region-bar:hover img { opacity: .8; }
.footer__region-note { margin-top: 16px; font-size: .82rem; color: #92a0b5; max-width: 720px; margin-left: auto; margin-right: auto; }
.footer__region-note a { color: var(--blue-600); }
.footer__bottom {
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
    margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line);
    font-size: .82rem; color: #92a0b5;
}

/* --------------------------------------------------------- Lightbox */
.is-zoomable { cursor: zoom-in; }
/* affordance: lente in alto a destra della figura al passaggio */
.shot { position: relative; }
.shot:has(.is-zoomable)::after,
.phone:has(.is-zoomable)::after {
    content: ""; position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
    border-radius: 50%; background: rgba(10,42,102,.72) no-repeat center / 17px 17px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='16.5' y1='16.5' x2='21' y2='21'/%3E%3Cline x1='11' y1='8' x2='11' y2='14'/%3E%3Cline x1='8' y1='11' x2='14' y2='11'/%3E%3C/svg%3E");
    opacity: 0; transform: scale(.85); transition: opacity .2s ease, transform .2s ease; pointer-events: none;
}
.shot:hover::after, .phone:hover::after { opacity: 1; transform: scale(1); }
.phone:has(.is-zoomable)::after { top: 16px; right: calc(50% - 115px); }

.no-scroll { overflow: hidden; }

.lightbox {
    position: fixed; inset: 0; z-index: 1000; display: none;
    align-items: center; justify-content: center; padding: 4vh 4vw;
}
.lightbox.is-open { display: flex; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(5,16,38,.86); backdrop-filter: blur(4px); animation: lb-fade .2s ease; }
.lightbox__content {
    position: relative; margin: 0; max-width: 1100px; max-height: 92vh;
    display: flex; flex-direction: column; align-items: center; gap: 14px; animation: lb-zoom .25s ease;
}
.lightbox__img {
    max-width: 100%; max-height: 84vh; width: auto; height: auto;
    border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); background: #fff;
}
.lightbox__caption { color: rgba(255,255,255,.86); font-size: .92rem; text-align: center; max-width: 760px; }
.lightbox__close {
    position: absolute; top: 14px; right: 18px; z-index: 2;
    width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255,255,255,.14); color: #fff; font-size: 2rem; line-height: 1;
    display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.lightbox__close:hover { background: rgba(255,255,255,.28); }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lb-zoom { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* --------------------------------------------------------- Reveal/anim */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ====================================================== Breakpoints */
@media (min-width: 600px) {
    .grid--2 { grid-template-columns: repeat(2, 1fr); }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .steps   { grid-template-columns: repeat(3, 1fr); }
    .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
@media (min-width: 860px) {
    .section { padding: 96px 0; }
    .grid--3 { grid-template-columns: repeat(3, 1fr); }
    .grid--4 { grid-template-columns: repeat(4, 1fr); }
    .nav__menu { display: flex; }
    .nav__toggle { display: none; }
    .contributo { grid-template-columns: 1fr 1.15fr; gap: 48px; }
    .contributo-page { grid-template-columns: 1.1fr .9fr; gap: 48px; }
    .deflist__row { grid-template-columns: 200px 1fr; gap: 16px; align-items: baseline; }
    .page-hero__inner--wide { grid-template-columns: 1fr 1.1fr; gap: 50px; }
    .feature { grid-template-columns: 1fr 1.1fr; gap: 50px; }
    .feature--alt .feature__text { order: 2; }
    .feature--alt .feature__media { order: 1; }
    .feature__media--stack { grid-template-columns: 1fr 1fr; }
    .phones { grid-template-columns: repeat(4, 1fr); gap: 22px; }
    .flow { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 600px) and (max-width: 859px) {
    .flow { grid-template-columns: repeat(2, 1fr); }
}

/* Stagger leggero per griglie */
@media (min-width: 860px) {
    .grid .reveal:nth-child(2) { transition-delay: .07s; }
    .grid .reveal:nth-child(3) { transition-delay: .14s; }
    .grid .reveal:nth-child(4) { transition-delay: .21s; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; transition: none; }
    * { animation: none !important; }
}

/* =====================================================================
   Cookie consent banner  +  pagine legali (Privacy / Cookie)
   ===================================================================== */
#kcs-cc{font-family:var(--font-body)}
#kcs-cc [hidden]{display:none!important}
.kcs-cc-overlay{position:fixed;inset:0;background:rgba(5,16,38,.55);backdrop-filter:blur(2px);z-index:1000}
.kcs-cc-banner{position:fixed;left:0;right:0;bottom:0;z-index:1001;padding:18px;display:flex;justify-content:center;animation:kcsUp .35s cubic-bezier(.16,1,.3,1)}
@keyframes kcsUp{from{opacity:0;transform:translateY(20px)}to{opacity:1;transform:none}}
.kcs-cc-banner-in{max-width:1080px;width:100%;background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:var(--shadow-lg);padding:22px 24px;display:flex;align-items:center;gap:26px;flex-wrap:wrap}
.kcs-cc-text{flex:1 1 380px;min-width:0}
.kcs-cc-text h2{font-family:var(--font-display);font-size:1.12rem;margin:0 0 6px;color:var(--navy-700)}
.kcs-cc-text p{margin:0;color:var(--slate);font-size:.92rem;line-height:1.6}
.kcs-cc-text a{color:var(--blue-600);font-weight:600;text-decoration:underline}
.kcs-cc-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.kcs-btn{font-family:var(--font-display);font-size:.92rem;font-weight:700;border-radius:999px;padding:11px 20px;cursor:pointer;border:1.5px solid transparent;transition:.2s;white-space:nowrap}
.kcs-btn-primary{background:var(--grad-brand);color:#fff;box-shadow:0 8px 22px rgba(8,104,201,.30)}
.kcs-btn-primary:hover{transform:translateY(-1px);box-shadow:0 12px 28px rgba(8,104,201,.40)}
.kcs-btn-ghost{background:#fff;color:var(--navy-700);border-color:var(--line)}
.kcs-btn-ghost:hover{border-color:var(--blue-400);color:var(--blue-600)}
.kcs-cc-panel{position:fixed;inset:0;z-index:1002;display:flex;align-items:center;justify-content:center;padding:18px}
.kcs-cc-panel-in{background:#fff;border-radius:20px;box-shadow:var(--shadow-lg);max-width:560px;width:100%;max-height:88vh;overflow:auto;padding:26px}
.kcs-cc-panel-head{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:6px}
.kcs-cc-panel-head h2{font-family:var(--font-display);margin:0;font-size:1.3rem;color:var(--navy-700)}
.kcs-cc-close{background:none;border:none;font-size:1.9rem;line-height:1;color:var(--slate);cursor:pointer;padding:0 4px}
.kcs-cc-close:hover{color:var(--ink)}
.kcs-cc-panel-intro{color:var(--slate);font-size:.92rem;margin:0 0 18px;line-height:1.6}
.kcs-cc-cat{border:1px solid var(--line);border-radius:14px;padding:16px 18px;margin-bottom:12px}
.kcs-cc-cat-head{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.kcs-cc-cat-name{font-weight:700;color:var(--navy-700)}
.kcs-cc-cat-name em{font-weight:500;color:var(--slate);font-style:normal;font-size:.85rem}
.kcs-cc-cat-desc{margin:0;color:var(--slate);font-size:.86rem;line-height:1.55}
.kcs-cc-panel-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end;margin-top:18px}
.kcs-switch{position:relative;display:inline-block;width:44px;height:25px;flex:0 0 auto}
.kcs-switch input{opacity:0;width:0;height:0}
.kcs-slider{position:absolute;inset:0;background:#cbd9e3;border-radius:25px;transition:.25s}
.kcs-slider:before{content:"";position:absolute;height:19px;width:19px;left:3px;top:3px;background:#fff;border-radius:50%;transition:.25s;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.kcs-switch input:checked + .kcs-slider{background:var(--blue-600)}
.kcs-switch input:checked + .kcs-slider:before{transform:translateX(19px)}
.kcs-switch input:disabled + .kcs-slider{background:var(--bg-tint2);cursor:not-allowed}
@media(max-width:680px){.kcs-cc-banner-in{padding:18px}.kcs-cc-actions{width:100%}.kcs-cc-actions .kcs-btn{flex:1 1 auto;text-align:center}}

/* link legali nel footer */
.footer__legal{display:flex;gap:18px;flex-wrap:wrap;align-items:center;margin-top:6px}
.footer__legal a,.footer__legal .cookie-prefs-link{color:var(--slate);font-size:.85rem;background:none;border:none;padding:0;cursor:pointer;font-family:inherit;text-decoration:none}
.footer__legal a:hover,.footer__legal .cookie-prefs-link:hover{color:var(--blue-600);text-decoration:underline}

/* ---- Pagine legali ---- */
.legal-hero{background:var(--grad-dark);position:relative;overflow:hidden;padding:calc(var(--nav-h) + 52px) 0 52px}
.legal-hero::before{content:"";position:absolute;inset:0;background:radial-gradient(60% 70% at 80% 10%,rgba(46,125,240,.30),transparent 60%)}
.legal-hero .container{position:relative;z-index:1;max-width:840px}
.legal-hero .eyebrow{color:var(--blue-400)}
.legal-hero h1{font-family:var(--font-display);color:#fff;font-size:clamp(1.9rem,4vw,2.8rem);margin:0 0 12px;font-weight:800}
.legal-hero p{color:rgba(255,255,255,.82);max-width:760px;margin:0}
.legal-body{max-width:840px;margin:0 auto;padding:58px 22px 88px}
.legal-body h2{font-family:var(--font-display);font-size:1.5rem;color:var(--navy-700);margin:42px 0 14px;padding-top:10px;font-weight:800}
.legal-body>p:first-of-type{margin-top:0}
.legal-body h3{font-family:var(--font-display);font-size:1.12rem;color:var(--ink);margin:26px 0 8px;font-weight:700}
.legal-body p,.legal-body li{color:var(--slate);font-size:1rem;line-height:1.75}
.legal-body ul{padding-left:22px;margin:0 0 16px}
.legal-body li{margin-bottom:7px}
.legal-body a{color:var(--blue-600);font-weight:600;text-decoration:underline}
.legal-body strong{color:var(--ink)}
.legal-body code{background:var(--bg-tint2);padding:2px 6px;border-radius:6px;font-size:.9em}
.legal-update{color:var(--slate);font-size:.9rem;border-top:1px solid var(--line);margin-top:46px;padding-top:18px}
.legal-toc{background:var(--bg-tint);border:1px solid var(--line);border-radius:16px;padding:22px 26px;margin-bottom:36px}
.legal-toc h2{margin:0 0 10px;font-size:1.05rem;padding:0;color:var(--navy-700)}
.legal-toc ul{list-style:none;padding:0;margin:0;display:grid;gap:6px}
.legal-toc li{margin:0}
.legal-toc a{font-weight:600;font-size:.95rem}
.legal-table{width:100%;border-collapse:collapse;margin:8px 0 20px;font-size:.95rem}
.legal-table th,.legal-table td{border:1px solid var(--line);padding:10px 12px;text-align:left;vertical-align:top;color:var(--slate)}
.legal-table th{background:var(--bg-tint2);color:var(--navy-700);font-weight:700}
.legal-callout{background:var(--bg-tint2);border:1px solid #cfe0f5;border-radius:14px;padding:18px 20px;margin:18px 0}
.legal-callout p{margin:0;color:var(--slate)}
.legal-table-wrap{overflow-x:auto}
