: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-body: clamp(16px, 0.85vw + 11px, 24px);
    --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; font-size: var(--fs-body); }
body {
    margin: 0;
    color: var(--ink);
    font-family: "DM Sans", sans-serif;
    font-size: 1rem;
    line-height: 1.55;
    background: #fff;
}
a { text-decoration: none; color: inherit; }
svg { display: block; }
.wrap {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: clamp(20px, 4vw, 72px);
    padding-right: clamp(20px, 4vw, 72px);
    box-sizing: border-box;
}

header.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;
}
header.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; }
.brand small { display: block; color: #6f858c; font-size: var(--fs-small); }
.nav { display: flex; gap: clamp(18px, 2vw, 36px); margin-left: auto; }
.nav a { font-size: var(--fs-menu); font-weight: 600; color: #526b73; }
.nav a:hover { 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;
}

.hero {
    padding: 73px 0 80px;
    background: linear-gradient(#fff, #f2f9f8);
    overflow: hidden;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.02fr .98fr;
    gap: clamp(28px, 4vw, 80px);
    align-items: center;
}
.kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #077f78;
    font-size: var(--fs-kicker);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .11em;
}
.kicker:before {
    content: "";
    width: 27px;
    height: 2px;
    background: var(--mint);
}
h1 {
    font: 800 var(--fs-h1) / 1.03 Manrope, sans-serif;
    letter-spacing: -.058em;
    margin: 16px 0 23px;
    color: #0a3441;
}
.accent { color: var(--teal); }
.hero-lead { font-size: var(--fs-lead); color: var(--muted); max-width: none; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.actions + .actions { margin-top: 12px; }
.home-btn {
    padding: clamp(12px, 0.9vw, 18px) clamp(18px, 1.4vw, 28px);
    border-radius: 13px;
    font-weight: 700;
    font-size: var(--fs-btn);
    display: inline-flex;
    align-items: center;
    gap: 9px;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    text-decoration: none;
}
.home-btn svg { width: 1.15em; }
.primary,
.home-btn-petrol {
    background: var(--petrol);
    color: #fff;
    box-shadow: 0 10px 24px rgba(6, 71, 88, .18);
}
.home-btn-teal {
    background: var(--teal);
    color: #fff;
    box-shadow: 0 10px 24px rgba(13, 168, 155, .22);
}
.home-btn-gold {
    background: #d4a017;
    color: #2a2208;
    box-shadow: 0 10px 24px rgba(212, 160, 23, .22);
}
.home-btn-ocean {
    background: #1d6f8b;
    color: #fff;
    box-shadow: 0 10px 24px rgba(29, 111, 139, .22);
}
.primary:hover,
.home-btn-petrol:hover { background: #083845; color: #fff; }
.home-btn-teal:hover { background: #0b8f84; color: #fff; }
.home-btn-gold:hover { background: #be8e0e; color: #2a2208; }
.home-btn-ocean:hover { background: #165a71; color: #fff; }
.secondary { border: 1px solid var(--line); background: white; color: var(--petrol); }

.visual { min-height: 420px; position: relative; width: 100%; }
.hero-image-link {
    display: block;
    width: 100%;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 35px 70px rgba(6, 71, 88, .18);
}
.hero-image-link img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.strip { background: #032630; color: #fff; }
.strip .wrap {
    display: grid;
    grid-template-columns: 1.25fr repeat(3, 1fr);
    align-items: center;
    min-height: 112px;
}
.striplead { font: 700 var(--fs-text) Manrope, sans-serif; color: #c7e0e3; padding-right: 30px; }
.metric { border-left: 1px solid rgba(255, 255, 255, .12); padding-left: 28px; }
.metric b { display: block; color: #69e2d7; font: 800 clamp(1.5rem, 2.2vw, 2.8rem) Manrope, sans-serif; }
.metric span { font-size: var(--fs-small); color: #99bac0; }

.section { padding: 92px 0; }
.soft { background: var(--soft); }
.sectionhead {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: clamp(24px, 4vw, 80px);
    align-items: end;
    margin-bottom: 42px;
}
.sectionhead h2, .copy h2, .portal h2, .ctabox h2 {
    font: 800 var(--fs-h2) / 1.1 Manrope, sans-serif;
    letter-spacing: -.045em;
    margin: 10px 0 0;
}
.sectionhead p, .copy p { color: var(--muted); margin: 0; font-size: var(--fs-text); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.2vw, 22px); }
.home-card {
    border: 1px solid var(--line);
    border-radius: 19px;
    padding: 23px;
    background: #fff;
    min-height: 275px;
    display: flex;
    flex-direction: column;
}
.home-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.icon {
    width: 47px;
    height: 47px;
    border-radius: 14px;
    background: #e0f7f3;
    color: #087b75;
    display: grid;
    place-items: center;
    margin-bottom: 28px;
}
.icon svg { width: 23px; }
.home-card:nth-child(2) .icon { background: #e8efff; color: #476ac8; }
.home-card:nth-child(3) .icon { background: #fff1dc; color: #b97115; }
.home-card:nth-child(4) .icon { background: #eee9fd; color: #7655bd; }
.home-card h3 { font: 700 var(--fs-h3) Manrope, sans-serif; margin: 0 0 8px; }
.home-card p { font-size: var(--fs-text); color: var(--muted); margin: 0; }
.home-card a { margin-top: auto; color: var(--teal); font-size: var(--fs-small); font-weight: 700; }

.audience {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: clamp(24px, 4vw, 80px);
    align-items: center;
}
.checks { display: grid; gap: 11px; margin-top: 24px; }
.check { display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: var(--fs-text); }
.check i {
    font-style: normal;
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: #dff6f2;
    color: #087970;
    display: grid;
    place-items: center;
}
.segments { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.segment {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 17px;
    padding: 21px;
    min-height: 150px;
    display: block;
}
.segment:hover { box-shadow: var(--shadow); }
.segment:nth-child(2), .segment:nth-child(3) { transform: translateY(20px); }
.segment .icon { width: 39px; height: 39px; margin: 0 0 16px; }
.segment b { font: 700 var(--fs-h3) Manrope, sans-serif; display: block; }
.segment span { font-size: var(--fs-text); color: var(--muted); }

.portal {
    padding: 86px 0;
    background: linear-gradient(135deg, #063846, #08706d);
    color: #fff;
}
.portalgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 80px);
    align-items: center;
}
.portal h2 { margin: 12px 0 18px; }
.portal p { color: #bfdcdf; font-size: var(--fs-text); }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 25px; }
.features span { font-size: var(--fs-text); color: #dbefff; }
.features i { color: #5ce1d5; font-style: normal; }
.loginbox {
    background: #fff;
    color: var(--ink);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 26px 65px rgba(1, 27, 34, .24);
}
.loginbox h3 { font: 700 var(--fs-h3) Manrope, sans-serif; margin: 0; }
.loginbox p { font-size: var(--fs-small); color: var(--muted); margin: 5px 0 21px; }
.login-error {
    display: block;
    margin: 0 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fde8e8;
    color: #9b1c1c;
    font-size: var(--fs-small);
    font-weight: 600;
}
.field { margin-bottom: 13px; }
.field label { font-size: var(--fs-small); font-weight: 700; display: block; margin-bottom: 5px; }
.field input {
    width: 100%;
    height: clamp(46px, 3.4vw, 60px);
    border: 1px solid var(--line);
    border-radius: 11px;
    padding: 0 13px;
    font-family: inherit;
    font-size: var(--fs-text);
}
.password-wrap { position: relative; }
.password-wrap input { padding-right: 3.2em; }
.password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 2.2em;
    height: 2.2em;
    border: 0;
    background: transparent;
    color: #607780;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
}
.password-toggle svg { width: 1.25em; height: 1.25em; display: none; }
.password-toggle .icon-show { display: block; }
.password-toggle.is-on .icon-show { display: none; }
.password-toggle.is-on .icon-hide { display: block; }
.password-toggle:hover { color: var(--petrol); }
.submit {
    width: 100%;
    height: clamp(47px, 3.4vw, 60px);
    border: 0;
    border-radius: 11px;
    background: var(--petrol);
    color: #fff;
    font-weight: 700;
    font-family: inherit;
    font-size: var(--fs-btn);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    appearance: none;
    -webkit-appearance: none;
}
.forgot {
    display: block;
    text-align: center;
    color: var(--teal);
    font-size: var(--fs-small);
    font-weight: 700;
    margin-top: 13px;
}

.cta { padding: 80px 0; }
.ctabox {
    background: #f0f7f6;
    border: 1px solid #dbeae8;
    border-radius: 25px;
    padding: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}
.ctabox h2 { margin: 0; }
.ctabox p { margin: 7px 0 0; color: var(--muted); font-size: var(--fs-text); }

footer { border-top: 1px solid var(--line); padding: 38px 0 27px; }
.foot { display: flex; justify-content: space-between; gap: 30px; }
.foot p { font-size: var(--fs-small); color: var(--muted); max-width: 28em; }
.links { display: flex; gap: 55px; }
.links div { display: grid; gap: 6px; }
.links b { font-size: var(--fs-text); }
.links a { font-size: var(--fs-small); color: var(--muted); }
.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; }

@media (max-width: 950px) {
    .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;
    }
    .nav.open { display: flex; }
    .header-actions { margin-left: auto; }
    .hero-grid, .sectionhead, .audience, .portalgrid { grid-template-columns: 1fr; }
    .visual { width: 100%; margin: auto; }
    .cards { grid-template-columns: 1fr 1fr; }
    .striplead { display: none; }
    .strip .wrap { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 650px) {
    .wrap { padding-left: 16px; padding-right: 16px; }
    header.site-header { min-height: 70px; }
    .login > span:not(.cart-badge):not(.account-text) { display: none; }
    .menu { display: block; }
    .hero { padding: 45px 0 57px; }
    .metric { padding-left: 12px; }
    .section { padding: 64px 0; }
    .cards { grid-template-columns: 1fr; }
    .home-card { min-height: 220px; }
    .segments { grid-template-columns: 1fr; }
    .segment:nth-child(2), .segment:nth-child(3) { transform: none; }
    .features { grid-template-columns: 1fr; }
    .loginbox { padding: 22px; }
    .ctabox { padding: 28px 21px; display: grid; }
    .foot { display: grid; }
    .links { display: grid; grid-template-columns: 1fr 1fr; }
    .legal { display: grid; gap: 6px; }
}

/* Questo foglio è collegato solo da Default.aspx.
   Nasconde sidebar e "indietro" anche se il Master lascia body.page-inner. */
body .app-sidebar,
body .app-topbar {
    display: none !important;
}
body .site-header.site-header-marketing {
    display: flex !important;
}
body .site-footer {
    display: block !important;
}
body .app-shell {
    display: block !important;
    min-height: 0 !important;
}
body .app-content {
    display: block !important;
    flex: none !important;
    min-width: 0 !important;
    background: transparent !important;
}
body,
body.page-inner,
body.page-home {
    background: #fff !important;
}
body.page-inner .site-main,
body.page-home .site-main {
    padding: 0 !important;
    background: transparent !important;
}
body .home-btn-petrol,
body .home-btn-teal,
body .home-btn-ocean,
body .home-btn.primary {
    color: #fff !important;
}
body .home-btn-gold { color: #2a2208 !important; }
