/* ==========================================================================
   Icon7 Redesign — Home / front page styles
   --------------------------------------------------------------------------
   Auto-enqueued by functions.php for the front page (slug "home"). Ported from
   _design_source/icon7-home.html inline <style>. EVERY rule is scoped under
   .home-page so shared class names (.section-title, .section-body, .btn-*)
   never collide with other converted pages. Tokens only — no re-hardcoded hex
   or font-family (see redesign.css :root). Nav + footer are global and are NOT
   styled here.
   ========================================================================== */

/* Full-bleed sections: cancel the shared .rd-page section padding where the
   design uses edge-to-edge split layouts / full-viewport blocks. */
.home-page .hero,
.home-page .villeggiatura,
.home-page .difference,
.home-page .invitation {
    padding: 0;
}

/* ---------- Hero ---------------------------------------------------------- */
.home-page .hero {
    height: 100vh;
    min-height: 700px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.home-page .hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-color: var(--navy); /* graceful base if the video is absent */
}

.home-page .hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(26, 43, 74, 0.25), rgba(26, 43, 74, 0.45));
    z-index: 1;
}

.home-page .hero-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

.home-page .hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 2rem;
    animation: rd-home-fadeUp 1.2s ease-out 0.3s both;
}

@keyframes rd-home-fadeUp {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

.home-page .hero-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 5rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.home-page .hero-title .italianno {
    font-size: 1.3em;
}

.home-page .hero-subtitle {
    font-family: var(--font-serif);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.home-page .scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: rd-home-bounce 2s infinite;
}

.home-page .scroll-indicator span {
    display: block;
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, transparent, var(--white));
}

@keyframes rd-home-bounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50%      { transform: translateX(-50%) translateY(10px); }
}

/* ---------- Villeggiatura ------------------------------------------------- */
.home-page .villeggiatura {
    background-color: var(--cream);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
    min-height: 100vh;
}

.home-page .villeggiatura-image {
    position: relative;
    height: 100vh;
    min-height: 700px;
}

.home-page .villeggiatura-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-page .villeggiatura-content {
    padding: 4rem 6rem 4rem 2rem;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

.home-page .villeggiatura-content.visible {
    opacity: 1;
    transform: translateY(0);
}

.home-page .villeggiatura .section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--terracotta);
    margin-bottom: 2rem;
}

.home-page .pronunciation {
    display: inline;
    font-family: var(--font-serif);
    font-size: 0.85rem;
    font-style: italic;
    color: var(--lake-blue);
    letter-spacing: 0.05em;
    margin-left: 0.75rem;
}

.home-page .villeggiatura .section-body {
    color: var(--navy);
    margin-bottom: 1.5rem;
}

.home-page .villeggiatura .section-body p {
    margin-bottom: 1.5rem;
}

.home-page .villeggiatura .section-body:last-of-type {
    font-style: italic;
    color: var(--terracotta);
    margin-bottom: 2.5rem;
}

/* ---------- Collection ---------------------------------------------------- */
.home-page .collection {
    background-color: var(--white);
    text-align: center;
}

.home-page .collection .section-title {
    color: var(--navy);
}

.home-page .collection .section-body {
    margin: 0 auto 4rem;
    color: var(--navy);
    opacity: 0.85;
}

.home-page .residences-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 4rem;
}

.home-page .residence-card {
    position: relative;
    display: block;
    height: 500px;
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
}

.home-page .residence-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.home-page .residence-card:hover img {
    transform: scale(1.05);
}

.home-page .residence-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(26, 43, 74, 0.9), transparent);
    text-align: left;
}

.home-page .residence-card h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--white);
    margin: 0;
}

/* ---------- Icon7 Difference --------------------------------------------- */
.home-page .difference {
    background-color: var(--navy);
    color: var(--white);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.home-page .difference-content {
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-page .difference .section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--gold);
}

.home-page .difference .section-body {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 3rem;
}

.home-page .inclusions {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.home-page .inclusion-item h4 {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.home-page .inclusion-item p {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.home-page .difference-image {
    position: relative;
    overflow: hidden;
    min-height: 400px;
}

.home-page .difference-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.home-page .difference-slideshow .slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.home-page .difference-slideshow .slide.active {
    opacity: 1;
}

/* ---------- Elevate ------------------------------------------------------- */
.home-page .elevate {
    background-color: var(--terracotta);
    text-align: center;
    padding: 6rem 4rem;
    position: relative;
    overflow: hidden;
}

.home-page .elevate-logo-bg {
    position: absolute;
    bottom: -50%;
    right: -20%;
    width: 80%;
    max-width: 900px;
    opacity: 0.08;
    pointer-events: none;
    z-index: 0;
}

.home-page .elevate .section-title,
.home-page .elevate .section-body,
.home-page .elevate .btn-light {
    position: relative;
    z-index: 1;
}

.home-page .elevate .section-title {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--white);
}

.home-page .elevate .section-body {
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 2.5rem;
}

/* ---------- Testimonials -------------------------------------------------- */
.home-page .testimonials {
    background-color: var(--white);
    text-align: center;
    padding: 8rem 4rem;
}

.home-page .testimonials .section-title {
    color: var(--navy);
    margin-bottom: 4rem;
}

.home-page .testimonials-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.home-page .testimonial {
    background: #F7F7F3;
    padding: 2.5rem;
    border-radius: 4px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.home-page .testimonial.visible {
    opacity: 1;
    transform: translateY(0);
}

.home-page .testimonial blockquote {
    font-family: var(--font-serif);
    font-size: 1.25rem;
    font-style: italic;
    font-weight: 400;
    color: var(--navy);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.home-page .testimonial cite {
    font-family: var(--font-serif);
    font-size: 0.9rem;
    font-style: normal;
    color: var(--lake-blue);
    letter-spacing: 0.05em;
}

/* ---------- Invitation ---------------------------------------------------- */
.home-page .invitation {
    background-color: var(--lake-blue);
    min-height: 70vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.home-page .invitation-image {
    position: relative;
    min-height: 500px;
}

.home-page .invitation-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-page .invitation-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 4rem 5rem;
}

.home-page .invitation .section-title {
    color: var(--white);
}

.home-page .invitation .section-body {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   RESPONSIVE — breakpoints match the prototype / Wave-1
   ========================================================================== */
@media (max-width: 1024px) {
    .home-page .villeggiatura,
    .home-page .difference,
    .home-page .invitation {
        grid-template-columns: 1fr;
    }

    .home-page .villeggiatura-image,
    .home-page .difference-image,
    .home-page .invitation-image {
        height: 50vh;
        min-height: 400px;
    }

    .home-page .villeggiatura-content,
    .home-page .difference-content,
    .home-page .invitation-content {
        padding: 4rem 2rem;
    }

    .home-page .residences-grid {
        grid-template-columns: 1fr;
    }

    .home-page .residence-card {
        height: 400px;
    }

    .home-page .elevate,
    .home-page .testimonials {
        padding: 5rem 2rem;
    }
}

@media (max-width: 900px) {
    .home-page .testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 600px;
    }
}

@media (max-width: 768px) {
    .home-page .hero-title {
        font-size: 3rem;
    }
}
