:root {
    --dark: #062f3d;
    --petrol: #064758;
    --teal: #0da89b;
    --mint: #2fd2c4;
    --ink: #102d37;
    --muted: #607780;
    --line: #dbe7e8;
    --soft: #f1f7f6;
    --white: #fff;
    --shadow: 0 22px 60px rgba(5, 57, 70, .12);
    --fs-menu: clamp(1rem, 0.35vw + 0.92rem, 1.35rem);
    --fs-btn: clamp(1.05rem, 0.4vw + 0.95rem, 1.4rem);
    --fs-kicker: clamp(0.82rem, 0.28vw + 0.72rem, 1.1rem);
    --fs-lead: clamp(1.1rem, 0.55vw + 0.85rem, 1.7rem);
    --fs-h1: clamp(2.5rem, 4.6vw, 6.2rem);
    --fs-h2: clamp(1.9rem, 3.2vw, 4.2rem);
    --fs-h3: clamp(1.1rem, 0.55vw + 0.9rem, 1.65rem);
    --fs-text: clamp(1rem, 0.35vw + 0.88rem, 1.35rem);
    --fs-small: clamp(0.92rem, 0.28vw + 0.82rem, 1.2rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.55;
    background: #fff;
}
a { text-decoration: none; color: inherit; }
svg { display: block; }
.listino-cart-pill svg,
body.page-listino .listino-cart-pill svg {
    width: 22px !important;
    height: 22px !important;
    max-width: 22px !important;
    max-height: 22px !important;
    flex-shrink: 0;
}
body.page-listino .listino-page-back { display: none !important; }
body.page-listino .listino-cta {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border: 0 !important;
    background: #0b2a34 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font: 800 clamp(1.1rem, 0.45vw + 1rem, 1.45rem) "DM Sans", sans-serif !important;
    border-radius: 999px !important;
    padding: 0.9em 1.7em !important;
    min-height: 3.1em;
    min-width: 10.5em;
    cursor: pointer;
    box-shadow: none !important;
    float: none !important;
    height: auto !important;
    width: auto !important;
}
body.page-listino .listino-search .listino-cta { border-radius: 14px !important; min-width: 8.5em; }
body.page-listino .listino-cta:hover { background: #08303c !important; color: #fff !important; }
body.page-listino .listino-grid td,
body.page-listino .listino-grid th,
body.page-listino .listino-grid span,
body.page-listino .listino-cell {
    font-size: clamp(1.28rem, 0.65vw + 1.12rem, 1.85rem) !important;
}
body.page-carrello .carrello-page-back,
body.page-carrello .buttonBack { display: none !important; }
body.page-carrello .carrello-layout {
    display: grid !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 400px) !important;
    grid-template-areas: "main side" !important;
    gap: 20px !important;
    align-items: start !important;
    width: 100% !important;
}
body.page-carrello .carrello-main { grid-area: main !important; min-width: 0; }
body.page-carrello .carrello-side { grid-area: side !important; position: sticky; top: 88px; }
body.page-carrello .carrello-card {
    background: #fff !important;
    border-radius: 22px !important;
    padding: 1.2em 1.4em 1.15em !important;
    box-shadow: 0 10px 28px rgba(16, 45, 55, .05) !important;
    margin-bottom: 16px !important;
}
body.page-carrello .carrello-fields {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px 16px !important;
}
body.page-carrello .carrello-fields .span-2 { grid-column: 1 / -1 !important; }
body.page-carrello .carrello-cta,
body.page-carrello .carrello-pay {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: #0b2a34 !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 0.85em 1.5em !important;
    font: 800 1.1rem "DM Sans", sans-serif !important;
    cursor: pointer;
}
body.page-carrello .carrello-cta-secondary {
    -webkit-appearance: none !important;
    appearance: none !important;
    background: #f4f7f6 !important;
    color: #102d37 !important;
    border: 0 !important;
    border-radius: 12px !important;
    padding: 0.75em 1.2em !important;
    font: 700 1.05rem "DM Sans", sans-serif !important;
    cursor: pointer;
}
.wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: clamp(20px, 4vw, 72px);
    padding-right: clamp(20px, 4vw, 72px);
    box-sizing: border-box;
}

.site-header {
    min-height: clamp(80px, 7vw, 110px);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, .93);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    z-index: 20;
}
.site-header .wrap { display: flex; align-items: center; position: relative; }
.brand { display: flex; gap: 14px; align-items: center; }
.mark {
    width: clamp(72px, 6.5vw, 104px);
    height: clamp(72px, 6.5vw, 104px);
    border-radius: 16px;
    background: transparent;
    display: grid;
    place-items: center;
    overflow: hidden;
    flex-shrink: 0;
}
.mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.brand b { font: 800 var(--fs-menu) Manrope, sans-serif; color: var(--ink); }
.brand small { display: block; color: #6f858c; font-size: var(--fs-small); }
.site-nav { display: flex; gap: clamp(18px, 2vw, 36px); margin-left: auto; align-items: center; }
.site-nav a { font-size: var(--fs-menu); font-weight: 600; color: #526b73; }
.site-nav a:hover { color: var(--teal); }
.site-nav-drop { position: relative; }
.site-nav-drop > span {
    font-size: var(--fs-menu);
    font-weight: 600;
    color: #526b73;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.site-nav-drop > span::after { content: "▾"; font-size: .75em; opacity: .7; }
.site-nav-drop:hover > span,
.site-nav-drop:focus-within > span { color: var(--teal); }
.site-nav-drop-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 8px;
    box-shadow: var(--shadow);
    z-index: 50;
}
.site-nav-drop:hover .site-nav-drop-menu,
.site-nav-drop:focus-within .site-nav-drop-menu {
    display: grid;
    gap: 2px;
}
.site-nav-drop-menu a {
    padding: 0.55em 0.85em;
    border-radius: 8px;
    white-space: nowrap;
}
.site-nav-drop-menu a:hover { background: #f4f7f6; color: var(--teal); }
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 27px;
}
.login {
    padding: clamp(10px, 0.8vw, 14px) clamp(14px, 1.2vw, 22px);
    border: 1px solid #bad0d2;
    border-radius: 12px;
    font-weight: 700;
    font-size: var(--fs-btn);
    display: flex;
    gap: 8px;
    align-items: center;
    background: #fff;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
}
.login svg { width: 1.15em; flex-shrink: 0; }
.login:hover { background: var(--petrol); color: #fff; }
.login:hover .account-text small { color: #fff; opacity: .9; }
.cart-badge {
    min-width: 1.45em;
    height: 1.45em;
    padding: 0 .4em;
    border-radius: 999px;
    background: var(--teal);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .78em;
    font-weight: 800;
}
.login:hover .cart-badge { background: #fff; color: var(--petrol); }
.account-menu { position: relative; }
.account-toggle { text-align: left; }
.account-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.account-text b { font-size: clamp(1.2rem, 0.5vw + 1.05rem, 1.55rem); }
.account-text small { font-size: clamp(1.05rem, 0.4vw + 0.95rem, 1.35rem); font-weight: 600; opacity: .8; }
.account-toggle .chevron { width: .95em; transition: transform .2s ease; }
.account-menu.open .chevron { transform: rotate(180deg); }
.account-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    min-width: 240px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 8px;
    z-index: 30;
}
.account-menu.open .account-dropdown { display: grid; }
.account-dropdown a {
    padding: 10px 12px;
    border-radius: 10px;
    font-size: var(--fs-menu);
    font-weight: 600;
    color: #526b73;
}
.account-dropdown a:hover { background: var(--soft); color: var(--teal); }
.menu {
    display: none;
    margin-left: 9px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: white;
    cursor: pointer;
}

.site-main { min-height: 48vh; }
body.page-inner .site-main {
    padding: 8px 28px 40px;
    background: transparent;
}
body.page-home .site-main { padding: 0; background: transparent; }
body.page-listino,
body.page-carrello,
body.page-ticket,
body.page-profilo,
body.page-licenze,
body.page-info,
body.page-listino form,
body.page-carrello form,
body.page-ticket form,
body.page-profilo form,
body.page-licenze form,
body.page-info form,
body.page-listino .app-shell,
body.page-carrello .app-shell,
body.page-ticket .app-shell,
body.page-profilo .app-shell,
body.page-licenze .app-shell,
body.page-info .app-shell {
    min-height: 100vh;
    width: 100%;
}
body.page-listino form,
body.page-carrello form,
body.page-ticket form,
body.page-profilo form,
body.page-licenze form,
body.page-info form,
body.page-listino .app-shell,
body.page-carrello .app-shell,
body.page-ticket .app-shell,
body.page-profilo .app-shell,
body.page-licenze .app-shell,
body.page-info .app-shell {
    display: flex;
    flex-direction: column;
}
body.page-listino .app-shell,
body.page-carrello .app-shell,
body.page-ticket .app-shell,
body.page-profilo .app-shell,
body.page-licenze .app-shell,
body.page-info .app-shell {
    flex: 1;
    flex-direction: row;
    align-items: stretch;
}
body.page-listino .app-content,
body.page-carrello .app-content,
body.page-ticket .app-content,
body.page-profilo .app-content,
body.page-licenze .app-content,
body.page-info .app-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 100vh;
    width: 100%;
}
body.page-listino [id$="ResultsUpdatePanel"],
body.page-carrello [id$="ResultsUpdatePanel"],
body.page-ticket [id$="ResultsUpdatePanel"],
body.page-profilo [id$="ResultsUpdatePanel"],
body.page-licenze [id$="ResultsUpdatePanel"],
body.page-info [id$="ResultsUpdatePanel"] {
    width: 100%;
}
body.page-listino .site-main,
body.page-carrello .site-main,
body.page-ticket .site-main,
body.page-profilo .site-main,
body.page-licenze .site-main,
body.page-info .site-main {
    width: 100%;
    max-width: none;
    padding: 8px 24px 20px;
    box-sizing: border-box;
}
body.page-listino .app-topbar,
body.page-carrello .app-topbar,
body.page-ticket .app-topbar,
body.page-profilo .app-topbar,
body.page-licenze .app-topbar,
body.page-info .app-topbar {
    padding-left: 24px;
    padding-right: 24px;
}

.app-sidebar,
.app-topbar { display: none; }
.app-shell { display: block; }
body.page-home .app-sidebar,
body.page-home .app-topbar { display: none !important; }

body.page-inner {
    background: #f4f7f6;
}
body.page-inner .app-shell {
    display: flex;
    min-height: 100vh;
    align-items: stretch;
}
body.page-inner .app-sidebar {
    --fs-side-brand: clamp(1.15rem, 0.45vw + 1rem, 1.55rem);
    --fs-side-sub: clamp(0.95rem, 0.3vw + 0.85rem, 1.2rem);
    --fs-side-label: clamp(0.85rem, 0.25vw + 0.78rem, 1.05rem);
    --fs-side-item: clamp(1.12rem, 0.55vw + 0.95rem, 1.5rem);
    --fs-side-help: clamp(1.05rem, 0.4vw + 0.9rem, 1.35rem);
    --fs-side-help-text: clamp(1rem, 0.35vw + 0.88rem, 1.25rem);
    --side-icon: clamp(1.35rem, 0.5vw + 1.15rem, 1.75rem);
    display: flex;
    flex-direction: column;
    width: clamp(16.5rem, 22vw, 22.5rem);
    flex-shrink: 0;
    background: #041c26;
    color: #d7e4e6;
    padding: 22px 16px 20px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
}
body.page-inner .app-content {
    flex: 1;
    min-width: 0;
    background: #f4f7f6;
}
body.page-inner .site-header-marketing,
body.page-inner .site-footer { display: none; }
body.page-inner .app-topbar {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    padding: 8px 32px 0;
    background: #f4f7f6;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    margin: 2px 6px 28px;
}
.app-mark {
    width: clamp(4.4rem, 6.2vw, 5.8rem);
    height: clamp(4.4rem, 6.2vw, 5.8rem);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    padding: 8px;
    box-sizing: border-box;
    box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}
.app-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.app-brand b { display: block; font: 800 var(--fs-side-brand) Manrope, sans-serif; color: #fff; }
.app-brand small { display: block; color: #8aa3aa; font-size: var(--fs-side-sub); }
.app-nav-label {
    font-size: var(--fs-side-label);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #7f98a0;
    margin: 0 10px 10px;
    font-weight: 700;
}
.app-nav { display: grid; gap: 6px; }
.app-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.7em 0.85em;
    border-radius: 12px;
    color: #c5d5d8;
    font-weight: 600;
    font-size: var(--fs-side-item);
    line-height: 1.25;
    position: relative;
}
.app-nav-item svg { width: var(--side-icon); height: var(--side-icon); flex-shrink: 0; }
.app-nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.app-nav-item.active {
    background: #fff;
    color: #102d37;
    font-weight: 700;
}
.app-nav-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-left: auto;
    background: transparent;
}
.app-nav-dot.is-on { background: #f5b400; }
.app-help {
    margin-top: auto;
    padding: 18px 10px 4px;
    color: #8aa3aa;
}
.app-help b { display: block; color: #e7f0f1; font-size: var(--fs-side-help); margin-bottom: 6px; }
.app-help p { margin: 0 0 10px; font-size: var(--fs-side-help-text); line-height: 1.45; }
.app-help a { color: #9fd8d2; font-weight: 700; font-size: var(--fs-side-help-text); }
.app-help a:hover { color: #fff; }

.app-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 0;
    background: transparent;
    color: #8a9aa0;
    font-family: "DM Sans", sans-serif;
    font-weight: 600;
    font-size: clamp(1.05rem, 0.4vw + 0.95rem, 1.32rem);
    line-height: 1.2;
    padding: 6px 0;
    cursor: pointer;
}
.app-back svg {
    width: 1.2em;
    height: 1.2em;
    flex-shrink: 0;
}
.app-back:hover { color: var(--petrol); }
.app-menu-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
}
.app-user,
.app-user-menu { margin-left: auto; }
.app-user {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: #102d37;
    font-family: inherit;
    cursor: pointer;
    padding: 6px 0;
}
.app-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #0b2a34;
    color: #fff;
    display: grid;
    place-items: center;
    font: 700 12px Manrope, sans-serif;
    flex-shrink: 0;
}
.app-user b { display: block; font-size: clamp(1.15rem, 0.45vw + 1rem, 1.5rem); }
.app-user small { display: block; color: #8a9aa0; font-size: clamp(1rem, 0.35vw + 0.9rem, 1.3rem); }
.app-user-menu .account-dropdown { right: 0; }

.site-footer { border-top: 1px solid var(--line); padding: 38px 0 27px; background: #fff; }
.foot { display: flex; justify-content: space-between; gap: 30px; }
.foot p { font-size: var(--fs-small); color: var(--muted); max-width: 28em; }
.site-footer .links { display: flex; gap: 55px; }
.site-footer .links div { display: grid; gap: 6px; }
.site-footer .links b { font-size: var(--fs-text); color: var(--ink); }
.site-footer .links a { font-size: var(--fs-small); color: var(--muted); }
.site-footer .links a:hover { color: var(--teal); }
.legal {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e6eded;
    color: #8a9a9f;
    font-size: var(--fs-small);
    display: flex;
    justify-content: space-between;
}
.legal a { color: inherit; }
.legal a:hover { color: var(--teal); }

.cookie-banner {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    padding: 16px 24px;
    text-align: center;
    background: var(--petrol);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
}
.cookie-banner a,
.cookie-banner .cookie-ok {
    display: inline-block;
    margin-left: 10px;
    padding: 8px 14px;
    border-radius: 12px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
}
.cookie-banner a { background: #c0392b; border: 1px solid #a93226; }
.cookie-ok {
    background: var(--teal);
    border: 1px solid #0b8f84;
    cursor: pointer;
}

body.page-inner .form,
body.page-inner .content .form {
    border-color: #bad0d2 !important;
    box-shadow: var(--shadow) !important;
    border-radius: 16px !important;
}
body.page-inner .title,
body.page-inner .testoStyle2,
body.page-inner .content {
    color: var(--petrol) !important;
    font-family: "DM Sans", sans-serif !important;
}
body.page-inner .buttonStyle,
body.page-inner .buttonBack {
    background: var(--petrol) !important;
    color: #fff !important;
    border: 0 !important;
    border-radius: 11px !important;
}
body.page-inner .buttonBack {
    background: var(--soft) !important;
    color: var(--petrol) !important;
}
body.page-inner .buttonStyle:hover,
body.page-inner .buttonBack:hover {
    background: var(--teal) !important;
    color: #fff !important;
}
body.page-inner .header {
    background: var(--soft) !important;
}
body.page-inner .site-main a:not(.home-btn) { color: var(--petrol); }
body.page-inner .site-main a:not(.home-btn):hover { color: var(--teal); }
body.page-inner .app-nav-item,
body.page-inner .app-brand,
body.page-inner .app-help a { color: inherit; }

.loader {
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: -500 !important;
    background-color: rgba(6, 71, 88, 0.25);
}

@media (max-width: 1100px) {
    body.page-inner .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        z-index: 40;
        transform: translateX(-105%);
        transition: transform .2s ease;
    }
    body.page-inner.sidebar-open .app-sidebar { transform: none; }
    body.page-inner .app-menu-toggle { display: inline-grid; place-items: center; }
    body.page-listino .site-main,
    body.page-ticket .site-main,
    body.page-inner .site-main { padding-left: 16px; padding-right: 16px; }
    body.page-inner .app-topbar { padding-left: 16px; padding-right: 16px; }
    body.page-carrello .carrello-layout {
        grid-template-columns: 1fr !important;
        grid-template-areas: "main" "side" !important;
    }
    body.page-carrello .carrello-side { position: static !important; }
    body.page-carrello .carrello-fields { grid-template-columns: 1fr !important; }
}
@media (max-width: 950px) {
    .site-nav {
        display: none;
        position: absolute;
        top: 72px;
        right: 0;
        left: auto;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
        padding: 16px 20px;
        flex-direction: column;
        gap: 14px;
        box-shadow: var(--shadow);
        min-width: 220px;
        z-index: 40;
    }
    .site-nav.open { display: flex; }
    .site-nav-drop-menu {
        position: static;
        display: grid;
        box-shadow: none;
        border: 0;
        padding: 6px 0 0 10px;
        min-width: 0;
    }
    .header-actions { margin-left: auto; }
}
@media (max-width: 650px) {
    .wrap { padding-left: 16px; padding-right: 16px; }
    .site-header { min-height: 88px; }
    .login > span:not(.cart-badge):not(.account-text) { display: none; }
    .menu { display: block; }
    .foot { display: grid; }
    .site-footer .links { display: grid; grid-template-columns: 1fr 1fr; }
    .legal { display: grid; gap: 6px; }
}
