/* ==============================================
   HOMEPAGE - ULTRA PREMIUM CRUISE SCENE
   White, Crisp, High-End Corporate Luxury
   ============================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&family=Poppins:wght@300;400;500;600;700&family=Outfit:wght@400;600;700;800&display=swap');

/* =========================================
   HERO
   ========================================= */
.homepage-hero {
    position: relative;
    overflow: hidden;
    background: #0F172A;
}

.hero-media-container {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 550px;
    max-height: 800px;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
}

.hero-media-container video,
.hero-media-container img {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    z-index: 1 !important;
    border: none !important;
    outline: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Rimuove i bordi neri "letterbox" codificati direttamente all'interno del file video MP4 */
.hero-media-container video {
    transform: scale(1.35) !important;
    transform-origin: center center !important;
}

.hero-media-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    z-index: 2;
    pointer-events: none;
}

/* =========================================
   LUXURY WHITE SEARCH BAR
   ========================================= */
#box_filtro_ricerca_home_page {
    position: absolute;
    bottom: 40px;
    /* Fully inside the hero container */
    left: 0;
    right: 0;
    margin: 0 auto;
    z-index: 9605;
    /* MUST be above the modal (9500) */
    width: 95%;
    max-width: 1140px;
    padding: 0;
}

/* Modal padding is managed by box_filtro_crociere.css */

#box_filtro_ricerca_home_page #box_filtro_ricerca {
    width: 100%;
}

/* Modal Z-index ensuring full screen underneath */
#box_filtro_ricerca_home_page #filtro_ricerca {
    position: relative;
    z-index: 9605;
    width: 100%;
    padding: 12px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 25px 50px rgba(0, 0, 30, 0.15);
    overflow: visible;
}

/* ---- Search Row ---- */
.home-search-row {
    display: flex;
    align-items: stretch;
    height: 80px;
    background: #ffffff;
    border-radius: 12px;
}

/* ---- Filter Cell ---- */
.home-search-cell {
    flex: 1;
    min-width: 0;
    height: 100%;
    padding: 0 35px !important;
    border-radius: 12px !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer;
    transition: background 0.3s ease;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

/* Vertical Divider */
.home-search-cell::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: #e2e8f0;
}

.home-search-cell:last-of-type::after {
    display: none;
}

.home-search-cell:hover {
    background: #f8fafc !important;
}

/* box_ricerca_crociere container for Home Page overlay */
.homepage-hero .box_ricerca_crociere {
    position: relative;
    z-index: 10;
    margin-top: 0;
}

/* 35 anni badge */
#box_filtro_ricerca_home_page #img_dinamica {
    display: none !important;
}

.homepage-hero #img_dinamica_hero {
    position: absolute;
    top: 90px;
    right: 40px;
    width: 100px;
    height: 120px;
    background: url(/assets/images/certificato_anni.png) center/contain no-repeat;
    pointer-events: none;
    z-index: 5;
    opacity: 0.95;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.5));
}

/* =========================================
   RESPONSIVE
   ========================================= */

@media (max-width: 575px) {
    .hero-media-container {
        height: 55vh !important;
        min-height: 380px !important;
    }

    .homepage-hero #img_dinamica_hero {
        display: block;
        width: 85px;
        height: 102px;
        top: 15px;
        right: 15px;
        z-index: 12;
    }

    .home-search-cell .cella_filtro_title {
        font-size: 0.75rem !important;
        font-weight: 600;
    }

    .home-search-cell .filtro_scelto_label {
        font-size: 1.15rem !important;
        font-weight: 700;
    }

    .home-cell-icon {
        font-size: 1.4rem !important;
    }

    .home-search-cerca {
        font-size: 1.1rem !important;
        height: 60px !important;
    }

    #box_filtro_ricerca_home_page {
        bottom: 20px;
        width: 94%;
    }
}

@media (min-width: 576px) and (max-width: 767px) {
    .hero-media-container {
        height: 65vh;
        min-height: 500px;
    }

    #box_filtro_ricerca_home_page {
        bottom: 30px;
        width: 94%;
    }

    #box_filtro_ricerca_home_page #filtro_ricerca {
        padding: 8px;
        border-radius: 14px;
    }

    .home-search-row {
        height: 60px;
    }

    .home-search-cell {
        padding: 0 14px !important;
        gap: 8px;
        border-radius: 8px !important;
    }

    .home-search-cell::after {
        top: 25%;
        height: 50%;
    }

    .home-cell-icon {
        font-size: 1rem;
    }

    .home-search-cell .cella_filtro_title {
        font-size: 0.65rem;
        letter-spacing: 1px;
    }

    .home-search-cell .filtro_scelto_label {
        font-size: 0.95rem;
        font-weight: 500;
    }

    .home-search-cerca {
        min-width: 90px;
        padding: 0 18px !important;
        border-radius: 10px !important;
        margin-left: 5px;
        font-size: 0.95rem;
        letter-spacing: 0.5px;
    }

    .homepage-hero #img_dinamica_hero {
        width: 80px;
        height: 96px;
        top: 85px;
        right: 20px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .hero-media-container {
        height: 65vh;
        min-height: 500px;
    }

    #box_filtro_ricerca_home_page {
        bottom: 40px;
        width: 95%;
    }

    .home-search-row {
        height: 70px;
    }

    .home-search-cell {
        padding: 0 16px !important;
        gap: 10px;
    }

    .home-cell-icon {
        font-size: 1.1rem;
    }

    .home-search-cell .cella_filtro_title {
        font-size: 0.58rem;
    }

    .home-search-cell .filtro_scelto_label {
        font-size: 0.9rem;
        font-weight: 500;
    }

    .home-search-cerca {
        min-width: 120px;
        padding: 0 18px !important;
        font-size: 0.9rem;
    }

    .homepage-hero #img_dinamica_hero {
        width: 80px;
        height: 96px;
        top: 85px;
        right: 20px;
    }
}

@media (max-width: 991px) {
    .home-search-overlay {
        margin-top: 15px !important;
        /* Shift down instead of up to avoid header/badge overlap */
        width: 94%;
        transform: translateY(0);
    }
}

@media (min-width: 992px) and (max-width: 1299px) {
    .home-search-cell {
        padding: 0 25px !important;
    }

    .home-search-cerca {
        min-width: 160px;
    }
}

/* =========================================
   HOMEPAGE CONTENT
   ========================================= */
.homepage-content {
    margin-top: 50px;
    margin-bottom: 80px;
    font-family: 'Poppins', sans-serif;
}

.btn_azione {
    background: #0F172A;
    color: #fff !important;
    border: none;
    padding: 16px 42px;
    border-radius: 8px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    box-shadow: 0 10px 25px rgba(0, 0, 55, 0.2);
    transition: all 0.3s ease;
}

.btn_azione:hover {
    background: #C5A059;
    box-shadow: 0 15px 35px rgba(197, 160, 89, 0.3);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .btn_azione {
        padding: 14px 30px;
        font-size: 0.85rem;
    }
}

/* Section Headers */
.section-header {
    text-align: center;
    max-width: 800px;
    margin: 60px auto 55px;
    padding: 0 24px;
}

.main-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.8rem;
    color: #0F172A;
    margin-bottom: 18px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.sub-title {
    font-size: 1.15rem;
    color: #64748b;
    line-height: 1.8;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
}

@media (max-width: 768px) {
    .main-title {
        font-size: 2.2rem;
    }

    .sub-title {
        font-size: 1rem;
    }
}

/* Promo */
.promo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .promo-grid {
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 40px;
    }
}

.promo-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.06);
    transition: all 0.4s ease;
    border: 1px solid #f1f5f9;
}

.promo-card:hover {
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.12);
    transform: translateY(-6px);
}

.promo-image {
    position: relative;
    overflow: hidden;
    height: 260px;
}

.promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
    display: block;
}

.promo-card:hover .promo-image img {
    transform: scale(1.08);
}

@media (min-width: 768px) {
    .promo-image {
        height: 300px;
    }
}

.promo-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #d32f2f;
    color: #fff;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.promo-content {
    padding: 32px;
}

@media (min-width: 768px) {
    .promo-content {
        padding: 38px;
    }
}

.promo-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: #0F172A;
    margin-bottom: 12px;
    font-weight: 700;
}

.promo-content p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 24px;
    font-weight: 400;
}

.cta-link {
    font-weight: 700;
    color: #C5A059;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.promo-card:hover .cta-link {
    color: #0F172A;
}

.promo-card:hover .cta-link i {
    transform: translateX(6px);
}

.cta-link i {
    transition: transform 0.3s;
}

.card-hover-effect:hover .card-img-top img {
    transform: scale(1.08) !important;
}

/* Tagline - hidden */
.hero-tagline {
    display: none;
}