/* About - onepage di presentazione (about.php) */
:root {
    --lp-blue: #3a68ad;
    --lp-blue-dark: #2a5191;
    --lp-blue-deep: #16294a;
    --lp-gold: #d6a02a;
    --lp-ink: #16213a;
    --lp-muted: #55607a;
    --lp-line: #e3e8f2;
    --lp-tint: #f3f6fb;
    --lp-white: #ffffff;
    --lp-radius: 18px;
    --lp-shadow: 0 18px 40px -18px rgba(22, 41, 74, .35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body.lp {
    margin: 0;
    font-family: 'Atkinson Hyperlegible Next', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: var(--lp-ink);
    background: var(--lp-white);
}
.lp img { max-width: 100%; height: auto; }
.lp h1, .lp h2, .lp h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
.lp h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); font-weight: 800; }
.lp h1 em { font-style: normal; color: var(--lp-blue); }
.lp h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; }
.lp h3 { font-size: 1.15rem; font-weight: 800; }
.lp p { margin: 0 0 1em; }
.lp a { color: var(--lp-blue-dark); }
.lp :focus-visible { outline: 3px solid var(--lp-gold); outline-offset: 3px; border-radius: 6px; }

.lp-wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.lp-muted { color: var(--lp-muted); }
.lp-center { text-align: center; margin-top: 36px; }

.lp-skip {
    position: absolute; left: 12px; top: -60px; z-index: 1000;
    background: var(--lp-ink); color: #fff !important; padding: 10px 16px; border-radius: 8px;
    text-decoration: none; font-weight: 700;
}
.lp-skip:focus { top: 12px; }

/* Header */
.lp-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--lp-line);
}
.lp-header-row { display: flex; align-items: center; gap: 24px; height: 68px; }
.lp-logo img { display: block; height: 27px; width: auto; }
.lp-header .lp-wrap { max-width: 1440px; }
.lp-nav { display: flex; gap: 18px; margin-left: auto; }
.lp-nav a { color: var(--lp-ink); text-decoration: none; font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; }
.lp-nav a:hover { color: var(--lp-blue); }
.lp-header-actions { display: flex; align-items: center; gap: 14px; }
.lp-lang { display: flex; align-items: center; gap: 10px; }
.lp-lang a { display: inline-flex; opacity: .45; transition: opacity .2s ease; text-decoration: none; border-radius: 3px; }
.lp-lang a:hover, .lp-lang a:focus-visible { opacity: .8; }
.lp-lang a[aria-current="true"] { opacity: 1; }
.lp-lang img { width: 32px; height: 22px; object-fit: cover; border-radius: 3px; display: block; }
.lp-burger, .lp-nav-lang { display: none; }
@media (max-width: 900px) {
    .lp-header-actions { margin-left: auto; }
    .lp-header-actions > .lp-lang { display: none; }
    .lp-burger {
        display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; border: 1px solid var(--lp-line); border-radius: 12px;
        background: var(--lp-white); color: var(--lp-ink); font-size: 1.2rem; cursor: pointer;
    }
    .lp-nav {
        display: none; position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; gap: 0; margin: 0; padding: 8px 16px 20px;
        background: var(--lp-white); border-bottom: 1px solid var(--lp-line); box-shadow: var(--lp-shadow);
        max-height: calc(100vh - 68px); overflow-y: auto;
    }
    .lp-nav.is-open { display: flex; }
    .lp-nav > a { padding: 14px 4px; font-size: .95rem; border-bottom: 1px solid var(--lp-line); }
    .lp-nav-lang { display: flex; gap: 12px; padding-top: 16px; }
    .lp-nav-lang a {
        flex: 1; justify-content: center; align-items: center; gap: 8px; padding: 10px;
        border: 1px solid var(--lp-line); border-radius: 12px; color: var(--lp-ink); font-weight: 700; font-size: .9rem;
    }
    .lp-nav-lang a { opacity: 1; }
    .lp-nav-lang a[aria-current="true"] { border-color: var(--lp-blue); background: rgba(58, 104, 173, .08); }
}

/* Buttons */
.lp-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    padding: 14px 24px; border-radius: 999px; font-weight: 800; font-size: 1rem;
    text-decoration: none; border: 2px solid transparent;
    transition: background-color .15s ease, color .15s ease, transform .15s ease, border-color .15s ease;
}
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn-sm { padding: 8px 18px; font-size: .9rem; }
.lp .lp-btn-primary { background: var(--lp-blue); color: #fff; }
.lp .lp-btn-primary:hover { background: var(--lp-blue-dark); }
.lp .lp-btn-ghost { background: transparent; color: var(--lp-ink); border-color: var(--lp-line); }
.lp .lp-btn-ghost:hover { border-color: var(--lp-ink); }
.lp .lp-btn-light { background: #fff; color: var(--lp-blue-deep); }
.lp .lp-btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .55); }
.lp .lp-btn-outline-light:hover { border-color: #fff; }
@media (prefers-reduced-motion: reduce) { .lp-btn:hover { transform: none; } }

.lp-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    color: var(--lp-blue); margin-bottom: 14px !important;
}
.lp-num {
    font-weight: 800; font-size: .85rem; color: var(--lp-gold); letter-spacing: .05em;
    font-variant-numeric: tabular-nums;
}
.lp-icon {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 46px; height: 46px; border-radius: 14px;
    background: rgba(58, 104, 173, .1); color: var(--lp-blue); font-size: 1.15rem;
}

/* Hero */
.lp-hero {
    padding: 72px 0 80px;
    background:
        radial-gradient(900px 400px at 85% 10%, rgba(214, 160, 42, .12), transparent 60%),
        radial-gradient(900px 500px at 10% 100%, rgba(58, 104, 173, .12), transparent 60%);
}
.lp-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.lp-lead { font-size: 1.2rem; color: var(--lp-muted); max-width: 36em; }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 18px; }
.lp-cta-center { justify-content: center; }
.lp-note { font-size: .92rem; color: var(--lp-muted); display: flex; gap: 8px; align-items: baseline; }

/* Phone mockup */
.lp-phone {
    justify-self: center; width: 300px; max-width: 100%;
    padding: 12px; border-radius: 42px; background: var(--lp-ink);
    box-shadow: var(--lp-shadow), 0 0 0 1px rgba(0, 0, 0, .05);
    transform: rotate(2deg);
}
.lp-phone-screen { position: relative; border-radius: 32px; overflow: hidden; background: #dfe9f5; aspect-ratio: 9 / 18; }
.lp-phone-screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
/* Carosello: 3 slide × 4s, crossfade 0.8s (delay negativi → slide 1 visibile subito) */
.lp-carousel img { opacity: 0; animation: lp-fade 12s infinite; }
.lp-carousel img:nth-child(1) { animation-delay: -0.8s; }
.lp-carousel img:nth-child(2) { animation-delay: -8.8s; }
.lp-carousel img:nth-child(3) { animation-delay: -4.8s; }
@keyframes lp-fade {
    0% { opacity: 0; }
    6.67%, 33.33% { opacity: 1; }
    40%, 100% { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .lp-carousel img { animation: none; }
    .lp-carousel img:first-child { opacity: 1; }
}

/* Stats */
.lp-stats { border-top: 1px solid var(--lp-line); border-bottom: 1px solid var(--lp-line); }
.lp-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.lp-stats-grid > div { padding: 26px 20px; display: flex; flex-direction: column; gap: 2px; }
.lp-stats-grid > div + div { border-left: 1px solid var(--lp-line); }
.lp-stats strong { font-size: 2rem; font-weight: 800; color: var(--lp-blue); line-height: 1.1; }
.lp-stats span { font-size: .92rem; color: var(--lp-muted); font-weight: 600; }

/* Sections */
.lp-section { padding: 96px 0; }
.lp-section-tint { background: var(--lp-tint); }
.lp-section-head { max-width: 680px; margin-bottom: 44px; }
.lp-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }

.lp-numlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--lp-line); }
.lp-numlist li { display: flex; gap: 22px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--lp-line); }
.lp-numlist strong { display: block; font-size: 1.3rem; font-weight: 800; }
.lp-numlist span:not(.lp-num) { color: var(--lp-muted); font-size: .95rem; }

.lp-cards { display: grid; gap: 20px; }
.lp-cards-3 { grid-template-columns: repeat(3, 1fr); }
.lp-card { background: #fff; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); padding: 28px; }
.lp-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.lp-card-top .lp-num { font-size: 1.6rem; line-height: 1; }
.lp-card p, .lp-feat p { color: var(--lp-muted); margin: 0; font-size: .97rem; }

.lp-cards-feat { grid-template-columns: repeat(3, 1fr); gap: 36px 32px; }
.lp-feat { display: flex; gap: 16px; align-items: flex-start; }
.lp-feat h3 { margin-bottom: .3em; }

/* Install (dark) */
.lp-section-dark { background: var(--lp-blue-deep); color: #e8eef8; }
.lp-section-dark h2 { color: #fff; }
.lp-section-dark .lp-kicker { color: var(--lp-gold); }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.lp-steps li {
    display: flex; gap: 18px; align-items: center;
    background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 14px; padding: 18px 20px; font-weight: 700; color: #fff;
}
.lp-safety {
    display: flex; gap: 14px; align-items: flex-start; margin-top: 48px;
    background: rgba(214, 160, 42, .12); border: 1px solid rgba(214, 160, 42, .4);
    border-radius: 14px; padding: 16px 20px; font-size: .95rem;
}
.lp-safety i { color: var(--lp-gold); margin-top: 4px; }
.lp-safety strong { color: #fff; }

.lp-link { font-weight: 800; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.lp-link:hover { text-decoration: underline; }

/* Final CTA */
.lp-final { padding: 0 0 96px; }
.lp-final-box {
    max-width: 1120px; text-align: center; color: #fff;
    background: linear-gradient(135deg, var(--lp-blue) 0%, var(--lp-blue-deep) 100%);
    border-radius: 28px; padding: 64px 24px;
}
.lp-final-box h2 { color: #fff; }
.lp-final-box p { font-size: 1.1rem; opacity: .9; max-width: 32em; margin: 0 auto; }

/* Footer */
.lp-footer { border-top: 1px solid var(--lp-line); padding: 48px 0 28px; font-size: .95rem; }
.lp-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.lp-footer-grid a { display: block; text-decoration: none; margin-bottom: 6px; }
.lp-footer-grid a:hover { text-decoration: underline; }
.lp-footer-grid .lp-muted a { display: inline; font-weight: 800; }
.lp .lp-footer-logo { display: block; height: 24px; width: auto; margin-bottom: 14px; }
.lp-footer-title { font-weight: 800; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--lp-muted); margin-bottom: 10px !important; }
.lp-footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--lp-line); color: var(--lp-muted); font-size: .85rem; }

/* Responsive */
@media (max-width: 900px) {
    .lp-hero { padding: 48px 0 64px; }
    .lp-hero-grid, .lp-split { grid-template-columns: 1fr; gap: 40px; }
    .lp-phone { transform: none; width: 270px; }
    .lp-cards-3, .lp-cards-feat { grid-template-columns: 1fr 1fr; }
    .lp-stats-grid { grid-template-columns: 1fr 1fr; }
    .lp-stats-grid > div:nth-child(3) { border-left: 0; }
    .lp-stats-grid > div:nth-child(n+3) { border-top: 1px solid var(--lp-line); }
    .lp-section { padding: 72px 0; }
}
@media (max-width: 600px) {
    body.lp { font-size: 16px; }
    .lp-wrap { padding: 0 16px; }
    .lp-logo img { height: 22px; }
    .lp-header-actions { gap: 8px; }
    .lp-cards-3, .lp-cards-feat, .lp-footer-grid { grid-template-columns: 1fr; }
    .lp-cta-row .lp-btn { width: 100%; }
    .lp-final-box { border-radius: 20px; padding: 48px 20px; }
    .lp-section { padding: 60px 0; }
}

/* Cos'è */
.lp-about { padding-bottom: 0; }
.lp-lead-sm { font-size: 1.12rem; }

/* FAQ */
.lp-faq-wrap { max-width: 860px; }
.lp-faq { display: grid; gap: 12px; }
.lp-faq details { background: #fff; border: 1px solid var(--lp-line); border-radius: 14px; }
.lp-faq summary {
    display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 18px 22px; cursor: pointer; list-style: none;
}
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after {
    content: '+'; flex: none; font-size: 1.4rem; font-weight: 800; line-height: 1; color: var(--lp-blue);
}
.lp-faq details[open] summary::after { content: '–'; }
.lp-faq summary h3 { margin: 0; font-size: 1.05rem; }
.lp-faq details p { margin: 0; padding: 0 22px 20px; color: var(--lp-muted); }

/* Brand */
.lp-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.lp-footer-brand { font-weight: 800; margin-bottom: 6px !important; }
.lp-small { font-size: .85rem; max-width: 34em; }

/* Loghi partner (Città di Venezia, Ministero del Turismo, Enjoy Respect Venezia) */
.lp-partners { border-bottom: 1px solid var(--lp-line); padding: 26px 0; }
.lp-partners-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 28px 56px; }
.lp .lp-partner { height: 56px; width: auto; }
.lp .lp-partner.lp-partner-tall { height: 76px; }
.lp .lp-partner.lp-partner-wide { height: 64px; }
.lp-project-logos { margin: 56px 0 0; padding: 32px 24px; border: 1px solid var(--lp-line); border-radius: var(--lp-radius); text-align: center; }
.lp-project-logos figcaption { margin-top: 22px; font-size: .9rem; color: var(--lp-muted); max-width: 46em; margin-left: auto; margin-right: auto; }
.lp-rights { display: block; margin-top: 8px; font-size: .78rem; }

/* Itinerari */
.lp-itn { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 40px; }
.lp-itn li { display: flex; gap: 18px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--lp-line); }
.lp-itn strong { display: block; font-size: 1.08rem; font-weight: 800; }
.lp-itn span:not(.lp-num) { font-size: .88rem; color: var(--lp-muted); }

/* 9 voci: sotto 1360px la nav va su una seconda riga centrata */
@media (min-width: 901px) and (max-width: 1360px) {
    html { scroll-padding-top: 120px; }
    .lp-header-row { flex-wrap: wrap; height: auto; padding-top: 12px; padding-bottom: 10px; row-gap: 8px; }
    .lp-header-actions { margin-left: auto; }
    .lp-nav { order: 3; width: 100%; margin-left: 0; justify-content: center; gap: 16px; }
}
@media (max-width: 600px) {
    .lp-itn { grid-template-columns: 1fr; }
    .lp-partners-row { gap: 20px 32px; }
    .lp .lp-partner { height: 44px; }
    .lp .lp-partner.lp-partner-tall { height: 60px; }
    .lp .lp-partner.lp-partner-wide { height: 50px; }
}
.lp-nav a { white-space: nowrap; }

/* Loghi sotto gli itinerari + link "Progetto finanziato" */
#itinerari .lp-project-logos { background: transparent; }
.lp-funding-link {
    display: inline-flex; align-items: center; gap: 6px; margin: 10px auto 0; padding: 4px 2px;
    background: none; border: 0; font: inherit; font-weight: 800; color: var(--lp-blue-dark);
    cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.lp-funding-link:hover { color: var(--lp-blue); }
#itinerari figcaption { display: flex; flex-direction: column; align-items: center; }

/* Modale */
.lp-dialog {
    width: min(620px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto;
    border: 0; border-radius: var(--lp-radius); padding: 28px; color: var(--lp-ink);
    box-shadow: 0 30px 80px -20px rgba(22, 41, 74, .5); font-size: .97rem;
}
.lp-dialog::backdrop { background: rgba(22, 33, 58, .55); }
.lp-dialog-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 12px; }
.lp-dialog-head h2 { font-size: 1.35rem; margin: 0; display: flex; gap: 10px; align-items: center; }
.lp-dialog-head h2 i { color: var(--lp-blue); }
.lp-dialog-close {
    flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--lp-line);
    background: #fff; color: var(--lp-ink); font-size: 1.1rem; cursor: pointer;
}
.lp-dialog-close:hover { background: var(--lp-tint); }
.lp-dialog-logos { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--lp-line); gap: 20px 36px; }
.lp-dialog-logos .lp-partner { height: 44px; }
.lp-dialog-logos .lp-partner.lp-partner-tall { height: 58px; }
.lp-dialog-logos .lp-partner.lp-partner-wide { height: 50px; }

/* Itinerari: 4 colonne su desktop, 3 su schermi medi, 2 su tablet, 1 su telefono */
.lp-itn { grid-template-columns: repeat(4, 1fr); gap: 0 28px; }
.lp-itn li { gap: 14px; }
@media (max-width: 1100px) { .lp-itn { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .lp-itn { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .lp-itn { grid-template-columns: 1fr; } }

/* Punti di interesse: categorie + legenda livelli */
.lp-poi-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.lp .lp-poi-sub { font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--lp-muted); margin-bottom: 14px; }
.lp-poi-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; }
.lp-poi-cats li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--lp-line); }
.lp-poi-cats strong { display: block; font-weight: 800; }
.lp-poi-cats span:not(.lp-poi-icons) { display: block; font-size: .88rem; color: var(--lp-muted); }
.lp-poi-icons { display: flex; flex: none; width: 68px; }
.lp .lp-poi-icons img { width: 20px; height: auto; margin-right: 2px; }
.lp-poi-levels-box { background: var(--lp-tint); border-radius: var(--lp-radius); padding: 26px; }
.lp-poi-levels { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.lp-poi-levels li { display: flex; align-items: center; gap: 14px; background: #fff; border-radius: 12px; padding: 10px 14px; }
.lp .lp-poi-levels img { width: 26px; height: auto; flex: none; }
@media (max-width: 900px) { .lp-poi-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .lp-poi-cats { grid-template-columns: 1fr; } }

/* Video tutorial */
.lp-video-section { background: var(--lp-tint); margin-top: 96px; }
.lp-center-head { margin-left: auto; margin-right: auto; text-align: center; }
.lp-video {
    max-width: 820px; margin: 0 auto; border-radius: 24px; overflow: hidden;
    background: #fff; border: 1px solid var(--lp-line); box-shadow: var(--lp-shadow);
}
.lp-video video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; background: #fff; }
.lp-video-more { margin-top: 20px; }
.lp-hero-video { margin-top: 6px; }
@media (max-width: 900px) { .lp-video-section { margin-top: 72px; } }
@media (max-width: 600px) { .lp-video { border-radius: 16px; } .lp-video-section { margin-top: 60px; } }
