/* Premium Reset & Variables */
:root {
    --bg-color: #009FE3;
    --bg-glow: #00b0fa;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.85);
    --text-muted: rgba(255, 255, 255, 0.6);
    --font-sans: 'Outfit', sans-serif;
    --transition-slow: 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-fast: 0.3s ease;
}

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

html, body {
    width: 100%;
    min-height: 100vh;
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at center, var(--bg-glow) 0%, var(--bg-color) 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    border: 2px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Common Section Layout */
.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 24px;
    text-align: center;
    position: relative;
}

/* 1. Scroll-Controlled Video Section */
.video-scroll-section {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    padding: 0;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
}

.intro-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hero Section */
.hero-section {
    padding-top: 80px;
    background: transparent;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: hero-fade-in 1.2s cubic-bezier(0.215, 0.610, 0.355, 1.000) both;
}

.hero-logo {
    max-width: 640px;
    width: 70%;
    height: auto;
    margin-bottom: 30px;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.2));
}

.hero-title {
    font-size: clamp(4rem, 14vw, 13rem);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.02em;
    margin-bottom: 24px;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
    font-size: clamp(1.2rem, 1.9vw, 2.5rem);
    font-weight: 400;
    max-width: 100%;
    width: 100%;
    line-height: 1.4;
    color: var(--text-secondary);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.hero-section .scroll-indicator {
    position: relative;
    bottom: auto;
    margin-top: 60px;
}

/* Bouncing Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    z-index: 10;
}

.sticky-video-container .scroll-indicator {
    color: rgba(255, 255, 255, 0.7);
}

.arrow-down {
    width: 12px;
    height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    animation: bounce 2s infinite;
}

/* Short Section Styles */
.short-section {
    max-width: 900px;
    margin: 0 auto;
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 80px 24px;
}

/* Presentation Section Styles */
.presentation-section {
    max-width: 850px;
    margin: 0 auto;
    text-align: center;
    padding: 100px 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.mobile-only-logo,
.mobile-only-scopri {
    display: none;
}

.presentation-content {
    width: 100%;
}

.campaign-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
    text-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.campaign-subtitle {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.presentation-body {
    font-size: clamp(1.1rem, 1.5vw, 1.35rem);
    line-height: 1.7;
    color: var(--text-secondary);
}

.presentation-body p {
    margin-bottom: 24px;
}

.campaign-highlights {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 48px 0;
    flex-wrap: wrap;
}

.highlight-item {
    font-size: clamp(1.2rem, 1.8vw, 1.6rem);
    background: rgba(255, 255, 255, 0.08);
    padding: 12px 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.campaign-callout {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 900;
    color: #ffffff;
    margin-top: 32px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.short-section h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}

.short-section .topic,
.short-section .testimonial {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    margin-bottom: 8px;
    color: var(--text-secondary);
}

.short-section .plot {
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.6;
    margin-top: 16px;
    margin-bottom: 32px;
    color: var(--text-secondary);
}

.short-section video {
    width: 100%;
    max-width: 800px;
    aspect-ratio: 16 / 9;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    margin-bottom: 24px;
    background: #000;
}

/* Press Kit Section */
.press-kit-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 24px;
    text-align: center;
}

.press-kit-section h2 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    margin-bottom: 16px;
}

.press-kit-section p {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.links-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

.campaign-link-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), 
                background-color 0.3s ease, 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.campaign-link-btn:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.campaign-link-btn .btn-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.campaign-link-btn .btn-title {
    font-size: clamp(1.1rem, 1.4vw, 1.35rem);
    font-weight: 700;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.campaign-link-btn .btn-desc {
    font-size: clamp(0.8rem, 1vw, 0.9rem);
    color: var(--text-muted);
    font-weight: 300;
}

/* Footer styling */
.footer {
    padding: 60px 24px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    color: var(--text-muted);
    font-size: clamp(1.1rem, 1.8vw, 1.9rem);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.instagram-link {
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast), transform var(--transition-fast);
}

.instagram-link:hover {
    color: #e1306c;
    transform: scale(1.1);
}

/* Keyframes animations */
@keyframes hero-fade-in {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) rotate(45deg);
    }
    40% {
        transform: translateY(-10px) rotate(45deg);
    }
    60% {
        transform: translateY(-5px) rotate(45deg);
    }
}

/* Mobile Adjustments */
@media (max-width: 1024px) {
    .section {
        padding: 40px 16px;
    }
    .hero-section {
        padding-top: 20px;
    }
    .hero-logo {
        max-width: 440px;
        margin-bottom: 20px;
    }
    .hero-subtitle {
        white-space: normal;
    }
}

/* Orientation Enforcement Overlay */
#orientation-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: var(--bg-color);
    background-image: radial-gradient(circle at center, var(--bg-glow) 0%, var(--bg-color) 100%);
    background-attachment: fixed;
    z-index: 9999999;
    display: none; 
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    padding: 20px;
}

.orientation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.rotate-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 30px;
    animation: rotateDevice 2.0s ease-in-out infinite;
}

.rotate-icon svg {
    width: 100%;
    height: 100%;
}

#orientation-text {
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.4;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

@keyframes rotateDevice {
    0% { transform: rotate(0deg); }
    30% { transform: rotate(-90deg); }
    70% { transform: rotate(-90deg); }
    100% { transform: rotate(0deg); }
}

/* Mobile Portrait Protection disabled to allow portrait viewing */
/*
@media screen and (max-width: 1024px) and (orientation: portrait) {
    #orientation-overlay {
        display: flex;
    }
    section, footer {
        display: none !important;
    }
}
*/

/* Decorative Side Images for Desktop Framing */
.decorative-side-img {
    position: absolute;
    pointer-events: none;
    z-index: 1;
    opacity: 0.95;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
    transition: transform 0.3s ease;
}

/* Hide side elements on screen widths below 1650px to prevent overlapping content */
@media (max-width: 1650px) {
    .decorative-side-img {
        display: none !important;
    }
}

/* Specific alignments and rotations for a dynamic, fun bleed effect */
.andrea-left {
    left: -380px;
    top: 15%;
    transform: rotate(-6deg);
    max-width: 440px;
}

.maria-right {
    right: -480px;
    top: 25%;
    transform: rotate(8deg);
    max-width: 460px;
}

.ezio-left {
    left: -360px;
    top: 30%;
    transform: rotate(8deg);
    max-width: 420px;
}

.mandolino-right {
    right: -280px;
    top: 40%;
    transform: rotate(-15deg);
    max-width: 300px;
}

.terry-left {
    left: -380px;
    top: 30%;
    transform: rotate(5deg);
    max-width: 440px;
}

.tazzina-right {
    right: -220px;
    top: 45%;
    transform: rotate(-20deg);
    max-width: 240px;
}

.artillo-left {
    left: -320px;
    top: 25%;
    transform: rotate(10deg);
    max-width: 360px;
}

.damiano-right {
    right: -440px;
    top: 30%;
    transform: rotate(-6deg);
    max-width: 520px;
}

.oldlady-left {
    left: -360px;
    top: 35%;
    transform: rotate(-5deg);
    max-width: 420px;
}

.diego-right {
    right: -310px;
    top: 40%;
    transform: rotate(7deg);
    max-width: 360px;
}

.val-left {
    left: -380px;
    top: 20%;
    transform: rotate(8deg);
    max-width: 440px;
}

.aaron-right {
    right: -340px;
    top: 30%;
    transform: rotate(-6deg);
    max-width: 400px;
}

.salvatore-left {
    left: -330px;
    top: 25%;
    transform: rotate(-8deg);
    max-width: 380px;
}

.marisa-right {
    right: -400px;
    top: 35%;
    transform: rotate(6deg);
    max-width: 460px;
}

.sfogliatella-left {
    left: -240px;
    top: 15%;
    transform: rotate(-12deg);
    max-width: 260px;
}

.moka-left {
    left: -220px;
    top: 60%;
    transform: rotate(15deg);
    max-width: 220px;
}

.pizza-right {
    right: -240px;
    top: 10%;
    transform: rotate(12deg);
    max-width: 280px;
}

.mozzarella-right {
    right: -200px;
    top: 55%;
    transform: rotate(-8deg);
    max-width: 240px;
}

/* Mobile-only optimizations (max-width: 768px) */
@media (max-width: 768px) {
    /* 1. Reduce all text size by 20% */
    html {
        font-size: 80%;
    }

    /* 2. Reduce empty space between backstage video and Attacco al varco */
    #backstage-video {
        min-height: auto !important;
        padding-bottom: 20px !important;
    }
    #short-attacco {
        padding-top: 20px !important;
    }

    /* 3. Mobile-only logo display settings */
    .mobile-only-logo {
        display: block;
        max-width: 280px;
        width: 90%;
        height: auto;
        margin: 0 auto 15px auto;
        filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
    }

    /* 4. Mobile-only 'scopri la serie' image settings */
    .mobile-only-scopri {
        display: block;
        max-width: 234px;
        width: 65%;
        height: auto;
        margin: 0 auto 20px auto;
        filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.15));
    }

    /* 5. Spacing below 'scopri la serie' image on mobile */
    .presentation-section .presentation-body {
        padding-top: 30px;
    }
}
