/* Custom CSS - Stivali Premium Internal Landing */
:root {
    /* Stivali Branding Colors */
    --primary: #000000;
    --primary-light: #222222;
    --accent: #D6C4A6;
    /* Subtle taupe/gold accent */
    --bg-white: #FFFFFF;
    --bg-offwhite: #F9F9F9;
    --bg-gray: #EAEAEA;
    --text-dark: #1A1A1A;
    --text-muted: #666666;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-main: 'Outfit', sans-serif;

    /* Spacing & Borders */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-dark);
    background-color: var(--bg-offwhite);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* ====================================
   HEADER NAVIGATION
   ==================================== */
.header {
    background-color: var(--bg-white);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--bg-gray);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.nav-left,
.nav-right {
    display: flex;
    gap: 2.5rem;
    flex: 1;
}

.nav-right {
    justify-content: flex-end;
}

.nav-link {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 2px;
    color: var(--text-dark);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 1px;
    background-color: var(--text-dark);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:hover {
    color: var(--text-muted);
}

.logo-container {
    flex: 1;
    display: flex;
    justify-content: center;
}

.logo-container .logo {
    height: 60px;
    object-fit: contain;
    transition: transform 0.4s ease;
}

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

/* ====================================
   HERO SECTION
   ==================================== */
.hero-section {
    position: relative;
    height: 40vh;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background-color: var(--text-dark);
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('imgi_34_JGV_0239_ac1105e6-d846-4294-83be-f76a4a39976e.png');
    /* Ambient background image */
    background-size: cover;
    background-position: center 30%;
    filter: blur(2px) grayscale(20%);
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--bg-white);
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: 2px;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.85);
}

/* ====================================
   MAIN CONTENT LAYOUT (CENTERED CHAT)
   ==================================== */
.main-content {
    flex: 1;
    background-color: var(--bg-offwhite);
    position: relative;
    margin-top: -80px;
    /* Pull the chat up into the hero section slightly */
    z-index: 10;
}

.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* CENTER PANEL: N8N Chat */
.chat-panel-centered {
    width: 100%;
    max-width: 800px;
    /* Large, generous chat window */
    margin-bottom: 3rem;
}

.chat-wrapper-box {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    height: 700px;
    /* Slightly taller for more data visibility */
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
}


/* DESCRIPTIVE SECTION */
.info-section {
    max-width: 800px;
    text-align: center;
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--bg-white);
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--primary);
}

.info-section h2 {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.info-section p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* GALLERY SECTION BELOW CHAT */
.gallery-section {
    width: 100%;
    text-align: center;
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 3rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.featured-image {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.featured-image:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

/* ====================================
   FOOTER
   ==================================== */
.site-footer {
    background-color: var(--bg-white);
    padding: 3rem 0;
    border-top: 1px solid var(--bg-gray);
    text-align: center;
}

.footer-logo {
    height: 40px;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.site-footer p {
    font-size: 0.85rem;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* COLORES Y ESTETICA N8N PARA STIVALI */
:root {
    --chat--color-primary: #000000 !important;
    --chat--color-primary-shade-50: #222222 !important;
    --chat--color-primary-shade-100: #333333 !important;

    --chat--color-secondary: #000000 !important;
    --chat--color-white: #ffffff !important;
    --chat--color-light: #FDFDFD !important;
    --chat--color-light-shade-50: #f4f4f4 !important;
    --chat--color-medium: #888888 !important;
    --chat--color-typing: #000000 !important;

    /* Tweak internal padding and shapes */
    --chat--spacing: 1rem !important;
}


/* ====================================
   RESPONSIVE DESIGN
   ==================================== */
@media (max-width: 1024px) {
    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .main-content {
        margin-top: -40px;
    }

    .chat-panel-centered {
        width: 100%;
    }

    .chat-wrapper-box {
        height: 550px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .gallery-title {
        font-size: 2rem;
    }

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

    .nav-left,
    .nav-right {
        display: none;
    }
}