﻿/* ============================================================
   SPOLU — CSS GLOBALE
   Usato da: Index.cshtml (link diretto) + _Layout.cshtml (Privacy, Cookie, Error)
   ============================================================ */

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --ink: #0E0E0E;
    --paper: #F5F2EC;
    --cream: #EDE9E0;
    --accent: #C84B2F;
    --accent2: #2F6AC8;
    --muted: #6B6760;
    --border: rgba(14,14,14,.1);
    --serif: 'DM Serif Display', Georgia, serif;
    --sans: 'DM Sans', system-ui, sans-serif;
    --radius: 6px;
    --max: 1160px;
    --max-legal: 760px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--paper);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

    body::before {
        content: '';
        position: fixed;
        inset: 0;
        background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
        pointer-events: none;
        z-index: 1000;
        opacity: .4;
    }

/* ══════════════════════════════════════
   NAV — Homepage
══════════════════════════════════════ */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border);
    background: rgba(245,242,236,.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.nav-logo {
    font-family: var(--serif);
    font-size: 1.5rem;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -.02em;
    display: flex;
    align-items: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

    .nav-links a {
        font-size: .875rem;
        font-weight: 500;
        color: var(--muted);
        text-decoration: none;
        transition: color .2s;
    }

        .nav-links a:hover {
            color: var(--ink);
        }

.nav-cta {
    background: var(--ink) !important;
    color: var(--paper) !important;
    padding: .5rem 1.25rem;
    border-radius: var(--radius);
    font-weight: 600 !important;
    transition: opacity .2s !important;
}

    .nav-cta:hover {
        opacity: .8;
    }

.nav-lang {
    display: flex;
    gap: 2px;
}

.lang-btn {
    background: none;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 3px 10px;
    font-size: .75rem;
    font-weight: 500;
    color: var(--muted);
    cursor: pointer;
    font-family: var(--sans);
    transition: all .15s;
}

    .lang-btn.active {
        background: var(--ink);
        color: var(--paper);
        border-color: var(--ink);
    }

/* ══════════════════════════════════════
   NAV — Pagine legali
══════════════════════════════════════ */
.spolu-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid var(--border);
    background: var(--paper);
}

.nav-back {
    font-size: .875rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
    transition: color .2s;
    display: flex;
    align-items: center;
    gap: .4rem;
}

    .nav-back:hover {
        color: var(--ink);
    }

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 8rem 2rem 4rem;
    max-width: var(--max);
    margin: 0 auto;
    position: relative;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 2rem;
    opacity: 0;
    animation: fadeUp .6s .1s forwards;
}

.hero-eyebrow-line {
    width: 32px;
    height: 1px;
    background: var(--accent);
}

.hero-eyebrow-text {
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent);
}

.hero-title {
    font-family: var(--serif);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    line-height: 1.05;
    letter-spacing: -.03em;
    color: var(--ink);
    max-width: 14ch;
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp .7s .2s forwards;
}

    .hero-title em {
        font-style: italic;
        color: var(--accent);
    }

.hero-sub {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--muted);
    max-width: 62ch;
    line-height: 1.65;
    margin-bottom: 2.5rem;
    font-weight: 300;
    opacity: 0;
    animation: fadeUp .7s .35s forwards;
}

.hero-note {
    margin-top: 1rem;
    font-size: .8125rem;
    color: var(--muted);
    opacity: 0;
    animation: fadeUp .7s .65s forwards;
}

.hero-scroll {
    position: absolute;
    bottom: 3rem;
    left: 2rem;
    display: flex;
    align-items: center;
    gap: .75rem;
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: 0;
    animation: fadeUp .7s .8s forwards;
}

.hero-scroll-line {
    width: 40px;
    height: 1px;
    background: var(--muted);
    animation: scrollPulse 2s infinite;
}

/* ══════════════════════════════════════
   FORM & CAPTCHA
══════════════════════════════════════ */
.privacy-check {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    font-size: .8125rem;
    color: var(--muted);
    justify-content: flex-end;
}

    .privacy-check input[type="checkbox"] {
        margin-top: 2px;
        accent-color: var(--accent);
        flex-shrink: 0;
        cursor: pointer;
    }

    .privacy-check a {
        color: var(--accent);
        text-decoration: underline;
    }

.hero-form {
    display: flex;
    flex-direction: column;
    gap: .625rem;
    max-width: 480px;
    opacity: 0;
    animation: fadeUp .7s .5s forwards;
}

.hero-form-row {
    display: flex;
    gap: .75rem;
}

.hero-input {
    flex: 1;
    padding: .875rem 1.25rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--paper);
    font-family: var(--sans);
    font-size: .9375rem;
    color: var(--ink);
    outline: none;
    transition: border-color .2s;
}

    .hero-input:focus {
        border-color: var(--ink);
    }

    .hero-input::placeholder {
        color: var(--muted);
    }

    .hero-input.input-error {
        border-color: var(--accent);
    }

.hero-btn {
    padding: .875rem 1.75rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: .9375rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, transform .15s;
}

    .hero-btn:hover {
        background: #a83a20;
        transform: translateY(-1px);
    }

.captcha-row {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.captcha-label {
    font-size: .875rem;
    color: var(--muted);
    white-space: nowrap;
    font-weight: 500;
}

.captcha-label-light {
    color: rgba(245,242,236,.55);
}

.captcha-input {
    width: 72px;
    padding: .625rem .875rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    background: var(--paper);
    font-family: var(--sans);
    font-size: .9375rem;
    color: var(--ink);
    outline: none;
    transition: border-color .2s;
    text-align: center;
}

    .captcha-input:focus {
        border-color: var(--ink);
    }

    .captcha-input.input-error {
        border-color: var(--accent);
    }

.captcha-input-dark {
    background: rgba(245,242,236,.06);
    border-color: rgba(245,242,236,.2);
    color: var(--paper);
}

    .captcha-input-dark:focus {
        border-color: rgba(245,242,236,.5);
    }

    .captcha-input-dark::placeholder {
        color: rgba(245,242,236,.3);
    }

/* ══════════════════════════════════════
   ALERT
══════════════════════════════════════ */
.alert-banner {
    padding: 1rem 1.5rem;
    border-radius: var(--radius);
    margin-bottom: 1.5rem;
    font-size: .9375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .75rem;
    opacity: 0;
    animation: fadeUp .5s .1s forwards;
}

.alert-success {
    background: rgba(47,160,80,.1);
    border: 1px solid rgba(47,160,80,.3);
    color: #1e7a38;
}

.alert-error {
    background: rgba(200,75,47,.1);
    border: 1px solid rgba(200,75,47,.3);
    color: var(--accent);
}

.alert-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cta-alert {
    max-width: 480px;
    margin: 0 auto 1.5rem;
}

    .cta-alert.alert-success {
        background: rgba(47,160,80,.15);
        border-color: rgba(47,160,80,.4);
        color: #7dffaa;
    }

    .cta-alert.alert-error {
        background: rgba(200,75,47,.15);
        border-color: rgba(200,75,47,.4);
        color: #ffb3a0;
    }

/* ══════════════════════════════════════
   MARQUEE
══════════════════════════════════════ */
.marquee-wrap {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    background: var(--cream);
    padding: 1rem 0;
}

.marquee-track {
    display: flex;
    gap: 3rem;
    white-space: nowrap;
    animation: marquee 24s linear infinite;
}

    .marquee-track:hover {
        animation-play-state: paused;
    }

.marquee-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .8125rem;
    font-weight: 500;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
    flex-shrink: 0;
}

.marquee-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
}

/* ══════════════════════════════════════
   SEZIONI COMUNI
══════════════════════════════════════ */
section {
    padding: 6rem 2rem;
}

.container {
    max-width: var(--max);
    margin: 0 auto;
}

.section-label {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1rem;
}

.section-label-line {
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.section-label-text {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
}

.section-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.1;
    letter-spacing: -.025em;
    margin-bottom: 1.25rem;
}

.section-sub {
    font-size: 1.0625rem;
    color: var(--muted);
    max-width: 52ch;
    line-height: 1.65;
    font-weight: 300;
}

/* ══════════════════════════════════════
   CONCEPT
══════════════════════════════════════ */
.concept {
    background: var(--ink);
    color: var(--paper);
}

    .concept .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
        align-items: center;
    }

.concept-left .section-label-line {
    background: var(--accent);
}

.concept-left .section-label-text {
    color: var(--accent);
}

.concept-left .section-title {
    color: var(--paper);
}

    .concept-left .section-title em {
        color: var(--accent);
        font-style: italic;
    }

.concept-left .section-sub {
    color: rgba(245,242,236,.55);
}

.concept-quote {
    border-left: 2px solid var(--accent);
    padding-left: 1.5rem;
    margin-top: 2rem;
    font-family: var(--serif);
    font-size: 1.3125rem;
    font-style: italic;
    color: rgba(245,242,236,.8);
    line-height: 1.5;
}

.concept-pairs {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.pair-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    align-items: center;
    border: 1px solid rgba(245,242,236,.12);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s;
}

    .pair-card:hover {
        border-color: rgba(245,242,236,.3);
    }

.pair-side {
    padding: 1rem 1.25rem;
    background: rgba(245,242,236,.04);
}

.pair-tag {
    font-size: .5625rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(245,242,236,.35);
    margin-bottom: .25rem;
}

.pair-name {
    font-size: .9375rem;
    font-weight: 500;
    color: var(--paper);
}

.pair-arrow {
    padding: 0 .75rem;
    font-size: 1rem;
    color: var(--accent);
}

/* ══════════════════════════════════════
   HOW
══════════════════════════════════════ */
.how {
    background: var(--paper);
}

    .how .container {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        gap: 5rem;
        align-items: start;
    }

.how-steps {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 3rem;
}

.how-step {
    display: flex;
    gap: 1.5rem;
    padding: 2rem 0;
    border-top: 1px solid var(--border);
    transition: all .2s;
}

    .how-step:last-child {
        border-bottom: 1px solid var(--border);
    }

.how-step-num {
    font-family: var(--serif);
    font-size: 2.5rem;
    color: var(--accent);
    line-height: 1;
    flex-shrink: 0;
    width: 2.5rem;
    transition: color .2s;
}

.how-step-num {
    color: var(--accent);
}

.how-step-title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: .4rem;
    color: var(--ink);
}

.how-step-desc {
    font-size: .9375rem;
    color: var(--muted);
    line-height: 1.6;
    font-weight: 300;
}

.how-visual {
    position: sticky;
    top: 8rem;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 2);
    padding: 2.5rem;
}

.how-visual-label {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

.network-node {
    display: flex;
    flex-direction: column;
    gap: .625rem;
}

.node-row {
    display: flex;
    align-items: center;
    gap: .625rem;
}

.node {
    flex: 1;
    padding: .75rem 1rem;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: .8125rem;
    font-weight: 500;
    color: var(--ink);
    text-align: center;
    transition: all .3s;
}

    .node.center {
        background: var(--ink);
        color: var(--paper);
        border-color: var(--ink);
        font-family: var(--serif);
        font-size: 1rem;
    }

    .node.match {
        background: rgba(200,75,47,.08);
        border-color: rgba(200,75,47,.3);
        color: var(--accent);
    }

.node-arrow {
    color: var(--muted);
    font-size: .875rem;
    flex-shrink: 0;
}

.node-connector {
    text-align: center;
    font-size: .75rem;
    color: var(--muted);
    padding: .25rem;
}

/* ══════════════════════════════════════
   WHY
══════════════════════════════════════ */
.why {
    background: var(--cream);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3.5rem;
}

.why-card {
    padding: 2rem;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 2);
    transition: transform .2s, box-shadow .2s;
}

    .why-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 32px rgba(14,14,14,.08);
    }

.why-card-num {
    font-family: var(--serif);
    font-size: 3rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 1.25rem;
}

.why-card-title {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: .625rem;
    color: var(--ink);
}

.why-card-desc {
    font-size: .9375rem;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 300;
}

/* ══════════════════════════════════════
   TERRITORY
══════════════════════════════════════ */
.territory {
    background: var(--paper);
    border-top: 1px solid var(--border);
}

    .territory .container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
        align-items: center;
    }

.territory-countries {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: 2rem;
}

.country-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all .2s;
}

    .country-row:hover {
        border-color: var(--ink);
        background: var(--paper);
    }

.country-row-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.country-flag {
    font-size: 1.5rem;
}

.country-name {
    font-size: 1rem;
    font-weight: 500;
}

.country-sub {
    font-size: .8125rem;
    color: var(--muted);
    margin-top: .125rem;
}

.country-badge {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .25rem .75rem;
    border-radius: 20px;
}

.badge-launch {
    background: rgba(200,75,47,.1);
    color: var(--accent);
}

.badge-next {
    background: rgba(47,106,200,.1);
    color: var(--accent2);
}

.badge-future {
    background: var(--border);
    color: var(--muted);
}

.territory-stat {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.tstat {
    padding: 1.5rem;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.tstat-num {
    font-family: var(--serif);
    font-size: 2.25rem;
    color: var(--ink);
    line-height: 1;
    margin-bottom: .375rem;
}

.tstat-label {
    font-size: .8125rem;
    color: var(--muted);
    line-height: 1.4;
    font-weight: 300;
}

/* ══════════════════════════════════════
   PIANI
══════════════════════════════════════ */
.plans {
    background: var(--cream);
}

.plans-wip-banner {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .875rem 1.25rem;
    background: rgba(200,75,47,.07);
    border: 1px dashed rgba(200,75,47,.35);
    border-radius: var(--radius);
    font-size: .875rem;
    font-weight: 500;
    color: var(--accent);
    margin: 2rem 0 3rem;
}

.plans-wip-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.plan-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 2);
    padding: 2rem;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}

    .plan-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 16px 40px rgba(14,14,14,.08);
    }

.plan-card-featured {
    background: var(--ink);
    border-color: var(--ink);
    transform: translateY(-8px);
}

    .plan-card-featured:hover {
        transform: translateY(-12px);
        box-shadow: 0 20px 48px rgba(14,14,14,.25);
    }

.plan-badge-wip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    background: var(--cream);
    border: 1px solid var(--border);
    padding: .2rem .6rem;
    border-radius: 20px;
    margin-bottom: 1rem;
}

    .plan-badge-wip::before {
        content: '🔧';
        font-size: .7rem;
    }

.plan-badge-wip-light {
    color: rgba(245,242,236,.5);
    background: rgba(245,242,236,.08);
    border-color: rgba(245,242,236,.15);
}

.plan-name {
    font-family: var(--serif);
    font-size: 1.75rem;
    color: var(--ink);
    letter-spacing: -.02em;
    margin-bottom: .5rem;
}

.plan-card-featured .plan-name {
    color: var(--paper);
}

.plan-card-footnote {
    font-size: 0.75rem;
    color: var(--color-text-muted, #888);
    line-height: 1.4;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-border, #e5e5e5);
}

.plan-role-badge {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1rem;
}

.plan-role-badge-light {
    color: rgba(200,75,47,.7);
}

.plan-desc {
    font-size: .9rem;
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 1.5rem;
    font-weight: 300;
    min-height: 3rem;
}

.plan-card-featured .plan-desc {
    color: rgba(245,242,236,.5);
}

.plan-price-blur {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    margin-bottom: 1.75rem;
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
}

.plan-price-blur-light .plan-price-amount,
.plan-price-blur-light .plan-price-period {
    color: var(--paper);
}

.plan-price-amount {
    font-family: var(--serif);
    font-size: 2.25rem;
    color: var(--ink);
    line-height: 1;
}

.plan-price-annual {
    font-size: .8125rem;
    color: var(--muted);
    margin: -.75rem 0 1.5rem;
    font-weight: 300;
}

.plan-price-period {
    font-size: .875rem;
    color: var(--muted);
}

.plan-badge-lancio {
    display: inline-block;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 99px;
    background: #EAF3DE;
    color: #3B6D11;
    margin-bottom: 8px;
    /* altezza fissa garantita anche quando invisibile */
    min-height: 24px;
}

.plan-badge-lancio--empty {
    visibility: hidden; /* occupa spazio, non è visibile */
}

.plan-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-bottom: 2rem;
}

.plan-feature {
    display: flex;
    align-items: center;
    gap: .625rem;
    font-size: .9rem;
    color: var(--ink);
}

.plan-feature-light {
    color: rgba(245,242,236,.85);
}

.plan-feature-disabled {
    color: var(--muted);
    opacity: .45;
}

.plan-feature-disabled-light {
    color: rgba(245,242,236,.3);
    opacity: .6;
}

.plan-feature-icon {
    font-size: .75rem;
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
    width: 16px;
}

.plan-feature-disabled .plan-feature-icon {
    color: var(--muted);
}

.plan-feature-disabled-light .plan-feature-icon {
    color: rgba(245,242,236,.3);
}

.plan-btn {
    width: 100%;
    padding: .875rem;
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: .9375rem;
    font-weight: 600;
    cursor: not-allowed;
    opacity: .55;
    transition: none;
}

.plan-btn-outline {
    background: transparent;
    border: 1.5px solid var(--border);
    color: var(--muted);
}

.plan-btn-accent {
    background: var(--accent);
    border: none;
    color: #fff;
}


/* ─── PLAN PRICE (senza blur) ── */
.plan-price {
    display: flex;
    align-items: baseline;
    gap: .4rem;
    margin-bottom: 1.5rem;
}

/* ─── FEATURE GROUP LABEL ── */
.plan-feature-group-label {
    font-size: .6rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    opacity: .6;
    margin-bottom: .5rem;
    margin-top: .25rem;
    padding-top: .75rem;
    border-top: 1px solid var(--border);
}

/* ─── CLAIM CONTINUO ── */
.plans-claim {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    background: var(--ink);
    border-radius: var(--radius);
    margin: 2.5rem 0 3rem;
}

.plans-claim-icon {
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
    line-height: 1.2;
}

.plans-claim-title {
    font-size: .9375rem;
    color: rgba(245,242,236,.75);
    font-weight: 300;
    line-height: 1.6;
    font-style: italic;
}

/* ─── NOTA FINALE ── */
.plans-footnote {
    margin-top: 2.5rem;
    text-align: center;
    font-size: .8125rem;
    color: var(--muted);
    font-weight: 300;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}


/* ══════════════════════════════════════
   CTA
══════════════════════════════════════ */
.cta-section {
    background: var(--ink);
    color: var(--paper);
    text-align: center;
    padding: 8rem 2rem;
}

    .cta-section .section-title {
        color: var(--paper);
        max-width: 16ch;
        margin: 0 auto 1.25rem;
    }

        .cta-section .section-title em {
            color: var(--accent);
            font-style: italic;
        }

.cta-sub {
    font-size: 1.0625rem;
    color: rgba(245,242,236,.55);
    max-width: 48ch;
    margin: 0 auto 2.5rem;
    font-weight: 300;
    line-height: 1.65;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: .625rem;
    max-width: 480px;
    margin: 0 auto;
}

.cta-form-row {
    display: flex;
    gap: .75rem;
}

.cta-input {
    flex: 1;
    padding: .875rem 1.25rem;
    border: 1.5px solid rgba(245,242,236,.2);
    border-radius: var(--radius);
    background: rgba(245,242,236,.06);
    font-family: var(--sans);
    font-size: .9375rem;
    color: var(--paper);
    outline: none;
    transition: border-color .2s;
}

    .cta-input:focus {
        border-color: rgba(245,242,236,.5);
    }

    .cta-input::placeholder {
        color: rgba(245,242,236,.3);
    }

    .cta-input.input-error {
        border-color: var(--accent);
    }

.cta-btn {
    padding: .875rem 1.75rem;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: .9375rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}

    .cta-btn:hover {
        background: #a83a20;
    }

.cta-note {
    margin-top: 1rem;
    font-size: .8125rem;
    color: rgba(245,242,236,.3);
}

.subscriber-count {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .625rem;
    margin-bottom: 2.5rem;
}

.subscriber-count-num {
    font-family: var(--serif);
    font-size: 2rem;
    color: var(--accent);
    line-height: 1;
}

.subscriber-count-label {
    font-size: .9375rem;
    color: rgba(245,242,236,.45);
    font-weight: 300;
}

/* ══════════════════════════════════════
   FOOTER — Homepage
══════════════════════════════════════ */
footer {
    background: var(--ink);
    border-top: 1px solid rgba(245,242,236,.08);
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    font-family: var(--serif);
    font-size: 1.125rem;
    color: var(--paper);
    text-decoration: none;
}

.footer-copy {
    font-size: .8125rem;
    color: rgba(245,242,236,.3);
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

    .footer-links a {
        font-size: .8125rem;
        color: rgba(245,242,236,.4);
        text-decoration: none;
        transition: color .2s;
    }

        .footer-links a:hover {
            color: var(--paper);
        }

/* ══════════════════════════════════════
   FOOTER — Pagine legali
══════════════════════════════════════ */
.spolu-footer {
    background: var(--ink);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ══════════════════════════════════════
   PAGINE LEGALI
══════════════════════════════════════ */
.legal-wrap {
    max-width: var(--max-legal);
    margin: 0 auto;
    padding: 5.5rem 2rem 6rem;
}

.legal-eyebrow {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: 1.5rem;
}

.legal-eyebrow-line {
    width: 24px;
    height: 1px;
    background: var(--accent);
}

.legal-eyebrow-text {
    font-size: .6875rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent);
}

.legal-title {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
    letter-spacing: -.025em;
    margin-bottom: .75rem;
}

.legal-subtitle {
    font-size: .875rem;
    color: var(--muted);
    margin-bottom: .5rem;
}

.legal-date {
    font-size: .8125rem;
    color: var(--muted);
    font-weight: 300;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.legal-section {
    margin-bottom: 2.5rem;
}

    .legal-section h2 {
        font-family: var(--serif);
        font-size: 1.375rem;
        letter-spacing: -.02em;
        margin-bottom: .875rem;
        color: var(--ink);
    }

    .legal-section h3 {
        font-size: 1rem;
        font-weight: 600;
        margin-bottom: .5rem;
        margin-top: 1.25rem;
        color: var(--ink);
    }

    .legal-section p {
        font-size: .9375rem;
        color: var(--muted);
        line-height: 1.75;
        margin-bottom: .875rem;
        font-weight: 300;
    }

        .legal-section p:last-child {
            margin-bottom: 0;
        }

    .legal-section a {
        color: var(--accent);
        text-decoration: none;
        border-bottom: 1px solid rgba(200,75,47,.3);
        transition: border-color .2s;
    }

        .legal-section a:hover {
            border-color: var(--accent);
        }

.legal-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin: .875rem 0;
}

    .legal-list li {
        display: flex;
        align-items: flex-start;
        gap: .625rem;
        font-size: .9375rem;
        color: var(--muted);
        font-weight: 300;
        line-height: 1.65;
    }

        .legal-list li::before {
            content: '·';
            color: var(--accent);
            font-size: 1.2rem;
            line-height: 1.4;
            flex-shrink: 0;
        }

/* ══════════════════════════════════════
   ERROR PAGE
══════════════════════════════════════ */
.error-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding: 6rem 2rem;
    text-align: center;
}

.error-code {
    font-family: var(--serif);
    font-size: 6rem;
    color: var(--cream);
    line-height: 1;
    margin-bottom: 1rem;
}

.error-title {
    font-family: var(--serif);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-sub {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 2rem;
    font-weight: 300;
}

.error-btn {
    display: inline-block;
    padding: .875rem 2rem;
    background: var(--ink);
    color: var(--paper);
    border-radius: var(--radius);
    text-decoration: none;
    font-weight: 600;
    font-size: .9375rem;
    transition: opacity .2s;
}

    .error-btn:hover {
        opacity: .75;
    }

/* ══════════════════════════════════════
   ANIMAZIONI
══════════════════════════════════════ */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

@keyframes scrollPulse {
    0%, 100% {
        opacity: .4;
    }

    50% {
        opacity: 1;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s, transform .6s;
}

    .reveal.visible {
        opacity: 1;
        transform: none;
    }

/* ══════════════════════════════════════
   BILINGUE
══════════════════════════════════════ */
[data-en] {
    display: none;
}

body.en [data-it] {
    display: none;
}

body.en [data-en] {
    display: revert;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
    .concept .container, .how .container, .territory .container {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .why-grid {
        grid-template-columns: 1fr 1fr;
    }

    .how-visual {
        position: static;
    }

    nav {
        padding: 1rem 1.25rem;
    }

    .nav-links {
        display: none;
    }

    .plans-grid {
        grid-template-columns: 1fr;
    }

    .plan-card-featured {
        transform: none;
    }

        .plan-card-featured:hover {
            transform: translateY(-4px);
        }
}

@media (max-width: 600px) {
    section {
        padding: 4rem 1.25rem;
    }

    .hero {
        padding: 7rem 1.25rem 3rem;
        min-height: auto;
    }

    .hero-form-row, .cta-form-row {
        flex-direction: column;
    }

    .hero-btn, .cta-btn {
        width: 100%;
    }

    .hero-scroll {
        display: none;
    }

    .why-grid {
        grid-template-columns: 1fr;
    }

    .territory-stat {
        grid-template-columns: 1fr;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .how-visual {
        padding: 1.25rem;
        overflow: hidden;
    }

    .node-row {
        flex-wrap: wrap;
    }

    .node {
        min-width: 0;
        font-size: .7rem;
        padding: .5rem .625rem;
    }

    .node-arrow {
        font-size: .75rem;
    }

    .how .container {
        overflow: hidden;
    }
}

/* ── NETWORK PRESENCE BLOCK ── */
.presence-block {
    margin: 0 0 3rem;
}

.presence-intro {
    font-size: .9375rem;
    color: var(--muted);
    line-height: 1.7;
    font-weight: 300;
    font-style: italic;
    max-width: 64ch;
    margin: 0 auto 2rem;
    text-align: center;
    padding: 0 1rem;
}

.presence-states {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) * 2);
    overflow: hidden;
}

.presence-state {
    padding: 1.75rem 1.5rem;
    border-right: 1px solid var(--border);
    background: var(--paper);
}

    .presence-state:last-child {
        border-right: none;
    }

.presence-state-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.presence-state-active {
    background: #2FA050;
    box-shadow: 0 0 0 3px rgba(47,160,80,.15);
    animation: presence-pulse 2.5s ease-in-out infinite;
}

.presence-state-pause {
    background: #BA7517;
}

.presence-state-out {
    background: var(--border);
}

@keyframes presence-pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(47,160,80,.15);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(47,160,80,.08);
    }
}

.presence-state-label {
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .5rem;
}

.presence-state-title {
    font-family: var(--serif);
    font-size: 1.125rem;
    color: var(--ink);
    line-height: 1.25;
    margin-bottom: .75rem;
    letter-spacing: -.01em;
}

.presence-state-desc {
    font-size: .875rem;
    color: var(--muted);
    line-height: 1.65;
    font-weight: 300;
}

@media (max-width: 900px) {
    .presence-states {
        grid-template-columns: 1fr;
    }

    .presence-state {
        border-right: none;
        border-bottom: 1px solid var(--border);
    }

        .presence-state:last-child {
            border-bottom: none;
        }
}



/* ══════════════════════════════════════
   HAMBURGER MENU
══════════════════════════════════════ */
.nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}

    .nav-hamburger span {
        display: block;
        width: 22px;
        height: 2px;
        background: var(--ink);
        border-radius: 2px;
        transition: all .25s;
    }

    .nav-hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-hamburger.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

@media (max-width: 900px) {
    .nav-hamburger {
        display: flex;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 65px;
        left: 0;
        right: 0;
        background: rgba(245,242,236,.97);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 1.5rem 2rem;
        gap: 1.25rem;
        z-index: 99;
    }

        .nav-links.open {
            display: flex;
        }

        .nav-links a {
            font-size: 1rem;
        }

    .nav-cta {
        text-align: center;
    }
}

/* ══════════════════════════════════════
   PAIR CARDS — MOBILE
══════════════════════════════════════ */
@media (max-width: 700px) {
    .pair-card {
        grid-template-columns: 1fr;
    }

    .pair-arrow {
        text-align: center;
        padding: .25rem 0;
        transform: rotate(90deg);
    }

    .pair-side {
        padding: .875rem 1rem;
    }
}


/* ══════════════════════════════════════
   COOKIE BANNER
══════════════════════════════════════ */
#cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 3rem);
    max-width: 720px;
    background: #0E0E0E;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    padding: 1.125rem 1.5rem;
    z-index: 9999;
    box-shadow: 0 8px 32px rgba(0,0,0,.35);
    animation: cookieSlideUp .3s ease forwards;
}

@keyframes cookieSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-text {
    font-size: .875rem;
    color: rgba(245,242,236,.65);
    line-height: 1.5;
    flex: 1;
    min-width: 200px;
}

    .cookie-text strong {
        color: #F5F2EC;
        margin-right: .375rem;
    }

.cookie-link {
    color: #C84B2F;
    text-decoration: none;
    margin-left: .25rem;
    white-space: nowrap;
}

    .cookie-link:hover {
        text-decoration: underline;
    }

.cookie-actions {
    display: flex;
    gap: .625rem;
    flex-shrink: 0;
}

.cookie-btn {
    padding: .5rem 1.125rem;
    border-radius: 6px;
    font-size: .875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    font-family: inherit;
    white-space: nowrap;
    transition: opacity .15s;
}

    .cookie-btn:hover {
        opacity: .85;
    }

.cookie-btn-reject {
    background: rgba(245,242,236,.08);
    color: rgba(245,242,236,.7);
    border: 1px solid rgba(245,242,236,.12);
}

.cookie-btn-accept {
    background: #C84B2F;
    color: #fff;
}

@media (max-width: 520px) {
    #cookie-banner {
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 10px 10px 0 0;
        padding: 1.25rem 1rem;
        animation: none !important;
    }

    .cookie-inner {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .cookie-actions {
        width: 100%;
    }

    .cookie-btn {
        flex: 1;
        text-align: center;
    }
}
