@font-face {
    font-family: 'Fredoka';
    src: url('fonts/fredoka.woff2') format('woff2');
    font-weight: 400 700;
    font-display: swap;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-user-select: none;
    user-select: none;
}

:root {
    --purple: #4A6FA5;
    --purple-dark: #1E293B;
    --purple-light: #7C9BCF;
    --pink: #B87333;
    --pink-light: #D4A373;
    --gold: #B8860B;
    --gold-light: #D4A853;
    --teal: #5A7A7A;
    --dark: #1E293B;
    --dark-bg: #0F172A;
    --text: #1E293B;
    --text-light: #64748B;
    --bg: #F8FAFC;
    --bg-alt: #F1F5F9;
    --white: #FFFFFF;
    --radius: 16px;
    --shadow: 0 4px 20px rgba(30, 41, 59, 0.08);
    --font: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --font-heading: 'Cormorant Garamond', Georgia, serif;

    --header-bg: rgba(15, 23, 42, 0.95);
    --nav-link: rgba(248, 250, 252, 0.8);
    --nav-link-hover: var(--gold-light);
    --header-border: rgba(255, 255, 255, 0.06);
    --card-frame: rgba(0, 0, 0, 0.06);
    --card-border: rgba(0, 0, 0, 0.15);
    --section-line: var(--gold);
    --faq-accent: var(--gold);
    --pattern-color: rgba(0, 0, 0, 0.03);
    --pattern-color-alt: rgba(0, 0, 0, 0.04);
}

html {
    scroll-behavior: smooth;
}

/* ===== Animazioni scroll reveal ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.section {
    padding: 80px 0;
    position: relative;
}

.animate-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

.animate-on-scroll.revealed:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll.revealed:nth-child(3) { transition-delay: 0.2s; }
.animate-on-scroll.revealed:nth-child(4) { transition-delay: 0.3s; }
.animate-on-scroll.revealed:nth-child(5) { transition-delay: 0.4s; }
.animate-on-scroll.revealed:nth-child(6) { transition-delay: 0.5s; }

.gallery-item.animate-on-scroll {
    transform: translateY(20px) scale(0.95);
}

.gallery-item.animate-on-scroll.revealed {
    transform: translateY(0) scale(1);
}

.faq-item.animate-on-scroll {
    transform: translateX(-20px);
}

.faq-item.animate-on-scroll.revealed {
    transform: translateX(0);
}

.section-title.animate-on-scroll {
    transform: translateY(20px);
}

.section-subtitle.animate-on-scroll {
    transform: translateY(15px);
}

body {
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
}

.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    z-index: 1000;
    padding: 14px 0;
    border-bottom: 1px solid var(--header-border);
}

.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: block;
    text-decoration: none;
    width: 220px;
    height: 48px;
}
.logo-canvas {
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.nav {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.nav a {
    color: var(--nav-link);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s;
}

.nav a:hover {
    color: var(--nav-link-hover);
    background: rgba(255,255,255,0.06);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--nav-link);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 4px;
}

.hero {
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    overflow-y: visible;
    background: var(--dark-bg);
}

.hero-panel {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 60px;
    cursor: grab;
}
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}
.hero-panel:active {
    cursor: grabbing;
}

.hero-panel-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.hero-panel .hero-panel-bg {
    background: 
        repeating-linear-gradient(45deg, transparent, transparent 40px, rgba(50, 100, 230, 0.07) 40px, rgba(50, 100, 230, 0.07) 41px),
        repeating-linear-gradient(-45deg, transparent, transparent 80px, rgba(50, 100, 230, 0.04) 80px, rgba(50, 100, 230, 0.04) 81px),
        radial-gradient(ellipse at 20% 30%, rgba(50, 100, 230, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 70%, rgba(80, 140, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 0%, rgba(60, 120, 240, 0.10) 0%, transparent 50%),
        linear-gradient(170deg, #0A0E1A 0%, #0D1224 35%, #111833 65%, #0D1224 100%);
}

.hero-panel .hero-panel-bg::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: 
        radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

/* ----- Separatore tra sezioni ----- */
.section-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 30px 20px;
    background: var(--dark-bg);
    position: relative;
    overflow: hidden;
}
.section-divider::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    max-width: 300px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(60, 130, 255, 0.4), transparent);
}
.section-divider-line {
    flex: 0 1 120px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(60, 130, 255, 0.5), transparent);
}
.section-divider-icon {
    font-size: 1.4rem;
    color: rgba(60, 130, 255, 0.7);
    text-shadow: 0 0 20px rgba(60, 130, 255, 0.4);
    animation: dividerGlow 2s ease-in-out infinite alternate;
}
@keyframes dividerGlow {
    0% { text-shadow: 0 0 10px rgba(60, 130, 255, 0.3); }
    100% { text-shadow: 0 0 30px rgba(60, 130, 255, 0.7); }
}

/* ----- Sezione Recensioni (stesso sfondo hero) ----- */
.reviews-section {
    min-height: auto;
    overflow: hidden;
}
.reviews-panel {
    padding-top: 100px;
    padding-bottom: 80px;
    min-height: auto;
    cursor: default;
}
.reviews-panel:active {
    cursor: default;
}
.reviews-panel .hero-panel-content {
    max-width: 100%;
    width: 100%;
}
.reviews-glass {
    display: block;
    width: 100%;
    padding: 40px 30px;
}
.reviews-title {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 20px rgba(60, 130, 255, 0.3);
}
.reviews-subtitle {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 30px;
}
.reviews-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(60,130,255,0.3) transparent;
    padding-bottom: 8px;
    padding-right: 10px;
    align-items: flex-start;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.reviews-container.grabbing {
    cursor: grabbing;
}
.reviews-container::-webkit-scrollbar {
    height: 5px;
}
.reviews-container::-webkit-scrollbar-track {
    background: transparent;
}
.reviews-container::-webkit-scrollbar-thumb {
    background: rgba(60,130,255,0.3);
    border-radius: 10px;
}
.reviews-container::-webkit-scrollbar-thumb:hover {
    background: rgba(60,130,255,0.5);
}

.review-card {
    flex: 0 0 340px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    height: 350px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    padding: 20px 22px;
    text-align: left;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    transition: background 0.25s, border-color 0.25s;
}
.review-card:hover {
    background: rgba(255,255,255,0.07);
    border-color: rgba(60, 130, 255, 0.25);
}
.review-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-shrink: 0;
}
.review-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255,255,255,0.15);
}
.review-avatar--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(60, 130, 255, 0.3), rgba(40, 80, 200, 0.3));
    color: #fff;
    font-weight: 700;
    font-size: 1.1rem;
}
.review-meta {
    flex: 1;
    min-width: 0;
}
.review-name {
    display: block;
    font-size: 0.95rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.3;
}
.review-date {
    display: block;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.3;
}
.review-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.review-stars {
    display: inline-block;
    width: 72px;
    height: 14px;
    background: rgba(255,255,255,0.12);
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
    position: relative;
}
.review-stars::after {
    content: '★★★★★';
    position: absolute;
    top: 0; left: 0;
    font-size: 14px;
    line-height: 1;
    letter-spacing: 2px;
    color: #FFD700;
    width: var(--voto, 100%);
    overflow: hidden;
    white-space: nowrap;
}
.review-score {
    font-size: 0.85rem;
    font-weight: 700;
    color: #FFD700;
}
.review-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    margin-bottom: 6px;
    line-height: 1.4;
    flex-shrink: 0;
}
.review-text {
    font-size: 0.88rem;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    margin: 0;
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.15) transparent;
    padding-right: 4px;
}
.review-text::-webkit-scrollbar {
    width: 3px;
}
.review-text::-webkit-scrollbar-track {
    background: transparent;
}
.review-text::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 10px;
}
.review-reply {
    margin-top: 12px;
    padding: 12px 14px;
    background: rgba(60, 130, 255, 0.06);
    border-left: 2px solid rgba(60, 130, 255, 0.3);
    border-radius: 0 8px 8px 0;
    flex-shrink: 0;
    max-height: 70px;
    overflow-y: auto;
}
.review-reply-title {
    display: block;
    font-size: 0.78rem;
    color: rgba(60, 130, 255, 0.8);
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.review-reply-text {
    font-size: 0.85rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .reviews-panel {
        padding-top: 60px;
        padding-bottom: 20px;
    }
    .reviews-glass {
        padding: 16px 12px 8px;
    }
    .reviews-title {
        font-size: 1.6rem;
    }
    .reviews-subtitle {
        font-size: 0.85rem;
    }
    .review-card {
        flex: 0 0 280px;
        height: 280px;
        padding: 16px 18px;
    }
    .review-header {
        gap: 10px;
    }
    .review-avatar {
        width: 36px;
        height: 36px;
    }
    .review-stars {
        width: 60px;
    }
    .review-stars::after {
        font-size: 12px;
    }
}

.hero-panel-content {
    position: relative;
    z-index: 20;
    padding: 40px;
    max-width: 520px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hero-panel.visible .hero-panel-content {
    opacity: 1;
    transform: translateY(0);
}

.hero-panel .hero-panel-content {
    margin: 0 auto;
    text-align: center;
    padding-bottom: 20px;
}
.hero-panel-glass {
    display: inline-block;
    padding: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    max-width: none;
    z-index: 1;
}

/* ----- Intro bolla sopra il carosello ----- */
.bubble-intro {
    position: relative;
    z-index: 20;
    text-align: center;
    padding: 20px 20px 0;
    max-width: 600px;
    margin: 0 auto;
}

.bubble-text {
    display: inline-block;
    font-family: 'Fredoka', var(--font-heading);
    font-size: clamp(1.1rem, 3vw, 1.6rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 20px rgba(60, 130, 255, 0.6), 0 0 40px rgba(60, 130, 255, 0.3);
    background: linear-gradient(135deg, rgba(60, 130, 255, 0.25), rgba(40, 80, 200, 0.25));
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 60px;
    padding: 12px 28px;
    letter-spacing: 1px;
    position: relative;
    animation: bubbleFloat 3s ease-in-out infinite;
    box-shadow: 0 4px 24px rgba(60, 130, 255, 0.2), inset 0 0 30px rgba(255, 255, 255, 0.05);
}

.bubble-text::before {
    content: '';
    position: absolute;
    top: -4px; left: 15%;
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    pointer-events: none;
}

.bubble-text::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 60px;
    background: linear-gradient(
        105deg,
        transparent 40%,
        rgba(255,255,255,0.12) 45%,
        rgba(255,255,255,0.18) 50%,
        rgba(255,255,255,0.12) 55%,
        transparent 60%
    );
    background-size: 300% 100%;
    animation: bubbleShimmer 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes bubbleFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes bubbleShimmer {
    0% { background-position: 300% 0; }
    100% { background-position: -300% 0; }
}

.bubble-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

@media (max-width: 768px) {
    .bubble-intro {
        padding: 14px 10px 0;
        max-width: 90%;
    }
    .bubble-text {
        font-size: clamp(0.85rem, 3.5vw, 1.1rem);
        padding: 8px 18px;
        border-width: 1px;
    }
}

/* ----- Carosello servizi nel vetro ----- */
.hero-carousel {
    width: 100%;
    height: 140px;
}
.carousel-viewport {
    position: relative;
    height: 130px;
}
.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.45s ease, transform 0.45s ease;
    pointer-events: none;
    text-align: center;
}
.carousel-slide.active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    position: relative;
}
.carousel-icon {
    font-size: 2.2rem;
    margin-bottom: 6px;
    line-height: 1.2;
}
.carousel-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 6px;
    line-height: 1.3;
}
.carousel-text {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.85);
    margin: 0;
    line-height: 1.5;
    max-width: 90%;
    margin: 0 auto;
}
.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 15;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: linear-gradient(135deg, rgba(60, 130, 255, 0.35), rgba(40, 80, 200, 0.35));
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #fff;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.25s;
    box-shadow: 0 2px 12px rgba(60, 130, 255, 0.25);
    padding: 0;
}
.carousel-arrow:hover {
    background: linear-gradient(135deg, rgba(60, 130, 255, 0.6), rgba(40, 80, 200, 0.6));
    transform: translateY(-50%) scale(1.1);
}
.carousel-arrow-left {
    left: -16px;
}
.carousel-arrow-right {
    right: -16px;
}

@media (max-width: 768px) {
    .carousel-arrow {
        width: 28px;
        height: 28px;
        font-size: 1.1rem;
    }
    .carousel-arrow-left {
        left: -6px;
    }
    .carousel-arrow-right {
        right: -6px;
    }
}
.carousel-img {
    margin-bottom: 6px;
}
.carousel-img img {
    max-width: 100%;
    height: auto;
    border-radius: 0;
    display: block;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .carousel-icon { font-size: 1.7rem; }
    .carousel-title { font-size: 0.95rem; }
    .carousel-text { font-size: 0.78rem; }
    .hero-carousel { height: 110px; }
    .carousel-viewport { height: 100px; }
    .carousel-img img { max-width: 80%; }
}

.hero-panel-expanded {
    display: block;
    opacity: 1;
    max-height: none;
    overflow: visible;
}
.hero-panel-expanded-text {
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 16px 0 0;
    color: #FFFFFF;
    background: linear-gradient(135deg, rgba(26, 74, 138, 0.85), rgba(13, 45, 90, 0.85));
    padding: 10px 18px;
    border-radius: 12px;
    display: inline-block;
    backdrop-filter: blur(4px);
}
.scroll-hint {
    display: none;
}
.scroll-hint i {
    display: block;
    width: 12px;
    height: 12px;
    border-right: 2px solid rgb(100, 180, 255);
    border-bottom: 2px solid rgb(100, 180, 255);
    animation: scrollHintLR 1.6s ease-in-out infinite;
}
.scroll-hint i:first-child {
    transform: rotate(135deg);
}
.scroll-hint i:last-child {
    transform: rotate(-45deg);
    animation-delay: 0.3s;
}
@keyframes scrollHintLR {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

.hero-panel-expanded-features {
    position: relative;
    width: 100%;
    margin: 40px auto 0;         /* mantiene il centro, spostato giu' */
    display: flex;
    gap: 20px;                   /* spazio tra cerchi */
    padding: 20px 30px;          /* padding orizzontale */
    overflow: visible;
    z-index: 1;
    pointer-events: auto;
    justify-content: space-evenly;
}

/* Circhi piu' grandi e testo all'interno */
.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
    width: 200px;               /* largh. per cerchi su desktop */
    text-align: center;
}
.feature-item:hover {
    transform: scale(1.1);
}

/* Cerchio su desktop */
.feature-circle {
    width: 180px;               /* cerchio desktop */
    height: 180px;
    border-radius: 50%;
    border: 2px solid rgba(180, 210, 255, 0.4);
    background: rgba(180, 210, 255, 0.1);
    overflow: hidden;
    box-shadow: 0 0 20px rgba(60, 130, 255, 0.45), inset 0 0 12px rgba(60, 130, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.feature-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Label sotto il cerchio */
.feature-label {
    font-size: 0.85rem;
    color: #fff;
    text-align: center;
    font-weight: 700;
    font-family: 'Fredoka', var(--font-heading);
    letter-spacing: 0.5px;
    line-height: 1.2;
    padding: 4px 8px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(60, 130, 255, 0.85), rgba(40, 80, 200, 0.85));
    border: 1px solid rgba(255,255,255,0.2);
    backdrop-filter: blur(4px);
    width: 100%;
    margin-top: 8px;
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-panel-expanded-features::-webkit-scrollbar {
    height: 6px;
}
.hero-panel-expanded-features::-webkit-scrollbar-track {
    background: transparent;
}
.hero-panel-expanded-features::-webkit-scrollbar-thumb {
    background: rgba(60, 130, 255, 0.4);
    border-radius: 3px;
}
.hero-panel-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    padding: 6px 14px;
    border-radius: 50px;
    margin-bottom: 16px;
    border: 1px solid;
}

.hero-panel .hero-panel-label {
    color: #C8E0FF;
    border-color: rgba(60, 130, 255, 0.4);
    background: rgba(40, 80, 200, 0.15);
}

.hero-panel-title {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 14px;
    font-family: 'Fredoka', var(--font-heading);
    letter-spacing: 0.5px;
}

.hero-panel .hero-panel-title {
    color: #FFFFFF;
    text-shadow: 0 2px 30px rgba(60, 130, 255, 0.4);
}

.hero-panel-text {
    font-size: clamp(0.9rem, 1.6vw, 1.1rem);
    line-height: 1.7;
    margin-bottom: 28px;
    font-family: var(--font);
    font-weight: 300;
}

.hero-panel .hero-panel-text {
    color: #FFFFFF;
    background: linear-gradient(135deg, rgba(26, 74, 138, 0.85), rgba(13, 45, 90, 0.85));
    padding: 10px 18px;
    border-radius: 12px;
    display: inline-block;
    backdrop-filter: blur(4px);
}

.hero-panel-cta .btn-primary {
    font-size: 0.85rem;
    padding: 12px 26px;
}

.hero-panel .hero-panel-cta .btn-primary {
    background: linear-gradient(135deg, #1A4A8A, #0D2D5A);
    color: #FFFFFF;
    box-shadow: 0 4px 16px rgba(40, 80, 200, 0.4);
}

.hero-panel .hero-panel-cta .btn-primary:hover {
    background: linear-gradient(135deg, #2058A0, #12366B);
    box-shadow: 0 6px 24px rgba(60, 100, 230, 0.55);
    transform: translateY(-2px);
}



.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, var(--pink), var(--purple));
    color: var(--white);
    box-shadow: 0 4px 15px rgba(233,30,155,0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(233,30,155,0.45);
}

.btn-secondary {
    background: transparent;
    color: var(--gold-light);
    border: 2px solid var(--gold-light);
}

.btn-secondary:hover {
    background: rgba(212,168,83,0.1);
    transform: translateY(-2px);
}

.section {
    padding: 100px 0;
    position: relative;
}

.section-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.section::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
    background-image:
        radial-gradient(circle at 15% 20%, var(--pattern-color) 1px, transparent 1px),
        radial-gradient(circle at 85% 40%, var(--pattern-color) 1.5px, transparent 1.5px),
        radial-gradient(circle at 45% 70%, var(--pattern-color-alt) 1px, transparent 1px),
        radial-gradient(circle at 70% 85%, var(--pattern-color) 2px, transparent 2px),
        radial-gradient(circle at 30% 55%, var(--pattern-color-alt) 1px, transparent 1px);
    background-size: 100px 100px, 120px 120px, 80px 80px, 140px 140px, 90px 90px;
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 10L65 25L80 30L65 35L60 50L55 35L40 30L55 25Z' fill='white'/%3E%3Ccircle cx='30' cy='60' r='3' fill='white'/%3E%3Ccircle cx='90' cy='45' r='2' fill='white'/%3E%3Ccircle cx='50' cy='90' r='4' fill='white'/%3E%3Cpath d='M100 80L105 88L115 90L105 92L100 100L95 92L85 90L95 88Z' fill='white'/%3E%3C/svg%3E");
    mask-size: 120px 120px;
    mask-repeat: repeat;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath d='M60 10L65 25L80 30L65 35L60 50L55 35L40 30L55 25Z' fill='white'/%3E%3Ccircle cx='30' cy='60' r='3' fill='white'/%3E%3Ccircle cx='90' cy='45' r='2' fill='white'/%3E%3Ccircle cx='50' cy='90' r='4' fill='white'/%3E%3Cpath d='M100 80L105 88L115 90L105 92L100 100L95 92L85 90L95 88Z' fill='white'/%3E%3C/svg%3E");
    -webkit-mask-size: 120px 120px;
    -webkit-mask-repeat: repeat;
}

.section-alt {
    background: var(--bg-alt);
}

.section > .container,
.footer .container {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 800;
    text-align: center;
    color: var(--purple-dark);
    margin-bottom: 12px;
    font-family: var(--font-heading);
    position: relative;
}

.section-title::before {
    content: '✦';
    display: block;
    font-size: 1.2rem;
    color: var(--section-line);
    opacity: 0.3;
    margin-bottom: 4px;
    letter-spacing: 8px;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--section-line), transparent);
    margin: 14px auto 0;
    border-radius: 2px;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.05rem;
    max-width: 600px;
    margin: 0 auto 48px;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
}

.grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card {
    position: relative;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--radius);
    padding: 32px 24px;
    box-shadow: var(--shadow);
    border: 4px solid var(--card-border);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.card::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid var(--card-frame);
    border-radius: calc(var(--radius) - 6px);
    pointer-events: none;
    background-image:
        radial-gradient(circle at 10px 10px, var(--section-line) 2px, transparent 2px),
        radial-gradient(circle at calc(100% - 10px) 10px, var(--section-line) 2px, transparent 2px),
        radial-gradient(circle at 10px calc(100% - 10px), var(--section-line) 2px, transparent 2px),
        radial-gradient(circle at calc(100% - 10px) calc(100% - 10px), var(--section-line) 2px, transparent 2px);
    background-repeat: no-repeat;
}

.card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 24px;
    right: 24px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--section-line), transparent);
    border-radius: 0 0 2px 2px;
    pointer-events: none;
}



.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(30, 41, 59, 0.14);
    border-color: var(--section-line);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
}

.card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--purple-dark);
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.card-text {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 16px;
}

.card-cta {
    color: var(--pink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.card-cta:hover {
    color: var(--purple);
}

.card-mystic {
    position: relative;
    background: linear-gradient(145deg, var(--purple-dark), var(--dark));
    color: var(--white);
    padding: 36px 28px;
    border-radius: var(--radius);
    border: 4px solid var(--card-border);
    transition: border-color 0.3s;
}

.card-mystic::before {
    content: '';
    position: absolute;
    inset: 8px;
    border: 1px solid var(--card-frame);
    border-radius: calc(var(--radius) - 6px);
    pointer-events: none;
}

.card-mystic::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 20px;
    right: 20px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--section-line), transparent);
    border-radius: 0 0 2px 2px;
    pointer-events: none;
}

.card-mystic:hover {
    border-color: var(--section-line);
}

.card-mystic .card-title {
    color: var(--gold-light);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.split-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--purple-dark);
    margin-bottom: 16px;
    font-family: var(--font-heading);
}

.split-content p {
    color: var(--text-light);
    margin-bottom: 12px;
}

.list-check {
    list-style: none;
    margin-bottom: 24px;
}

.list-check li {
    padding: 6px 0;
    padding-left: 28px;
    position: relative;
    color: var(--text);
}

.list-check li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--purple);
    font-weight: 700;
}

.list-steps {
    list-style: none;
    counter-reset: step;
}

.list-steps li {
    counter-increment: step;
    padding: 8px 0 8px 36px;
    position: relative;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}

.list-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    width: 24px;
    height: 24px;
    background: var(--gold-light);
    color: var(--dark);
    font-weight: 700;
    font-size: 0.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.disclaimer {
    font-size: 0.8rem;
    color: var(--text-light);
    text-align: center;
    margin-top: 32px;
    font-style: italic;
}

.img-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--purple-light), var(--pink-light));
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.5);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    cursor: pointer;
    aspect-ratio: 1;
    background: var(--white);
    padding: 6px;
    box-shadow: var(--shadow);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: calc(var(--radius) - 6px);
    transition: transform 0.4s;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.08);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.08);
}

.gallery-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    pointer-events: none;
    transition: background 0.2s;
}

.gallery-item:hover .gallery-play {
    background: rgba(0,0,0,0.7);
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: #fff;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.gallery-item:hover .gallery-caption {
    opacity: 1;
}

/* Feature Popup */
.feature-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.feature-popup.open {
    display: flex;
}
.feature-popup-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    backdrop-filter: blur(6px);
}
.feature-popup-card {
    position: relative;
    background: linear-gradient(170deg, #0A0E1A 0%, #0D1224 100%);
    border: 1px solid rgba(60, 130, 255, 0.3);
    border-radius: 20px;
    max-width: 420px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 0 40px rgba(60, 130, 255, 0.2);
    animation: popupIn 0.3s ease;
}
@keyframes popupIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
.feature-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(60, 130, 255, 0.3);
    color: #C8E0FF;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.feature-popup-close:hover {
    background: rgba(60, 130, 255, 0.6);
}
.feature-popup-img {
    width: 100%;
    aspect-ratio: 16/10;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}
.feature-popup-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-user-drag: none;
    user-select: none;
    pointer-events: none;
}
.feature-popup-body {
    padding: 20px 24px 24px;
}
.feature-popup-body h3 {
    font-family: 'Fredoka', var(--font-heading);
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    font-weight: 700;
    color: #FFFFFF;
    margin: 0 0 14px 0;
    letter-spacing: 0.5px;
}
.feature-popup-body ul {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
}
.feature-popup-body ul li {
    position: relative;
    padding: 6px 0 6px 20px;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
    color: rgba(200, 225, 255, 0.85);
    line-height: 1.5;
}
.feature-popup-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(60, 130, 255, 0.7);
    box-shadow: 0 0 6px rgba(60, 130, 255, 0.3);
}
.feature-popup-wa {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 20px;
    border-radius: 50px;
    background: linear-gradient(135deg, #1A4A8A, #0D2D5A);
    color: #FFF;
    font-weight: 600;
    font-size: clamp(0.85rem, 2vw, 0.95rem);
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(40, 80, 200, 0.3);
}
.feature-popup-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(60, 100, 230, 0.4);
}
.feature-popup-wa::before {
    content: '💬';
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .feature-popup {
        padding: 10px;
        align-items: center;
    }
    .feature-popup-card {
        max-width: 300px;
        max-height: 75vh;
        border-radius: 16px;
    }
    .feature-popup-close {
        top: 5px;
        right: 5px;
        width: 28px;
        height: 28px;
        font-size: 0.85rem;
        background: rgba(60, 130, 255, 0.5);
    }
    .feature-popup-img {
        aspect-ratio: 4/3;
        border-radius: 16px 16px 0 0;
    }
    .feature-popup-body {
        padding: 10px 14px 16px;
    }
    .feature-popup-body h3 {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    .feature-popup-body ul {
        margin-bottom: 12px;
    }
    .feature-popup-body ul li {
        font-size: 0.72rem;
        padding: 3px 0 3px 14px;
    }
    .feature-popup-body ul li::before {
        width: 4px;
        height: 4px;
    }
    .feature-popup-wa {
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    .feature-popup-wa::before {
        font-size: 1rem;
    }
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,0.92);
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox.open {
    display: flex;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    padding: 12px;
}

.card-review {
    text-align: center;
}

.review-stars {
    color: var(--gold);
    font-size: 1.2rem;
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.review-text {
    font-style: italic;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.review-author {
    font-weight: 600;
    color: var(--purple-dark);
    font-size: 0.9rem;
}

.review-role {
    color: var(--text-light);
    font-weight: 400;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 4px solid var(--card-border);
    border-left: 4px solid var(--faq-accent);
    transition: border-color 0.3s;
}

.faq-item:hover {
    border-color: var(--section-line);
}

.faq-question {
    padding: 18px 24px;
    font-weight: 600;
    color: var(--purple-dark);
    cursor: pointer;
    list-style: none;
    font-family: var(--font-heading);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.faq-question:hover {
    background: rgba(107, 47, 160, 0.04);
}

.faq-question::after {
    content: '+';
    font-size: 1.3rem;
    color: var(--purple-light);
    transition: transform 0.3s;
}

details[open] .faq-question::after {
    content: '−';
}

.faq-answer {
    padding: 0 24px 18px;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.7;
}

.contact-info p {
    font-size: 1rem;
    margin-bottom: 14px;
    color: var(--text);
}

.contact-info a {
    color: var(--purple);
    text-decoration: none;
    font-weight: 500;
}

.contact-info a:hover {
    color: var(--pink);
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bg-alt);
    font-size: 1.2rem;
    text-decoration: none;
    transition: all 0.2s;
}

.social-links a:hover {
    background: var(--purple);
    transform: translateY(-2px);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--purple-dark);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    padding: 12px 16px;
    border: 2px solid rgba(60, 130, 255, 0.2);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    background: var(--white);
    transition: border-color 0.2s;
    outline: none;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    border-color: var(--purple);
}

.contact-form .btn {
    align-self: flex-start;
}

.char-count {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--text-light);
    float: right;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 4px;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    flex-shrink: 0;
}

.checkbox-group label {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text);
    margin: 0;
}

.checkbox-group label a {
    color: var(--purple);
    text-decoration: underline;
}

.form-success {
    background: #E8F5E9;
    color: #2E7D32;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    text-align: center;
    border: 1px solid #A5D6A7;
}

.form-error {
    background: #FFE0E0;
    color: #C62828;
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 0.95rem;
    text-align: center;
    border: 1px solid #EF9A9A;
}

.contact-form textarea#messaggio {
    resize: vertical;
}

.footer {
    position: relative;
    background: var(--dark-bg);
    color: rgba(255,255,255,0.6);
    text-align: center;
    padding: 48px 24px;
    font-size: 0.85rem;
}

.footer p {
    margin-bottom: 6px;
}

.footer a {
    color: var(--gold-light);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

/* Palette switcher */
.palette-bar {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(10px);
    padding: 10px 18px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-width: 94vw;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.palette-label {
    color: rgba(255,255,255,0.6);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.palette-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    padding: 0;
    outline: none;
}

.palette-btn:hover {
    transform: scale(1.2);
    border-color: rgba(255,255,255,0.5);
}

.palette-btn.active {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3);
    transform: scale(1.15);
}

@media (max-width: 768px) {
    .palette-bar {
        bottom: 10px;
        padding: 8px 14px;
        gap: 6px;
        justify-content: flex-start;
    }
    .palette-btn {
        min-width: 22px;
        width: 22px;
        height: 22px;
        flex-shrink: 0;
    }
    .palette-label {
        font-size: 0.6rem;
        flex-shrink: 0;
    }
}

.crystal-ball-wrap {
    position: relative;
    width: 65%;
    max-width: 200px;
    margin: 0 auto 16px;
    aspect-ratio: 172 / 206.8;
}

.crystal-ball-wrap canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 83%;
    border-radius: 50%;
    clip-path: circle(49.5% at 50% 48%);
    background: rgba(180, 200, 240, 0.06);
    opacity: 0.45;
}

.crystal-ball-wrap .crystal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.crystal-ball-wrap .glare {
    position: absolute;
    width: 32%;
    top: 5%;
    left: 54%;
    opacity: 0.6;
    pointer-events: none;
}

.crystal-ball-wrap .crystal-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 83%;
    border-radius: 50%;
    pointer-events: none;
    animation: crystalGlow 3s ease-in-out infinite;
}

.crystal-ball-wrap .at0 { fill: #E6F0FF; }
.crystal-ball-wrap .pt0 { fill: #968747; }
.crystal-ball-wrap .pt1 { fill: #89772E; }
.crystal-ball-wrap .pt2 { fill: #87762D; }
.crystal-ball-wrap .pt3 { fill: #A18D33; }
.crystal-ball-wrap .pt4 { fill: #C6B158; }
.crystal-ball-wrap .pt5 { fill: #605422; }
.crystal-ball-wrap .pt6 { fill: #D2B951; }
.crystal-ball-wrap .pt7 { fill: #7F7455; }
.crystal-ball-wrap .pt8 { fill: #4C483F; }
.crystal-ball-wrap .pt9 { fill: #A8964C; }
.crystal-ball-wrap .pt10 { fill: #99873A; }
.crystal-ball-wrap .st11 { fill: #5076B2; }
.crystal-ball-wrap .st12 { fill: #567BB5; }
.crystal-ball-wrap .st13 { fill: #5B81B8; }
.crystal-ball-wrap .st14 { fill: #6186BB; }
.crystal-ball-wrap .st15 { fill: #678CBE; }
.crystal-ball-wrap .st16 { fill: #6C91C1; }
.crystal-ball-wrap .st17 { fill: #7296C4; }
.crystal-ball-wrap .st18 { fill: #789CC7; }
.crystal-ball-wrap .st19 { fill: #7DA1CA; }
.crystal-ball-wrap .st20 { fill: #83A6CD; }
.crystal-ball-wrap .st21 { fill: #89ACD0; }
.crystal-ball-wrap .st22 { fill: #8EB1D2; }
.crystal-ball-wrap .st23 { fill: #94B7D5; }
.crystal-ball-wrap .st24 { fill: #9ABCD8; }
.crystal-ball-wrap .st25 { fill: #9FC1DB; }
.crystal-ball-wrap .st26 { fill: #A5C7DE; }
.crystal-ball-wrap .st27 { fill: #ABCCE1; }
.crystal-ball-wrap .st28 { fill: #B0D1E4; }
.crystal-ball-wrap .st29 { fill: #B6D7E7; }
.crystal-ball-wrap .st30 { fill: #BCDCEA; }
.crystal-ball-wrap .st31 { fill: #C1E2ED; }
.crystal-ball-wrap .st32 { fill: #C7E7F0; }
.crystal-ball-wrap .st33 { opacity: 0.2; fill: #FFFFFF; }
.crystal-ball-wrap .st34 { fill: #E6F0FF; }
.crystal-ball-wrap .st35 { opacity: 0.3; fill: #FFFFFF; }

@keyframes crystalGlow {
    0%, 100% { box-shadow: 0 0 5px rgba(156, 176, 234, 0.25); }
    50% { box-shadow: 0 0 25px rgba(146, 213, 255, 0.45); }
}

@media (max-width: 768px) {
    .crystal-ball-wrap {
        width: 55%;
        max-width: 160px;
    }
    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--header-bg);
        padding: 16px 24px;
    }

    .nav.open {
        display: flex;
    }

    .split {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .split.reverse {
        display: flex;
        flex-direction: column-reverse;
    }


    .hero-panel-content {
        padding: 20px;
        max-width: 85%;
    }

    .hero-panel .hero-panel-content {
        padding: 20px 24px;
        margin: 0 auto;
    text-align: center;
}

    .hero-panel-glass {
        padding: 0;
        max-width: 100%;
    }

    .hero-panel-label {
        font-size: 0.55rem;
        padding: 4px 10px;
        margin-top: 20px;
        margin-bottom: 10px;
    }

    .hero-panel-title {
        font-size: clamp(0.9rem, 3.5vw, 1.3rem);
        margin-bottom: 8px;
    }

    .hero-panel-text {
        font-size: clamp(0.65rem, 2vw, 0.85rem);
        margin-bottom: 8px;
    }

    .hero-panel-cta .btn-primary {
        font-size: clamp(0.6rem, 1.6vw, 0.75rem);
        padding: 6px 12px;
    }
    .hero-panel-expanded-text {
        margin-top: 10px;
    }

    .feature-circle {
        width: 90px;
        height: 90px;
    }
    .feature-label {
        font-size: 0.7rem;
        padding: 3px 6px;
        border-radius: 12px;
        margin-top: 6px;
    }
    .hero-panel-expanded-features {
        max-width: 100%;
        margin: 30px auto 0;
        gap: 8px;                  /* ridotto da 20px a 8px */
        padding: 6px 8px;          /* ridotto da 16px 20px a 6px 8px */
        overflow-x: auto;
        overflow-y: hidden;
        justify-content: flex-start;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(60, 130, 255, 0.4) transparent;
    }
    .feature-item {
        gap: 4px;                  /* ridotto da 10px a 4px */
        min-width: 90px;            /* ridotto da 200px a 90px */
    }
    .hero-panel-expanded-text {
        max-height: 90px;
        overflow-y: auto;
        padding-right: 6px;
        scrollbar-width: thin;
        scrollbar-color: rgba(60, 130, 255, 0.4) transparent;
    }
    .hero-panel-expanded-text::-webkit-scrollbar {
        width: 4px;
    }
    .hero-panel-expanded-text::-webkit-scrollbar-thumb {
        background: rgba(60, 130, 255, 0.4);
        border-radius: 4px;
    }
    @media (max-width: 360px) {
    .hero-panel-expanded-features {
        gap: 6px;                  /* ridotto da 14px a 6px */
        padding: 4px 6px;          /* ridotto da 12px 16px a 4px 6px */
    }
    .feature-item {
        gap: 3px;                  /* ridotto da 8px a 3px */
        min-width: 75px;            /* ridotto da 180px a 75px */
    }
    .feature-circle {
        width: 75px;               /* ridotto da 160px a 75px */
        height: 75px;              /* ridotto da 160px a 75px */
        border-width: 1px;
        box-shadow: 0 0 8px rgba(60, 130, 255, 0.3), inset 0 0 4px rgba(60, 130, 255, 0.1);
    }
    .feature-label {
        font-size: 0.6rem;          /* ridotto da 0.85rem a 0.6rem */
        padding: 2px 4px;           /* ridotto da 4px 9px a 2px 4px */
        border-radius: 10px;
        margin-top: 4px;
    }
}


