/* Base styles (Mobile First) */
body {
    background-color: #f5f5dc;
    /* Light beige background */
}

/* Landing page hero section */
.apt-landing-hero {
    background: #f5f5dc;
    min-height: 100vh;
    padding: 40px 15px;
    display: flex;
    align-items: center;
}

.apt-landing-container {
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
}

.apt-landing-content {
    display: flex;
    flex-direction: column;
}

/* Logos section */
.apt-landing-logos {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.apt-landing-logo {
    height: 35px;
    width: auto;
    object-fit: contain;
}

.apt-landing-logo[alt*="Marconi"] {
    height: 32px;
}

.apt-landing-logo[alt="SIAE"] {
    height: 25px;
}

/* Validation text */
.apt-landing-validation {
    font-family: 'Barlow Semi Condensed', Arial, sans-serif;
    font-size: 0.9rem;
    color: #1a365d;
    margin: 0;
    width: 100%;
}

/* Headline */
.apt-landing-title {
    font-family: 'Eixample-Dip-Bold', Arial, sans-serif;
    font-size: 2rem;
    font-weight: normal;
    color: #1a365d;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

/* Sub-headline */
.apt-landing-subtitle {
    font-family: 'Barlow Semi Condensed', Arial, sans-serif;
    font-size: 1.1rem;
    color: #1a365d;
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* CTA Buttons */
.apt-landing-cta {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-landing-primary,
.btn-landing-secondary {
    padding: 1rem 2rem;
    font-family: 'Barlow', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: 0 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    width: 100%;
}

.btn-landing-primary {
    background: #fbbf24;
    color: #1a365d;
}

.btn-landing-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #1a365d;
}

.btn-landing-secondary {
    background: #fbbf24;
    color: #1a365d;
}

.btn-landing-secondary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #1a365d;
}

/* Video placeholder */
.apt-video-placeholder {
    background: #d1d5db;
    border-radius: 20px;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow', Arial, sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: #6b7280;
    width: 100%;
    min-height: 300px;
}

/* Eventi Modal Styles */
.apt-eventi-modal .modal-content {
    background-color: #f5f5dc;
    border: none;
    border-radius: 0;
}

.apt-eventi-modal .modal-header {
    border-bottom: none;
    padding: 1.5rem 1.5rem 1rem;
}

.apt-eventi-modal .modal-body {
    padding: 1rem 1.5rem 2rem;
}

.apt-eventi-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.apt-eventi-title {
    font-family: 'Eixample-Dip-Bold', Arial, sans-serif;
    font-size: 2rem;
    font-weight: normal;
    color: #1a365d;
    line-height: 1.2;
    margin-bottom: 2rem;
}

.apt-eventi-text {
    font-family: 'Barlow Semi Condensed', Arial, sans-serif;
    font-size: 1.1rem;
    color: #1a365d;
    line-height: 1.8;
    margin-bottom: 3rem;
}

.apt-eventi-cta {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.btn-eventi-primary {
    padding: 1rem 2.5rem;
    font-family: 'Barlow', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    background: #fbbf24;
    color: #1a365d;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    border-radius: 0 !important;
    width: 100%;
    text-align: center;
}

.btn-eventi-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: #1a365d;
}

/* Horizontal Scroll Section */
.apt-scroll-section {
    height: 400vh;
    position: relative;
}

.apt-scroll-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    background-color: #483d8b;
    display: flex;
    flex-direction: column;
}

.apt-scroll-track {
    display: flex;
    flex: 1;
    will-change: transform;
}

.apt-scroll-slide {
    width: 100vw;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 1rem;
    box-sizing: border-box;
}

.apt-slide-content {
    max-width: 1000px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: white;
}

.apt-slide-label {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    text-align: center;
    font-family: 'Eixample-Dip-Bold', Arial, sans-serif;
    font-size: 1.8rem;
    font-weight: normal;
    color: #fbbf24;
    z-index: 10;
    padding: 0 20px;
}

.apt-slide-image {
    width: 250px;
    height: auto;
    max-height: 250px;
    object-fit: contain;
    margin-bottom: 2rem;
}

.apt-slide-title {
    font-family: 'Eixample-Dip-Bold', Arial, sans-serif;
    font-size: 1.8rem;
    color: #fbbf24;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.apt-slide-text {
    font-family: 'Barlow Semi Condensed', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    max-width: 800px;
    text-align: justify;
}

/* Needs Section */
.apt-needs-section {
    background-color: #EEB840;
    padding: 60px 15px;
    text-align: center;
    overflow: hidden;
}

.apt-needs-title {
    font-family: 'Eixample-Dip-Bold', Arial, sans-serif;
    font-size: 1.8rem;
    color: #1a365d;
    margin-bottom: 2.5rem;
    line-height: 1.2;
}

.apt-needs-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.apt-needs-row {
    display: contents;
}

.apt-need-box {
    border: 2px solid white;
    padding: 1rem;
    color: white;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    height: auto;
}

.apt-need-box:hover,
.apt-need-box:active {
    background-color: #EE5340;
    border-color: #EE5340;
}

.apt-need-box.partial {
    display: flex;
    width: 80px;
    min-width: 80px;
    min-height: 50px;
    padding: 0;
    flex-shrink: 0;
    pointer-events: none;
    opacity: 0.6;
}

.flex-break {
    flex-basis: 100%;
    height: 0;
}

/* Needs Modal Styles */
.apt-needs-modal .modal-content {
    background-color: #f5f5dc;
    border: none;
    border-radius: 0;
    overflow: hidden;
    position: relative;
}

.apt-needs-modal .modal-body {
    padding: 0;
}

.apt-needs-modal .btn-close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    z-index: 10;
    background-color: white;
    padding: 0.5rem;
    border-radius: 50%;
    opacity: 0.8;
}

.apt-needs-container {
    display: flex;
    flex-wrap: wrap;
}

.apt-needs-image-side {
    min-width: 100%;
    height: 300px;
    background-color: #1a365d;
}

.apt-needs-image-side img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.apt-needs-text-side {
    flex: 1.2;
    min-width: 320px;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.apt-needs-modal-title {
    font-family: 'Eixample-Dip-Bold', Arial, sans-serif;
    font-size: 1.8rem;
    color: #1a365d;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-transform: uppercase;
}

.apt-needs-modal-text {
    font-family: 'Barlow Semi Condensed', Arial, sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: #1a365d;
}

.apt-needs-modal-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.btn-needs-primary,
.btn-needs-secondary {
    padding: 1rem 2rem;
    font-family: 'Barlow', Arial, sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    border: none;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    border-radius: 0 !important;
    width: 100%;
}

.btn-needs-primary {
    background: #fbbf24;
    color: #1a365d;
}

.btn-needs-primary:hover {
    background: #f59e0b;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #1a365d;
}

.btn-needs-secondary {
    background: #EE5340;
    color: white;
}

.btn-needs-secondary:hover {
    background: #d44332;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

/* Booking Section */
.apt-booking-section {
    background-color: #fcfaf5;
    padding: 60px 0 0 0;
    text-align: center;
}

.apt-booking-title {
    font-family: 'Eixample-Dip-Bold', Arial, sans-serif;
    font-size: 1.6rem;
    color: #1a365d;
    max-width: 1100px;
    margin: 0 auto 1.5rem;
    line-height: 1.1;
    padding: 0 20px;
}

.apt-booking-subtitle {
    font-family: 'Barlow Semi Condensed', Arial, sans-serif;
    font-size: 0.95rem;
    color: #1a365d;
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.5;
    padding: 0 20px;
}

.apt-booking-red-cta {
    background-color: #EE5340;
    padding: 60px 0;
    margin-top: 60px;
}

.apt-booking-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 0 20px;
}

.apt-booking-image {
    flex: 1;
    max-width: 150px;
}

.apt-booking-image img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.apt-booking-content {
    flex: 1;
    text-align: center;
    color: white;
}

.apt-booking-text {
    font-family: 'Barlow Semi Condensed', Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.btn-booking-primary {
    padding: 0.8rem 1.5rem;
    font-family: 'Barlow', Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    background: #1a365d;
    color: #fbbf24;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-transform: uppercase;
    border-radius: 0 !important;
    width: 100%;
}

.btn-booking-primary:hover {
    background: #2a4a7d;
    color: #fbbf24;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

/* Sticky Booking Header */
.apt-booking-header-sticky {
    padding: 30px 15px 10px;
    text-align: center;
    background-color: #fcfaf5;
}

.apt-booking-header-sticky .apt-booking-title {
    color: #1a365d !important;
    margin-bottom: 0.8rem;
}

.apt-booking-header-sticky .apt-booking-subtitle {
    color: #1a365d !important;
}

/* Ebook Section */
.apt-ebook-section {
    background-color: #483d8b;
    padding: 60px 15px;
    color: white;
}

.apt-ebook-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column-reverse;
    align-items: center;
    gap: 50px;
}

.apt-ebook-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.apt-ebook-image img {
    width: 100%;
    max-width: 280px;
    transform: rotate(-10deg);
    box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.5s ease;
}

.apt-ebook-image img:hover {
    transform: rotate(0deg) scale(1.05);
}

.apt-ebook-content {
    flex: 1.5;
    text-align: center;
}

.apt-ebook-title {
    font-family: 'Eixample-Dip-Bold', Arial, sans-serif;
    font-size: 2.2rem;
    color: #fbbf24;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.apt-ebook-subtitle {
    font-family: 'Barlow Semi Condensed', Arial, sans-serif;
    font-size: 1.2rem;
    color: #fbbf24;
    font-weight: 700;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.apt-ebook-text {
    font-family: 'Barlow Semi Condensed', Arial, sans-serif;
    font-size: 1.1rem;
    color: #fbbf24;
    line-height: 1.6;
    margin-bottom: 3.5rem;
}

.btn-ebook-outline {
    display: inline-block;
    padding: 1rem 2.5rem;
    border: 3px solid white;
    color: white;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    text-decoration: none;
    text-transform: uppercase;
    transition: all 0.3s ease;
    background-color: transparent;
    border-radius: 0 !important;
    width: 100%;
    text-align: center;
}

.btn-ebook-outline:hover {
    background-color: white;
    color: #483d8b;
    text-decoration: none;
}


/* Desktop overrides (Desktop First point) */
@media (min-width: 768px) {
    .apt-landing-hero {
        padding: 80px 40px;
    }

    .apt-landing-logos {
        gap: 2rem;
    }

    .apt-landing-logo {
        height: 50px;
    }

    .apt-landing-logo[alt*="Marconi"] {
        height: 45px;
    }

    .apt-landing-logo[alt="SIAE"] {
        height: 35px;
    }

    .apt-landing-validation {
        font-size: 0.95rem;
        width: auto;
    }

    .apt-landing-title {
        font-size: 3rem;
    }

    .apt-landing-subtitle {
        font-size: 1.5rem;
    }

    .apt-landing-cta {
        flex-direction: row;
    }

    .btn-landing-primary,
    .btn-landing-secondary {
        width: auto;
        font-size: 1.2rem;
    }

    .apt-video-placeholder {
        min-height: 400px;
        font-size: 2rem;
    }

    .apt-eventi-modal .modal-header {
        padding: 2rem 2rem 1rem;
    }

    .apt-eventi-modal .modal-body {
        padding: 1rem 2rem 2rem;
    }

    .apt-eventi-title {
        font-size: 2.5rem;
    }

    .apt-eventi-text {
        font-size: 1.2rem;
    }

    .btn-eventi-primary {
        width: auto;
    }

    .apt-slide-label {
        top: 60px;
        font-size: 3rem;
    }

    .apt-slide-title {
        font-size: 2.5rem;
    }

    .apt-slide-text {
        font-size: 1.2rem;
    }

    .apt-slide-image {
        width: 300px;
    }

    .apt-needs-section {
        padding: 100px 20px;
    }

    .apt-needs-title {
        font-size: 3.2rem;
        margin-bottom: 4rem;
    }

    .apt-needs-grid {
        gap: 25px;
    }

    .apt-need-box {
        font-size: 1.15rem;
        padding: 1.2rem;
        border-width: 3px;
    }

    .apt-needs-image-side {
        flex: 1;
        min-width: 400px;
        height: auto;
    }

    .apt-needs-text-side {
        padding: 4rem 3rem;
    }

    .apt-needs-modal-title {
        font-size: 2.2rem;
    }

    .apt-needs-modal-text {
        font-size: 1.15rem;
    }

    .btn-needs-primary,
    .btn-needs-secondary {
        width: auto;
    }

    .apt-booking-section {
        padding: 100px 0 0 0;
    }

    .apt-booking-title {
        font-size: 3.5rem;
        margin-bottom: 2rem;
    }

    .apt-booking-subtitle {
        font-size: 1.4rem;
    }

    .apt-booking-red-cta {
        padding: 80px 0;
        margin-top: 80px;
    }

    .apt-booking-container {
        flex-direction: row;
        gap: 60px;
    }

    .apt-booking-image {
        max-width: 300px;
    }

    .apt-booking-content {
        text-align: left;
    }

    .apt-booking-text {
        font-size: 1.3rem;
        margin-bottom: 2.5rem;
    }

    .btn-booking-primary {
        padding: 1.2rem 3rem;
        font-size: 1.3rem;
        width: auto;
    }

    .apt-booking-header-sticky {
        padding: 80px 20px 20px;
    }

    .apt-ebook-section {
        padding: 100px 20px;
    }

    .apt-ebook-container {
        flex-direction: row;
        gap: 60px;
    }

    .apt-ebook-image img {
        max-width: 400px;
    }

    .apt-ebook-content {
        text-align: left;
    }

    .apt-ebook-title {
        font-size: 3.5rem;
    }

    .apt-ebook-subtitle {
        font-size: 1.4rem;
    }

    .apt-ebook-text {
        font-size: 1.25rem;
    }

    .btn-ebook-outline {
        width: auto;
        font-size: 1.3rem;
    }
}

/* Large desktop specific overrides for Needs Grid */
@media (min-width: 992px) {
    .apt-needs-grid {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .apt-needs-row {
        display: flex;
        justify-content: center;
        gap: 25px;
        width: 100%;
    }

    .apt-need-box:not(.partial) {
        flex: 0 1 400px;
        min-height: 80px;
    }

    .apt-need-box.partial {
        width: 180px;
        min-width: 180px;
        min-height: 80px;
        opacity: 0.8;
    }

    .apt-need-box.partial-right {
        margin-right: -120px;
    }

    .apt-need-box.partial-left {
        margin-left: -120px;
    }

    /* Brick Wall Staggering: make partials wider on even rows */
    .apt-needs-row:nth-child(odd) .partial-left {
        width: 380px;
        min-width: 380px;
    }

    .apt-needs-row:nth-child(odd) .partial-right {
        width: 100px;
        min-width: 100px;
        margin-right: -40px;
    }
}