/* gs-home.css v1.3.40 — dark mode home landing */

/* Solo sulla home featured — non su login/altri component */
body.itemid-101.view-featured #sp-slider,
body.itemid-101.view-featured #sp-carousel,
body.itemid-101.view-featured #sp-slide,
body.itemid-101.view-featured #sp-section-2,
body.itemid-101.view-featured #sp-meteo-ferie-2026,
body.itemid-101.view-featured #sp-position4,
body.itemid-101.view-featured #sp-position5,
body.itemid-101.view-featured #sp-position6,
body.itemid-101.view-featured #sp-k-drama,
body.itemid-101.view-featured #sp-main-body,
body.itemid-101.view-featured #sp-component,
body.itemid-101.view-featured #sp-3-wrapper,
body.itemid-101.view-featured #sp-title,
body.itemid-101.view-featured #sp-section-1,
body.itemid-101.view-featured .blog,
body.itemid-101.view-featured .blog-featured,
body.itemid-101.view-featured .com-content-category-blog,
body.itemid-101.view-featured .com-content-article {
    display: none !important;
}

.gs-home {
    --gs-ink: #111111;
    --gs-muted: #555555;
    --gs-paper: #f2f0ed;
    --gs-card: #ececec;
    --gs-line: rgba(17, 17, 17, 0.1);
    --gs-blue: #2f6fed;
    --gs-display: "Cormorant Garamond", Georgia, serif;
    --gs-body: "DM Sans", "Segoe UI", sans-serif;
    color: var(--gs-ink);
    background: var(--gs-paper);
    font-family: var(--gs-body);
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

/* Full-bleed dentro il container Helix (#sp-main) — su mobile resta 100% per evitare scroll orizzontale */
#gs-home-landing.gs-home {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

@media (max-width: 980px) {
    #gs-home-landing.gs-home {
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

/* HERO full-bleed — basso sul legno, travi grigie */
.gs-home__hero {
    position: relative;
    isolation: isolate;
    width: 100%;
    /* 16:9 visibile + spazio per titolo e CTA */
    min-height: clamp(420px, calc(56.25vw + 15rem), 780px);
    display: flex;
    align-items: flex-end;
    color: #f7f5f2;
    overflow: hidden;
    background: #12100e;
}

.gs-home__hero-picture {
    position: absolute;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    background: #12100e;
}

.gs-home__hero-img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    display: block;
}

.gs-home__hero-shade {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        linear-gradient(100deg, rgba(0, 0, 0, 0.36) 0%, rgba(0, 0, 0, 0.12) 46%, rgba(0, 0, 0, 0.03) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0.26) 100%);
}

.gs-home__hero-inner {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 2.75rem));
    margin: 0 auto;
    padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(2.5rem, 6vw, 4rem);
    animation: gsRise 0.85s ease both;
}

.gs-home__hero-copy {
    max-width: min(52rem, 100%);
}

.gs-home__title {
    margin: 0 0 0.75rem;
    font-family: var(--gs-display);
    font-size: clamp(3.1rem, 8vw, 5.4rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.gs-home__lead {
    margin: 0 0 1.6rem;
    max-width: none;
    white-space: nowrap;
    font-family: var(--gs-display);
    font-size: clamp(1.05rem, 1.9vw, 1.35rem);
    line-height: 1.35;
    color: rgba(247, 245, 242, 0.92);
}

.gs-home__cta {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.65rem;
}

.gs-home__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 1 auto;
    white-space: nowrap;
    min-height: 44px;
    padding: 0.55rem 1rem;
    border: 1.5px solid rgba(247, 245, 242, 0.85);
    background: transparent;
    color: #f7f5f2 !important;
    text-decoration: none !important;
    font-family: var(--gs-body);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gs-home__btn:hover,
.gs-home__btn:focus {
    background: rgba(247, 245, 242, 0.12);
    transform: translateY(-1px);
}

.gs-home__btn-dark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.65rem 1.15rem;
    background: #111;
    border: 1px solid #111;
    color: #f7f5f2 !important;
    text-decoration: none !important;
    font-family: var(--gs-body);
    font-size: 0.92rem;
    font-weight: 700;
    width: fit-content;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gs-home__btn-dark:hover,
.gs-home__btn-dark:focus {
    background: #000;
    transform: translateY(-1px);
}

/* QUAD 2x2 */
.gs-home__main {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3.25rem) 0 0.5rem;
}

.gs-home__quad {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.25rem, 3vw, 2rem);
}

.gs-home__block {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 1.1rem;
    align-items: center;
    background: var(--gs-card);
    border: 1px solid var(--gs-line);
    padding: clamp(1rem, 2.5vw, 1.5rem);
    min-height: 240px;
    border-radius: 10px;
}

.gs-home__block--about {
    grid-template-columns: 1.15fr 0.85fr;
}

.gs-home__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.gs-home__photo {
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1 / 1;
    background: #ddd;
    position: relative;
}

.gs-home__ss3 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.gs-home__photo--kdrama {
    aspect-ratio: 16 / 9;
}

.gs-home__ss3 img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
    border-radius: 4px;
}

.gs-home__ss3 img.is-active {
    opacity: 1;
}

.gs-home__copy {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.gs-home__h2,
.gs-home__section-title {
    margin: 0;
    font-family: var(--gs-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.gs-home__h2 {
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
}

.gs-home__h2-link {
    color: inherit !important;
    text-decoration: none !important;
}

.gs-home__h2-link:hover,
.gs-home__h2-link:focus {
    text-decoration: underline !important;
    text-underline-offset: 0.12em;
}

.gs-home__copy p {
    margin: 0;
    color: var(--gs-muted);
    font-size: 0.98rem;
    line-height: 1.6;
}

/* AI PRATICA — Smart Slider 3 (id 2), 1200×400 */
.gs-home__ai {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(1rem, 2vw, 1.5rem);
}

.gs-home__ai-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.gs-home__ai-lead {
    margin: 0;
    max-width: 42rem;
    text-align: center;
    color: var(--gs-muted);
    font-size: 1.05rem;
    line-height: 1.55;
}

.gs-home__ai-slider {
    width: 100%;
    max-width: 1200px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--gs-line);
    background: var(--gs-card);
    position: relative;
}

/* Evita che ss3-force-full-width esca dalla colonna home (~1180px) */
.gs-home__ai-slider ss3-force-full-width {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    transform: none !important;
    left: auto !important;
    margin: 0 !important;
}

.gs-home__ai-slider .n2-ss-align,
.gs-home__ai-slider .n2-ss-slider,
.gs-home__ai-slider .n2-section-smartslider {
    margin: 0 auto !important;
    max-width: 100% !important;
}

.gs-home__ai-cta {
    margin-top: 0.35rem;
}

/* ALTRI SPAZI */
.gs-home__more,
.gs-home__useful {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: clamp(2rem, 5vw, 3rem) 0;
}

.gs-home__section-title {
    text-align: center;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin-bottom: 1.25rem;
}

.gs-home__tiles {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.gs-home__tile {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    min-height: 56px;
    padding: 0.75rem 1rem;
    background: #ececec;
    border: 1px solid var(--gs-line);
    border-radius: 8px;
    color: var(--gs-ink) !important;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gs-home__tile:hover,
.gs-home__tile:focus {
    background: #e2e2e2;
    transform: translateY(-1px);
}

.gs-home__tile-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    color: #111;
}

.gs-home__tile-icon svg {
    width: 22px;
    height: 22px;
}

.gs-home__tile-label {
    font-family: var(--gs-display);
    font-size: 1.05rem;
    font-weight: 600;
}

.gs-home__tile-chevron {
    font-size: 1.35rem;
    line-height: 1;
    opacity: 0.55;
}

/* IN EVIDENZA — allineato a blocchi home / Altri spazi */
.gs-home__useful--featured {
    padding-top: clamp(1.5rem, 3vw, 2.25rem);
}

.gs-home__useful-lead {
    margin: -0.35rem auto 1.35rem;
    max-width: 40rem;
    text-align: center;
    color: var(--gs-muted);
    font-size: 1.02rem;
    line-height: 1.5;
}

.gs-home__useful-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.85rem, 2vw, 1.25rem);
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.gs-home__useful-card {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: clamp(0.85rem, 2vw, 1.15rem);
    background: var(--gs-card);
    border: 1px solid var(--gs-line);
    border-radius: 10px;
    text-decoration: none !important;
    color: var(--gs-ink) !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.gs-home__useful-card--featured {
    min-height: 0;
}

.gs-home__useful-card:hover,
.gs-home__useful-card:focus-visible {
    background: #e2e2e2;
    transform: translateY(-1px);
    outline: none;
}

.gs-home__useful-card-media {
    display: block;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 4 / 3;
    background: #ddd;
}

.gs-home__useful-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gs-home__useful-card-body {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem;
    min-height: 1.5rem;
}

.gs-home__useful-card-label {
    font-family: var(--gs-display);
    font-size: clamp(1.02rem, 1.6vw, 1.18rem);
    font-weight: 600;
    line-height: 1.25;
    color: var(--gs-ink);
}

.gs-home__useful-card-chevron {
    font-size: 1.35rem;
    line-height: 1;
    opacity: 0.55;
}

.gs-ferie-guest-modal {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.gs-ferie-guest-modal[hidden] {
    display: none !important;
}

.gs-ferie-guest-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.gs-ferie-guest-modal__panel {
    position: relative;
    z-index: 1;
    width: min(420px, 100%);
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.gs-ferie-guest-modal__alert {
    margin: 0 0 1rem;
}

.gs-ferie-guest-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

@keyframes gsRise {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes gsKen {
    from { transform: scale(1.03) translate3d(0, 0, 0); }
    to { transform: scale(1.08) translate3d(-1%, -0.8%, 0); }
}

@media (max-width: 980px) {
    .gs-home__useful-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gs-home__ai-lead {
        font-size: 1rem;
    }

    .gs-home__hero {
        min-height: clamp(380px, calc(56.25vw + 14rem), 680px);
    }

    .gs-home__hero-inner {
        width: min(1120px, calc(100% - 1.75rem));
        padding: clamp(2.5rem, 8vw, 4rem) 0 clamp(2rem, 5vw, 3rem);
    }

    .gs-home__cta {
        flex-wrap: wrap;
    }

    .gs-home__quad {
        grid-template-columns: 1fr;
    }

    .gs-home__tiles {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .gs-home__hero {
        min-height: clamp(360px, calc(56.25vw + 13rem), 600px);
    }

    .gs-home__hero-inner {
        width: min(1120px, calc(100% - 1.25rem));
        padding: clamp(2rem, 7vw, 3rem) 0 clamp(1.75rem, 4vw, 2.5rem);
    }

    .gs-home__title {
        font-size: clamp(2.4rem, 11vw, 3.4rem);
    }

    .gs-home__lead {
        white-space: normal;
        font-size: 1.05rem;
    }

    .gs-home__useful-grid {
        gap: 0.65rem;
    }

    .gs-home__useful-card {
        padding: 0.75rem;
        gap: 0.65rem;
    }

    .gs-home__useful-card-label {
        font-size: 1rem;
    }

    .gs-home__block,
    .gs-home__block--about {
        grid-template-columns: 1fr;
        text-align: left;
    }

    .gs-home__photo {
        order: -1;
        max-height: 240px;
    }

    .gs-home__cta {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gs-home__hero-img,
    .gs-home__hero-inner,
    .gs-home__btn,
    .gs-home__btn-dark,
    .gs-home__tile {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}

/*====22/07/2026 — gs-home-dark-v1 — tema scuro home landing====*/
body.dark-mode .gs-home,
body.dark-mode #gs-home-landing.gs-home {
    --gs-ink: #f0f0f0;
    --gs-muted: #b8b8b8;
    --gs-paper: #1a1a1a;
    --gs-card: #242424;
    --gs-line: rgba(255, 255, 255, 0.12);
    background: var(--gs-paper);
    color: var(--gs-ink);
}

body.dark-mode .gs-home__tile,
body.dark-mode .gs-home__useful-card {
    background: #2a2a2a;
}

body.dark-mode .gs-home__tile:hover,
body.dark-mode .gs-home__tile:focus,
body.dark-mode .gs-home__useful-card:hover,
body.dark-mode .gs-home__useful-card:focus-visible {
    background: #333333;
}

body.dark-mode .gs-home__useful-card-media {
    background: #333;
}

body.dark-mode .gs-home__tile-icon {
    color: #f0f0f0;
}

body.dark-mode .gs-home__photo {
    background: #333;
}

body.dark-mode .gs-home__btn-dark {
    background: #f0f0f0;
    border-color: #f0f0f0;
    color: #111 !important;
}

body.dark-mode .gs-home__btn-dark:hover,
body.dark-mode .gs-home__btn-dark:focus {
    background: #e0e0e0;
}

body.dark-mode .gs-ferie-guest-modal__panel {
    background: #242424;
    color: #f0f0f0;
}
