/* home.css - Stili specifici per la homepage */

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

/* Layout area contenuto */
.site-content {
    margin-left: 250px;
    width: calc(100% - 250px);
}

/* evita scroll orizzontale senza rompere popup */
body {
    overflow-x: hidden;
}

/* Main content area (se usata) */
.main-content {
    margin-left: 250px;
    width: calc(100% - 250px);
    padding: 20px;
    box-sizing: border-box;
    background: #f4f5f7;
}

/* ================================
   HERO
================================ */

.home-hero {
    position: relative;
    background-image: url('https://www.ceyapt.com/wp-content/uploads/2026/02/roma1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 120px 20px;
    text-align: center;
    overflow-x: hidden;
    overflow-y: visible;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

.home-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-family: 'CinzelCustom', serif;
    font-weight: 400;
    font-size: 3.5rem;
    letter-spacing: 2px;
    color: #e9e9e9;
    margin-bottom: 18px;
    text-align: center;
}

.hero-subtitle {
    font-family: 'AvenirLight', sans-serif;
    font-size: 1.2rem;
    line-height: 1.7;
    color: rgba(255,255,255,0.9);
    max-width: 760px;
    text-align: center;
}

/* ================================
   BOOKING WIDGET
================================ */

.home-booking {
    margin-left: 250px;
    width: calc(100% - 250px);

    display: flex;
    justify-content: center;

    padding: 50px 20px;
    box-sizing: border-box;
}

.booking-form-widget {
    width: 100%;
    max-width: 1100px;
}

/* rimuove scrollbar nel blocco date Octorate */
.booking-form-widget .textdate {
    height: auto !important;
    overflow: visible !important;
}

/* evita altezze forzate sui blocchi date */
.booking-form-widget .octobook-date {
    height: auto !important;
}

/* garantisce espansione naturale del form */
.booking-form-widget form {
    height: auto;
}

/* MOBILE */
@media (max-width: 768px) {
    .home-booking {
        margin-left: 0;
        width: 100%;
    }
}


/* ================================
   INTRO
================================ */

.home-intro {
    text-align: center;
    padding: 60px 20px;
}

.home-intro p,
.home-text,
.home-section-subtitle {
    max-width: 720px;
    margin: 0 auto;
    font-family: 'AvenirLight', sans-serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
}

/* ================================
   OUR RESIDENCES GALLERY
================================ */

.home-image-mosaic {
    position: relative;
    margin: 60px 0;
    overflow: visible;

    background: #ffffff;
    padding: 60px 0;
}

/* TITLE */

.home-section-title {
    text-align: center;
    font-family: 'CinzelCustom', serif;
    font-size: 2.4rem;
    margin-bottom: 30px;
}

/* MOSAIC */

.home-mosaic {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    min-width: 0;
    gap: 24px;
    padding: 10px 60px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.home-mosaic::-webkit-scrollbar {
    display: none;
}

.home-mosaic .mosaic-item {
    flex: 0 0 340px;
}

.home-mosaic img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.home-mosaic .mosaic-item:hover img {
    transform: scale(1.06);
    box-shadow: 0 14px 30px rgba(0,0,0,0.25);
}

/* ARROWS */

.mosaic-arrow {
    position: absolute;
    top: 62%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 10;
}

.mosaic-left { left: 10px; }
.mosaic-right { right: 10px; }

/* ================================
   HOME TEXT SECTIONS (UNDER MOSAIC)
================================ */

/* contenitore delle due sezioni testo */
.home-content {
    max-width: 760px;
    margin: 80px auto;
    text-align: center;
}

/* spazio tra i due blocchi */
.home-content + .home-content {
    margin-top: 60px;
}

/* divider elegante */
.home-content::before {
    content: "";
    display: block;
    width: 60px;
    height: 1px;
    background: #d6d0c6;
    margin: 0 auto 28px auto;
}

.home-final-cta::before {
    content: "";
    display: block;
    width: 80px;
    height: 1px;
    background: #B09E80;
    margin: 0 auto 40px auto;
}


/* ================================
   FINAL CTA
================================ */

.home-final-cta {
    background-color: #222;
    color: #fff;
    padding: 60px 20px;
    text-align: center;
}

.home-final-cta a {
    font-family: 'CinzelCustom', serif;
    font-size: 2.2rem;
    color: #B09E80;
    text-decoration: none;
    letter-spacing: 1px;
    transition: opacity 0.25s ease;
}

.home-final-cta a:hover {
    opacity: 0.7;
}

/* MOBILE */

@media (max-width: 768px) {

    .site-content,
    .main-content {
        margin-left: 0;
        width: 100%;
    }

    .hero-title { font-size: 2.4rem; }
    .hero-subtitle { font-size: 1rem; }

    .home-mosaic .mosaic-item {
        flex: 0 0 280px;
    }
}

@media (max-width: 480px) {

    .home-mosaic .mosaic-item {
        flex: 0 0 240px;
    }

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