/* ==========================================================================
   1. VARIABILI E BASE
   ========================================================================== */

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--orange);
    color: var(--navy);
    padding: 8px;
    z-index: 100;
    transition: top 0.3s;
}
.skip-link:focus {
    top: 0;
}
:root {
    color-scheme: dark;
    --navy: #0C1A3A;
    --navy-mid: #162448;
    --navy-light: #1E3260;
    --orange: #C4561A;
    --orange-bright: #E06020;
    --orange-pale: #F4A56A;
    --orange-deep: #9A3B0E; /* AA-safe orange su sfondo cream */
    --cream: #F5F0E8;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'Syne', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--navy);
    color: var(--cream);
    overflow-x: hidden;
}

::-webkit-scrollbar {
    width: 4px;
}
::-webkit-scrollbar-track {
    background: var(--navy);
}
::-webkit-scrollbar-thumb {
    background: var(--orange);
}

/* ==========================================================================
   2. COMPONENTI COMUNI (Bottoni, Form, Classi globali)
   ========================================================================== */
section, .referral {
    padding: 8rem 4rem;
}

.section-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--orange-bright);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-label::before {
    content: '';
    display: block;
    width: 28px;
    height: 1px;
    background: var(--orange-bright);
}

/* Form Styles */
.form-input, .form-select, .form-textarea {
    background: rgba(245, 240, 232, 0.04);
    border: 1px solid rgba(245, 240, 232, 0.1);
    color: var(--cream);
    font-family: var(--sans);
    font-size: 0.88rem;
    padding: 0.85rem 1rem;
    outline: none;
    transition: border-color 0.2s;
    width: 100%;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--orange);
}
.form-input:focus-visible, .form-select:focus-visible, .form-textarea:focus-visible {
    box-shadow: 0 0 0 2px rgba(196, 86, 26, 0.4);
}

/* ==========================================================================
   3. STRUTTURA: NAVIGAZIONE (Header)
   ========================================================================== */
#nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 4rem;
    transition: background 0.4s, border-color 0.4s;
}

#nav.scrolled {
    background: rgba(12, 26, 58, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(196, 86, 26, 0.2);
}

.nav-logo { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.nav-logo img { height: 56px; width: auto; display: block; }
.nav-logo-text { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--cream); }
.nav-logo-text span { color: var(--orange); }

.nav-right { display: flex; align-items: center; gap: 2rem; }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; color: var(--cream); text-decoration: none;
    opacity: 0.65; transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover { opacity: 1; color: var(--orange-pale); }

.nav-cta {
    font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--navy); background: var(--orange-bright);
    padding: 0.55rem 1.4rem; text-decoration: none; transition: background 0.2s;
}
.nav-cta:hover { background: #EE6B22; }

.lang-toggle { display: flex; border: 1px solid rgba(245, 240, 232, 0.2); overflow: hidden; }
.lang-btn {
    font-size: 0.65rem; font-weight: 700; letter-spacing: 0.1em;
    background: none; border: none; color: rgba(245, 240, 232, 0.4);
    padding: 0.4rem 0.7rem; cursor: pointer; transition: background 0.2s, color 0.2s; font-family: var(--sans); text-decoration: none;
}
.lang-btn.active { background: var(--orange); color: var(--navy); }

/* Hamburger (Nascosto su Desktop) */
.nav-hamburger {
    display: none; flex-direction: column; justify-content: center;
    gap: 5px; background: none; border: none; cursor: pointer;
    padding: 4px; color: var(--cream);
}
.nav-hamburger span {
    display: block; width: 22px; height: 2px;
    background: currentColor; transition: transform 0.3s ease, opacity 0.3s ease;
}
.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); }


/* ==========================================================================
   4. SEZIONI DEL SITO
   ========================================================================== */

/* --- HERO --- */
.hero {
    min-height: 86vh;
    display: flex; flex-direction: column; justify-content: center;
    padding: 8rem 4rem 4rem; position: relative; overflow: hidden;
}

/* Background layers: aurora + grid + grain */
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-aurora {
    position: absolute; inset: -20%;
    background:
        radial-gradient(ellipse 55% 50% at 50% 30%, rgba(224, 96, 32, 0.26) 0%, transparent 62%),
        radial-gradient(ellipse 50% 45% at 50% 70%, rgba(196, 86, 26, 0.12) 0%, transparent 65%),
        radial-gradient(ellipse 60% 55% at 50% 88%, rgba(30, 50, 96, 0.8) 0%, transparent 60%);
    filter: blur(8px);
    animation: heroAurora 18s ease-in-out infinite alternate;
}
/* Flowing animated paths (adattato da 21st.dev FloatingPaths) */
.hero-paths {
    position: absolute; inset: 0; pointer-events: none;
    /* full-bleed simmetrico dietro il contenuto centrato, soft fade ai bordi */
    -webkit-mask-image: radial-gradient(115% 115% at 50% 50%, #000 58%, transparent 100%);
            mask-image: radial-gradient(115% 115% at 50% 50%, #000 58%, transparent 100%);
}
.hero-paths-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-path {
    fill: none; stroke-linecap: round;
    stroke-dasharray: 0.35 0.65;
    animation: heroPathFlow var(--dur, 24s) linear infinite;
    will-change: stroke-dashoffset;
}
@keyframes heroPathFlow {
    to { stroke-dashoffset: -2; }
}
@keyframes heroAurora {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}

.hero-line {
    display: none; /* nascosta: hero centrata non usa la linea verticale */
    position: absolute; top: 0; bottom: 0; right: 38%; width: 1px;
    background: linear-gradient(to bottom, transparent, rgba(196, 86, 26, 0.25) 20%, rgba(196, 86, 26, 0.25) 80%, transparent);
}

/* Inner layout (centered, paths full-bleed dietro) */
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 1040px; margin: 0 auto; text-align: center; }

.hero-label {
    display: inline-flex; align-items: center; gap: 0.6rem;
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--orange-pale); margin-bottom: 1.8rem;
    opacity: 0; transform: translateY(20px); animation: fadeUp 0.8s ease 0.2s forwards; position: relative;
}
.hero-label-dot {
    width: 7px; height: 7px; border-radius: 50%; background: var(--orange);
    box-shadow: 0 0 0 0 rgba(224, 96, 32, 0.55); animation: heroPulse 2.4s ease-out infinite;
}
@keyframes heroPulse {
    0%   { box-shadow: 0 0 0 0 rgba(224, 96, 32, 0.55); }
    70%  { box-shadow: 0 0 0 8px rgba(224, 96, 32, 0); }
    100% { box-shadow: 0 0 0 0 rgba(224, 96, 32, 0); }
}

.hero-title {
    font-family: var(--serif); font-size: clamp(2.5rem, 5.4vw, 5rem);
    font-weight: 900; line-height: 1.02; letter-spacing: -0.02em;
}
.hero-title span { display: block; opacity: 0; transform: translateY(44px); will-change: transform, opacity; }
.hero-line-1 { animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.35s forwards; }
.hero-line-2 { animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.45s forwards; }
.hero-line-3 { animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.55s forwards; }
.hero-line-4 { animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards; }
.hero-title em {
    font-style: italic; color: var(--orange-bright);
}
@keyframes heroReveal { to { opacity: 1; transform: translateY(0); } }

.hero-sub {
    margin-top: 2.2rem; font-size: 1.05rem; color: rgba(245, 240, 232, 0.82);
    max-width: 520px; line-height: 1.75; margin-inline: auto;
    opacity: 0; transform: translateY(30px); animation: fadeUp 0.9s ease 0.85s forwards; position: relative;
}
.hero-actions {
    margin-top: 2.6rem; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; justify-content: center;
    opacity: 0; transform: translateY(20px); animation: fadeUp 0.9s ease 1s forwards; position: relative;
}
.btn-primary {
    position: relative; overflow: hidden;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--navy); background: var(--orange-bright);
    padding: 1rem 2.4rem; text-decoration: none;
    transition: background 0.2s, transform 0.2s, box-shadow 0.3s;
}
/* shimmer disattivato (commentato, non rimosso)
.btn-primary::after {
    content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
    transform: skewX(-18deg); transition: left 0.6s ease;
}
.btn-primary:hover::after { left: 140%; }
*/
.btn-primary:hover {
    background: #EE6B22; transform: translateY(-2px);
    box-shadow: 0 12px 30px -8px rgba(224, 96, 32, 0.55);
}
.btn-ghost {
    font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--cream); text-decoration: none;
    border-bottom: 1px solid rgba(245, 240, 232, 0.3); padding-bottom: 2px; transition: color 0.2s, border-color 0.2s;
}
.btn-ghost:hover { color: var(--orange-pale); border-color: var(--orange-pale); }

.hero-trust {
    list-style: none; display: flex; flex-wrap: wrap; gap: 1.6rem; margin-top: 2.8rem; justify-content: center;
    opacity: 0; transform: translateY(20px); animation: fadeUp 0.9s ease 1.15s forwards; position: relative;
}
.hero-trust li {
    display: inline-flex; align-items: center; gap: 0.5rem;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(245, 240, 232, 0.78);
}
.hero-trust li span { color: var(--orange); font-size: 0.5rem; opacity: 0.8; }

.hero-scroll {
    position: absolute; bottom: 3rem; left: 0; right: 0; display: flex; align-items: center; justify-content: center; gap: 1rem; z-index: 2;
    opacity: 0; animation: fadeUp 1s ease 1.4s forwards;
}
.scroll-line {
    width: 40px; height: 1px; background: var(--orange);
    transform-origin: left; transform: scaleX(0); animation: expandLine 1.2s ease 1.7s forwards;
}
.scroll-text { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(245, 240, 232, 0.6); }

/* --- TICKER --- */
.ticker-wrap {
    overflow: hidden; border-top: 1px solid rgba(196, 86, 26, 0.25);
    border-bottom: 1px solid rgba(196, 86, 26, 0.25); background: rgba(196, 86, 26, 0.07); padding: 0.85rem 0;
}
.ticker {
    display: flex; width: max-content; animation: ticker 28s linear infinite;
    white-space: nowrap; will-change: transform;
}
.ticker span {
    font-size: 0.68rem; font-weight: 600; letter-spacing: 0.18em;
    text-transform: uppercase; color: var(--orange-pale); padding: 0 2.5rem; flex-shrink: 0;
}
.ticker span.sep { color: var(--orange); opacity: 0.4; padding: 0; flex-shrink: 0; }

/* --- ABOUT --- */
.about, .how { background: var(--cream); color: var(--navy); }
.about .section-label, .how .section-label { color: var(--orange-deep); }
.about .section-label::before, .how .section-label::before { background: var(--orange-deep); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; margin-top: 3rem; }
.about-headline { font-family: var(--serif); font-size: clamp(2.3rem, 4.5vw, 4rem); font-weight: 900; line-height: 1.06; letter-spacing: -0.02em; }
.about-headline em { font-style: italic; color: var(--orange); }
.about-body { font-size: 0.97rem; line-height: 1.85; color: rgba(12, 26, 58, 0.78); margin-bottom: 1.4rem; }
.about-body strong { color: var(--navy); font-weight: 600; }
.about-stats { display: flex; gap: 3rem; margin-top: 3rem; padding-top: 2.5rem; border-top: 1px solid rgba(12, 26, 58, 0.1); }
.about-stat-num { font-family: var(--serif); font-size: 3.2rem; font-weight: 900; color: var(--orange); line-height: 1; animation: countUp 0.2s ease forwards; font-variant-numeric: tabular-nums; }
.about-stat-label { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(12, 26, 58, 0.62); font-weight: 600; margin-top: 0.2rem; }

/* --- SERVICES & PLANS (dark glowing, adattato da 21st.dev) --- */
.services {
    position: relative; overflow: hidden;
    background: #081124; /* navy più profondo per far risaltare il glow */
}

/* Background layers */
.services-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.services-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(245, 240, 232, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(245, 240, 232, 0.025) 1px, transparent 1px);
    background-size: 70px 80px;
    -webkit-mask-image: radial-gradient(60% 50% at 50% 0%, #000 0%, transparent 75%);
            mask-image: radial-gradient(60% 50% at 50% 0%, #000 0%, transparent 75%);
}
.services-glow {
    position: absolute; top: -10%; left: 50%; transform: translateX(-50%);
    width: 80%; height: 70%;
    background: radial-gradient(circle at center, rgba(224, 96, 32, 0.32) 0%, transparent 65%);
    filter: blur(20px); opacity: 0.6;
}

/* CSS sparkles (twinkle, zero JS particles) */
.sparkles { position: absolute; inset: 0; overflow: hidden;
    -webkit-mask-image: radial-gradient(50% 50% at 50% 12%, #000, transparent 85%);
            mask-image: radial-gradient(50% 50% at 50% 12%, #000, transparent 85%);
}
.sparkle {
    position: absolute; width: 2px; height: 2px; border-radius: 50%;
    background: var(--cream); opacity: 0;
    animation: sparkleTwinkle var(--dur, 3s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes sparkleTwinkle {
    0%, 100% { opacity: 0; transform: scale(0.5); }
    50%      { opacity: var(--max, 0.8); transform: scale(1); }
}

/* Header centered */
.services-header {
    position: relative; z-index: 2;
    max-width: 720px; margin: 0 auto 4rem; text-align: center;
}
.services-header .section-label { justify-content: center; }
.services-title {
    font-family: var(--serif); font-size: clamp(2.5rem, 5vw, 4.2rem);
    font-weight: 900; line-height: 1.05; letter-spacing: -0.02em;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0 0.28em;
}
.services-title em { font-style: italic; color: var(--orange); }
/* vertical cut reveal */
.cut-word {
    display: inline-flex; overflow: hidden; padding-bottom: 0.08em;
    transform: translateY(110%); opacity: 0;
    transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
}
.services-header.visible .services-title .cut-word { transform: translateY(0); opacity: 1; }
.services-header.visible .services-title .cut-word:nth-child(1) { transition-delay: 0.05s; }
.services-header.visible .services-title .cut-word:nth-child(2) { transition-delay: 0.13s; }
.services-header.visible .services-title .cut-word:nth-child(3) { transition-delay: 0.21s; }
.services-header.visible .services-title .cut-word:nth-child(4) { transition-delay: 0.29s; }
.services-header.visible .services-title .cut-word:nth-child(5) { transition-delay: 0.37s; }
.services-intro {
    margin-top: 1.4rem; font-size: 0.97rem; line-height: 1.8;
    color: rgba(245, 240, 232, 0.72); max-width: 560px; margin-inline: auto;
}

/* Plans grid: separated rounded glowing cards */
.plans {
    position: relative; z-index: 2;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem;
    max-width: 1100px; margin: 0 auto;
}
.plan {
    position: relative;
    background:
        linear-gradient(160deg, rgba(30, 50, 96, 0.55), rgba(12, 26, 58, 0.85) 60%, rgba(8, 17, 36, 0.95));
    border: 1px solid rgba(245, 240, 232, 0.10);
    border-radius: 16px; padding: 2.6rem 2.1rem;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column; justify-content: space-between;
    color: var(--cream);
}
.plan:hover {
    transform: translateY(-6px);
    border-color: rgba(224, 96, 32, 0.45);
    box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.8);
}

/* Featured = popular: dark card with strong orange glow */
.plan.featured {
    background:
        linear-gradient(160deg, rgba(224, 96, 32, 0.18), rgba(22, 36, 72, 0.9) 55%, rgba(8, 17, 36, 0.96));
    border-color: rgba(224, 96, 32, 0.6);
    box-shadow: 0 -10px 120px -20px rgba(224, 96, 32, 0.55), 0 24px 60px -24px rgba(0, 0, 0, 0.8);
    z-index: 3;
}
.plan.featured:hover { box-shadow: 0 -10px 140px -16px rgba(224, 96, 32, 0.7), 0 28px 70px -24px rgba(0, 0, 0, 0.85); }

.plan-badge {
    font-size: 0.58rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
    background: rgba(245, 240, 232, 0.07); color: var(--orange-pale);
    padding: 0.28rem 0.75rem; border-radius: 999px; display: inline-block; margin-bottom: 1.4rem;
}
.plan.featured .plan-badge { background: rgba(224, 96, 32, 0.22); color: var(--orange-pale); }
.plan-name { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; margin-bottom: 0.4rem; }
.plan-tagline { font-size: 0.82rem; opacity: 0.72; margin-bottom: 1.8rem; line-height: 1.5; }
.plan-setup { font-family: var(--serif); font-size: 2.4rem; font-weight: 900; line-height: 1; font-variant-numeric: tabular-nums; }
.plan.featured .plan-setup { color: var(--orange-pale); }
.plan-setup small { font-family: var(--sans); font-size: 0.75rem; font-weight: 400; opacity: 0.55; margin-left: 0.2rem; }
.plan-monthly { font-size: 0.83rem; opacity: 0.75; margin-bottom: 2rem; }
.plan-divider { height: 1px; background: rgba(245, 240, 232, 0.12); margin-bottom: 1.8rem; }
.plan.featured .plan-divider { background: rgba(224, 96, 32, 0.25); }
.plan-pages { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.72; margin-bottom: 1.5rem; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 0.85rem; margin-bottom: 2.2rem; }
.plan-features li { font-size: 0.87rem; display: flex; align-items: flex-start; gap: 0.7rem; line-height: 1.5; }
.plan-features li::before { content: '→'; color: var(--orange-pale); flex-shrink: 0; }
.plan-features li.muted { opacity: 0.3; text-decoration: line-through; text-decoration-color: rgba(245, 240, 232, 0.6); }
.plan-cta { display: block; text-align: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.9rem; border-radius: 10px; text-decoration: none; border: 1px solid rgba(245, 240, 232, 0.2); color: var(--cream); transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s; }
.plan-cta:hover { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.plan.featured .plan-cta {
    background: linear-gradient(to top, var(--orange), var(--orange-bright));
    border-color: var(--orange); color: #fff;
    box-shadow: 0 8px 24px -8px rgba(224, 96, 32, 0.6);
}
.plan.featured .plan-cta:hover { filter: brightness(1.08); color: #fff; }
.plan-feature-link { color: inherit; text-decoration: none; transition: color 0.2s; }
.plan-feature-link:hover { color: var(--orange-pale); }
.plan-feature-detail-link {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.plan-feature-detail-link:hover {
  color: var(--orange-pale);
  border-color: var(--orange-pale);
}

      .custom-project {
        margin: 3rem auto 0;
        max-width: 1100px;
        border: 1px solid rgba(224, 96, 32, 0.5);
        border-radius: 16px;
        padding: 2.5rem;
        position: relative;
        z-index: 2;
        background:
          linear-gradient(160deg, rgba(224, 96, 32, 0.12), rgba(22, 36, 72, 0.9) 55%, rgba(8, 17, 36, 0.96));
        box-shadow: 0 -8px 100px -28px rgba(224, 96, 32, 0.4), 0 24px 60px -28px rgba(0, 0, 0, 0.8);
      }
      .custom-project-label {
        position: absolute;
        top: -0.75rem;
        left: 2rem;
        background: #0f1d3a;
        padding: 0 0.75rem;
        font-size: 0.75rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--orange-pale);
        font-weight: 600;
      }
      .custom-project-inner {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 2.5rem;
        align-items: start;
      }
      .custom-project-name {
        font-family: 'Playfair Display', serif;
        font-size: 1.8rem;
        font-weight: 700;
        margin-bottom: 0.4rem;
      }
      .custom-project-tagline {
        color: rgba(245, 240, 232, 0.72);
        margin-bottom: 1.5rem;
        font-size: 0.95rem;
      }
      .custom-project-types {
        display: flex;
        flex-direction: column;
        gap: 1rem;
      }
      .custom-type {
        display: flex;
        align-items: flex-start;
        gap: 0.85rem;
      }
      .custom-type-icon {
        flex-shrink: 0;
        margin-top: 0.15rem;
      }
      .custom-type-icon svg { width: 1.4rem; height: 1.4rem; color: var(--orange-pale); display: block; }
      .custom-type strong {
        display: block;
        font-weight: 600;
        margin-bottom: 0.2rem;
        font-size: 0.95rem;
      }
      .custom-type span {
        font-size: 0.85rem;
        color: rgba(245, 240, 232, 0.72);
        line-height: 1.4;
      }
      .custom-project-right {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        min-width: 180px;
        padding-top: 0.5rem;
      }
      .custom-project-price {
        text-align: center;
      }
      .custom-price-setup {
        font-family: 'Playfair Display', serif;
        font-size: 2.2rem;
        font-weight: 700;
        line-height: 1;
      }
      .custom-price-setup small {
        font-size: 0.8rem;
        font-family: 'Syne', sans-serif;
        font-weight: 400;
        margin-left: 4px;
        color: rgba(245, 240, 232, 0.7);
      }
      .custom-price-monthly {
        font-size: 0.9rem;
        color: var(--orange-bright);
        margin-top: 0.3rem;
        font-weight: 600;
      }
      .custom-project-cta {
        white-space: nowrap;
      }
      .custom-project-note {
        font-size: 0.78rem;
        color: rgba(245, 240, 232, 0.7);
        text-align: center;
        line-height: 1.4;
        max-width: 180px;
        margin: 0;
      }
      @media (max-width: 720px) {
        .custom-project-inner {
          grid-template-columns: 1fr;
        }
        .custom-project-right {
          flex-direction: row;
          flex-wrap: wrap;
          justify-content: flex-start;
          min-width: unset;
          padding-top: 0;
          border-top: 1px solid rgba(200,98,42,0.2);
          padding-top: 1.25rem;
          gap: 1rem 2rem;
        }
        .custom-project-note {
          max-width: 100%;
          text-align: left;
        }
      }

/* --- ADDONS (dark glowing cards) --- */
.addons { background: #081124; }
.addons-header { max-width: 720px; margin: 0 auto 3rem; text-align: center; }
.addons-header .section-label { justify-content: center; }
.addons-title {
    font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 900; line-height: 1.05; letter-spacing: -0.02em;
}
.addons-title em { font-style: italic; color: var(--orange); }

.addon-block {
    max-width: 1100px; width: 100%; margin: 1.5rem auto 0;
    border: 1px solid rgba(245, 240, 232, 0.10); border-radius: 16px;
    background: linear-gradient(160deg, rgba(30, 50, 96, 0.5), rgba(12, 26, 58, 0.85) 60%, rgba(8, 17, 36, 0.95));
    display: grid; grid-template-columns: 1fr 260px; overflow: hidden;
    /* luce ambient orange sempre presente */
    box-shadow: 0 -6px 90px -34px rgba(224, 96, 32, 0.45), 0 18px 50px -30px rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.addon-block:hover {
    transform: translateY(-4px);
    border-color: rgba(224, 96, 32, 0.5);
    box-shadow: 0 -8px 120px -28px rgba(224, 96, 32, 0.6), 0 24px 60px -28px rgba(0, 0, 0, 0.8);
}
.addon-content { padding: 3rem; }
.addon-eyebrow { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--orange-pale); margin-bottom: 1rem; display: flex; align-items: center; gap: 0.75rem; }
.addon-eyebrow::before { content: ''; display: block; width: 20px; height: 1px; background: var(--orange); }
.addon-title { font-family: var(--serif); font-size: 1.7rem; font-weight: 700; margin-bottom: 0.8rem; line-height: 1.2; color: var(--cream); }
.addon-desc { font-size: 0.9rem; line-height: 1.75; color: rgba(245, 240, 232, 0.55); max-width: 560px; }
.addon-price-panel {
    background: linear-gradient(to top, var(--orange), var(--orange-bright));
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    padding: 3rem 2rem; gap: 0.5rem; text-align: center;
    box-shadow: inset 0 0 60px -20px rgba(255, 255, 255, 0.25);
}
.addon-price-num { font-family: var(--serif); font-size: 3.5rem; font-weight: 900; color: var(--navy); line-height: 1; }
.addon-price-label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(12, 26, 58, 0.55); }
.addon-cta {
    display: inline-block; margin-top: 2rem; font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream);
    background: transparent; border: 1px solid rgba(245, 240, 232, 0.2); border-radius: 10px;
    padding: 0.75rem 1.8rem; text-decoration: none; transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.addon-cta:hover { background: var(--orange); border-color: var(--orange); color: var(--navy); }
.addon-note {
    display: block;
    font-size: 0.75rem;
    opacity: 0.65;
    font-style: italic;
    margin-bottom: 1.2rem;
    color: var(--cream);
}
/* --- HOW IT WORKS --- */
.how-title { font-family: var(--serif); font-size: clamp(2.3rem, 4.5vw, 4rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; max-width: 580px; margin-bottom: 5rem; }
.how-title em { font-style: italic; color: var(--orange); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-left: 1px solid rgba(12, 26, 58, 0.1); }
.step { padding: 2.8rem; border-right: 1px solid rgba(12, 26, 58, 0.1); border-bottom: 1px solid rgba(12, 26, 58, 0.1); position: relative;display: flex;    flex-direction: column; align-items: flex-start; height: 100% }
.step-num { font-family: var(--serif); font-size: 4.5rem; font-weight: 900; color: rgba(12, 26, 58, 0.05); line-height: 1; position: absolute; top: 1.5rem; right: 2rem; }
.step-icon { margin-bottom: 1.4rem; }
.step-icon svg { width: 1.7rem; height: 1.7rem; color: var(--orange-deep); display: block; }
.step-title { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; margin-bottom: 0.75rem; }
.step-desc { font-size: 0.87rem; line-height: 1.8; color: rgba(12, 26, 58, 0.75);margin-bottom: 1.8rem; }
.step-tag { display: inline-block; margin-top: auto; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--orange-deep); border-bottom: 1px solid var(--orange-deep); padding-bottom: 1px; }

/* --- SHARED GRADIENT BACKDROP (addons) --- */
.addons { position: relative; overflow: hidden; }
.addons > *:not(.sec-bg) { position: relative; z-index: 1; }

/* --- AURORA BACKDROP (gradient soft come la hero) su who / showcase / faq --- */
.who, .showcase, .faq { position: relative; overflow: hidden; }
.who > *:not(.aurora-bg),
.showcase > *:not(.aurora-bg),
.faq > *:not(.aurora-bg) { position: relative; z-index: 1; }
.aurora-bg {
    position: absolute; inset: 0; z-index: 0; pointer-events: none;
    background:
        radial-gradient(ellipse 55% 45% at 80% 12%, rgba(224, 96, 32, 0.36) 0%, transparent 60%),
        radial-gradient(ellipse 45% 40% at 50% 0%, rgba(196, 86, 26, 0.16) 0%, transparent 65%);
    animation: heroAurora 18s ease-in-out infinite alternate;
}
.sec-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.sec-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(to right, rgba(245, 240, 232, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(245, 240, 232, 0.025) 1px, transparent 1px);
    background-size: 70px 80px;
    -webkit-mask-image: radial-gradient(60% 50% at 50% 0%, #000 0%, transparent 75%);
            mask-image: radial-gradient(60% 50% at 50% 0%, #000 0%, transparent 75%);
}
/* glow attenuato, parte da destra come nella hero */
.sec-glow {
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 45% 55% at 85% 22%, rgba(224, 96, 32, 0.22) 0%, transparent 60%);
    filter: blur(18px); opacity: 0.6;
}

/* --- WHO IT'S FOR --- */
.who { background: var(--navy); }
.who-title { font-family: var(--serif); font-size: clamp(2.3rem, 4.5vw, 4rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; max-width: 680px; margin-bottom: 4rem; }
.who-title em { font-style: italic; color: var(--orange); }
/* Editorial list (no boxes) */
.who-list {
    list-style: none; display: grid; grid-template-columns: 1fr 1fr;
    gap: 0 4rem; max-width: 1100px; margin: 0 auto;
    border-top: 1px solid rgba(245, 240, 232, 0.12);
}
.who-item {
    display: flex; gap: 1.1rem; align-items: flex-start;
    padding: 1.8rem 0.25rem; border-bottom: 1px solid rgba(245, 240, 232, 0.12);
    transition: padding-left 0.25s ease;
}
.who-item:hover { padding-left: 1rem; }
.who-ico { flex-shrink: 0; color: var(--orange); margin-top: 0.2rem; }
.who-ico svg { width: 1.5rem; height: 1.5rem; display: block; }
.who-item-title { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; margin-bottom: 0.4rem; }
.who-item-desc { font-size: 0.86rem; line-height: 1.65; color: rgba(245, 240, 232, 0.72); max-width: 42ch; }

/* --- SHOWCASE --- */
.showcase { background: var(--navy-mid); padding: 6rem 0 7rem; overflow: hidden; }
.showcase-header { max-width: 1200px; margin: 0 auto; padding: 0 2rem 3.5rem; }
.showcase-title {
    font-family: var(--serif); font-size: clamp(2rem, 5vw, 3.8rem);
    font-weight: 700; line-height: 1.1; color: var(--cream); margin-bottom: 0.9rem;
}
.showcase-title em { color: var(--orange); font-style: italic; }
.showcase-sub { color: rgba(245, 240, 232, 0.72); font-size: 0.95rem; max-width: 52ch; line-height: 1.7; }
.showcase-row { overflow: hidden; margin-bottom: 1.25rem; }
.showcase-row:last-child { margin-bottom: 0; }
.showcase-track {
    display: flex; width: max-content; gap: 1.25rem;
    animation: ticker 40s linear infinite; will-change: transform;
}
.showcase-row--rev .showcase-track { animation: showcaseRev 44s linear infinite; }
.showcase-img {
    height: 240px; width: auto; aspect-ratio: 16 / 10;
    object-fit: cover; flex-shrink: 0; display: block;
    transition: opacity 0.25s ease;
}
.showcase-row:hover .showcase-track,
.showcase-row:focus-within .showcase-track { animation-play-state: paused; }
@keyframes showcaseRev { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) { .showcase-track { animation: none !important; } }
@media (max-width: 768px) {
    .showcase-img { height: 180px; }
    .showcase-track { gap: 1rem; }
}

/* --- REFERRAL --- */
.referral { background: var(--orange); color: var(--navy); }
.referral-inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; flex-wrap: wrap; }
.referral-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: #000; margin-bottom: 1rem; }
.referral-headline { font-family: var(--serif); font-size: clamp(1.8rem, 3.5vw, 3rem); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; max-width: 400px; }
.referral-big { font-family: var(--serif); font-size: 6rem; font-weight: 900; color: var(--navy); opacity: 0.12; white-space: nowrap; }
.referral-desc { font-size: 0.88rem; line-height: 1.75; color: #000; max-width: 240px; margin-bottom: 1.2rem; }
.btn-dark { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream); background: var(--navy); padding: 0.85rem 1.8rem; text-decoration: none; display: inline-block; transition: background 0.2s; }
.btn-dark:hover { background: var(--navy-light); }

/* --- FAQ --- */
.faq { background: var(--navy); }
.faq-title { font-family: var(--serif); font-size: clamp(2rem, 4vw, 3.5rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; max-width: 640px; margin-bottom: 1rem; }
.faq-title em { font-style: italic; color: var(--orange); }
.faq-intro { font-size: 0.93rem; color: rgba(245, 240, 232, 0.72); margin-bottom: 3.5rem; }
.faq-grid { display: flex; flex-direction: column; border-top: 1px solid rgba(196, 86, 26, 0.2); }
.faq-item { border-bottom: 1px solid rgba(196, 86, 26, 0.2); }
.faq-q { width: 100%; background: none; border: none; color: var(--cream); font-family: var(--sans); font-size: 1rem; font-weight: 600; text-align: left; padding: 1.6rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 2rem; transition: color 0.2s; }
.faq-q:hover { color: var(--orange-pale); }
.faq-q[aria-expanded="true"] { color: var(--orange-bright); }
.faq-icon { font-size: 1.4rem; font-weight: 300; flex-shrink: 0; transition: transform 0.3s; color: var(--orange-bright); }
.faq-q[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a { padding: 0 0 1.6rem; }
.faq-a p { font-size: 0.93rem; line-height: 1.85; color: rgba(245, 240, 232, 0.75); max-width: 680px; }

/* --- CONTACT --- */
.contact { background: var(--navy-mid); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: start; }
.contact-title { font-family: var(--serif); font-size: clamp(2.3rem, 4.5vw, 4rem); font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 1.4rem; }
.contact-title em { font-style: italic; color: var(--orange); }
.contact-body { font-size: 0.93rem; line-height: 1.8; color: rgba(245, 240, 232, 0.74); margin-bottom: 2rem; }
.contact-links { display: flex; flex-direction: column; gap: 1rem; }
.contact-link { display: flex; align-items: center; gap: 1rem; text-decoration: none; color: var(--cream); font-size: 0.88rem; opacity: 0.65; transition: opacity 0.2s, color 0.2s; }
.contact-link:hover { opacity: 1; color: var(--orange-pale); }
.contact-link-icon { width: 36px; height: 36px; background: rgba(196, 86, 26, 0.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-link-icon svg { width: 18px; height: 18px; color: var(--orange-pale); }
.contact-link { align-items: flex-start; }
.contact-link-sub { display: block; font-size: 0.75rem; opacity: 0.5; letter-spacing: 0.04em; margin-top: 0.15rem; }
.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; }
.form-label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(245, 240, 232, 0.35); }
.form-select option { background: var(--navy); }
.form-textarea { resize: vertical; min-height: 115px; }
.form-submit { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); background: var(--orange-bright); border: none; padding: 1rem 2.4rem; cursor: pointer; transition: background 0.2s; align-self: flex-start; font-family: var(--sans); }
.form-submit:hover { background: #EE6B22; }

/* --- FOOTER --- */
footer { background: var(--navy); border-top: 1px solid rgba(196, 86, 26, 0.18); padding: 2.5rem 4rem; display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; flex-direction: column; text-align: center; }
.footer-brand { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; color: var(--cream); }
.footer-brand span { color: var(--orange); }
.footer-copy { font-size: 0.72rem; color: rgba(245, 240, 232, 0.28); }

/* ==========================================================================
   5. ANIMAZIONI & UTILITIES
   ========================================================================== */
/* Pausa delle animazioni infinite quando la sezione è fuori viewport (vedi initAnimPause) */
.anim-paused .hero-path,
.anim-paused .hero-aurora,
.anim-paused .aurora-bg,
.anim-paused .ticker,
.anim-paused .sparkle,
.anim-paused .showcase-track,
.anim-paused .hero-label-dot { animation-play-state: paused; }

.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

@keyframes countUp { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes expandLine { to { transform: scaleX(1); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ==========================================================================
   Fix per iPad Pro / Tablet (forza 2 colonne invece di 3)
   ========================================================================== */
@media (max-width: 1300px) {
    .who-list {
        grid-template-columns: 1fr 1fr;
    }
}
/* ==========================================================================
   6. RESPONSIVE (MEDIA QUERIES)
   ========================================================================== */
@media (max-width: 900px) {
    /* Header & Navigazione */
    #nav { padding: 1.2rem 1.5rem; }
    .nav-right { gap: 1.2rem; }
    .nav-hamburger { display: flex; padding: 12px; }
    .nav-hamburger span { width: 26px; height: 3px; }
    
    .lang-toggle { flex-shrink: 0; }
    .lang-btn { padding: 0.4rem 0.6rem; min-width: 38px; }
    .nav-cta { padding: 0.45rem 1rem; }

    /* Menu Mobile a comparsa */
    .nav-links {
        display: none; position: fixed; top: 0; left: 40%; right: 0; bottom: auto;
        height: 100vh; overflow-y: auto; background: rgba(12, 26, 58, 0.98);
        backdrop-filter: blur(12px); border-left: 1px solid rgba(196, 86, 26, 0.3);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
        padding: 7rem 1.5rem 3rem; flex-direction: column; gap: 0; z-index: 999;
    }
    .nav-links.open { display: flex; }
    .nav-links li a {
        display: block; padding: 1.1rem 0; font-size: 1.1rem;
        letter-spacing: 0.1em; border-bottom: 1px solid rgba(196, 86, 26, 0.15);
        opacity: 1;
    }
    

    /* Struttura base mobile */
    section, .referral { padding: 5rem 1.5rem; }
    
    /* Hero & Ticker */
    .hero { padding: 7rem 1.5rem 3rem; }
    .hero-title { max-width: 100%; }
    .hero-line { display: none; }
    .ticker { animation-duration: 14s; }

    /* Hero mobile */
    .hero-content { max-width: 100%; }
    .hero-scroll { display: none; }
    /* path sfumano dal basso, lontano dal titolo */
    .hero-paths {
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 45%, #000 80%);
                mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.4) 45%, #000 80%);
        opacity: 0.7;
    }

    /* Griglie trasformate in colonne singole */
    .about-grid, .services-header, .plans, .steps, .addon-block, .contact-inner, .form-row {
        grid-template-columns: 1fr;
    }
    .addon-block { width: 100%; }
    .steps { border-left: none; }
    .who-list { grid-template-columns: 1fr; gap: 0; }

    /* Aggiustamenti specifici */
    .about-stats { flex-direction: column; align-items: flex-start; gap: 2rem; }
    .addon-price-panel { padding: 2rem; }
    footer { flex-direction: column; align-items: center; padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
    .hero-trust { gap: 1rem 1.4rem; }

    /* 1. Recuperiamo spazio dai bordi dello schermo */
    #nav { 
        padding: 1rem 1rem; 
    }
    
    /* 2. Riduciamo lo spazio tra lingua, bottone e hamburger */
    .nav-right { 
        gap: 0.6rem; 
    }
    
    /* 3. Rimpiccioliamo leggermente il bottone "Inizia ora" */
    .nav-cta { 
        padding: 0.4rem 0.6rem; 
        font-size: 0.65rem; 
        letter-spacing: 0.05em; 
    }
    
    /* 4. Togliamo padding in eccesso dai tasti lingua */
    .lang-btn { 
        padding: 0.3rem 0.4rem; 
        min-width: auto; 
    }

    /* 5. PROTEGGIAMO L'HAMBURGER: impediamo che Flexbox lo schiacci */
    .nav-hamburger { 
        padding: 8px; 
        flex-shrink: 0; /* Questa è la vera magia che lo tiene sempre visibile */
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* ==========================================================================
   7. FOOTER LEGAL LINKS
   ========================================================================== */
.footer-legal {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  opacity: 0.5;
  margin-top: 0.25rem;
}
.footer-legal a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s;
}
.footer-legal a:hover { opacity: 1; }
.footer-sep { opacity: 0.5; }
/* ==========================================================================
   8. COOKIE BANNER
   ========================================================================== */
  .cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #0d1b2a;
    color: rgba(255,255,255,0.85);
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1.5rem;
    font-family: 'Syne', sans-serif;
    font-size: 0.82rem;
    border-top: 2px solid #e07b39;
    transform: translateY(0);
    transition: transform 0.4s ease;
  }
  .cookie-banner.hidden {
    transform: translateY(110%);
  }
  .cookie-banner-text {
    margin: 0;
    line-height: 1.5;
  }
  .cookie-banner-link {
    color: #e07b39;
    text-decoration: underline;
    white-space: nowrap;
    margin-left: 0.25em;
  }
  .cookie-banner-link:hover { opacity: 0.8; }
  .cookie-banner-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
  }
  .cookie-banner-btn {
    flex-shrink: 0;
    background: #e07b39;
    color: #fff;
    border: none;
    padding: 0.45rem 1.1rem;
    border-radius: 4px;
    font-family: 'Syne', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
  }
  .cookie-banner-btn:hover { opacity: 0.85; }
  .cookie-banner-btn--ghost {
    background: transparent;
    color: rgba(255,255,255,0.85);
    border: 1px solid rgba(255,255,255,0.35);
  }

  @media (max-width: 540px) {
    .cookie-banner {
      flex-direction: column;
      align-items: flex-start;
      gap: 0.75rem;
    }
  }

/* ==========================================================================
   9. FORM STATES (Submit feedback, consent, error)
   ========================================================================== */
/* ==========================================================================
   10. LEGAL PAGES (Privacy Policy, Cookie Policy)
       Scoped under body.legal-page to avoid conflicts with main site.
   ========================================================================== */
body.legal-page {
  color-scheme: light;
  --orange: #e07b39;
  --text: #1a1a1a;
  --border: #e0dbd0;
  background: var(--cream);
  color: var(--text);
  line-height: 1.8;
}

.top-nav {
  background: var(--navy);
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.top-nav a {
  color: #fff;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  opacity: 0.8;
  transition: opacity 0.2s;
}
.top-nav a:hover { opacity: 1; }
.top-nav-brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 1 !important;
  font-family: var(--serif);
}
.top-nav-brand span { color: var(--orange); }

.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 3rem 2rem 4rem;
  text-align: center;
}
.page-hero-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
  font-weight: 600;
}
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
}
.page-hero h1 em {
  font-style: italic;
  color: var(--orange);
}
.page-hero-date {
  margin-top: 1rem;
  font-size: 0.85rem;
  opacity: 0.6;
}

.summary-bar {
  background: var(--navy);
  color: #fff;
  text-align: center;
  padding: 1.25rem 2rem;
  font-size: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.summary-bar strong { color: var(--orange); }

.legal-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.legal-section {
  margin-bottom: 2.5rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}
.legal-section:last-child { border-bottom: none; }

.legal-section h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--navy);
}
.legal-section h2 .num {
  color: var(--orange);
  margin-right: 0.4em;
  font-style: italic;
}

.legal-section p {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  margin: 0.5rem 0 0.75rem 1.25rem;
}
.legal-section ul li {
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.legal-section a {
  color: var(--orange);
  text-underline-offset: 2px;
}

.highlight-box {
  background: #fff;
  border-left: 3px solid var(--orange);
  padding: 1rem 1.25rem;
  border-radius: 0 6px 6px 0;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.highlight-box strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--navy);
}
.highlight-box a { color: var(--orange); }

.placeholder {
  background: #fff3cd;
  border: 1px dashed #f0a500;
  padding: 0.2em 0.5em;
  border-radius: 4px;
  font-size: 0.85em;
  font-weight: 600;
  color: #7a5000;
}

.cookie-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.875rem;
}
.cookie-table th {
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 0.85rem;
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.cookie-table td {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.cookie-table tr:nth-child(even) td { background: #fff; }

.badge {
  display: inline-block;
  padding: 0.15em 0.6em;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
}
.badge-tech  { background: #d4edda; color: #155724; }
.badge-third { background: #fff3cd; color: #7a5000; }
.badge-none  { background: #f8d7da; color: #721c24; }

.legal-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  padding: 1.5rem 2rem;
  font-size: 0.8rem;
}
.legal-footer a {
  color: var(--orange);
  text-decoration: none;
}
.legal-footer a:hover { text-decoration: underline; }

@media (max-width: 600px) {
  .top-nav { padding: 0.85rem 1rem; }
  .legal-wrapper { padding: 2rem 1rem 4rem; }
  .cookie-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .cookie-table th,
  .cookie-table td { padding: 0.5rem 0.6rem; }
}


.form-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.form-success {
  border: 1px solid rgba(196, 86, 26, 0.4);
  color: var(--orange-pale);
  padding: 2rem;
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: center;
}
.form-error {
  color: var(--orange-bright);
  font-size: 0.82rem;
  margin-top: 0.5rem;
}
.form-consent {
  margin-top: 0.5rem;
}
.form-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.72);
  cursor: pointer;
  line-height: 1.5;
}
.form-consent-label a {
  color: var(--orange-pale);
  text-underline-offset: 2px;
}
.form-consent-input {
  flex-shrink: 0;
  margin-top: 0.18rem;
  accent-color: var(--orange);
  width: 15px;
  height: 15px;
}