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

body {
    background: #fff;
    font-family: 'polymath-display', sans-serif;
    font-weight: 600;
    color: #000;
    overflow-x: hidden;
}

.viewport-container {
    width: 100vw;
    max-width: 100%;
    margin: 0 auto;
    padding-top: 3vw;
}

/* --- HEADER --- */
.header {
    padding-left: 8vw; 
}

.logo {
    font-family: 'polymath-display', sans-serif;
    font-weight: 600;
    font-size: 15vw; 
    line-height: 0.8;
    text-transform: uppercase;
}

.dot {
    color: #e41e12; 
}

/* --- TOP GALLERY --- */
.gallery-top {
    position: relative;
    width: 100%;
    margin-top: 18vw; /* Regola d'oro: discesa abissale fissa per tutto il sito */
    padding-bottom: 25vw; 
}

.img-left {
    padding-left: 0; 
    margin-left: 0;
    width: 45vw; 
}
.img-left img {
    width: 100%;
    aspect-ratio: 16 / 10; 
    object-fit: cover;
    display: block;
}

.img-right {
    position: absolute;
    right: 0; 
    top: 50%; 
    width: 40vw; 
}
.img-right img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* --- CORE SECTION (Mega Table & Cards) --- */
.core-section {
    position: relative;
    width: 100%;
    margin-top: 8vw;
    display: flex;
    justify-content: center; 
}

.tables-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.table-mega {
    width: 100vw; /* Tocca bordi laterali estremi */
}
.table-mega img {
    width: 100%;
    object-fit: cover;
    display: block;
}

.cards-overlay {
    position: absolute;
    top: 32%; /* Regola d'oro Q1 */
    left: 50%;
    transform: translate(-50%, -50%); 
    width: 80vw; 
    display: flex;
    justify-content: space-between;
    gap: 3vw;
    z-index: 10;
}

.glass-card {
    flex: 1; 
    background: rgba(50,50,50,0.35); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 8px; 
    padding: 2vw;
    color: #fff;
    border: 1px solid rgba(255,255,255,0.08); 
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1); 
}

.glass-card h3 {
    font-family: 'polymath-display', sans-serif;
    font-weight: 400;
    font-size: 1.8vw;
    font-weight: normal;
    text-transform: uppercase;
    margin-bottom: 1.5vw;
    letter-spacing: 0.1vw;
    text-align: left;
}

.glass-card p {
    font-family: 'polymath-display', sans-serif;
    font-weight: 400;
    font-size: 1.1vw;
    line-height: 1.5;
    color: rgba(255,255,255,0.85);
}


/* --- VIDEO SECTION --- */
.video-section {
    display: flex;
    justify-content: center; /* FORZATAMENTE CENTRATO */
    margin-top: 10vw;
    margin-bottom: 12vw;
    width: 100%;
}

.video-box {
    width: 25vw; 
    aspect-ratio: 9/16; 
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.video-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- FOOTER COLLAGE --- */
.footer-collage {
    display: flex;
    justify-content: center; /* Regola d'oro E3 / Q1 */
    width: 75vw; 
    margin: 0 auto 10vw auto; 
    background: #000;
}

.footer-collage img {
    height: 15vw; 
    object-fit: cover;
    display: block;
}

.foot-img-1 { flex: 1.2; }
.foot-img-2 { flex: 1.6; }
.foot-img-3 { flex: 1.2; }


/* --- LOGICHE MOBILE AUTOMATICHE --- */
@media (max-width: 768px) {
    .logo { font-size: 26vw; }
    
    .gallery-top { padding-bottom: 45vw; }
    .img-left { width: 80vw; }
    .img-right { width: 70vw; top: 60%; }

    .cards-overlay {
        flex-direction: column;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 60vw; /* RIDUZIONE REALE */
        gap: 20px;
    }
    
    .glass-card { 
        padding: 15px 20px; 
    }
    .glass-card h3 { font-size: 18px; margin-bottom: 8px; }
    .glass-card p { font-size: 11px; line-height: 1.4; }

    .video-section { margin-top: 15vw; margin-bottom: 15vw; }
    .video-box { width: 80vw; }

    .footer-collage { flex-direction: column; width: 90vw; }
    .footer-collage img { width: 100%; height: auto; aspect-ratio: 16/9; }
    .foot-img-2 { border-left: none; border-right: none; border-top: 2px solid #000; border-bottom: 2px solid #000; }
}
