/* =========================================
   WEDDING SMART PLANNER - PAGINA CONSULENZE
   Landing page pubblica
   ========================================= */

/* ===== DESIGN TOKENS ===== */
:root {
    --primary: #e6005c;
    --primary-dark: #c9004f;
    --pink-soft: #fff2f7;
    --pink-light: #ffe6f0;
    --text: #111827;
    --muted: #6b7280;
    --border: #ececf0;
    --success: #22a45d;
    --success-soft: #e7f6ee;
    --warning: #f59e0b;
    --purple: #7c3aed;
    --purple-soft: #f1e9ff;
    --teal: #0ea5e9;
    --teal-soft: #e0f2fe;
    --white: #ffffff;
    --bg: #fffbf7;

    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 22px;
    --radius-xl: 28px;
    --radius-pill: 999px;

    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.06);
    --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.10);
    --shadow-pink: 0 12px 30px rgba(230, 0, 92, 0.22);

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-script: 'Dancing Script', cursive;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { line-height: 1.2; color: var(--text); font-weight: 800; }

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 0.94rem;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    white-space: nowrap;
}
.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-pink);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn-outline {
    background: var(--white);
    color: var(--primary);
    border: 1.5px solid var(--primary);
}
.btn-outline:hover { background: var(--pink-soft); }
.btn-outline-success {
    background: var(--white);
    color: var(--success);
    border: 1.5px solid var(--success);
}
.btn-outline-success:hover { background: var(--success-soft); }
.btn-outline-orange {
    background: var(--white);
    color: var(--warning);
    border: 1.5px solid var(--warning);
}
.btn-outline-orange:hover { background: #fff4e6; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ===== HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: box-shadow .2s ease;
}
.site-header.is-scrolled { box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05); }
/* Container header più largo del default per ospitare logo + 6 voci nav + 2 CTA su una riga sola */
.site-header > .container {
    max-width: 1360px;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
    gap: 20px;
    flex-wrap: nowrap;
}
.logo {
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1;
    flex-shrink: 0;
}
.logo-script {
    font-family: var(--font-script);
    color: var(--primary);
    font-size: 1.85rem;
    font-weight: 700;
}
.logo-block { display: inline-flex; flex-direction: column; line-height: 1; }
.logo-bold { font-size: 0.95rem; font-weight: 800; letter-spacing: 0.18em; color: var(--text); }
.logo-sub { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.2em; color: var(--muted); }

.main-nav {
    display: flex;
    gap: 26px;
    align-items: center;
    flex-wrap: nowrap;
}
.main-nav a {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--text);
    transition: color .2s;
    position: relative;
    padding: 6px 0;
    white-space: nowrap;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a.active {
    color: var(--primary);
}
.main-nav a.active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.header-actions { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.btn-ghost {
    padding: 11px 22px;
    border-radius: var(--radius-pill);
    border: 1.5px solid var(--border);
    color: var(--text);
    font-weight: 700;
    font-size: 0.92rem;
    transition: border-color .2s, color .2s;
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

/* ===== HAMBURGER + MOBILE NAV ===== */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: var(--white);
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
}
.hamburger span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.hamburger.active span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    padding: 28px 24px 40px;
    flex-direction: column;
    gap: 6px;
    z-index: 99;
    overflow-y: auto;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text);
}
.mobile-nav a.active { background: var(--pink-soft); color: var(--primary); }
.mobile-nav .btn-primary { margin-top: 16px; }

.btn-mini-mobile {
    display: none;
}

/* ===== HERO ===== */
.hero {
    padding: 60px 0 80px;
    background: var(--white);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 64px;
    align-items: center;
}
.hero-eyebrow {
    display: inline-block;
    background: var(--pink-soft);
    color: var(--primary);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin-bottom: 22px;
}
.hero-title {
    font-size: 3rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}
.hero-title .accent { color: var(--primary); }
.hero-text {
    font-size: 1rem;
    color: var(--muted);
    margin-bottom: 32px;
    max-width: 560px;
}
.hero-ctas {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}
.hero-proof {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 0.88rem;
    color: var(--muted);
}
.proof-avatars {
    display: inline-flex;
}
.proof-avatars span {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--white);
    margin-left: -10px;
    background: linear-gradient(135deg, #ffd1dc, #ffa6c1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.proof-avatars span:first-child { margin-left: 0; background: linear-gradient(135deg, #f4a4a4, #e87f7f); }
.proof-avatars span:nth-child(2) { background: linear-gradient(135deg, #ffd9b3, #ffb380); }
.proof-avatars span:nth-child(3) { background: linear-gradient(135deg, #d1c4e9, #b39ddb); }
.proof-avatars span:nth-child(4) { background: linear-gradient(135deg, #c8e6c9, #a5d6a7); }
.proof-check {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: var(--success-soft);
    color: var(--success);
    border-radius: 50%;
    flex-shrink: 0;
}
.proof-text strong { color: var(--text); font-weight: 700; }

/* Hero image */
.hero-visual {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: linear-gradient(135deg, #fff5f8 0%, #ffe6f0 100%);
}
.hero-visual::before {
    /* Vignette luminosa */
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 30%, rgba(255,255,255,0.6), transparent 60%);
    z-index: 1;
    pointer-events: none;
}
.hero-visual svg { position: relative; z-index: 0; width: 100%; height: 100%; }

/* ===== SECTION GENERIC ===== */
.section {
    padding: 80px 0;
}
.section-eyebrow {
    text-align: center;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.section-title {
    text-align: center;
    font-size: 2.2rem;
    line-height: 1.15;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}
.section-sub {
    text-align: center;
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 620px;
    margin: 0 auto 56px;
}

/* ===== "PERCHÉ FARE UNA CONSULENZA?" ===== */
.why-section {
    padding: 60px 0 80px;
}
.why-box {
    background: var(--pink-soft);
    border-radius: var(--radius-xl);
    padding: 56px 48px;
}
.why-title {
    text-align: center;
    font-size: 1.9rem;
    margin-bottom: 44px;
    letter-spacing: -0.01em;
}
.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.why-item {
    text-align: center;
}
.why-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}
.why-item h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.3;
}
.why-item p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.55;
}

/* ===== "COME FUNZIONANO" - TIMELINE ===== */
.steps-section { padding: 70px 0 80px; }
.steps-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
    margin-top: 16px;
}
.steps-line {
    position: absolute;
    top: 22px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    border-top: 2px dashed var(--pink-light);
    z-index: 0;
}
.step-item {
    text-align: center;
    position: relative;
    z-index: 1;
}
.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    font-weight: 800;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
    box-shadow: 0 6px 16px rgba(230, 0, 92, 0.30);
}
.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--pink-soft);
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.step-item h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
    padding: 0 8px;
}
.step-item p {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.55;
    padding: 0 4px;
}

/* ===== "TIPOLOGIE DI CONSULENZA" - CARDS ===== */
.types-section { padding: 60px 0 80px; }
.types-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.type-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 28px 28px 26px;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
}
.type-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--pink-light);
}
/* Card centrale evidenziata */
.type-card.is-highlighted {
    border: 1.5px solid var(--warning);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
}
.type-card.is-highlighted:hover {
    border-color: var(--warning);
    box-shadow: 0 14px 32px rgba(245, 158, 11, 0.18);
}
.type-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}
.type-icon.pink   { background: var(--pink-soft);    color: var(--primary); }
.type-icon.orange { background: #fff4e6;             color: var(--warning); }
.type-icon.green  { background: var(--success-soft); color: var(--success); }
.type-card h3 {
    font-size: 1.15rem;
    margin-bottom: 4px;
}
.type-subtitle {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 22px;
}
.type-checks {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
    flex: 1;
}
.type-checks li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--text);
    line-height: 1.4;
}
.check-mark {
    flex-shrink: 0;
    color: var(--success);
    margin-top: 3px;
}
.type-price {
    font-size: 1.7rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1;
    letter-spacing: -0.01em;
}
.type-price.pink   { color: var(--primary); }
.type-price.orange { color: var(--warning); }
.type-price.green  { color: var(--success); }

/* ===== "COSA RISOLVI" - BENEFITS ===== */
.benefits-section { padding: 60px 0 90px; }
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
}
.benefit-item { text-align: center; }
.benefit-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.benefit-icon.pink   { background: var(--pink-soft);    color: var(--primary); }
.benefit-icon.purple { background: var(--purple-soft);  color: var(--purple);  }
.benefit-icon.orange { background: #fff4e6;             color: var(--warning); }
.benefit-icon.green  { background: var(--success-soft); color: var(--success); }
.benefit-icon.red    { background: #fee2e2;             color: #dc2626;        }
.benefit-item h3 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.3;
}
.benefit-item p {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ===== CTA FINALE ===== */
.final-cta { padding: 0 0 90px; }
.cta-box {
    background: var(--pink-soft);
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 0;
    align-items: stretch;
}
.cta-image {
    position: relative;
    background: linear-gradient(135deg, #fff5f8, #ffd6e3);
    min-height: 320px;
    overflow: hidden;
}
.cta-image svg { width: 100%; height: 100%; }
.cta-content {
    padding: 56px 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cta-content h2 {
    font-size: 1.85rem;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.01em;
}
.cta-content p {
    color: var(--muted);
    font-size: 0.98rem;
    margin-bottom: 26px;
    max-width: 540px;
}
.cta-content .btn { align-self: flex-start; margin-bottom: 22px; }
.cta-proof {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--muted);
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--text);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 0 30px;
    font-size: 0.88rem;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    text-align: center;
}
.footer-inner .logo-script,
.footer-inner .logo-bold,
.footer-inner .logo-sub { color: var(--white); }
.footer-inner .logo-script { color: #ffb3d1; }
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 0.8rem; opacity: 0.7; }

/* ===========================================================================
   RESPONSIVE
   =========================================================================== */

/* ===== HEADER COMPATTO (1100px e meno) — riduce gap/font del nav per restare su una riga ===== */
@media (max-width: 1100px) {
    .site-header > .container { padding: 0 18px; }
    .header-inner { gap: 14px; }
    .main-nav { gap: 18px; }
    .main-nav a { font-size: 0.88rem; }
    .btn-ghost { padding: 10px 16px; font-size: 0.86rem; }
    .header-actions .btn { padding: 11px 18px; font-size: 0.86rem; }
}

/* ===== TABLET (1024px e meno) ===== */
@media (max-width: 1024px) {
    .hero-title { font-size: 2.5rem; }
    .hero-grid { gap: 48px; }
    .why-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
    .types-grid { grid-template-columns: 1fr; max-width: 540px; margin: 0 auto; }
    .benefits-grid {
        grid-template-columns: repeat(3, 1fr);
        max-width: 720px;
        margin: 0 auto;
        gap: 36px 24px;
    }
}

/* ===== MOBILE (768px e meno) ===== */
@media (max-width: 768px) {

    .container { padding: 0 18px; }

    /* Header mobile */
    .main-nav, .header-actions { display: none; }
    .hamburger { display: flex; }
    .header-inner { height: 70px; gap: 12px; }
    .logo { order: 2; }
    .hamburger { order: 1; }
    .btn-mini-mobile {
        order: 3;
        display: inline-flex;
        padding: 9px 16px;
        font-size: 0.78rem;
        font-weight: 700;
        background: var(--primary);
        color: var(--white);
        border-radius: var(--radius-pill);
        white-space: nowrap;
    }
    .btn-mini-mobile:hover { background: var(--primary-dark); }

    /* Hero */
    .hero { padding: 36px 0 50px; }
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-eyebrow { margin-bottom: 16px; }
    .hero-title { font-size: 1.85rem; line-height: 1.15; margin-bottom: 16px; }
    .hero-text { font-size: 0.92rem; margin-bottom: 24px; }
    .hero-ctas { flex-direction: column; gap: 10px; margin-bottom: 22px; }
    .hero-ctas .btn { width: 100%; }
    .hero-visual { aspect-ratio: 4 / 3; }
    .hero-proof { font-size: 0.82rem; gap: 10px; }

    /* Section generic */
    .section { padding: 50px 0; }
    .section-title { font-size: 1.5rem; }
    .section-sub { font-size: 0.92rem; margin-bottom: 36px; }

    /* Why */
    .why-section { padding: 36px 0 56px; }
    .why-box { padding: 32px 22px; }
    .why-title { font-size: 1.4rem; margin-bottom: 28px; }
    .why-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .why-item {
        background: var(--white);
        border-radius: var(--radius-md);
        padding: 18px 18px;
        text-align: left;
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 14px;
        align-items: center;
        margin-bottom: 12px;
    }
    .why-item:last-child { margin-bottom: 0; }
    .why-icon {
        width: 44px;
        height: 44px;
        margin-bottom: 0;
    }
    .why-icon svg { width: 20px; height: 20px; }
    .why-item h3 { font-size: 0.94rem; margin-bottom: 4px; }
    .why-item p { font-size: 0.82rem; }
    .why-item::after {
        content: '';
        width: 18px;
        height: 18px;
        background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6005c' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='9 6 15 12 9 18'/></svg>");
        background-repeat: no-repeat;
        background-position: center;
        background-size: contain;
    }
    .why-item-text {
        min-width: 0;
    }

    /* Steps timeline → verticale */
    .steps-section { padding: 36px 0 56px; }
    .steps-timeline {
        grid-template-columns: 1fr;
        gap: 22px;
    }
    .steps-line { display: none; }
    .step-item {
        background: var(--white);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        padding: 16px 18px;
        text-align: left;
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 14px;
        align-items: flex-start;
    }
    .step-number {
        margin-bottom: 0;
        width: 36px;
        height: 36px;
        font-size: 0.94rem;
    }
    .step-icon { display: none; }
    .step-item h3 { font-size: 0.96rem; margin-bottom: 6px; padding: 0; }
    .step-item p { font-size: 0.84rem; padding: 0; }
    .step-item-body { min-width: 0; }

    /* Tipologie */
    .types-section { padding: 36px 0 56px; }
    .type-card { padding: 24px 22px; }
    .type-card h3 { font-size: 1.05rem; }
    .type-subtitle { font-size: 0.86rem; margin-bottom: 18px; }
    .type-checks { gap: 10px; margin-bottom: 18px; }
    .type-price { font-size: 1.5rem; margin-bottom: 14px; }

    /* Benefits griglia 2 colonne */
    .benefits-section { padding: 36px 0 56px; }
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px 18px;
        max-width: none;
    }
    .benefit-icon { width: 52px; height: 52px; margin-bottom: 12px; }
    .benefit-icon svg { width: 22px; height: 22px; }
    .benefit-item h3 { font-size: 0.9rem; }
    .benefit-item p { font-size: 0.78rem; }

    /* CTA finale */
    .final-cta { padding: 0 0 56px; }
    .cta-box {
        grid-template-columns: 1fr;
    }
    .cta-image { display: none; }
    .cta-image-mobile {
        display: block;
        width: 100%;
        height: 180px;
        background: linear-gradient(135deg, #fff5f8, #ffd6e3);
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        margin-bottom: -22px;
        overflow: hidden;
    }
    .cta-image-mobile svg { width: 100%; height: 100%; }
    .cta-content { padding: 32px 24px; text-align: center; }
    .cta-content h2 { font-size: 1.3rem; }
    .cta-content p { font-size: 0.9rem; margin-bottom: 22px; }
    .cta-content .btn { align-self: stretch; width: 100%; }
    .cta-proof { justify-content: center; font-size: 0.78rem; flex-wrap: wrap; }

    /* Footer */
    .footer-links { gap: 14px 18px; font-size: 0.82rem; }
}

/* Mobile only image element default off on desktop */
.cta-image-mobile { display: none; }

/* ===== MICRO ===== */
@media (max-width: 380px) {
    .hero-title { font-size: 1.6rem; }
    .why-title { font-size: 1.25rem; }
    .section-title { font-size: 1.35rem; }
}

/* === Standardizzazione header + voci menu (uniformità su tutto il sito) === */
.header-inner {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    height: 76px !important;
    padding: 0 24px !important;
    margin: 0 auto !important;
    max-width: 1360px !important;
    gap: 20px !important;
    box-sizing: border-box !important;
}
.header-inner > .logo,
.header-inner > a.logo { justify-self: start !important; grid-column: 1 !important; }
.header-inner > .main-nav { justify-self: center !important; grid-column: 2 !important; }
.header-inner > .header-actions { justify-self: end !important; grid-column: 3 !important; }
.header-inner > .hamburger { justify-self: end !important; grid-column: 3 !important; }
.header-inner > .btn-mini-mobile { justify-self: end !important; grid-column: 3 !important; }
/* Bottoni header (Accedi + Prenota) — dimensioni identiche su tutte le pagine */
.header-actions { display: flex !important; align-items: center !important; gap: 12px !important; flex-shrink: 0 !important; }
.header-actions .btn,
.header-actions .btn-ghost,
.header-actions .btn-primary {
    padding: 11px 22px !important;
    font-size: 0.92rem !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    border-radius: 999px !important;
    border-width: 1.5px !important;
    border-style: solid !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
    box-shadow: none !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: background .2s, color .2s, border-color .2s !important;
}
.header-actions .btn-primary {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}
.header-actions .btn-primary:hover {
    background: var(--primary-dark, #c9004f) !important;
    border-color: var(--primary-dark, #c9004f) !important;
    color: #fff !important;
}
.header-actions .btn-ghost,
.header-actions a.btn-ghost {
    background: #fff !important;
    color: var(--text) !important;
    border-color: var(--border) !important;
}
.header-actions .btn-ghost:hover {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
}

/* === Logo uniforme su tutto il sito (no flicker / no layout shift) === */
.logo {
    display: flex !important;
    align-items: center !important;
    gap: 4px !important;
    line-height: 1 !important;
    flex-shrink: 0 !important;
    text-decoration: none !important;
    min-width: 175px !important;
    min-height: 40px !important;
}
.logo-script {
    font-family: 'Dancing Script', 'Brush Script MT', cursive !important;
    color: var(--primary) !important;
    font-size: 1.7rem !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    -webkit-font-smoothing: antialiased !important;
}
.logo-block {
    display: inline-flex !important;
    flex-direction: column !important;
    line-height: 1 !important;
    gap: 1px !important;
}
.logo-bold {
    font-weight: 800 !important;
    letter-spacing: 1px !important;
    font-size: 1rem !important;
    color: var(--text) !important;
    line-height: 1 !important;
}
.logo-sub {
    font-size: 0.55rem !important;
    letter-spacing: 3px !important;
    color: var(--muted) !important;
    font-weight: 500 !important;
    margin-top: 2px !important;
    line-height: 1 !important;
}

/* === Mobile header (≤768px): solo logo a sinistra + hamburger a destra === */
@media (max-width: 768px) {
    .header-inner > .main-nav,
    .header-inner > .header-actions,
    .main-nav,
    .header-actions,
    .btn-mini-mobile { display: none !important; }

    .hamburger { display: flex !important; }

    /* Layout FLEX semplice (più robusto del grid in mobile) */
    .header-inner {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        height: 64px !important;
        padding: 0 16px !important;
        gap: 12px !important;
        /* Reset grid template per evitare residui dal desktop */
        grid-template-columns: none !important;
        grid-template-rows: none !important;
    }
    /* Reset grid placement su tutti i figli */
    .header-inner > * {
        grid-column: auto !important;
        grid-row: auto !important;
        justify-self: auto !important;
    }
    .header-inner > .logo,
    .header-inner > a.logo {
        order: 0 !important;
        margin: 0 !important;
        flex-shrink: 1 !important;
    }
    .header-inner > .hamburger {
        order: 99 !important;
        flex-shrink: 0 !important;
    }
    .logo { min-width: auto !important; }

    /* Bottoni nel menu a tendina mobile (Accedi + Prenota) */
    .mobile-nav .btn,
    .mobile-nav a.btn,
    .mobile-nav .btn-ghost,
    .mobile-nav a.btn-ghost,
    .mobile-nav .btn-primary,
    .mobile-nav a.btn-primary {
        display: block !important;
        width: 100% !important;
        padding: 14px 22px !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        border-radius: 999px !important;
        text-align: center !important;
        text-decoration: none !important;
        box-shadow: none !important;
        margin-top: 8px !important;
        box-sizing: border-box !important;
        transition: background .2s, color .2s, border-color .2s !important;
    }
    .mobile-nav .btn-primary,
    .mobile-nav a.btn-primary {
        background: var(--primary) !important;
        color: #fff !important;
        border: 0 !important;
        margin-top: 16px !important;
    }
    .mobile-nav .btn-primary:hover,
    .mobile-nav a.btn-primary:hover {
        background: var(--primary-dark, #c9004f) !important;
        color: #fff !important;
    }
    .mobile-nav .btn-ghost,
    .mobile-nav a.btn-ghost {
        background: #fff !important;
        color: var(--text) !important;
        border: 1.5px solid var(--border) !important;
    }
    .mobile-nav .btn-ghost:hover,
    .mobile-nav a.btn-ghost:hover {
        border-color: var(--primary) !important;
        color: var(--primary) !important;
    }

    /* Drawer mobile: full-screen fixed, no body scroll, no scrollbar desktop */
    .mobile-nav {
        position: fixed !important;
        top: 64px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        background: #fff !important;
        z-index: 999 !important;
        padding: 24px 18px 40px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        border-top: 1px solid var(--border) !important;
        flex-direction: column !important;
        gap: 4px !important;
        margin: 0 !important;
        -webkit-overflow-scrolling: touch !important;
    }
    .mobile-nav.open { display: flex !important; }
    .mobile-nav a {
        padding: 14px 16px !important;
        font-size: 1rem !important;
        font-weight: 600 !important;
        color: var(--text) !important;
        border-radius: 12px !important;
        border-bottom: 0 !important;
        text-decoration: none !important;
        display: block !important;
    }
    .mobile-nav a.active {
        background: rgba(230, 0, 92, 0.08) !important;
        color: var(--primary) !important;
    }
}

/* Lock body + html scroll quando il menu mobile è aperto */
html.menu-open,
body.menu-open {
    overflow: hidden !important;
    height: 100% !important;
    touch-action: none !important;
}

/* Nasconde la scrollbar visiva del drawer mobile (mantiene scroll touch) */
.mobile-nav::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
.mobile-nav { scrollbar-width: none !important; -ms-overflow-style: none !important; }
.main-nav { gap: 30px !important; align-items: center !important; flex-wrap: nowrap !important; padding: 0 !important; margin: 0 !important; }
.main-nav a {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: var(--text) !important;
    line-height: 1 !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    transition: color .2s !important;
    background: none !important;
    border: 0 !important;
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--primary) !important;
    font-weight: 600 !important;
}
/* Rimuove la barretta sotto la voce attiva */
.main-nav a::before,
.main-nav a::after,
.main-nav a.active::before,
.main-nav a.active::after {
    content: none !important;
    display: none !important;
    background: transparent !important;
    border: 0 !important;
    height: 0 !important;
}
@media (max-width: 1100px) {
    .main-nav { gap: 22px !important; }
    .main-nav a { font-size: 0.9rem !important; }
}

/* =========================================================================
   FINAL OVERRIDE — Mobile menu fisso (consulenze)
   Niente scroll, niente touch scroll. Content garantito dentro viewport.
   Questa è l'ultima regola del file: vince su tutto.
   ========================================================================= */
@media (max-width: 768px) {
    /* HEADER MOBILE */
    .header-inner {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
        height: 60px !important;
        padding: 0 16px !important;
        gap: 12px !important;
        grid-template-columns: none !important;
    }
    .header-inner > * { grid-column: auto !important; grid-row: auto !important; justify-self: auto !important; }
    .header-inner > .logo { order: 0 !important; flex-shrink: 1 !important; }
    .header-inner > .hamburger { order: 99 !important; flex-shrink: 0 !important; }
    .header-inner > .main-nav,
    .header-inner > .header-actions { display: none !important; }
    .logo { min-width: auto !important; min-height: auto !important; }

    /* DRAWER FISSO — niente scroll, niente touch scroll */
    .mobile-nav {
        display: none !important;
        position: fixed !important;
        top: 60px !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: calc(100vh - 60px) !important;
        max-height: calc(100vh - 60px) !important;
        background: #fff !important;
        z-index: 999 !important;
        padding: 14px 16px 20px !important;
        margin: 0 !important;
        gap: 2px !important;
        flex-direction: column !important;
        /* NIENTE SCROLL ASSOLUTAMENTE */
        overflow: hidden !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        touch-action: none !important;
        -webkit-overflow-scrolling: auto !important;
        overscroll-behavior: none !important;
    }
    .mobile-nav.open { display: flex !important; }
    .mobile-nav::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }

    /* Voci nav: padding ridotto per stare in viewport senza scroll */
    .mobile-nav a {
        padding: 10px 14px !important;
        font-size: 0.95rem !important;
        font-weight: 600 !important;
        line-height: 1.2 !important;
        color: var(--text) !important;
        background: transparent !important;
        border: 0 !important;
        border-radius: 10px !important;
        text-decoration: none !important;
        display: block !important;
        width: 100% !important;
    }
    .mobile-nav a.active {
        background: rgba(230, 0, 92, 0.08) !important;
        color: var(--primary) !important;
    }
    /* Bottoni Accedi + Prenota: compatti */
    .mobile-nav .btn,
    .mobile-nav a.btn,
    .mobile-nav .btn-ghost,
    .mobile-nav a.btn-ghost,
    .mobile-nav .btn-primary,
    .mobile-nav a.btn-primary {
        padding: 11px 18px !important;
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
        border-radius: 999px !important;
        text-align: center !important;
        text-decoration: none !important;
        width: 100% !important;
        display: block !important;
        margin: 0 !important;
        box-shadow: none !important;
        font-weight: 700 !important;
    }
    .mobile-nav .btn-ghost,
    .mobile-nav a.btn-ghost {
        margin-top: 10px !important;
        background: #fff !important;
        color: var(--text) !important;
        border: 1.5px solid var(--border) !important;
    }
    .mobile-nav .btn-primary,
    .mobile-nav a.btn-primary {
        margin-top: 6px !important;
        background: var(--primary) !important;
        color: #fff !important;
        border: 0 !important;
    }

    /* LOCK TOTALE body + html (no scroll alla pagina sotto) */
    html.menu-open,
    body.menu-open {
        overflow: hidden !important;
        overflow-x: hidden !important;
        overflow-y: hidden !important;
        height: 100% !important;
        width: 100% !important;
        position: fixed !important;
        touch-action: none !important;
        overscroll-behavior: none !important;
    }
}
