/* Base Styles & Variables */
:root {
    --bg-color: #e0f2fe;
    /* Light sky background */
    --text-color: #0f172a;
    --primary-color: #0284c7;
    --primary-hover: #0369a1;
    --secondary-color: #0ea5e9;
    --accent-color: #0284c7;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(2, 132, 199, 0.2);
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.3s ease;
}

@keyframes float {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }

    100% {
        transform: translateY(0px);
    }
}

@keyframes waveGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

@keyframes liquidBorder {
    0% {
        border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    }

    33% {
        border-radius: 60% 40% 40% 60% / 60% 60% 40% 40%;
    }

    66% {
        border-radius: 40% 60% 50% 50% / 50% 50% 50% 50%;
    }

    100% {
        border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    }
}

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

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

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

.mt-30 {
    margin-top: 30px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: 40px;
    font-weight: 700;
    font-size: 1.05rem;
    font-family: var(--font-heading);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    background-size: 200% 200%;
    animation: waveGradient 4s ease infinite;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    background-position: right center;
}

.btn-secondary {
    background: rgba(0, 0, 0, 0.05);
    color: #0f172a;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

.btn-secondary:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.btn-outline {
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
}

.btn-outline:hover {
    background: var(--accent-color);
    color: #0f172a;
}

/* Glass panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Header & Nav */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 20px 0;
    transition: var(--transition);
    z-index: 1000;
    background: transparent;
}

header.scrolled,
header:has(.has-dropdown:hover),
header:has(.mobile-nav.open) {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(2, 132, 199, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.8rem;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    letter-spacing: 1px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.4);
}

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

.desktop-nav {
    display: flex;
    align-items: center;
}

.desktop-nav > a,
.desktop-nav .nav-item > a {
    color: #ffffff;
    text-decoration: none;
    margin-left: 35px;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    position: relative;
}

.desktop-nav > a::after,
.desktop-nav .nav-item > a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.desktop-nav > a:hover,
.desktop-nav > a.active,
.desktop-nav .nav-item > a:hover,
.desktop-nav .nav-item > a.active {
    color: var(--primary-color);
    text-shadow: none;
}

.desktop-nav > a:hover::after,
.desktop-nav > a.active::after,
.desktop-nav .nav-item > a:hover::after,
.desktop-nav .nav-item > a.active::after {
    width: 100%;
}

/* Colori scuri quando la navbar ha lo sfondo bianco (scrolled) */
header.scrolled .logo,
header:has(.has-dropdown:hover) .logo,
header:has(.mobile-nav.open) .logo,
header.scrolled .mobile-menu-btn,
header:has(.has-dropdown:hover) .mobile-menu-btn,
header:has(.mobile-nav.open) .mobile-menu-btn {
    color: #0f172a;
    text-shadow: none;
}

header.scrolled .desktop-nav > a,
header:has(.has-dropdown:hover) .desktop-nav > a,
header.scrolled .desktop-nav .nav-item > a,
header:has(.has-dropdown:hover) .desktop-nav .nav-item > a {
    color: #334155;
    text-shadow: none;
}

header.scrolled .desktop-nav > a:hover,
header.scrolled .desktop-nav > a.active,
header:has(.has-dropdown:hover) .desktop-nav > a:hover,
header:has(.has-dropdown:hover) .desktop-nav > a.active,
header.scrolled .desktop-nav .nav-item > a:hover,
header.scrolled .desktop-nav .nav-item > a.active,
header:has(.has-dropdown:hover) .desktop-nav .nav-item > a:hover,
header:has(.has-dropdown:hover) .desktop-nav .nav-item > a.active {
    color: var(--primary-color);
}

.nav-cta-btn {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 30px;
    font-weight: 600 !important;
    box-shadow: 0 4px 15px rgba(0, 246, 255, 0.3);
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 246, 255, 0.5);
    text-shadow: none !important;
}

.mobile-menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 24px;
    cursor: pointer;
}

.mobile-nav {
    display: flex;
    visibility: hidden;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #ffffff;
    padding: 20px;
    text-align: center;
    gap: 15px;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.mobile-nav.open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: all;
}

/* Hero Section */
.hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 20px;
    overflow: hidden;
}

/* Animated Pure CSS Water Background */
.water-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        linear-gradient(to bottom, rgba(186, 230, 253, 0.15) 60%, rgba(65, 179, 255, 0.95) 80%),
        url('../img/sfondohero.webp') center/cover no-repeat;
    overflow: hidden;
    z-index: 0;
}

.quantum-grid {
    position: absolute;
    top: -50px;
    left: 0;
    width: 100%;
    height: calc(100% + 100px);
    background-image:
        radial-gradient(circle at 50% 50%, rgba(2, 132, 199, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.05) 0%, transparent 60%);
    background-size: 200px 200px;
    z-index: 1;
    animation: flowWater 15s ease-in-out infinite alternate;
}

@keyframes flowWater {
    0% {
        transform: scale(1) translate(0, 0);
    }

    100% {
        transform: scale(1.15) translate(-30px, -20px);
    }
}

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

.bubble {
    position: absolute;
    bottom: -100px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.1) 60%, transparent);
    box-shadow: inset 0 0 8px rgba(255, 255, 255, 0.8), 0 0 5px rgba(2, 132, 199, 0.2);
    animation: riseUpWobble linear infinite;
    mix-blend-mode: screen;
}

/* Bollicine randomizzate (grandezza, velocità, e posizione orizzontale) */
.bubble-1 {
    left: 10%;
    width: 15px;
    height: 15px;
    animation-duration: 8s;
    animation-delay: 1s;
}

.bubble-2 {
    left: 25%;
    width: 8px;
    height: 8px;
    animation-duration: 5s;
    animation-delay: 0s;
}

.bubble-3 {
    left: 35%;
    width: 22px;
    height: 22px;
    animation-duration: 12s;
    animation-delay: 2s;
}

.bubble-4 {
    left: 50%;
    width: 12px;
    height: 12px;
    animation-duration: 7s;
    animation-delay: 4s;
}

.bubble-5 {
    left: 65%;
    width: 18px;
    height: 18px;
    animation-duration: 9s;
    animation-delay: 0.5s;
}

.bubble-6 {
    left: 80%;
    width: 25px;
    height: 25px;
    animation-duration: 14s;
    animation-delay: 3s;
}

.bubble-7 {
    left: 90%;
    width: 10px;
    height: 10px;
    animation-duration: 6s;
    animation-delay: 1.5s;
}

.bubble-8 {
    left: 15%;
    width: 20px;
    height: 20px;
    animation-duration: 11s;
    animation-delay: 5s;
}

.bubble-9 {
    left: 45%;
    width: 14px;
    height: 14px;
    animation-duration: 8s;
    animation-delay: 3.5s;
}

.bubble-10 {
    left: 75%;
    width: 16px;
    height: 16px;
    animation-duration: 10s;
    animation-delay: 2.5s;
}

.bubble-11 {
    left: 5%;
    width: 9px;
    height: 9px;
    animation-duration: 6s;
    animation-delay: 4.5s;
}

.bubble-12 {
    left: 40%;
    width: 24px;
    height: 24px;
    animation-duration: 13s;
    animation-delay: 1.2s;
}

.bubble-13 {
    left: 60%;
    width: 11px;
    height: 11px;
    animation-duration: 7s;
    animation-delay: 6s;
}

.bubble-14 {
    left: 85%;
    width: 19px;
    height: 19px;
    animation-duration: 11s;
    animation-delay: 0.8s;
}

.bubble-15 {
    left: 55%;
    width: 13px;
    height: 13px;
    animation-duration: 9s;
    animation-delay: 5.5s;
}

@keyframes riseUpWobble {
    0% {
        transform: translateY(0) translateX(0) scale(1);
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    25% {
        transform: translateY(-25vh) translateX(-15px) scale(1.05);
    }

    50% {
        transform: translateY(-50vh) translateX(15px) scale(1.1);
    }

    75% {
        transform: translateY(-75vh) translateX(-15px) scale(1.15);
        opacity: 0.8;
    }

    100% {
        transform: translateY(-120vh) translateX(10px) scale(1.2);
        opacity: 0;
    }
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    z-index: 0;
}

.blob-1 {
    width: 60vw;
    height: 60vw;
    background: #0284c7;
    top: -10%;
    left: -10%;
    animation: blob-move 15s infinite alternate ease-in-out;
}

.blob-2 {
    width: 50vw;
    height: 50vw;
    background: #0ea5e9;
    bottom: -20%;
    right: -10%;
    animation: blob-move 18s infinite alternate-reverse ease-in-out;
}

.blob-3 {
    width: 40vw;
    height: 40vw;
    background: #38bdf8;
    top: 30%;
    left: 40%;
    animation: blob-move 20s infinite alternate ease-in-out;
}

@keyframes blob-move {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(150px, 100px) scale(1.2);
        border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

/* Parallax SVG Waves */
.hero-waves {
    position: absolute;
    bottom: -5px;
    /* Offset to prevent gap */
    left: 0;
    width: 100%;
    height: 100px;
    z-index: 3;
}

.waves {
    width: 100%;
    height: 100%;
    min-height: 100px;
    max-height: 150px;
}

.parallax>use {
    animation: move-forever 25s linear infinite;
}

.parallax>use:nth-child(1) {
    animation-delay: -2s;
    animation-duration: 7s;
}

.parallax>use:nth-child(2) {
    animation-delay: -3s;
    animation-duration: 10s;
}

.parallax>use:nth-child(3) {
    animation-delay: -4s;
    animation-duration: 13s;
}

.parallax>use:nth-child(4) {
    animation-delay: -5s;
    animation-duration: 20s;
}

@keyframes move-forever {
    0% {
        transform: translate3d(-90px, 0, 0);
    }

    100% {
        transform: translate3d(85px, 0, 0);
    }
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 246, 255, 0.1);
    border: 1px solid var(--accent-color);
    border-radius: 20px;
    color: var(--accent-color);
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    margin-bottom: 20px;
    color: #ffffff;
}

.hero h1 span {
    background: linear-gradient(to right, #ffffff, #93c5fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none;
}

.hero p {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 40px;
    color: #ffffff;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease;
}

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

/* Video Section */
.video-section {
    padding: 80px 0;
    position: relative;
    background: linear-gradient(to bottom, var(--bg-color) 0%, #bae6fd 100%);
}

.video-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--glass-border);
}

.video-thumbnail {
    width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16/9;
    opacity: 0.7;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.video-container:hover .video-thumbnail {
    opacity: 1;
    transform: scale(1.02);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: rgba(14, 165, 233, 0.85);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: #0f172a;
    padding-left: 6px;
    box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
    animation: pulsePlay 2s infinite;
    z-index: 2;
    transition: var(--transition);
}

.video-container:hover .play-button {
    background: var(--primary-color);
}

@keyframes pulsePlay {
    0% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.7);
    }

    70% {
        box-shadow: 0 0 0 20px rgba(14, 165, 233, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(14, 165, 233, 0);
    }
}

/* About Section */
.about {
    padding: 100px 0;
    position: relative;
}

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

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-color);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #475569;
}

.about-image {
    padding: 10px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 40% 60% 60% 40% / 40% 40% 60% 60%;
    display: block;
    animation: liquidBorder 10s ease-in-out infinite, float 6s ease-in-out infinite;
    transition: transform 0.5s ease;
}

.about-image:hover img {
    transform: scale(1.05);
}

/* System Desc */
.system-desc {
    padding: 60px 0;
    position: relative;
    background: linear-gradient(180deg, var(--bg-color), #bae6fd, var(--bg-color));
    background-size: 100% 200%;
    animation: depthShift 12s ease-in-out infinite alternate;
}

@keyframes depthShift {
    0% {
        background-position: 0% 0%;
    }

    100% {
        background-position: 0% 100%;
    }
}

.system-desc h2 {
    font-size: 2.2rem;
    color: #0f172a;
    margin-bottom: 15px;
}

.system-desc .subtitle {
    font-size: 1.2rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.system-desc p {
    max-width: 800px;
    margin: 0 auto;
    color: #475569;
}

/* Models Section */
.models {
    padding: 80px 0;
    background-color: var(--bg-color);
}

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

.model-card {
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.model-card img.main-model-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 10px;
    object-fit: contain;
    aspect-ratio: 4/3;
    background: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.model-card img.model-detail-img {
    width: 100%;
    border-radius: 12px;
    margin-bottom: 15px;
    object-fit: cover;
    aspect-ratio: 4/3;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0.9;
    transition: all 0.3s ease;
}

.model-card:hover img.main-model-img {
    transform: scale(1.02);
}

.model-card:hover img.model-detail-img {
    opacity: 1;
    transform: translateY(-2px);
}

.model-card h3 {
    font-size: 1.4rem;
    color: var(--accent-color);
    text-transform: capitalize;
}

.model-card:hover {
    transform: translateY(-8px);
}

/* Features */
.features {
    padding: 100px 0;
    background: linear-gradient(-45deg, #f0f9ff, #e0f2fe, #f0f9ff, #bae6fd);
    background-size: 400% 400%;
    animation: flowBg 15s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes flowBg {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

.features::after {
    content: '';
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    box-shadow:
        10vw 10vh 15px rgba(0, 246, 255, 0.5),
        30vw 40vh 10px rgba(0, 246, 255, 0.3),
        50vw 80vh 20px rgba(0, 246, 255, 0.6),
        70vw 20vh 15px rgba(0, 246, 255, 0.4),
        90vw 60vh 10px rgba(0, 246, 255, 0.3);
    animation: bubblesUp 15s linear infinite;
    z-index: 1;
    bottom: -50px;
}

@keyframes bubblesUp {
    0% {
        transform: translateY(0);
        opacity: 0;
    }

    20% {
        opacity: 0.8;
    }

    80% {
        opacity: 0.8;
    }

    100% {
        transform: translateY(-120vh);
        opacity: 0;
    }
}

.features>.container {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #0f172a;
}

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

.feature-card {
    padding: 30px 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
}

.feature-card .icon-wrap {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, rgba(0, 246, 255, 0.1), rgba(0, 246, 255, 0.3));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 28px;
    box-shadow: 0 0 20px rgba(0, 246, 255, 0.2);
    animation: liquidBorder 6s ease-in-out infinite;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #0f172a;
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 0.95rem;
    color: #475569;
}

/* Benefits Section */
.benefits {
    padding: 100px 0;
    background-color: var(--bg-color);
}

.benefits-content {
    max-width: 800px;
    margin: 0 auto;
}

.benefits-content p {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #475569;
}

.benefits-list {
    list-style: none;
    margin-top: 30px;
}

.benefits-list li {
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.benefits-list li i {
    color: var(--accent-color);
    margin-top: 5px;
}

.highlight-text {
    font-size: 1.5rem !important;
    font-family: var(--font-heading);
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Contact */
.contact {
    padding: 100px 0;
    position: relative;
    background: radial-gradient(circle at top right, #bae6fd 0%, var(--bg-color) 70%);
    background-size: 200% 200%;
    animation: pulseContact 15s ease-in-out infinite alternate;
}

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

    100% {
        background-position: 0% 100%;
    }
}

.contact-box {
    max-width: 700px;
    margin: 0 auto;
    padding: 50px;
}

.contact-box h2 {
    font-size: 2.2rem;
    color: #0f172a;
    margin-bottom: 15px;
}

.contact-box p {
    color: #475569;
    margin-bottom: 30px;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid #10b981;
    color: #34d399;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #0c4a6e;
}

.input-group input,
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(2, 132, 199, 0.2);
    border-radius: 8px;
    color: #0f172a;
    font-family: var(--font-body);
    transition: var(--transition);
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #ffffff;
}

.submit-btn {
    width: 100%;
    margin-top: 10px;
    font-size: 1.1rem;
}

/* Footer */
footer {
    background: #f8fafc;
    padding: 60px 0 20px;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    background-size: 200% 100%;
    animation: shimmerLine 3s linear infinite;
    opacity: 0.5;
}

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

    100% {
        background-position: -100% 0;
    }
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo p {
    color: #64748b;
    margin-top: 15px;
}

.footer-links h4,
.footer-contact h4 {
    color: #0f172a;
    margin-bottom: 20px;
    font-size: 1.2rem;
}

.footer-links a {
    display: block;
    color: #475569;
    margin-bottom: 10px;
}

.footer-links a:hover {
    color: var(--accent-color);
}

.footer-contact p {
    color: #475569;
    margin-bottom: 10px;
}

.footer-contact i {
    color: var(--primary-color);
    width: 20px;
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    color: #475569;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2.8rem;
    }

    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-box {
        padding: 30px 20px;
    }

    .mobile-cta-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }
}

@media (max-width: 400px) {
    .mobile-cta-btn {
        padding: 6px 12px;
        font-size: 0.75rem;
    }

    .logo {
        font-size: 1.4rem;
    }
}

/* ========================================= */
/* Mega Menu Desktop */
/* ========================================= */
.has-dropdown {
    padding: 10px 0;
}

.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.has-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-inner {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 30px;
    padding: 40px 20px;
}

.mega-title {
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    color: #94a3b8;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.mega-col.categories ul {
    list-style: none;
}

.mega-col.categories li {
    margin-bottom: 15px;
}

.mega-col.categories a {
    color: var(--text-color) !important;
    font-weight: 500;
    margin-left: 0 !important;
    font-size: 1rem !important;
    transition: color 0.2s;
    text-shadow: none !important;
}

.mega-col.categories a:hover, .mega-col.categories a.active {
    color: var(--primary-color) !important;
}

.collection-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.collection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #f8fafc;
    border-radius: 8px;
    color: var(--text-color) !important;
    font-weight: 500;
    margin-left: 0 !important;
    transition: all 0.3s !important;
    text-shadow: none !important;
}

.collection-item:hover {
    background: #f1f5f9;
    color: var(--primary-color) !important;
    transform: translateX(5px);
}

.new-arrivals-grid {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.pill-btn {
    padding: 8px 20px;
    border: 1px solid #cbd5e1;
    border-radius: 30px;
    font-size: 0.9rem !important;
    color: var(--text-color) !important;
    transition: all 0.2s;
    margin-left: 0 !important;
    text-shadow: none !important;
}

.pill-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color) !important;
}

.mega-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

/* ========================================= */
/* Mega Menu Mobile */
/* ========================================= */
.mobile-nav {
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 !important;
    max-height: calc(100vh - 70px);
}

.mobile-nav.open {
    /* flex-direction: row non è più necessario/desiderato per l'accordion */
}

/* Nascondi il pulsante Richiedi Info nell'header se il menu è aperto con una transizione fluida */
.mobile-cta-btn {
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease !important;
}
header:has(.mobile-nav.open) .mobile-cta-btn {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.mobile-accordion-btn.expanded .accordion-icon {
    transform: rotate(180deg);
}
.mobile-accordion-btn.nested-btn.expanded .accordion-icon {
    transform: rotate(180deg);
}

.mobile-new-arrivals {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}