
/* ==========================================================
   WHITE LABEL - HOMEPAGE
   Versione: 1.0

   Dipendenza: style.css v1.5.3

   - Hero slider
   - Quattro punti di forza
   - Destinazioni
   - More Than a Stay
   - Featured Villas
   - Responsive
   ========================================================== */


/* ----------------------------------------------------------
   01. IMPOSTAZIONI HOME
   ---------------------------------------------------------- */

:root {
    --home-serif: Georgia, "Times New Roman", serif;
}

.home-section {
    padding-top: 70px;
    padding-bottom: 0;
}

.home-section-kicker {
    display: block;
    color: #b87908;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.8px;
    line-height: 1.5;
}

.home-heading-rule {
    width: 33px;
    height: 2px;
    margin: 10px 0 13px;
    background: var(--gold);
}

.home-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 30px;
}

.home-section-heading h2,
.experience-text h2 {
    margin: 0;
    font-family: var(--home-serif);
    font-size: clamp(32px, 3.25vw, 49px);
    font-weight: 400;
    line-height: 1.16;
    letter-spacing: -.6px;
}

.home-text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    padding-bottom: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .25px;
    white-space: nowrap;
    transition: color .25s ease;
}

.home-text-link:hover {
    color: var(--gold);
}

.home-text-link svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ----------------------------------------------------------
   02. HERO SLIDER
   ---------------------------------------------------------- */

.home-hero {
    position: relative;
    width: 100%;
    height: clamp(430px, 42vw, 660px);
    overflow: hidden;
    background: #18253a;
    color: #fff;
}

.home-hero-slides,
.home-slide {
    position: absolute;
    inset: 0;
}

.home-slide {
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 1.1s ease-in-out,
        visibility 1.1s ease-in-out;
}

.home-slide.active {
    opacity: 1;
    visibility: visible;
}

.home-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Sfumatura per mantenere leggibili i testi */

.home-hero-shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(5, 12, 26, .66) 0%,
            rgba(5, 12, 26, .40) 34%,
            rgba(5, 12, 26, .08) 72%,
            rgba(5, 12, 26, .03) 100%
        );
}

.home-hero-content {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: var(--page-padding);
    transform: translateY(-50%);
    width: min(680px, 75%);
}

.home-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.home-eyebrow::after {
    content: "";
    display: block;
    width: 32px;
    height: 2px;
    margin-top: 8px;
    background: var(--gold);
}

.home-hero-content h1 {
    margin: 0 0 17px;
    font-family: var(--home-serif);
    font-size: clamp(42px, 4.8vw, 78px);
    font-weight: 400;
    letter-spacing: -.8px;
    line-height: 1.08;
}

.home-hero-content p {
    margin: 0 0 28px;
    font-size: clamp(15px, 1.35vw, 19px);
    font-style: italic;
    line-height: 1.55;
}

.home-gold-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 13px;

    min-height: 46px;
    padding: 13px 23px;

    background: var(--gold);
    border: 1px solid var(--gold);
    color: #fff;

    font-size: 12px;
    font-weight: 700;
    transition:
        background-color .3s ease,
        border-color .3s ease;
}

.home-gold-button:hover {
    background: #a76c0a;
    border-color: #a76c0a;
}

.home-gold-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* Frecce hero */

.hero-navigation {
    position: absolute;
    z-index: 3;
    right: var(--page-padding);
    bottom: 24px;
    display: flex;
    gap: 12px;
}

.hero-nav-button {
    display: grid;
    place-items: center;

    width: 39px;
    height: 39px;
    padding: 0;

    border: 1px solid rgba(255,255,255,.85);
    border-radius: 50%;
    background: rgba(0,0,0,.18);
    color: #fff;

    font-size: 17px;
    line-height: 1;

    transition: background-color .25s ease;
}

.hero-nav-button:hover {
    background: rgba(0,0,0,.6);
}


/* Indicatori slider */

.hero-dots {
    position: absolute;
    z-index: 3;
    left: var(--page-padding);
    bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: transparent;
    transition:
        background-color .25s ease,
        width .25s ease;
}

.hero-dot.active {
    width: 19px;
    height: 6px;
    border-radius: 4px;
    background: #fff;
}


/* ----------------------------------------------------------
   03. FASCIA BENEFITS
   ---------------------------------------------------------- */

.home-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;

    padding: 25px var(--page-padding);

    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.home-benefit {
    display: flex;
    align-items: center;
    gap: 17px;
    min-width: 0;

    padding: 0 26px;
    border-right: 1px solid #dadce2;
}

.home-benefit:first-child {
    padding-left: 0;
}

.home-benefit:last-child {
    border-right: 0;
    padding-right: 0;
}

.home-benefit > svg {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;

    fill: none;
    stroke: var(--gold);
    stroke-width: 1.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.home-benefit h2 {
    margin: 0 0 5px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.home-benefit p {
    margin: 0;
    color: var(--navy-soft);
    font-size: 11px;
    line-height: 1.45;
}


/* ----------------------------------------------------------
   04. DESTINAZIONI
   ---------------------------------------------------------- */

.destinations-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
}

.destination-card {
    position: relative;
    display: block;
    min-width: 0;
    aspect-ratio: 1.05 / 1;
    overflow: hidden;
    background: #e8edf1;
}

.destination-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    filter: brightness(1);
    transition: filter .4s ease-in-out;
}

.destination-card:hover img {
    filter: brightness(.60);
}

.destination-card::after {
    content: "";
    position: absolute;
    inset: 45% 0 0;
    pointer-events: none;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(3, 14, 36, .64)
    );
}

.destination-card > span {
    position: absolute;
    z-index: 1;
    left: 18px;
    right: 12px;
    bottom: 16px;

    color: #fff;
    font-family: var(--home-serif);
    font-size: clamp(18px, 1.9vw, 28px);
    font-weight: 400;
    line-height: 1.15;
}


/* ----------------------------------------------------------
   05. MORE THAN A STAY
   ---------------------------------------------------------- */

.home-experience {
    padding-top: 64px;
}

.experience-layout {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: stretch;
    min-height: 355px;
}

.experience-photo {
    position: relative;
    min-width: 0;
    min-height: 355px;
    overflow: hidden;
    background: #e9ecef;
}

.experience-photo > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.experience-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);

    display: grid;
    place-items: center;

    width: 62px;
    height: 62px;
    padding: 0;

    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;

    transition:
        background-color .25s ease,
        transform .25s ease;
}

.experience-play:hover {
    background: rgba(255,255,255,.35);
    transform: translate(-50%, -50%) scale(1.05);
}

.experience-play span {
    font-size: 21px;
    padding-left: 4px;
}

.experience-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;

    min-width: 0;
    padding: clamp(28px, 4vw, 62px);

    background: #f5f3f0;
}

.experience-text h2 {
    margin-bottom: 25px;
}

.experience-text p {
    max-width: 540px;
    margin: 0 0 31px;

    font-size: 16px;
    line-height: 1.65;
}

.experience-button {
    display: inline-flex;
    align-items: center;
    gap: 17px;
    min-height: 45px;

    padding: 12px 25px;
    border: 1px solid var(--gold);
    background: transparent;
    color: var(--navy);

    font-size: 11px;
    font-weight: 700;

    transition:
        background-color .25s ease,
        color .25s ease;
}

.experience-button:hover {
    background: var(--gold);
    color: #fff;
}

.experience-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ----------------------------------------------------------
   06. FEATURED VILLAS
   ---------------------------------------------------------- */

.home-featured {
    padding-top: 63px;
    padding-bottom: 86px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.featured-card {
    min-width: 0;
}

.featured-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1.72 / 1;
    overflow: hidden;
    background: #e8edf1;
}

.featured-photo > a {
    display: block;
    width: 100%;
    height: 100%;
}

.featured-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    filter: brightness(1);
    transition: filter .4s ease-in-out;
}

.featured-photo:hover img {
    filter: brightness(.60);
}

.featured-wish {
    position: absolute;
    z-index: 2;
    top: 8px;
    right: 8px;

    display: grid;
    place-items: center;

    width: 33px;
    height: 33px;
    padding: 5px;

    border: 0;
    background: rgba(0,0,0,.08);
    color: #fff;
}

.featured-wish:hover {
    background: rgba(0,0,0,.35);
}

.featured-wish svg {
    width: 25px;
    height: 25px;
    fill: transparent;
    stroke: #fff;
    stroke-width: 2;
    stroke-linejoin: round;
}

.featured-wish.active svg {
    fill: #fff;
}

.featured-title {
    margin: 13px 0 7px;
    font-family: var(--home-serif);
    font-size: clamp(19px, 1.65vw, 25px);
    font-weight: 400;
    line-height: 1.2;
}

.featured-title a:hover {
    color: #ac780f;
}

.featured-location {
    display: flex;
    align-items: center;
    gap: 7px;

    margin: 0 0 13px;
    color: var(--navy-soft);
    font-size: 12px;
}

.featured-location svg {
    flex: 0 0 14px;
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}

.featured-facts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;

    margin: 0;
    font-size: 12px;
}

.featured-fact {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.featured-fact svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: var(--navy);
    stroke-width: 1.55;
    stroke-linejoin: round;
}

.featured-separator {
    width: 1px;
    height: 17px;
    background: #b7bdc9;
}

.featured-empty {
    padding: 45px 0;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}


/* ----------------------------------------------------------
   07. MODAL DEMO
   ---------------------------------------------------------- */

.home-modal {
    max-width: 510px;
}

.home-modal h2 {
    padding-right: 25px;
    font-family: var(--home-serif);
    font-size: 30px;
    font-weight: 400;
}

.home-modal-action {
    min-height: 42px;
    margin-top: 12px;
    padding: 10px 30px;
    border: 1px solid var(--navy);
    background: var(--navy);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.home-modal-action:hover {
    background: #253a65;
}


/* ==========================================================
   08. RESPONSIVE - DESKTOP COMPATTO
   ========================================================== */

@media (max-width: 1100px) {

    .home-benefit {
        gap: 11px;
        padding: 0 15px;
    }

    .home-benefit > svg {
        width: 27px;
        height: 27px;
        flex-basis: 27px;
    }

    .featured-grid {
        gap: 15px;
    }

    .experience-layout {
        grid-template-columns: 1.1fr 1fr;
    }

    .experience-text {
        padding: 30px;
    }
}


/* ----------------------------------------------------------
   09. TABLET
   ---------------------------------------------------------- */

@media (max-width: 900px) {

    .home-hero {
        height: 520px;
    }

    .home-hero-content {
        width: min(600px, 85%);
    }

    .home-hero-content h1 {
        font-size: clamp(40px, 6vw, 62px);
    }

    .home-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 0;
        padding-top: 27px;
        padding-bottom: 27px;
    }

    .home-benefit:nth-child(2) {
        border-right: 0;
    }

    .home-benefit:nth-child(3) {
        padding-left: 0;
    }

    .home-benefit {
        padding: 0 22px;
    }

    .destinations-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
    }

    .destination-card {
        aspect-ratio: 1.15 / 1;
    }

    .destination-card > span {
        font-size: 24px;
    }

    .experience-layout {
        grid-template-columns: 1fr 1fr;
        min-height: 320px;
    }

    .experience-photo {
        min-height: 320px;
    }

    .experience-text p {
        font-size: 14px;
    }

    .featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 16px;
    }

    .featured-photo {
        aspect-ratio: 1.7 / 1;
    }
}


/* ----------------------------------------------------------
   10. SMARTPHONE
   ---------------------------------------------------------- */

@media (max-width: 620px) {

    .home-section {
        padding-top: 49px;
    }

    .home-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 22px;
    }

    .home-section-heading h2,
    .experience-text h2 {
        font-size: clamp(31px, 8vw, 43px);
    }

    .home-text-link {
        padding-bottom: 0;
        font-size: 11px;
    }

    /* Hero */

    .home-hero {
        height: min(680px, 78svh);
        min-height: 470px;
    }

    .home-hero-shade {
        background: linear-gradient(
            90deg,
            rgba(5,12,26,.68) 0%,
            rgba(5,12,26,.35) 70%,
            rgba(5,12,26,.18) 100%
        );
    }

    .home-hero-content {
        left: var(--page-padding);
        width: calc(100% - 2 * var(--page-padding));
    }

    .home-eyebrow {
        font-size: 10px;
        letter-spacing: 1.6px;
    }

    .home-hero-content h1 {
        font-size: clamp(39px, 10vw, 53px);
        line-height: 1.12;
    }

    .home-hero-content p {
        font-size: 15px;
    }

    .home-hero-content p br {
        display: none;
    }

    .home-gold-button {
        min-height: 44px;
        padding: 12px 16px;
        font-size: 11px;
    }

    .hero-navigation {
        right: var(--page-padding);
        bottom: 20px;
        gap: 9px;
    }

    .hero-nav-button {
        width: 35px;
        height: 35px;
    }

    .hero-dots {
        bottom: 22px;
    }

    /* Benefits */

    .home-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 14px;
        padding: 25px var(--page-padding);
    }

    .home-benefit,
    .home-benefit:first-child,
    .home-benefit:nth-child(3),
    .home-benefit:last-child {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 0;
        border: 0;
    }

    .home-benefit > svg {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
    }

    .home-benefit h2 {
        font-size: 12px;
    }

    .home-benefit p {
        font-size: 11px;
        line-height: 1.5;
    }

    /* Destinations */

    .destinations-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .destination-card {
        aspect-ratio: 1 / 1.12;
    }

    .destination-card > span {
        left: 12px;
        bottom: 12px;
        font-size: 21px;
    }

    .destination-card:last-child {
        grid-column: span 2;
        aspect-ratio: 2.1 / 1;
    }

    /* Experience */

    .home-experience {
        padding-top: 48px;
    }

    .experience-layout {
        grid-template-columns: 1fr;
    }

    .experience-photo {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .experience-text {
        padding: 35px 25px 39px;
    }

    .experience-text h2 {
        margin-bottom: 18px;
    }

    .experience-text p {
        font-size: 15px;
        line-height: 1.7;
    }

    /* Featured villas */

    .home-featured {
        padding-top: 51px;
        padding-bottom: 55px;
    }

    .featured-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .featured-photo {
        aspect-ratio: 1.65 / 1;
    }

    .featured-title {
        font-size: 23px;
    }
}


/* ----------------------------------------------------------
   11. SCHERMI MOLTO STRETTI
   ---------------------------------------------------------- */

@media (max-width: 360px) {

    .home-hero-content h1 {
        font-size: 37px;
    }

    .home-benefits {
        gap: 20px 12px;
    }

    .destination-card > span {
        font-size: 18px;
    }

    .experience-text {
        padding: 29px 19px;
    }

    .hero-navigation {
        gap: 5px;
    }
}


/* ----------------------------------------------------------
   12. ACCESSIBILITÀ
   ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

    .home-slide,
    .destination-card img,
    .featured-photo img,
    .hero-dot,
    .hero-nav-button,
    .experience-play {
        transition: none !important;
    }
}

/* FINE HOMEPAGE v1.0 */
