/* ============================================================
   DATA SHAPES | Modern Dark Theme
   BG: #242526 | Text: #ffffff | Normal scroll
   ============================================================ */

:root {
    --bg: #242526;
    --bg-deep: #1a1b1c;
    --text: #ffffff;
    --text-dim: rgba(255, 255, 255, 0.52);
    --text-body: rgba(255, 255, 255, 0.82);
    --border: rgba(255, 255, 255, 0.08);
    --font: 'Space Grotesk', 'Inter', Arial, sans-serif;
}

/* ── Base ─────────────────────────────────────────────────── */
body {
    padding: 0;
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.7;
    background-color: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    text-shadow: none;
    text-shadow: 3px 0 1px rgba(0,30,255,0.5), -3px 0 1px rgba(255,0,80,0.3), 0 0 3px;
}

h1, h2, h3 {
    margin: 0 0 8px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}

a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(255, 255, 255, 0.25);
    transition: text-decoration-color 0.25s, opacity 0.25s;
}

    a:hover {
        opacity: 0.75;
        text-decoration-color: rgba(255, 255, 255, 0.8);
        background-color: transparent;
        color: var(--text);
    }

/* ── Sections – normal scroll ─────────────────────────────── */
.main section {
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Flex container per centrare verticalmente il contenuto */
.page_container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: solid 3px #0f1010;
    border-width: 1px 0px 3px 0px;
}

/* ── Section backgrounds ──────────────────────────────────── */
.page1 {
    background-color: #000;
}

.page2 {
    background-color: var(--bg);
}

.page3 {
    background-color: var(--bg-deep);
}

.page3b {
    background-color: var(--bg);
}

.page4 {
    background-color: var(--bg);
}

.page5 {
    background-color: var(--bg-deep);
}

.page6 {
    background-color: var(--bg);
}

.bg-foto-2,
.bg-foto-3,
.bg-foto-4 {
    position: absolute;
    inset: 0;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    opacity: 0.08;
}

.bg-foto-2 {
    background-image: url('../_img/FOTO_02.jpg');
}

.bg-foto-3 {
    background-image: url('../_img/_FOTO_03.jpg');
}

.bg-foto-4 {
    background-image: url('../_img/_FOTO_05.jpg');
}

/* ── page1 – Video hero ───────────────────────────────────── */
.page1 {
    position: relative;
    overflow: hidden;
}

    .page1 .page_container {
        position: relative;
        width: 100%;
        height: 100vh;
        min-height: 100vh;
    }

#myVideo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translateX(-50%) translateY(-50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: 0;
}

/* Overlay originale con PNG */
.bg-top-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background-image: url('../_img/_BG_.png');
    background-color: transparent;
    z-index: 1;
    pointer-events: none;
}

/* Titolo – stile originale: centro verticale, box grigio */
.center {
    font-size: 12px;
    color: black;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 0;
    padding: 10px;
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    background-color: rgb(237, 237, 237);
    z-index: 2;
}

/* Scroll hint */
.blink_me {
    position: fixed;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    width: auto;
    min-width: 220px;
    padding: 8px 16px;
    text-align: center;
    opacity: 0;
    animation: blinker 1s linear 5;
    animation-delay: 0.5s;
    z-index: 9999;
    background-color: black;
    color: #eeeeee;
    font-size: 11px;
    letter-spacing: 0.05em;
    pointer-events: none;
}

@keyframes blinker {
    0%, 100% {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }
}

/* ── Blocchi di testo – flow normale ──────────────────────── */
.presentation {
    width: 100%;
    position: relative;
    padding: 60px 0;
}

.presentation-text {
    width: 100%;
}

.pad {
    padding: 0 10vw;
    max-width: 860px;
    margin: 0 auto;
}

.div_text {
    color: var(--text-body);
    text-align: justify;
}

@media screen and (min-width: 660px) {
    .div_text {
        display: block;
        line-height: 1.8;
        font-size: clamp(15px, 1.35vw, 18px);
        color: var(--text-body);
    }
}

@media screen and (max-width: 660px) {
    .pad {
        padding: 0 24px;
    }

    .flickity-button {
        display: none;
    }
}

.div_text h3 {
    font-size: clamp(20px, 2.8vw, 34px);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    text-transform: uppercase;
    /* margin-bottom: 28px; */
    /* padding-bottom: 20px; */
    border-bottom: 1px solid var(--border);
    text-align: left;
}

/* ── Link dentro il contenuto ─────────────────────────────── */
div a {
    color: rgba(255, 255, 255, 0.85);
    background: none;
    padding: 0;
    border-radius: 0;
    display: inline;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: rgba(255, 255, 255, 0.22);
    transition: text-decoration-color 0.2s, opacity 0.2s;
}

    div a:hover {
        background: none;
        color: #fff;
        opacity: 1;
        text-decoration-color: rgba(255, 255, 255, 0.75);
    }

/* ── page3 – Flickity carousel ────────────────────────────── */
.page3 .page_container {
    display: block;
    min-height: 100vh;
    height: 100vh;
}

.main-carousel {
    height: 100vh;
    background-color: var(--bg-deep);
}

.carousel-cell {
    height: 100vh;
    width: 100%;
    background-color: var(--bg-deep);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 65% auto;
    color: var(--text);
    text-align: center;
}

    .carousel-cell p {
        position: absolute;
        bottom: 36px;
        left: 50%;
        transform: translateX(-50%);
        width: auto;
        padding: 6px 18px;
        background: none;
        font-size: 9px;
        letter-spacing: 0.22em;
        text-transform: uppercase;
        color: var(--text-dim);
        white-space: nowrap;
    }

@media screen and (max-width: 800px) {
    .carousel-cell {
        background-size: 92% auto;
    }
}

.flickity-button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(6px);
    transition: background 0.2s;
}

    .flickity-button:hover {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
    }

.flickity-button-icon {
    fill: currentColor;
}

/* ── page3b – video luci ──────────────────────────────────── */
.page3b .page_container {
    align-items: center;
}

.page3b video {
    border-radius: 2px;
    border: 1px solid var(--border);
}

.page3b .pad > div {
    position: relative;
    width: 100%;
}

/* ── YouTube embed container ──────────────────────────────── */
.iframe-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    height: 0;
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 2px;
    overflow: hidden;
    text-align: center;
    cursor: pointer;
    margin-top: 16px;
}

    .iframe-container img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 55%;
        border: none;
        margin: 0;
        opacity: 0.45;
        transition: opacity 0.3s;
    }

    .iframe-container:hover img {
        opacity: 0.85;
    }

    .iframe-container iframe {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
    }

/* ── Video popup modal ────────────────────────────────────── */
.modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(18, 19, 20, 0.96);
    backdrop-filter: blur(10px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .modal div {
        width: 90vw;
        max-width: 1140px;
        height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .modal iframe {
        width: 90vw;
        max-width: 1140px;
        height: calc(90vw * 9 / 16);
        max-height: 80vh;
    }

.introVidClose {
    position: fixed;
    top: 24px;
    right: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    font-family: var(--font);
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    z-index: 100001;
    padding: 0;
    cursor: pointer;
}

    .introVidClose:hover {
        background: rgba(255, 255, 255, 0.14);
        color: #fff;
        text-decoration: none;
    }

/* ── "GUARDA" fixed trigger ───────────────────────────────── */
.guarda {
    position: fixed;
    bottom: 0;
    /* right: 0; */
    z-index: 998;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

    .guarda a {
        display: block;
        padding: 10px 20px;
        background: rgba(36, 37, 38, 0.92);
        border-top: 1px solid var(--border);
        border-left: 1px solid var(--border);
        color: var(--text-dim);
        font-size: 9px;
        letter-spacing: 0.2em;
        text-transform: uppercase;
        backdrop-filter: blur(8px);
        text-decoration: none;
        transition: color 0.2s, background 0.2s;
    }

        .guarda a:hover {
            color: var(--text);
            background: rgba(36, 37, 38, 0.98);
            text-decoration: none;
            opacity: 1;
        }

/* ── Side navigation dots ─────────────────────────────────── */
.side-nav {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 18px;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .side-nav a {
        display: block;
        width: 14px;
        height: 14px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.22);
        text-decoration: none;
        transition: background 0.3s, transform 0.3s;
        border: none;
    }

        .side-nav a:hover {
            background: rgba(255, 255, 255, 0.55);
            opacity: 1;
            text-decoration: none;
        }

        .side-nav a.active {
            background: rgba(255, 255, 255, 0.90);
            transform: scale(1.45);
        }

/* ── iframe body diretto – nascosto ───────────────────────── */
body > iframe {
    display: none;
}



div a {
    background-color: #444444;
    padding: 1px 5px;
}