@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/plus-jakarta-sans-v12-latin-300.woff2') format('woff2');
    font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/plus-jakarta-sans-v12-latin-regular.woff2') format('woff2');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/plus-jakarta-sans-v12-latin-600.woff2') format('woff2');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/plus-jakarta-sans-v12-latin-700.woff2') format('woff2');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Plus Jakarta Sans';
    src: url('../fonts/plus-jakarta-sans-v12-latin-800.woff2') format('woff2');
    font-weight: 800; font-style: normal; font-display: swap;
}


* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg-base: #0a0612;
    --text-primary: #ede5e8;
    --text-secondary: #b5a8ae;
    --text-muted: #8a7e84;
    --bordeaux: #6b2d4e;
    --bordeaux-bright: #c76890;
    --purple: #4a2060;
    --sage: #8ab4a2;
    --sage-light: rgba(138,180,162,0.12);
    --button-gradient: linear-gradient(135deg, #6b2d4e, #8b3a5a, #9b4a6a);
    --surface: rgba(255,255,255,0.035);
    --surface-hover: rgba(255,255,255,0.055);
    --border-soft: rgba(255,255,255,0.08);
    --border-medium: rgba(255,255,255,0.14);
    --font: 'Plus Jakarta Sans', sans-serif;
    /* Sun-adaptive overrides (sun-theme.js updates these every minute). */
    --header-bg: rgba(10,6,18,0.75);
    --hero-overlay-top: rgba(10,6,18,0.10);
    --hero-overlay-mid: rgba(10,6,18,0.02);
    --hero-overlay-bot: rgba(10,6,18,0.75);
    --canvas-opacity: 0.22;
}

body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: -2;
    background: var(--bg-base);
}

body {
    font-family: var(--font);
    background-color: transparent;
    color: var(--text-primary);
    font-size: 17px;
    line-height: 1.7;
    text-align: center;
}

html {
    background-color: var(--bg-base);
    scroll-behavior: smooth;
}

/* ═══════════════════════════════════════════════════════════════════
   CANVAS BACKGROUND — tamed, stable across HTMX navigation
   ═══════════════════════════════════════════════════════════════════ */

#bg-wrap {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
#bg-canvas {
    width: 100%;
    height: 100%;
    opacity: var(--canvas-opacity, 0.22);
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER — horizontal, sticky, one line
   ═══════════════════════════════════════════════════════════════════ */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2.5rem;
    height: 64px;
    border-bottom: 1px solid var(--border-soft);
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-logo {
    flex-shrink: 0;
    line-height: 0;
    text-decoration: none;
}
.site-logo img {
    height: 32px;
    width: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}
.site-nav a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.72rem;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
    position: relative;
    padding: 2px 0;
    white-space: nowrap;
}
.site-nav a:hover  { opacity: 1; color: var(--bordeaux-bright); }
.site-nav a.active { opacity: 1; color: var(--bordeaux-bright); }
.site-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0; right: 0;
    height: 1px;
    background: var(--bordeaux-bright);
    opacity: 0.6;
}

/* Floating launcher button + glass menu — mobile only (shown at ≤1100px).
   Hidden on desktop, where the inline .site-nav row is used instead. */
.nav-launcher,
.nav-backdrop,
.nav-sheet { display: none; }

/* Tucked flush into the bottom-right corner: square with straight bottom &
   right edges (perpendicular to the screen edges) and only the top-left
   corner rounded — no dead space between button and corner. */
.nav-launcher {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 74px;
    height: 74px;
    border-radius: 26px 0 0 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    /* Glass body, no hard outline — a soft feathered shadow lets the edge
       melt into the page so it reads as borderless. */
    background: rgba(20,12,24,0.42);
    border: none;
    backdrop-filter: blur(14px) saturate(120%);
    -webkit-backdrop-filter: blur(14px) saturate(120%);
    box-shadow: 0 4px 30px 6px rgba(0,0,0,0.28),
                inset 0 1px 0 rgba(255,255,255,0.04);
    cursor: pointer;
    padding: 0 6px 6px 0;          /* nudge mark toward the rounded (top-left) face */
    z-index: 120;
    transition: box-shadow 0.25s;
}
/* Arrow "A" mark in the button: normal colors closed, negative when open */
.nav-launcher img {
    width: 34px;
    height: auto;
    transition: filter 0.25s;
}
.nav-launcher.open img { filter: invert(1); }

/* Tap-catcher behind the menu — invisible so colors behind stay true */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: transparent;
    z-index: 110;
    opacity: 0;
    pointer-events: none;
}
.nav-backdrop.open { opacity: 1; pointer-events: auto; }

/* Intermediate breakpoints — squeeze nav before hamburger kicks in. */
@media (max-width: 1300px) {
    .site-header { padding: 0 1.5rem; }
    .site-nav    { gap: 1.25rem; }
    .site-nav a  { font-size: 0.68rem; letter-spacing: 0.06em; }
}
@media (max-width: 1220px) {
    .site-header { padding: 0 1.25rem; }
    .site-nav    { gap: 0.95rem; }
    .site-nav a  { font-size: 0.62rem; letter-spacing: 0.04em; }
    .site-logo img { height: 28px; }
}

@media (max-width: 1100px) {
    /* Centered logo, hidden home button; inline nav row replaced by launcher */
    .site-header { padding: 0 1.25rem; height: 56px; justify-content: center; }
    .site-logo img { height: 28px; }
    .site-nav { display: none; }          /* desktop row hidden on mobile */
    .nav-launcher { display: flex; }
    .nav-backdrop { display: block; }     /* render the tap-catcher so click-out closes */

    /* The menu: glass pop-out anchored above the corner launcher.
       Opens like a little context menu — scale + fade from its corner —
       not a full bottom-to-top sheet. Scrollable, with space left above. */
    .nav-sheet {
        display: flex;
        position: fixed;
        right: 0.9rem;
        bottom: calc(74px + 0.7rem);
        left: auto; top: auto;
        width: min(78vw, 300px);
        max-height: min(68vh, 30rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.5rem 0.4rem 0.6rem;

        /* Pure glass — barely-there neutral film + light blur, no color tint,
           so the background colors read through almost unchanged. */
        background: rgba(255,255,255,0.05);
        backdrop-filter: blur(11px);
        -webkit-backdrop-filter: blur(11px);
        border: 1px solid rgba(255,255,255,0.13);
        border-radius: 18px;
        box-shadow: 0 14px 44px rgba(0,0,0,0.42);

        transform-origin: bottom right;
        transform: translateY(8px) scale(0.92);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.22s cubic-bezier(0.32,0.72,0,1),
                    opacity 0.18s ease, visibility 0.22s;
        z-index: 130;
    }
    .nav-sheet.open {
        transform: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }
    .nav-sheet::-webkit-scrollbar { width: 3px; }
    .nav-sheet::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.18); border-radius: 3px; }

    .nav-sheet a {
        text-decoration: none;
        color: var(--text-primary);
        font-weight: 600;
        text-transform: uppercase;
        padding: 0.8rem 0.85rem;
        border-radius: 11px;
        font-size: 0.8rem;
        letter-spacing: 0.05em;
        opacity: 0.82;
        text-align: left;
        text-shadow: 0 1px 3px rgba(0,0,0,0.45);
        transition: background 0.16s, opacity 0.16s, color 0.16s;
    }
    .nav-sheet a:hover,
    .nav-sheet a:active { opacity: 1; background: rgba(255,255,255,0.07); }
    .nav-sheet a.active { opacity: 1; color: var(--bordeaux-bright); }

    /* Move back-to-top to the left so it never collides with the launcher */
    .back-to-top { right: auto; left: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   GIOCHI STRIP
   ═══════════════════════════════════════════════════════════════════ */

.giochi-strip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    padding: 0.75rem 2rem;
    background: rgba(107,45,78,0.14);
    border-bottom: 1px solid var(--border-soft);
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
    line-height: 1.5;
    text-align: center;
}
.giochi-strip strong { font-weight: 600; color: var(--bordeaux-bright); }
.giochi-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--bordeaux-bright);
    flex-shrink: 0;
    display: inline-block;
    animation: pulse-dot 2s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(199,104,144,0.5);
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.35; transform: scale(0.75); }
}

/* ═══════════════════════════════════════════════════════════════════
   LANDING — PYRAMID TOP: hero image
   ═══════════════════════════════════════════════════════════════════ */

.hero-image-wrap {
    width: 100%;
    height: 62vh;
    min-height: 320px;
    max-height: 580px;
    position: relative;
    overflow: hidden;
}
.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    display: block;
    filter: brightness(0.65) saturate(1.1);
}
.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        var(--hero-overlay-top) 0%,
        var(--hero-overlay-mid) 35%,
        var(--hero-overlay-bot) 100%
    );
    display: flex;
    align-items: flex-end;
    padding: 2rem 2.5rem;
}
.hero-image-tagline {
    font-size: 1rem;
    font-weight: 300;
    color: rgba(237,229,232,0.82);
    letter-spacing: 0.06em;
    font-style: italic;
    text-shadow: 0 1px 10px rgba(0,0,0,0.6);
}

@media (max-width: 700px) {
    .hero-image-wrap { height: 50vh; min-height: 240px; }
    .hero-image-overlay { padding: 1.5rem 1.25rem; }
    .hero-image-tagline { font-size: 0.88rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   LANDING — PYRAMID MIDDLE: human section
   ═══════════════════════════════════════════════════════════════════ */

.human-section {
    max-width: 680px;
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: left;
    border-bottom: 1px solid var(--border-soft);
}
.human-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--bordeaux-bright);
    margin-bottom: 1.5rem;
    opacity: 0.85;
}
.human-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.22;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    text-align: left;
    text-transform: none;
    letter-spacing: -0.01em;
    opacity: 1;
}
.human-section p {
    font-size: 0.98rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 0.85rem;
    text-align: left;
}
.human-section p:last-child { margin-bottom: 0; }
.human-section strong { color: var(--text-primary); font-weight: 600; }

@media (max-width: 700px) {
    .human-section { padding: 3rem 1.25rem; }
    .human-section h2 { font-size: 1.35rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   LANDING — PYRAMID BOTTOM: homepage sections
   ═══════════════════════════════════════════════════════════════════ */

section {
    padding: 3.5rem 2rem;
    border-top: 1px solid var(--border-soft);
    max-width: 680px;
    margin: 0 auto;
}

section h2 {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--bordeaux-bright);
    margin-bottom: 2rem;
    opacity: 0.85;
}

/* ── Servizi cards ─────────────────────────────────────────────── */
.servizi-stack { display: flex; flex-direction: column; gap: 1rem; }

.servizio-card {
    display: block;
    text-decoration: none;
    text-align: left;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 16px;
    padding: 1.6rem 1.7rem 1.4rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.servizio-card:hover {
    border-color: var(--border-medium);
    background: var(--surface-hover);
    transform: translateY(-1px);
}
.servizio-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.85rem;
}
.servizio-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.005em;
    margin: 0;
}
.servizio-card p {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-bottom: 1rem;
}
.prezzo {
    display: inline-block;
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--sage);
    background: var(--sage-light);
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    letter-spacing: 0.02em;
    border: 1px solid rgba(138,180,162,0.25);
    white-space: nowrap;
}
.card-arrow {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--bordeaux-bright);
    letter-spacing: 0.05em;
    opacity: 0.85;
    transition: opacity 0.15s, transform 0.15s;
}
.servizio-card:hover .card-arrow { opacity: 1; transform: translateX(3px); }

/* ── Perché grid ──────────────────────────────────────────────── */
.perche-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
    text-align: left;
}
.perche-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 1.1rem 1.2rem;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.2s, background 0.2s;
}
.perche-card:hover { border-color: var(--border-medium); background: var(--surface-hover); }
.perche-card-body h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}
.perche-card-body p {
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 0;
}
@media (max-width: 460px) { .perche-grid { grid-template-columns: 1fr; } }

/* ── Come funziona teaser ─────────────────────────────────────── */
#come-funziona-teaser { text-align: center; }
.teaser-lede {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 480px;
    margin: 0 auto;
    font-style: italic;
}
.section-more { text-align: center; margin-top: 1.75rem; font-size: 0.9rem; }

/* ── Inline links ────────────────────────────────────────────── */
.inline-link {
    color: var(--bordeaux-bright);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(199,104,144,0.25);
    transition: border-color 0.15s, color 0.15s;
}
.inline-link:hover { color: var(--text-primary); border-bottom-color: var(--bordeaux-bright); }

/* ═══════════════════════════════════════════════════════════════════
   CONTACT FORM
   ═══════════════════════════════════════════════════════════════════ */

#contatti p,
#contatti-landing p {
    margin-bottom: 1.75rem;
    font-weight: 300;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

form { display: flex; flex-direction: column; gap: 0.9rem; text-align: left; }

form input,
form textarea {
    font-family: var(--font);
    font-size: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.2s, background 0.2s;
    line-height: 1.5;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
form input:focus,
form textarea:focus { border-color: var(--sage); background: var(--surface-hover); }
form input::placeholder,
form textarea::placeholder { color: var(--text-muted); font-weight: 300; }

form button,
.cta-button {
    font-family: var(--font);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.95rem 2.25rem;
    background: var(--button-gradient);
    color: #faf8f5;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    align-self: center;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 20px rgba(107,45,78,0.25);
}
form button:hover,
.cta-button:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(107,45,78,0.4);
}

.form-success {
    background: var(--sage-light);
    border: 1px solid rgba(138,180,162,0.3);
    border-radius: 10px;
    padding: 1.5rem;
    color: var(--sage);
    font-weight: 600;
    text-align: center;
}
.form-error {
    background: rgba(107,45,78,0.15);
    border: 1px solid rgba(199,104,144,0.3);
    border-radius: 10px;
    padding: 1.5rem;
    color: var(--bordeaux-bright);
    font-weight: 600;
    text-align: center;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    font-size: 0.82rem;
    font-weight: 300;
    color: var(--text-secondary);
    cursor: pointer;
    text-align: left;
    margin-top: 0.3rem;
}
.consent-label input[type="checkbox"] {
    margin-top: 3px;
    width: 16px; height: 16px;
    flex-shrink: 0;
    accent-color: var(--bordeaux-bright);
}
.consent-label a { color: var(--bordeaux-bright); text-decoration: underline; font-weight: 600; }

/* ═══════════════════════════════════════════════════════════════════
   SUBPAGE LAYOUT
   ═══════════════════════════════════════════════════════════════════ */

.page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
    text-align: left;
}

.page-hero {
    padding: 2.75rem 0 2.25rem;
    border-bottom: 1px solid var(--border-soft);
    text-align: center;
}
.page-hero h1 {
    font-size: 1.9rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    color: var(--text-primary);
    margin-bottom: 0.9rem;
    line-height: 1.2;
}
.page-lede {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.55;
    max-width: 540px;
    margin: 0 auto 0.7rem;
}
.page-sub {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto;
    font-style: italic;
}
@media (min-width: 768px) {
    .page-hero h1 { font-size: 2.4rem; }
    .page-lede    { font-size: 1.2rem; }
}

/* ── Page blocks ──────────────────────────────────────────────── */
.page-block {
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border-soft);
    max-width: none;
    margin: 0;
}
.page-block:last-child { border-bottom: none; }

.page-block h2 {
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--bordeaux-bright);
    margin-bottom: 1.5rem;
    opacity: 0.85;
    text-align: left;
}
.page-block p {
    font-size: 0.96rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 0.85rem;
}
.page-block p:last-child { margin-bottom: 0; }
.page-block em { font-style: italic; color: var(--text-primary); }

/* ── Human block — pyramid middle layer on inner pages ────────── */
.page-block.page-human {
    border-bottom: 1px solid var(--border-soft);
}
.page-block.page-human p {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 0.85rem;
}
.page-block.page-human p:last-child { margin-bottom: 0; }
.page-block.page-human strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ── Include list ─────────────────────────────────────────────── */
.include-list { display: flex; flex-direction: column; gap: 1rem; }
.include-item {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 1.1rem 1.3rem;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: border-color 0.2s, background 0.2s;
}
.include-item:hover { border-color: var(--border-medium); background: var(--surface-hover); }
.include-item h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}
.include-item p {
    font-size: 0.92rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}
.include-item.emphasis { border-color: rgba(199,104,144,0.28); background: rgba(107,45,78,0.08); }
.include-item.emphasis h3 { color: var(--bordeaux-bright); }
.include-item.emphasis p  { color: var(--text-primary); }

/* ── Price block ──────────────────────────────────────────────── */
.price-block {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 1.4rem 1.3rem;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    margin-bottom: 1.25rem;
}
.price-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.5rem;
    line-height: 1.4;
}
.price-amount { font-size: 1.6rem; font-weight: 700; color: var(--sage); letter-spacing: -0.01em; }
.price-unit   { font-size: 0.88rem; font-weight: 600; color: var(--text-primary); }
.price-detail { font-size: 0.88rem; font-weight: 300; color: var(--text-secondary); }
.price-footnote { font-size: 0.85rem; font-style: italic; color: var(--text-muted) !important; line-height: 1.7; }

@media (min-width: 768px) { .price-amount { font-size: 1.9rem; } }

/* ── Negative list ────────────────────────────────────────────── */
.negative-list { font-size: 0.95rem !important; line-height: 1.9 !important; }

/* ── Page CTA ─────────────────────────────────────────────────── */
.page-cta { text-align: center; }
.page-cta h2 { text-align: center; }
.page-cta p  { max-width: 460px; margin: 0 auto 1.5rem; text-align: center; }
.page-cta .cta-button { margin-top: 0.5rem; }

/* ═══════════════════════════════════════════════════════════════════
   PERCHÉ — manifesto
   ═══════════════════════════════════════════════════════════════════ */

.manifesto p { font-size: 1rem; line-height: 1.85; color: var(--text-primary); }
.manifesto p strong { color: var(--bordeaux-bright); font-weight: 700; }

/* ── Tech details expandable ──────────────────────────────────── */
.tech-details {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 10px;
    margin-bottom: 0.6rem;
    overflow: hidden;
    transition: border-color 0.2s;
}
.tech-details:hover { border-color: var(--border-medium); }
.tech-details[open] { border-color: rgba(199,104,144,0.25); }
.tech-details summary {
    padding: 0.95rem 1.2rem;
    cursor: pointer;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    position: relative;
    transition: background 0.15s;
}
.tech-details summary::-webkit-details-marker { display: none; }
.tech-details summary::after {
    content: '+';
    position: absolute;
    right: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bordeaux-bright);
    font-weight: 300;
    font-size: 1.25rem;
}
.tech-details[open] summary::after { content: '−'; }
.tech-details summary:hover { background: var(--surface-hover); }
.tech-body {
    padding: 0.4rem 1.2rem 1.2rem;
    border-top: 1px solid var(--border-soft);
}
.tech-body p { font-size: 0.88rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: 0.75rem; }
.tech-body p:last-child { margin-bottom: 0; }
.tech-body strong { color: var(--text-primary); font-weight: 700; }
.tech-body code {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    background: rgba(199,104,144,0.1);
    padding: 0.1em 0.35em;
    border-radius: 3px;
    color: var(--bordeaux-bright);
}

/* ═══════════════════════════════════════════════════════════════════
   COME FUNZIONA — steps
   ═══════════════════════════════════════════════════════════════════ */

.steps-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.step-item {
    display: flex;
    gap: 1.1rem;
    padding: 1.25rem 1.3rem;
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: 14px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: border-color 0.2s, background 0.2s;
}
.step-item:hover { border-color: var(--border-medium); background: var(--surface-hover); }
.step-num {
    flex-shrink: 0;
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--button-gradient);
    color: #faf8f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 2px 12px rgba(107,45,78,0.35);
}
.step-body { flex: 1; min-width: 0; }
.step-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.45rem; }
.step-body p  { font-size: 0.93rem; font-weight: 300; color: var(--text-secondary); line-height: 1.7; margin-bottom: 0.6rem; }
.step-body p:last-child { margin-bottom: 0; }
.step-callout { font-style: italic; color: var(--bordeaux-bright) !important; font-weight: 400; }

/* ═══════════════════════════════════════════════════════════════════
   FOOTER + BACK-TO-TOP
   ═══════════════════════════════════════════════════════════════════ */

footer {
    font-weight: 500;
    color: var(--text-muted);
    opacity: 0.75;
    padding: 2rem 2rem 2.5rem;
    border-top: 1px solid var(--border-soft);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-align: center;
    max-width: 720px;
    margin: 2rem auto 0;
}
footer p { margin-bottom: 0.4rem; }
footer p:last-child { margin-bottom: 0; }
footer a { color: var(--text-secondary); text-decoration: none; transition: color 0.15s; }
footer a:hover { color: var(--bordeaux-bright); }

.back-to-top {
    position: fixed;
    bottom: 1.75rem;
    right: 1.75rem;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(20,12,24,0.7);
    border: 1px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 99;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s, transform 0.25s;
    text-decoration: none;
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.back-to-top img { height: 16px; width: auto; opacity: 0.65; }
.back-to-top:hover img { opacity: 0.95; }

/* ═══════════════════════════════════════════════════════════════════
   LEGAL PAGES
   ═══════════════════════════════════════════════════════════════════ */

.legal-section { max-width: 720px; margin: 0 auto; padding: 3rem 2rem 4rem; text-align: left; }
.legal-section h1 { font-size: 1.7rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.5rem; }
.legal-meta { font-size: 0.8rem; color: var(--bordeaux-bright); letter-spacing: 0.06em; margin-bottom: 2.25rem; opacity: 0.85; }
.legal-section h2 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--bordeaux-bright);
    margin-top: 1.75rem;
    margin-bottom: 0.7rem;
    opacity: 0.9;
}
.legal-section p { font-size: 0.9rem; font-weight: 300; color: var(--text-secondary); line-height: 1.8; margin-bottom: 0.7rem; }
.legal-section strong { font-weight: 600; color: var(--text-primary); }
.legal-section code {
    font-family: 'Courier New', monospace;
    font-size: 0.85em;
    background: rgba(199,104,144,0.1);
    padding: 0.1em 0.35em;
    border-radius: 3px;
    color: var(--bordeaux-bright);
}
.back-link {
    display: inline-block;
    margin-top: 2.5rem;
    color: var(--bordeaux-bright);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.04em;
}
.back-link:hover { color: var(--text-primary); }
