:root {
    --color-bg: #05070a;
    --color-surface: #0b0e16;
    --color-accent: #6c63ff;
    --color-accent-glow: rgba(108, 99, 255, 0.4);
    --color-text: #f3f4f6;
    --color-muted: #8b92ad;
    --font-primary: 'Inter', sans-serif;
    --color-input-bg: rgba(255, 255, 255, 0.04);
    --color-input-border: rgba(255, 255, 255, 0.1);
    --color-input-text: #f3f4f6;
    --color-label: #8b92ad;
}

/* =========================================
   LIGHT THEME
   ========================================= */
[data-theme="light"] {
    --color-bg: #f0f2f8;
    --color-surface: #ffffff;
    --color-accent: #5a52e8;
    --color-accent-glow: rgba(90, 82, 232, 0.3);
    --color-text: #1a1d2e;
    --color-muted: #5c6280;
    --color-input-bg: rgba(0, 0, 0, 0.04);
    --color-input-border: rgba(0, 0, 0, 0.12);
    --color-input-text: #1a1d2e;
    --color-label: #5c6280;
}

[data-theme="light"] body {
    background-color: var(--color-bg);
    color: var(--color-text);
}

[data-theme="light"] .site-bg {
    background-color: var(--color-bg);
    background-image:
        radial-gradient(circle at 15% 15%, rgba(90, 82, 232, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(96, 165, 250, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(90, 82, 232, 0.05) 0%, transparent 60%);
}

[data-theme="light"] .site-bg::before {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px);
}

[data-theme="light"] #particles-canvas {
    opacity: 0.35;
}

[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4 {
    color: #1a1d2e;
}

[data-theme="light"] .navbar.scrolled {
    background: rgba(240, 242, 248, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .nav-brand {
    color: #1a1d2e;
}

[data-theme="light"] .nav-links a {
    color: var(--color-muted);
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a.active {
    color: #1a1d2e;
}

[data-theme="light"] .glass-card {
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .glass-card::before {
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.01));
}

[data-theme="light"] .glass-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), 0 0 30px var(--color-accent-glow);
}

[data-theme="light"] .step-number {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .planner-row {
    background: rgba(0, 0, 0, 0.025);
    border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .planner-day {
    color: #1a1d2e;
}

[data-theme="light"] .contact-info-box {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .whatsapp-booking-box {
    background: rgba(90, 82, 232, 0.05);
    border-color: rgba(90, 82, 232, 0.2);
}

[data-theme="light"] footer {
    background: rgba(220, 225, 240, 0.97);
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

[data-theme="light"] .footer-brand,
[data-theme="light"] .footer-bottom p {
    color: #1a1d2e;
}

[data-theme="light"] .section-header h2::before {
    box-shadow: 0 0 10px var(--color-accent-glow);
}

[data-theme="light"] .advisory-card.warning {
    background: rgba(249, 115, 22, 0.05);
}

[data-theme="light"] .advisory-card.info {
    background: rgba(90, 82, 232, 0.04);
}

[data-theme="light"] section:not(#hero) {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .hero {
    background: radial-gradient(circle at center, rgba(90, 82, 232, 0.08) 0%, transparent 60%);
}

[data-theme="light"] .hero h1 {
    background: linear-gradient(135deg, #1a1d2e 0%, #5a52e8 50%, #4a9cf0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

[data-theme="light"] .btn-ghost {
    background: rgba(0, 0, 0, 0.05);
    color: var(--color-text);
    border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .btn-ghost:hover {
    background: rgba(0, 0, 0, 0.09);
}

/* Form inputs in light mode */
[data-theme="light"] .contact-form input,
[data-theme="light"] .contact-form textarea {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
    color: #1a1d2e;
}

[data-theme="light"] .contact-form input::placeholder,
[data-theme="light"] .contact-form textarea::placeholder {
    color: #8b92ad;
}

[data-theme="light"] .contact-form input:focus,
[data-theme="light"] .contact-form textarea:focus {
    border-color: var(--color-accent);
    background: rgba(90, 82, 232, 0.05);
}

[data-theme="light"] .tab-btn {
    color: var(--color-muted);
}

[data-theme="light"] .tab-btn:hover {
    color: var(--color-text);
}

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

html {
    scroll-behavior: smooth;
    font-size: 18px;
}

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    cursor: none;
    /* Hidden on desktop for custom cursor */
}

/* Hide custom cursor and enable default on touch devices */
@media (hover: none) and (pointer: coarse) {
    body {
        cursor: auto;
    }

    #custom-cursor {
        display: none !important;
    }
}

a,
button {
    cursor: none;
    /* Inherit none for custom cursor */
}

@media (hover: none) and (pointer: coarse) {

    a,
    button {
        cursor: pointer;
    }
}

h1,
h2,
h3,
h4 {
    color: #ffffff;
    line-height: 1.2;
}

section {
    padding: 8rem 2rem;
    position: relative;
    z-index: 10;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-margin-top: 80px;
}

section:not(#hero) {
    border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}


/* =========================================
   CUSTOM CURSOR
   ========================================= */
.cursor-dot,
.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: var(--color-text);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    transition: opacity 0.05s, transform 0.05s cubic-bezier(0.16, 1, 0.3, 1);
}

.cursor-ring {
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0);
    transition: width 0.05s cubic-bezier(0.16, 1, 0.3, 1),
        height 0.05s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.05s, background 0.05s, border-radius 0.05s, opacity 0.05s;
    opacity: 0;
}

.cursor-ring.hover-target {
    width: 32px;
    height: 32px;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
    opacity: 1;
}

.cursor-dot.hover-target {
    opacity: 0 !important;
}

.cursor-ring.text-hover {
    width: 2px;
    height: 24px;
    border-radius: 2px;
    background: var(--color-accent);
    border: none;
    opacity: 1;
}

.cursor-dot.text-hover {
    opacity: 0 !important;
}

/* =========================================
   UTILITIES (Glassmorphism & Reveals)
   ========================================= */
.glass-card {
    background: rgba(255, 255, 255, 0.015);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    transition: transform 0.05s ease-out, box-shadow 0.05s ease-out;
    position: relative;
}

.glass-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.01));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
}

.glass-card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    background: radial-gradient(300px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.05s;
    pointer-events: none;
    z-index: 0;
}


.glass-card:hover::after {
    opacity: 1;
}

.glass-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 30px var(--color-accent-glow);
    transform: translateY(-4px);
}

.service-icon,
h3,
p,
ul,
img,
a {
    position: relative;
    z-index: 1;
}

@media (hover: none) and (pointer: coarse) {
    .glass-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(15, 19, 32, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
        transform: none !important;
    }

    .glass-card::before,
    .glass-card::after {
        display: none;
    }

    .glass-card:hover {
        transform: none !important;
        box-shadow: none;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger delays */
.delay-100 {
    transition-delay: 100ms;
}

.delay-200 {
    transition-delay: 200ms;
}

.delay-300 {
    transition-delay: 300ms;
}

.delay-400 {
    transition-delay: 400ms;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.05s ease-out;
    border: none;
    outline: none;
}

.btn-primary {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 4px 15px var(--color-accent-glow);
}

.btn-primary:hover {
    background: #7b73ff;
    box-shadow: 0 8px 25px rgba(108, 99, 255, 0.6);
    transform: translateY(-2px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.05);
    color: var(--color-text);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    border-bottom: 1px solid transparent;

    /* Animation initial state */
    opacity: 0;
    transform: translateY(-40px);
    transition: opacity 1.8s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.8s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.4s ease,
        padding 0.4s ease;
}

body.intro-finished .navbar {
    opacity: 1;
    transform: translateY(0);
}

.nav-links li {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

body.intro-finished .nav-links li {
    opacity: 1;
    transform: translateX(0);
}

body.intro-finished .nav-links li:nth-child(1) {
    transition-delay: 0.2s;
}

body.intro-finished .nav-links li:nth-child(2) {
    transition-delay: 0.3s;
}

body.intro-finished .nav-links li:nth-child(3) {
    transition-delay: 0.4s;
}

body.intro-finished .nav-links li:nth-child(4) {
    transition-delay: 0.5s;
}

body.intro-finished .nav-links li:nth-child(5) {
    transition-delay: 0.6s;
}

body.intro-finished .nav-links li:nth-child(6) {
    transition-delay: 0.7s;
}

.navbar.scrolled {
    background: rgba(8, 11, 18, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem 2rem;
}

.nav-brand {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #fff;
    text-decoration: none;
}

.nav-brand span {
    color: var(--color-accent);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    color: var(--color-muted);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.05s, letter-spacing 0.05s ease-out;
}

.nav-links a:hover,
.nav-links a.active {
    color: #fff;
    letter-spacing: 0.5px;
}

/* =========================================
   HERO
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding: 0 2rem;
    overflow: hidden;
    background: radial-gradient(circle at center, rgba(108, 99, 255, 0.1) 0%, transparent 60%);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(8, 11, 18, 0.4) 100%);
    z-index: 1;
    pointer-events: none;
}

/* Parallax Background & Grid */
/* Site Background & Grid */
.site-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    z-index: -3;
    background-color: var(--color-bg);
    background-image:
        radial-gradient(circle at 15% 15%, rgba(108, 99, 255, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 85% 85%, rgba(96, 165, 250, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(108, 99, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
    perspective: 1000px;
    overflow: hidden;
}

.site-bg::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    transform: rotateX(60deg) translateY(0);
    animation: gridDrift 50s linear infinite;
    -webkit-mask-image: radial-gradient(circle at center, black 10%, transparent 70%);
    mask-image: radial-gradient(circle at center, black 10%, transparent 70%);
}

@keyframes gridDrift {
    0% {
        transform: rotateX(60deg) translateY(0);
    }

    100% {
        transform: rotateX(60deg) translateY(50px);
    }
}

@media (hover: none) and (pointer: coarse) {
    .site-bg::before {
        display: none;
    }
}

#particles-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    pointer-events: none;
}


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero h1 {
    font-size: clamp(2.22rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 1.5rem;
    min-height: clamp(2.67rem, 7vw, 4.88rem);
    /* Prevents layout shift during typewriter */
    background: linear-gradient(135deg, #ffffff 0%, #a78bfa 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 40px rgba(0, 0, 0, 0.8);
    position: relative;
    z-index: 2;
}

/* Typewriter cursor */
.typewriter-cursor {
    display: inline-block;
    width: 3px;
    background-color: var(--color-accent);
    margin-left: 4px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

.hero p {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: var(--color-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 12px rgba(0, 0, 0, 0.9);
    position: relative;
    z-index: 2;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    padding-bottom: 30px;
}

.hero-extra {
    max-height: 0;
    opacity: 0;
    transform: translateY(40px);
    overflow: hidden;
    transition: max-height 1.8s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 1.8s ease,
        transform 1.8s cubic-bezier(0.16, 1, 0.3, 1),
        margin-top 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}

body.intro-finished .hero-extra {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
    margin-top: 1.5rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    animation: bounce 2s infinite;
    color: var(--color-muted);

    /* Animation initial state */
    opacity: 0;
    transition: opacity 1.8s ease;
}

body.intro-finished .scroll-indicator {
    opacity: 1;
}

.scroll-indicator svg {
    width: 24px;
    height: 24px;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translate(-50%, 0);
    }

    40% {
        transform: translate(-50%, -10px);
    }

    60% {
        transform: translate(-50%, -5px);
    }
}

/* =========================================
   HOW IT WORKS
   ========================================= */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

.section-header h2::before {
    content: '';
    display: block;
    width: 4px;
    height: 24px;
    background: var(--color-accent);
    box-shadow: 0 0 10px var(--color-accent);
    border-radius: 4px;
}

.section-header p {
    color: var(--color-muted);
    max-width: 500px;
    margin: 0 auto;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    position: relative;
}

/* Connecting line */
.steps-grid::before {
    content: '';
    position: absolute;
    top: 76px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    z-index: 0;
}

@media (max-width: 992px) {
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .steps-grid::before {
        display: none;
    }
}

.step-card {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

.step-number {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-accent);
    background: var(--color-surface);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 0 20px rgba(108, 99, 255, 0.1);
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.step-card p {
    color: var(--color-muted);
    font-size: 0.95rem;
}

/* =========================================
   SERVICES
   ========================================= */
#services {
    background: transparent;
    position: relative;
}


.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
}

.service-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: rgba(108, 99, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-accent);
    margin-bottom: 1.5rem;
}

.service-icon svg {
    width: 24px;
    height: 24px;
}

.service-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.service-features {
    list-style: none;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.service-features li {
    font-size: 0.85rem;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.service-features li::before {
    content: '→';
    color: var(--color-accent);
}

/* =========================================
   WHY US (STATS)
   ========================================= */
#why-us .container {
    margin-top: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-item {
    padding: 2rem;
}

.stat-number {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
    line-height: 1;
    text-shadow: 0 0 30px rgba(108, 99, 255, 0.3);
}

.stat-label {
    font-size: 1rem;
    color: var(--color-text);
    font-weight: 600;
}

/* =========================================
   SCHEDULE SECTION (Planner & Tabs)
   ========================================= */
.schedule-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 2.5rem;
    align-items: stretch;
    /* Messo a 'stretch' per pareggiare le altezze */
    margin-top: 2rem;
}

@media (max-width: 992px) {
    .schedule-wrapper {
        grid-template-columns: minmax(0, 1fr);
    }
}

.schedule-planner {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Forza il box di sinistra a riempire tutto lo spazio disponibile */
}

.planner-tabs {
    display: flex;
    flex-wrap: wrap;
    /* Permette ai bottoni di scendere se serve */
    gap: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1 1 auto;
    /* MAGIA: I bottoni si allargano o stringono in modo simmetrico riempiendo il vuoto */
    background: transparent;
    border: none;
    color: var(--color-muted);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.6rem 1rem;
    border-radius: 30px;
    cursor: none !important;
    /* L'aggiunta di !important annienta definitivamente il "dito" nativo */
    white-space: normal;
    /* Permette al testo di adattarsi invece di far sparire il bottone */
    text-align: center;
    transition: all 0.05s ease;
}

.tab-btn:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    color: #fff;
    background: var(--color-accent);
    box-shadow: 0 4px 15px var(--color-accent-glow);
}

/* Contenitore delle schede trasformato in griglia */
.planner-content {
    display: grid;
}

/* Le singole schede vengono impilate nella stessa identica cella */
.tab-pane {
    grid-area: 1 / 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;

    /* Nasconde i tab inattivi ma ne mantiene l'ingombro strutturale invisibile! */
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.4s ease, visibility 0.4s, transform 0.4s ease;
}

/* Quando il tab è attivo, diventa visibile con un'animazione fluida */
.tab-pane.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.planner-row {
    display: grid;
    /* Applichiamo la stessa sicurezza alla griglia interna per forzare il testo lungo ad andare a capo */
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 2fr);
    gap: 1.5rem;
    padding: 1.25rem;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.03);
    align-items: center;
}


@media (max-width: 600px) {
    .planner-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        text-align: left;
    }
}

.planner-day {
    font-weight: 700;
    color: #fff;
    font-size: 1rem;
}

.planner-time {
    color: var(--color-accent);
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.2px;
}

.planner-notes {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.4;
}

.alert-row .planner-time {
    color: #f97316;
}

.schedule-advisories {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    height: 100%;
    /* Forza la colonna di destra ad essere alta esattamente come quella di sinistra */
}

.advisory-card {
    padding: 2rem;
    flex: 1;
    /* MAGIA: I due box si allungano equamente come elastici fino a toccare il fondo! */
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Mantiene il testo perfettamente centrato al loro interno */
}

.advisory-card.warning {
    border-left: 4px solid #f97316;
}

.advisory-card.info {
    border-left: 4px solid var(--color-accent);
}

.advisory-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1rem;
}

.advisory-card.warning .advisory-header {
    color: #f97316;
}

.advisory-card.info .advisory-header {
    color: var(--color-accent);
}

.advisory-header h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
}

.advisory-card p {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* =========================================
   SERVICES SPLIT (FAMIGLIE VS GAMER)
   ========================================= */
.services-split-container {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 2rem;
}

.services-column {
    flex: 1;
    min-width: 0;
}

.services-column:first-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 4rem;
}

.services-column-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    text-align: center;
}

.services-column-header h3 {
    font-size: 1.8rem;
    color: var(--color-accent);
    margin-bottom: 0.5rem;
}

.services-column-header p {
    color: var(--color-muted);
    font-size: 0.95rem;
}

.services-subgrid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    grid-auto-flow: dense;
}

.bento-col-2 {
    grid-column: span 2;
}

.bento-col-3 {
    grid-column: span 3;
}

@media (max-width: 992px) {
    .services-subgrid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-col-2 {
        grid-column: span 2;
    }

    .bento-col-3 {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .services-subgrid {
        grid-template-columns: 1fr;
    }

    .bento-col-2 {
        grid-column: span 1;
    }

    .bento-col-3 {
        grid-column: span 1;
    }
}


/* =========================================
   CTA SECTION
   ========================================= */
.cta-section {
    text-align: center;
    padding: 8rem 2rem;
    margin-top: 5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    text-align: left;
    background: rgba(255, 255, 255, 0.02);
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 3rem;
}

@media (max-width: 992px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
    }
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.15) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.cta-content>h4,
.cta-content>h2,
.cta-content>p.cta-desc {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.cta-content p {
    color: var(--color-muted);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

/* =========================================
   FOOTER
   ========================================= */
footer {
    background: rgba(1, 2, 3, 0.97);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-brand {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fff;
    text-decoration: none;
}

.footer-brand span {
    color: var(--color-accent);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--color-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.05s;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    max-width: 1200px;
    margin: 3rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--color-muted);
    font-size: 0.85rem;
}

/* =========================================
   FLOATING WHATSAPP
   ========================================= */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.05s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    color: white;
}

/* =========================================
   PC BUILDS SECTION
   ========================================= */
.build-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.build-card {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.build-image-container {
    position: relative;
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 1.25rem;
    aspect-ratio: 16 / 10;
}

.build-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.05s cubic-bezier(0.16, 1, 0.3, 1);
}

.build-card:hover .build-image {
    transform: scale(1.06);
}

.build-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(108, 99, 255, 0.85);
    backdrop-filter: blur(8px);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(108, 99, 255, 0.3);
}

.build-info {
    text-align: left;
    padding: 0 0.5rem 0.5rem;
}

.build-info h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
}

.build-info p {
    color: var(--color-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

/* =========================================================================
   COMPOSIZIONE SEZIONE CONTATTI - MATCH ALTEZZA 50/50 & TESTI PROTETTI
   ========================================================================= */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Dividono lo spazio esattamente a metà */
    gap: 3.5rem;
    margin-top: 5rem;
    margin-bottom: 5rem;
    align-items: stretch;
    /* Forza i due box ad avere ESATTAMENTE la stessa altezza */
}

/* BOX DI DESTRA (Email): Passato a destra con order: 2 */
.contact-info-box {
    order: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centra in verticale tutto il blocco */
    gap: 2.5rem;
    /* Respiro tra Telefono, E-mail e Area */
    padding: 3.5rem;
    /* Stesso padding del box di destra per simmetria perfetta */
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    height: 100%;
}

.contact-col {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.contact-col h3 {
    color: var(--color-accent);
    font-size: 1.15rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.contact-col p {
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-muted);
}

.contact-col p strong {
    color: #fff;
    margin-right: 5px;
}

/* Stili Testi Non Cliccabili per Smartphone */
.non-clickable-text {
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    cursor: default;
    user-select: text;
}

.non-clickable-text.email-text {
    font-size: 1rem;
}

.contact-col .area-text {
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

/* BOX DI SINISTRA: WhatsApp Card (spostato a sinistra con order: 1) */
.whatsapp-booking-box {
    order: 1;
    text-align: left;
    background: rgba(108, 99, 255, 0.04);
    padding: 3.5rem;
    /* Simmetria con il box di sinistra */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    /* Manda i testi su e i bottoni giù */
    border: 1px solid rgba(108, 99, 255, 0.15);
    border-radius: 24px;
    height: 100%;
}

.booking-text-content {
    display: flex;
    flex-direction: column;
}

.whatsapp-booking-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
}

.whatsapp-booking-box .booking-desc {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: var(--color-text);
    line-height: 1.6;
}

.whatsapp-booking-box .custom-issue-text {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-bottom: 2.5rem;
    line-height: 1.6;
}

.whatsapp-btn-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* I due bottoni affiancati */
    gap: 1.5rem;
    align-items: center;
}

.whatsapp-btn-group .btn {
    font-size: 1rem;
    padding: 1.1rem 1.5rem;
    width: 100%;
}

.whatsapp-btn-group .btn svg {
    margin-right: 8px;
    vertical-align: middle;
}

.response-time {
    color: #f97316;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    margin-top: 2rem;
    grid-column: span 2;
}

/* Blocco link colorati forzati su mobile */
@media screen {
    .non-clickable-text {
        color: var(--color-muted) !important;
        text-decoration: none !important;
    }
}

/* =========================================
   L'UNICO RESPONSIVE PER QUESTA SEZIONE
   ========================================= */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr;
        /* Incolonna i due mega-box su schermi piccoli */
        gap: 3rem;
    }

    .whatsapp-btn-group {
        grid-template-columns: 1fr;
        /* Impila i bottoni WhatsApp su mobile */
    }

    .response-time {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {

    .contact-info-box,
    .whatsapp-booking-box {
        padding: 2.5rem 1.5rem;
        /* Riduce i margini interni sugli smartphone */
    }
}

/* =========================================
   THEME TOGGLE BUTTON (Navbar)
   ========================================= */
.theme-toggle-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    cursor: none;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
}

.theme-toggle-btn:hover {
    background: rgba(108, 99, 255, 0.2);
    border-color: rgba(108, 99, 255, 0.4);
    color: #fff;
    transform: rotate(20deg) scale(1.08);
}

/* Sun/Moon icon swap logic */
.theme-toggle-btn .icon-sun { display: none; }
.theme-toggle-btn .icon-moon { display: block; }

[data-theme="light"] .theme-toggle-btn .icon-sun { display: block; color: #f59e0b; }
[data-theme="light"] .theme-toggle-btn .icon-moon { display: none; }

[data-theme="light"] .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
    color: var(--color-muted);
}

[data-theme="light"] .theme-toggle-btn:hover {
    background: rgba(90, 82, 232, 0.12);
    border-color: rgba(90, 82, 232, 0.3);
    color: var(--color-accent);
}

@media (hover: none) and (pointer: coarse) {
    .theme-toggle-btn {
        cursor: pointer;
    }
}

/* =========================================
   CONTACT FORM
   ========================================= */
.contact-form-title {
    color: var(--color-accent) !important;
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.contact-form-sub {
    color: var(--color-muted);
    font-size: 0.93rem;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-label, var(--color-muted));
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
    background: var(--color-input-bg, rgba(255, 255, 255, 0.04));
    border: 1px solid var(--color-input-border, rgba(255, 255, 255, 0.1));
    border-radius: 10px;
    padding: 0.75rem 1rem;
    color: var(--color-input-text, var(--color-text));
    font-family: var(--font-primary);
    font-size: 0.95rem;
    width: 100%;
    outline: none;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
    resize: none;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--color-accent);
    background: rgba(108, 99, 255, 0.07);
    box-shadow: 0 0 0 3px rgba(108, 99, 255, 0.15);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--color-muted);
    opacity: 0.7;
}

.contact-submit-btn {
    width: 100%;
    gap: 8px;
    margin-top: 0.5rem;
    font-size: 0.97rem;
    padding: 0.9rem 1.5rem;
}

.form-success-msg {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #22c55e;
    font-size: 0.93rem;
    font-weight: 600;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 10px;
    padding: 0.75rem 1rem;
    margin-top: 0.5rem;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================
   POLICY CTA BOX (How It Works section)
   ========================================= */
.policy-cta-box {
    text-align: center;
    margin-top: 4rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.policy-cta-text {
    font-size: 0.95rem;
    color: var(--color-muted);
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.policy-cta-btn {
    font-size: 0.9rem;
    padding: 0.7rem 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.policy-cta-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-2px);
}

/* Light theme overrides */
[data-theme="light"] .policy-cta-box {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .policy-cta-btn {
    background: rgba(90, 82, 232, 0.1);
    color: var(--color-accent);
    border-color: rgba(90, 82, 232, 0.3);
}

[data-theme="light"] .policy-cta-btn:hover {
    background: rgba(90, 82, 232, 0.18);
    color: var(--color-accent);
}
.secret-dot-trigger { color: var(--color-accent); cursor: default; transition: all 0.3s ease; display: inline-block; }
.secret-dot-trigger:hover { text-shadow: 0 0 15px var(--color-accent-glow); transform: scale(1.2); }
@media (max-width: 768px) { .secret-dot-trigger { pointer-events: none; } }
