/* -----------------------------
   1. VARIABLES & RESET
----------------------------- */
:root {
    /* Colors */
    --primary: #E3623A;
    --text: #ffffff;
    --black: #000000;
    --dark-bg: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.05);
    --gradient: linear-gradient(135deg, #8a283d 0%, #ff3366 100%);

    /* Typography Scale */
    --text-xs: 0.875rem;    /* 14px */
    --text-sm: 1rem;        /* 16px */
    --text-base: 1.125rem;  /* 18px */
    --text-lg: 1.25rem;     /* 20px */
    --text-xl: 1.5rem;      /* 24px */
    --text-2xl: 2rem;       /* 32px */
    --text-3xl: 2.5rem;     /* 40px */
    --text-4xl: 3rem;       /* 48px */
    --text-5xl: 4rem;       /* 64px */

    /* Line Heights */
    --leading-tight: 1.2;    /* Headings */
    --leading-normal: 1.5;   /* Body text */
    --leading-relaxed: 1.6;  /* Larger paragraphs */

    /* Spacing */
    --space-xs: 0.5rem;      /* 8px */
    --space-sm: 1rem;        /* 16px */
    --space-md: 1.5rem;      /* 24px */
    --space-lg: 2rem;        /* 32px */
    --space-xl: 3rem;        /* 48px */
    --space-2xl: 4rem;       /* 64px */

    /* Layout */
    --container-width: 1400px;
    --border-radius-sm: 15px;
    --border-radius: 20px;
}

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

/* Base Styles */
body {
    font-family: 'Arial', sans-serif;
    background: var(--black);
    color: var(--text);
    line-height: var(--leading-normal);
    font-size: var(--text-sm);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Base Container */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--space-md);
    width: 100%;
}

/* Common Sections */
section {
    padding: var(--space-2xl) 0;
    position: relative;
    margin-bottom: var(--space-2xl); /* Aggiunto spazio tra le sezioni */
}

/* -----------------------------
   2. TYPOGRAPHY SYSTEM
----------------------------- */
/* Headings */
h1, .h1 {
    text-align: center;
    font-size: clamp(var(--text-3xl), 8vw, var(--text-5xl));
    line-height: var(--leading-tight);
    margin-bottom: var(--space-lg);
}

h2, .h2 {
    text-align: center;
    font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
    line-height: var(--leading-tight);
    margin-bottom: var(--space-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

h3, .h3 {
    text-align: center;
    font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
    line-height: var(--leading-tight);
    margin-bottom: var(--space-lg);
}

/* Gradient Text */
.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Paragraphs */
p {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    margin-bottom: var(--space-md);
}

.text-large {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
}

.text-small {
    font-size: var(--text-xs);
    line-height: var(--leading-normal);
}

/* Section Typography */
.section-intro {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-xl);
    max-width: 70ch;
    margin-inline: auto;
    opacity: 0.9;
}

/* Main Description */
.main-description {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-xl);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    opacity: 0.9;
}

/* Hero Intro */
.hero-intro {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.hero-intro p {
    margin-bottom: var(--space-md);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}

/* Highlight Text */
.highlight-text {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto var(--space-xl);
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
}

/* Show Concept */
.show-concept h3 {
    text-align: center;
    color: var(--primary);
    margin-bottom: var(--space-xl);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* -----------------------------
   3. LAYOUT & GRID SYSTEM
----------------------------- */
/* Grid Fundamentals */
.grid {
    display: grid;
    width: 100%;
}

/* Standard Grid Layouts */
.grid-3 {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.grid-4 {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

/* Specific Grid Components */
.concept-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: var(--space-xl);
}

.effects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.video-stories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    height: 80vh;
    margin-top: var(--space-xl);
}

.archive-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: var(--space-xl);
}

.sketch-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

/* Flex Layouts */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

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

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

/* Spacing Utilities */
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }

.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* -----------------------------
   4. COMPONENTS
----------------------------- */
/* Cards Base */
.card {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

/* Concept Card */
.concept-card {
    background: var(--card-bg);
    padding: var(--space-xl);
    border-radius: var(--border-radius);
    transition: transform 0.3s ease;
}

.concept-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.1);
}

.concept-card h3 {
    color: var(--primary);
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

/* Effect Card */
.effect-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--border-radius-sm);
    padding: var(--space-lg);
    transition: transform 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

.effect-card:hover {
    transform: translateY(-5px);
}

.effect-card h3 {
    color: var(--primary);
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
    overflow-wrap: break-word;
    word-wrap: break-word;
    hyphens: auto;
}

/* Spec Grid & Cards */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
    width: 100%;
}

.spec-card {
    background: var(--card-bg);
    padding: var(--space-lg);
    border-radius: var(--border-radius);
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.spec-card .number {
    font-size: var(--text-4xl);
    color: var(--primary);
    font-weight: bold;
    margin-bottom: var(--space-xs);
}

.spec-card h4 {
    color: var(--primary);
    font-size: var(--text-xl);
    margin-bottom: var(--space-sm);
}

.spec-card p {
    font-size: var(--text-sm);
    opacity: 0.9;
    margin-bottom: var(--space-xs);
}

/* Story Video */
.story-video {
    position: relative;
    height: 100%;
    border-radius: 20px;
    overflow: hidden;
}

.story-video video,
.story-video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image Grid & Slots */
.concept-images.large-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    margin: var(--space-xl) 0;
    width: 100%;
}

.image-slot {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.image-slot img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.image-slot p {
    padding: var(--space-sm);
    margin: 0;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    font-size: var(--text-sm);
}

/* Show Concept */
.show-concept {
    margin-bottom: var(--space-2xl);
}

.show-concept h3 {
    color: var(--primary);
    font-size: var(--text-2xl);
    margin-bottom: var(--space-lg);
}

.concept-details {
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
}
/* -----------------------------
   5. HEADER & NAVIGATION
----------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
}

.header-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) 0;
    gap: 60px;
}

/* Brand Groups */
.brand-group {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.brand-group.secondary {
    position: relative;
}

.brand-group.secondary::before {
    content: '';
    position: absolute;
    left: -30px;
    height: 40px;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
}

/* Logos */
.logo {
    height: auto;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-primary {
    width: 120px;
}

.logo-secondary {
    width: 100px;
    opacity: 0.9;
}
/* -----------------------------
   6. HERO SECTION
----------------------------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 0 80px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.hero h1 {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-sm);
    line-height: var(--leading-tight);
}

.hero-date {
    font-size: var(--text-2xl);
    color: var(--primary);
    margin-bottom: var(--space-xl);
}

.hero h2 {
    font-size: var(--text-3xl);
}

/* Hero Description */
.main-description {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    opacity: 0.9;
}

.main-description p {
    margin-bottom: var(--space-md);
}
/* -----------------------------
   7. SPECIFIC SECTIONS
----------------------------- */
/* Billboard Section */
.billboard-intro {
    margin: 0 auto var(--space-xl);
    text-align: left;
}

/* Drone Show Section */
.drone-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

.drone-specs {
    display: grid;
    gap: var(--space-md);
}

.drone-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.drone-gallery img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
}

/* Water Screen Section */
.water-modes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-xl);
}

/* Timeline Section */
.timeline {
    background: var(--black);
    padding: var(--space-2xl) 0;
    position: relative;
}

.timeline-container {
    position: relative;
    max-width: 1000px;
    margin: 100px auto 0;
    padding-bottom: 50px;
}

.timeline-line {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: var(--primary);
    transform: translateX(-50%);
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-2xl);
    position: relative;
}

.timeline-content {
    width: 45%;
    padding: var(--space-lg);
    background: var(--card-bg);
    border-radius: var(--border-radius);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.timeline-content:hover {
    transform: translateY(-5px);
}

.timeline-time {
    font-size: var(--text-3xl);
    color: var(--primary);
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.timeline-dot {
    position: absolute;
    left: 50%;
    width: 20px;
    height: 20px;
    background: var(--primary);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 20px rgba(255, 0, 51, 0.5);
}

.timeline-item:nth-child(even) {
    flex-direction: row-reverse;
}

/* Footer */
footer {
    padding: var(--space-xl) 0;
    background: var(--dark-bg);
}

.footer-logos {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-lg);
}

.footer-logos img {
    height: 40px;
    width: auto;
}

.footer-contact {
    text-align: center;
    opacity: 0.8;
}

/* -----------------------------
   8. MEDIA QUERIES
----------------------------- */

/* Desktop Large (1200px and down) */
@media (max-width: 1200px) {
    .container {
        padding: 0 var(--space-md);
    }

    h2 {
        font-size: var(--text-4xl);
    }

    .concept-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Desktop Medium (1024px and down) */
@media (max-width: 1024px) {
    /* Header Adjustments */
    .header-nav {
        gap: var(--space-lg);
    }

    .brand-group {
        gap: var(--space-lg);
    }

    .logo-primary {
        width: 100px;
    }

    .logo-secondary {
        width: 85px;
    }

    /* Gallery Adjustments */
    .archive-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .video-stories {
        grid-template-columns: repeat(2, 1fr);
        height: 60vh;
    }
}

/* Tablet and Mobile (768px and down) */
@media (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 var(--space-md);
    }

    /* Header Mobile */
    .header-nav {
        gap: var(--space-md);
    }

    .brand-group {
        gap: var(--space-md);
    }

    .logo-primary {
        width: 85px;
    }

    .logo-secondary {
        width: 70px;
    }

    .brand-group.secondary::before {
        left: -10px;
        height: 30px;
    }

    /* Hero Mobile */
    .hero {
        min-height: 100vh;
        height: auto;
        padding-top: 120px;
        padding-bottom: var(--space-xl);
    }

    .hero h1 {
        font-size: var(--text-4xl);
        margin-bottom: var(--space-sm);
        padding: 0 var(--space-md);
    }

    .hero-date {
        font-size: var(--text-xl);
        margin-bottom: var(--space-lg);
    }

    /* Grid Adjustments */
    .concept-grid,
    .effects-grid,
    .video-stories,
    .key-features,
    .specs-grid,
    .concept-images.large-grid,
    .sketch-gallery {
        grid-template-columns: 1fr;
    }

    .effects-grid {
        gap: var(--space-md);
        padding: 0 var(--space-sm);
    }

    /* Cards Mobile */
    .effect-card {
        padding: var(--space-md);
        margin: 0;
    }

    .effect-card h3 {
        font-size: var(--text-lg);
    }

    /* Video and Story Adjustments */
    .video-stories {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 20px;
        height: auto;
    }

    .story-video {
        aspect-ratio: 9/16;
        height: auto;
        max-height: none;
        width: 100%;
    }

    .story-video video,
    .story-video img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Section Spacing */
    .sketch-gallery {
        gap: var(--space-sm);
    }

    .sketch-gallery .story-video {
        height: 300px;
    }

    .sketch-section {
        margin-top: var(--space-xl);
    }

    /* Typography Mobile */
    h2 {
        font-size: var(--text-2xl);
        margin-bottom: var(--space-md);
        line-height: var(--leading-tight);
    }

    .show-concept h3,
    .sketch-section h3,
    .holographic-archive h3 {
        font-size: var(--text-xl);
        margin-bottom: var(--space-md);
        line-height: var(--leading-tight);
    }

    p {
        font-size: var(--text-sm);
        line-height: var(--leading-normal);
        margin-bottom: var(--space-sm);
    }

    .section-intro {
        font-size: var(--text-base);
        margin-bottom: var(--space-xl);
    }

    .technical-description,
    .concept-card p,
    .effect-card p {
        font-size: var(--text-sm);
    }

    /* Layout Adjustments */
    .drone-content,
    .water-modes {
        grid-template-columns: 1fr;
    }
}

/* Mobile Small (480px and down) */
@media (max-width: 480px) {
    /* Typography Small Mobile */
    h2 {
        font-size: var(--text-xl);
        line-height: var(--leading-tight);
        margin-bottom: var(--space-sm);
        word-break: break-word;
        hyphens: auto;
    }

    .show-concept h3,
    .sketch-section h3,
    .holographic-archive h3 {
        font-size: var(--text-lg);
        margin-bottom: var(--space-sm);
        line-height: var(--leading-tight);
    }

    /* Hero Small Mobile */
    .hero {
        padding-top: 100px;
    }

    .hero h1 {
        font-size: var(--text-3xl);
    }

    .hero-date {
        font-size: var(--text-lg);
    }

    /* Grid and Cards Small Mobile */
    .effects-grid {
        gap: var(--space-sm);
        padding: 0 var(--space-xs);
    }

    .effect-card {
        padding: var(--space-sm);
    }

    /* Text Adjustments */
    p {
        font-size: calc(var(--text-sm) * 0.9);
        margin-bottom: var(--space-xs);
    }

    .section-intro {
        font-size: var(--text-sm);
        margin-bottom: var(--space-lg);
    }

    /* Gallery Adjustments */
    .archive-gallery {
        grid-template-columns: 1fr;
    }

    .archive-gallery .story-video {
        height: 300px;
    }

    .video-stories {
        margin-top: 20px;
        gap: 10px;
    }

    .story-video {
        max-height: 40vh;
    }
}

/* Height-based Adjustments */
@media (max-height: 600px) {
    .hero {
        height: auto;
        padding-bottom: var(--space-md);
    }
}

/* Layout per tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .video-stories {
        grid-template-columns: repeat(2, 1fr);
        height: auto;
        gap: 20px;
    }

    .story-video {
        aspect-ratio: 9/16;
        height: auto;
        max-height: none;
    }
}

.hero-container {
    position: relative;
    width: 100%;
    height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 2rem;
}

#flower-scene {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

@media (max-width: 768px) {
    #flower-scene {
        height: 90vh;
    }
}
